Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
7d1365ce
Commit
7d1365ce
authored
11 years ago
by
Mark Otto
Committed by
XhmikosR
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Refactor and restyle.
parent
250e021f
main
cleanup-floating-forms
cssvar-function
dependabot/npm_and_yarn/stylelint-and-stylelint-config-twbs-bootstrap-15.3.0
extend-snippets
feat/data-target
floating-always-visible
floating-labels-icons
fod-main-banner
form-controls-with-icons
github/fork/719media/patch-13
github/fork/719media/patch-14
github/fork/719media/patch-9
github/fork/ChellyAhmed/fix-typo-reboot.md
github/fork/ChellyAhmed/offcanvas-scroll-back
github/fork/CtrlAltLilith/main
github/fork/Elysiome/offcanvas-optional-window-resizing
github/fork/JanSargsyan/main
github/fork/LunicLynx/support-different-line-height-for-buttons
github/fork/Psixodelik/main
github/fork/Ronid1/ronid1/offcanvas_static_backdrop
github/fork/RyanBerliner/tooltip-accessibility
github/fork/SantiagoPVazquez/Feature-default-border-bottom-to-dropdown-item
github/fork/Sir-Genius/utils
github/fork/Sumit-Singh-8/main
github/fork/Viktor-VERA2020/offcanvas-slide
github/fork/Zivangu9/input-group-for-form-control-plaintext
github/fork/alpadev/alpadev/call-dispose-on-component-reinstantiation
github/fork/astagi/fix/tree-shake-modules
github/fork/compnerd/dark-accordion-icon
github/fork/derSascha/dropdown-dont-close-on-input-click
github/fork/dev-ph1l/main
github/fork/donquixote/issue-33861-utl-mixin
github/fork/florianlacreuse/mixin-make-row-gutter-y
github/fork/gregorw/main
github/fork/iteggmbh/transitionend-dispose-race
github/fork/jdelStrother/patch-1
github/fork/jonnysp/form-floating
github/fork/jonnysp/independent-offcanvas
github/fork/jonnysp/theme-dark-on-card-and-modal-fix
github/fork/josefdlange/floating-label-placeholder-opacity
github/fork/julien-deramond/enhance-change-version.js
github/fork/julien-deramond/main-jd-fix-offset-content
github/fork/julien-deramond/main-jd-issue-with-utitlies
github/fork/julien-deramond/main-xmr-pa11y-ci-jd-add-hideElements
github/fork/kyletsang/fix-tooltip-padding
github/fork/lacutah/CheckboxCenteringDocumentation
github/fork/lekoala/patch-3
github/fork/louismaximepiton/main-kld-lmp-collapse-proposal
github/fork/louismaximepiton/main-lmp-card-inner-border-radius-fix
github/fork/louismaximepiton/main-lmp-carousel-multiple-images
github/fork/louismaximepiton/main-lmp-css-var-init
github/fork/louismaximepiton/main-lmp-disabled-floating-label-fix
github/fork/louismaximepiton/main-lmp-input-range-fix
github/fork/louismaximepiton/main-lmp-shift-color
github/fork/louismaximepiton/main-lmp-table-active-tr-fix
github/fork/maciek-szn/switch
github/fork/michael-roth/feature/19964-multiple-tab-targets
github/fork/mistic100/dom-utils
github/fork/nkdas91/accordion
github/fork/nstungcom/fix-missing-modal-open-class
github/fork/oraliahdz/animation-utilities
github/fork/pine3ree/patch-7
github/fork/pouwerkerk/unindent-scss-docs-shortcode
github/fork/smares/smares-no-scolling-on-modal-close
github/fork/tgm-git/patch-1
gs-forms
gs-toasts-with-animated-progress-bar
gs/add-history-helper
gs/change-version-dir-on-docs
gs/data-must-set-onlu-one-instance
gs/docs/fix-drop-down-error
gs/event-handler-2
gs/make-docs-js-build
gs/make-simple-attribute-toggler
gs/popover-fix-doc
gs/provide-steConfig-method
gs/scrollspy-smoothscroll-option-use-browser-history
gs/streamline-jqueryInterface
gs/support-drop-down-in-navbar
gs/test-js-generic-trigger
gs/try-web-components
gs/tweak-collapse-js-selector
gs/use-event-handler-in-cocmponent
gs/use-rollup-replace-for-version
jo-docs-thanks-page
jo-ssr-friendly
logical-props-spacing-utils
main-fod-disabled-form-check-label
main-fod-nested-accordion
main-fod-simpler-table-structure
main-fod-table-separator
main-fod-utilities-contrast
main-jd-abbr-title
main-jd-add-chips
main-jd-add-doc-for-sass-custom-colors
main-jd-add-enable-host-to-handle-web-components
main-jd-browserstack-fine-tune
main-jd-browserstack-updates
main-jd-docs-consistent-usage-of-css-sections-step-2
main-jd-fix-docs-headers-in-white
main-jd-fix-highlight-docs-border-radius
main-jd-fix-placeholder-color-background-params-for-img-markup
main-jd-glossary-experiment
main-jd-postcss-drop-empty-css-vars
main-jd-proto-doc-astro
main-jd-skip-navigation-component
main-jd-stackblitz-for-examples
main-jd-upgrade-browserlistrc
main-jd-use-host
main-lmp-dark-theme-customization
main-lmp-handle-scroll-target
main-lmp-tab-fix
main-mc-opensearch
main-xmr-bundlewatch-action
main-xmr-eslint-plugin-compat
main-xmr-hugo-docs-vendor
main-xmr-hugo-rm-ver
main-xmr-linkinator-prod
main-xmr-min-mangle
main-xmr-pa11y-ci
more-darkmode-examples
nested-dropdowns
patrickhlauke-issue37428
patrickhlauke-use-of-color-tweaks
pr/34102
pr/37590
previous-next-docs-links
sticky-thead
utilities-functions-mixin
v3-dev
v4-dev
v4-dev-dropdown-hide-method
v530-dev
v6-postcss-custom-media
v6-spinner-dots
v6/gs/use-floating-ui-in-place-of-popper
xmr/dev
xmr/docs-png
xmr/docs-svgs
xmr/hugo-reorg-files
xmr/js-2
xmr/markdownlint
xmr/prepare-530-alpha2
xmr/xo
v5.3.0-alpha1
v5.2.3
v5.2.2
v5.2.1
v5.2.0
v5.2.0-beta1
v5.1.3
v5.1.2
v5.1.1
v5.1.0
v5.0.2
v5.0.1
v5.0.0
v5.0.0-beta3
v5.0.0-beta2
v5.0.0-beta1
v5.0.0-alpha3
v5.0.0-alpha2
v5.0.0-alpha1
v4.6.2
v4.6.1
v4.6.0
v4.5.3
v4.5.2
v4.5.1
v4.5.0
v4.4.1
v4.4.0
v4.3.1
v4.3.0
v4.2.1
v4.2.0
v4.1.3
v4.1.2
v4.1.1
v4.1.0
v4.0.0
v4.0.0-beta.3
v4.0.0-beta.2
v4.0.0-beta
v4.0.0-alpha.6
v4.0.0-alpha.5
v4.0.0-alpha.4
v4.0.0-alpha.3
v4.0.0-alpha.2
v4.0.0-alpha
v3.4.1
v3.4.0
v3.3.7
v3.3.6
v3.3.5
v3.3.4
v3.3.2
v3.3.1
v3.3.0
v3.2.0
5 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
,
!12690
Add ZeroClipboard to docs
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Gruntfile.js
+1
-1
Gruntfile.js
docs/assets/css/_src/docs.css
+18
-20
docs/assets/css/_src/docs.css
docs/assets/js/_src/application.js
+40
-35
docs/assets/js/_src/application.js
docs/assets/js/_vendor/zero-clipboard.js
+0
-1010
docs/assets/js/_vendor/zero-clipboard.js
docs/assets/js/_vendor/zero-clipboard.min.js
+9
-0
docs/assets/js/_vendor/zero-clipboard.min.js
with
68 additions
and
1066 deletions
+68
-1066
Gruntfile.js
+
1
-
1
View file @
7d1365ce
...
...
@@ -137,7 +137,7 @@ module.exports = function (grunt) {
},
src
:
[
'
docs/assets/js/_vendor/holder.js
'
,
'
docs/assets/js/_vendor/zero-clipboard.js
'
,
'
docs/assets/js/_vendor/zero-clipboard.
min.
js
'
,
'
docs/assets/js/_src/application.js
'
],
dest
:
'
docs/assets/js/docs.min.js
'
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/_src/docs.css
+
18
-
20
View file @
7d1365ce
...
...
@@ -1133,13 +1133,9 @@ h1[id] {
font-size
:
inherit
;
color
:
#333
;
/* Effectively the base text color */
}
.highlight
pre
.lineno
{
.highlight
pre
code
:first-child
{
display
:
inline-block
;
width
:
22px
;
padding-right
:
5px
;
margin-right
:
10px
;
color
:
#bebec5
;
text-align
:
right
;
padding-right
:
45px
;
}
...
...
@@ -1467,35 +1463,37 @@ h1[id] {
box-shadow
:
0
0
8px
rgba
(
82
,
168
,
236
,
.6
);
}
/*
* ZeroClipboard styles
*/
.zero-clipboard
{
position
:
relative
;
display
:
none
;
}
.btn-clipboard
{
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
10
;
padding
:
5px
10px
;
display
:
block
;
padding
:
5px
8px
;
font-size
:
12px
;
color
:
#777
;
cursor
:
pointer
;
border-color
:
#e1e1e8
;
border-bottom
:
1px
solid
transparent
;
border-left
:
1px
solid
transparent
;
border-radius
:
0
4px
0
0
;
background-color
:
#fff
;
border
:
1px
solid
#e1e1e8
;
border-radius
:
0
4px
0
4px
;
}
.btn-clipboard-hover
{
background-color
:
#e1e1e8
;
color
:
#fff
;
background-color
:
#563d7c
;
border-color
:
#563d7c
;
}
@media
(
max-width
:
768px
)
{
.btn-clipboard.with-example
{
top
:
10px
;
border
:
1px
solid
#e1e1e8
;
border-radius
:
0
;
@media
(
min-width
:
768px
)
{
.zero-clipboard
{
display
:
block
;
}
}
This diff is collapsed.
Click to expand it.
docs/assets/js/_src/application.js
+
40
-
35
View file @
7d1365ce
...
...
@@ -15,35 +15,25 @@
$
(
function
()
{
// Insert copy to clipboard button before .highlight or .bs-example
$
(
'
.highlight
'
).
each
(
function
()
{
var
highlight
=
$
(
this
)
var
previous
=
highlight
.
prev
()
var
btnHtml
=
'
<div class="zero-clipboard"><span class="glyphicon glyphicon-list-alt btn-clipboard"></span></div>
'
if
(
previous
.
hasClass
(
'
bs-example
'
))
{
previous
.
before
(
btnHtml
.
replace
(
/btn-clipboard/
,
'
btn-clipboard with-example
'
))
}
else
{
highlight
.
before
(
btnHtml
)
}
})
// Scrollspy
var
$window
=
$
(
window
)
var
$body
=
$
(
document
.
body
)
$body
.
scrollspy
({
target
:
'
.bs-docs-sidebar
'
})
$window
.
on
(
'
load
'
,
function
()
{
$body
.
scrollspy
(
'
refresh
'
)
})
// Kill links
$
(
'
.bs-docs-container [href=#]
'
).
click
(
function
(
e
)
{
e
.
preventDefault
()
})
// back to top
// Sidenav affixing
setTimeout
(
function
()
{
var
$sideBar
=
$
(
'
.bs-docs-sidebar
'
)
...
...
@@ -84,7 +74,7 @@
})
})();
//
t
ooltip demo
//
T
ooltip
and popover
demo
s
$
(
'
.tooltip-demo
'
).
tooltip
({
selector
:
'
[data-toggle="tooltip"]
'
,
container
:
'
body
'
...
...
@@ -98,53 +88,68 @@
container
:
'
.bs-docs-navbar .nav
'
})
// popover demo
//
Default
popover demo
$
(
'
.bs-docs-popover
'
).
popover
()
// Popover dismiss on next click
$
(
'
.bs-docs-popover-dismiss
'
).
popover
({
trigger
:
'
focus
'
// Button state demo
$
(
'
#loading-example-btn
'
).
click
(
function
()
{
var
btn
=
$
(
this
)
btn
.
button
(
'
loading
'
)
setTimeout
(
function
()
{
btn
.
button
(
'
reset
'
)
},
3000
)
})
// button state demo
$
(
'
#loading-example-btn
'
)
.
click
(
function
()
{
var
btn
=
$
(
this
)
btn
.
button
(
'
loading
'
)
setTimeout
(
function
()
{
btn
.
button
(
'
reset
'
)
},
3000
)
})
// Config ZeroClipboard
ZeroClipboard
.
config
({
moviePath
:
'
/assets/flash/zero-clipboard.swf
'
,
hoverClass
:
'
btn-clipboard-hover
'
})
// Insert copy to clipboard button before .highlight or .bs-example
$
(
'
.highlight
'
).
each
(
function
()
{
var
highlight
=
$
(
this
)
var
previous
=
highlight
.
prev
()
var
btnHtml
=
'
<div class="zero-clipboard"><span class="btn-clipboard">Copy</span></div>
'
if
(
previous
.
hasClass
(
'
bs-example
'
))
{
previous
.
before
(
btnHtml
.
replace
(
/btn-clipboard/
,
'
btn-clipboard with-example
'
))
}
else
{
highlight
.
before
(
btnHtml
)
}
})
var
zeroClipboard
=
new
ZeroClipboard
(
$
(
'
.btn-clipboard
'
))
var
htmlBridge
=
$
(
'
#global-zeroclipboard-html-bridge
'
)
// Handlers for ZeroClipboard
zeroClipboard
.
on
(
'
load
'
,
function
(
client
)
{
htmlBridge
.
data
(
'
placement
'
,
'
left
'
)
.
attr
(
'
title
'
,
'
c
opy to clipboard
'
)
.
data
(
'
placement
'
,
'
top
'
)
.
attr
(
'
title
'
,
'
C
opy to clipboard
'
)
.
tooltip
()
})
// Copy to clipboard
zeroClipboard
.
on
(
'
dataRequested
'
,
function
(
client
)
{
var
highlight
=
$
(
this
).
parent
().
nextAll
(
'
.highlight
'
).
first
()
client
.
setText
(
highlight
.
text
())
})
// Notify copy success and reset tooltip title
zeroClipboard
.
on
(
'
complete
'
,
function
(
client
)
{
htmlBridge
.
attr
(
'
title
'
,
'
c
opied!
'
)
.
attr
(
'
title
'
,
'
C
opied!
'
)
.
tooltip
(
'
fixTitle
'
)
.
tooltip
(
'
show
'
)
.
attr
(
'
title
'
,
'
c
opy
to clipboard
'
)
.
attr
(
'
title
'
,
'
C
opy
'
)
.
tooltip
(
'
fixTitle
'
)
})
// Notify copy failure
zeroClipboard
.
on
(
'
noflash wrongflash
'
,
function
(
client
)
{
htmlBridge
.
attr
(
'
title
'
,
'
f
lash
not support
ed
!
'
)
.
attr
(
'
title
'
,
'
F
lash
requir
ed
'
)
.
tooltip
(
'
fixTitle
'
)
.
tooltip
(
'
show
'
)
})
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/_vendor/zero-clipboard.js
deleted
100644 → 0
+
0
-
1010
View file @
250e021f
This diff is collapsed.
Click to expand it.
docs/assets/js/_vendor/zero-clipboard.min.js
0 → 100644
+
9
-
0
View file @
7d1365ce
/*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v1.3.2
*/
!
function
(){
"
use strict
"
;
function
a
(
a
){
return
a
.
replace
(
/,/g
,
"
.
"
).
replace
(
/
[^
0-9
\.]
/g
,
""
)}
function
b
(
b
){
return
parseFloat
(
a
(
b
))
>=
10
}
var
c
,
d
=
{
bridge
:
null
,
version
:
"
0.0.0
"
,
disabled
:
null
,
outdated
:
null
,
ready
:
null
},
e
=
{},
f
=
0
,
g
=
{},
h
=
0
,
i
=
{},
j
=
null
,
k
=
null
,
l
=
function
(){
var
a
,
b
,
c
,
d
,
e
=
"
ZeroClipboard.swf
"
;
if
(
document
.
currentScript
&&
(
d
=
document
.
currentScript
.
src
));
else
{
var
f
=
document
.
getElementsByTagName
(
"
script
"
);
if
(
"
readyState
"
in
f
[
0
])
for
(
a
=
f
.
length
;
a
--&&
(
"
interactive
"
!==
f
[
a
].
readyState
||!
(
d
=
f
[
a
].
src
)););
else
if
(
"
loading
"
===
document
.
readyState
)
d
=
f
[
f
.
length
-
1
].
src
;
else
{
for
(
a
=
f
.
length
;
a
--
;){
if
(
c
=
f
[
a
].
src
,
!
c
){
b
=
null
;
break
}
if
(
c
=
c
.
split
(
"
#
"
)[
0
].
split
(
"
?
"
)[
0
],
c
=
c
.
slice
(
0
,
c
.
lastIndexOf
(
"
/
"
)
+
1
),
null
==
b
)
b
=
c
;
else
if
(
b
!==
c
){
b
=
null
;
break
}}
null
!==
b
&&
(
d
=
b
)}}
return
d
&&
(
d
=
d
.
split
(
"
#
"
)[
0
].
split
(
"
?
"
)[
0
],
e
=
d
.
slice
(
0
,
d
.
lastIndexOf
(
"
/
"
)
+
1
)
+
e
),
e
}(),
m
=
function
(){
var
a
=
/
\-([
a-z
])
/g
,
b
=
function
(
a
,
b
){
return
b
.
toUpperCase
()};
return
function
(
c
){
return
c
.
replace
(
a
,
b
)}}(),
n
=
function
(
a
,
b
){
var
c
,
d
,
e
;
return
window
.
getComputedStyle
?
c
=
window
.
getComputedStyle
(
a
,
null
).
getPropertyValue
(
b
):(
d
=
m
(
b
),
c
=
a
.
currentStyle
?
a
.
currentStyle
[
d
]:
a
.
style
[
d
]),
"
cursor
"
!==
b
||
c
&&
"
auto
"
!==
c
||
(
e
=
a
.
tagName
.
toLowerCase
(),
"
a
"
!==
e
)?
c
:
"
pointer
"
},
o
=
function
(
a
){
a
||
(
a
=
window
.
event
);
var
b
;
this
!==
window
?
b
=
this
:
a
.
target
?
b
=
a
.
target
:
a
.
srcElement
&&
(
b
=
a
.
srcElement
),
I
.
activate
(
b
)},
p
=
function
(
a
,
b
,
c
){
a
&&
1
===
a
.
nodeType
&&
(
a
.
addEventListener
?
a
.
addEventListener
(
b
,
c
,
!
1
):
a
.
attachEvent
&&
a
.
attachEvent
(
"
on
"
+
b
,
c
))},
q
=
function
(
a
,
b
,
c
){
a
&&
1
===
a
.
nodeType
&&
(
a
.
removeEventListener
?
a
.
removeEventListener
(
b
,
c
,
!
1
):
a
.
detachEvent
&&
a
.
detachEvent
(
"
on
"
+
b
,
c
))},
r
=
function
(
a
,
b
){
if
(
!
a
||
1
!==
a
.
nodeType
)
return
a
;
if
(
a
.
classList
)
return
a
.
classList
.
contains
(
b
)
||
a
.
classList
.
add
(
b
),
a
;
if
(
b
&&
"
string
"
==
typeof
b
){
var
c
=
(
b
||
""
).
split
(
/
\s
+/
);
if
(
1
===
a
.
nodeType
)
if
(
a
.
className
){
for
(
var
d
=
"
"
+
a
.
className
+
"
"
,
e
=
a
.
className
,
f
=
0
,
g
=
c
.
length
;
g
>
f
;
f
++
)
d
.
indexOf
(
"
"
+
c
[
f
]
+
"
"
)
<
0
&&
(
e
+=
"
"
+
c
[
f
]);
a
.
className
=
e
.
replace
(
/^
\s
+|
\s
+$/g
,
""
)}
else
a
.
className
=
b
}
return
a
},
s
=
function
(
a
,
b
){
if
(
!
a
||
1
!==
a
.
nodeType
)
return
a
;
if
(
a
.
classList
)
return
a
.
classList
.
contains
(
b
)
&&
a
.
classList
.
remove
(
b
),
a
;
if
(
b
&&
"
string
"
==
typeof
b
||
void
0
===
b
){
var
c
=
(
b
||
""
).
split
(
/
\s
+/
);
if
(
1
===
a
.
nodeType
&&
a
.
className
)
if
(
b
){
for
(
var
d
=
(
"
"
+
a
.
className
+
"
"
).
replace
(
/
[\n\t]
/g
,
"
"
),
e
=
0
,
f
=
c
.
length
;
f
>
e
;
e
++
)
d
=
d
.
replace
(
"
"
+
c
[
e
]
+
"
"
,
"
"
);
a
.
className
=
d
.
replace
(
/^
\s
+|
\s
+$/g
,
""
)}
else
a
.
className
=
""
}
return
a
},
t
=
function
(){
var
a
,
b
,
c
,
d
=
1
;
return
"
function
"
==
typeof
document
.
body
.
getBoundingClientRect
&&
(
a
=
document
.
body
.
getBoundingClientRect
(),
b
=
a
.
right
-
a
.
left
,
c
=
document
.
body
.
offsetWidth
,
d
=
Math
.
round
(
b
/
c
*
100
)
/
100
),
d
},
u
=
function
(
a
,
b
){
var
c
=
{
left
:
0
,
top
:
0
,
width
:
0
,
height
:
0
,
zIndex
:
A
(
b
)
-
1
};
if
(
a
.
getBoundingClientRect
){
var
d
,
e
,
f
,
g
=
a
.
getBoundingClientRect
();
"
pageXOffset
"
in
window
&&
"
pageYOffset
"
in
window
?(
d
=
window
.
pageXOffset
,
e
=
window
.
pageYOffset
):(
f
=
t
(),
d
=
Math
.
round
(
document
.
documentElement
.
scrollLeft
/
f
),
e
=
Math
.
round
(
document
.
documentElement
.
scrollTop
/
f
));
var
h
=
document
.
documentElement
.
clientLeft
||
0
,
i
=
document
.
documentElement
.
clientTop
||
0
;
c
.
left
=
g
.
left
+
d
-
h
,
c
.
top
=
g
.
top
+
e
-
i
,
c
.
width
=
"
width
"
in
g
?
g
.
width
:
g
.
right
-
g
.
left
,
c
.
height
=
"
height
"
in
g
?
g
.
height
:
g
.
bottom
-
g
.
top
}
return
c
},
v
=
function
(
a
,
b
){
var
c
=
null
==
b
||
b
&&
b
.
cacheBust
===!
0
&&
b
.
useNoCache
===!
0
;
return
c
?(
-
1
===
a
.
indexOf
(
"
?
"
)?
"
?
"
:
"
&
"
)
+
"
noCache=
"
+
(
new
Date
).
getTime
():
""
},
w
=
function
(
a
){
var
b
,
c
,
d
,
e
=
[],
f
=
[],
g
=
[];
if
(
a
.
trustedOrigins
&&
(
"
string
"
==
typeof
a
.
trustedOrigins
?
f
.
push
(
a
.
trustedOrigins
):
"
object
"
==
typeof
a
.
trustedOrigins
&&
"
length
"
in
a
.
trustedOrigins
&&
(
f
=
f
.
concat
(
a
.
trustedOrigins
))),
a
.
trustedDomains
&&
(
"
string
"
==
typeof
a
.
trustedDomains
?
f
.
push
(
a
.
trustedDomains
):
"
object
"
==
typeof
a
.
trustedDomains
&&
"
length
"
in
a
.
trustedDomains
&&
(
f
=
f
.
concat
(
a
.
trustedDomains
))),
f
.
length
)
for
(
b
=
0
,
c
=
f
.
length
;
c
>
b
;
b
++
)
if
(
f
.
hasOwnProperty
(
b
)
&&
f
[
b
]
&&
"
string
"
==
typeof
f
[
b
]){
if
(
d
=
D
(
f
[
b
]),
!
d
)
continue
;
if
(
"
*
"
===
d
){
g
=
[
d
];
break
}
g
.
push
.
apply
(
g
,[
d
,
"
//
"
+
d
,
window
.
location
.
protocol
+
"
//
"
+
d
])}
return
g
.
length
&&
e
.
push
(
"
trustedOrigins=
"
+
encodeURIComponent
(
g
.
join
(
"
,
"
))),
"
string
"
==
typeof
a
.
jsModuleId
&&
a
.
jsModuleId
&&
e
.
push
(
"
jsModuleId=
"
+
encodeURIComponent
(
a
.
jsModuleId
)),
e
.
join
(
"
&
"
)},
x
=
function
(
a
,
b
,
c
){
if
(
"
function
"
==
typeof
b
.
indexOf
)
return
b
.
indexOf
(
a
,
c
);
var
d
,
e
=
b
.
length
;
for
(
"
undefined
"
==
typeof
c
?
c
=
0
:
0
>
c
&&
(
c
=
e
+
c
),
d
=
c
;
e
>
d
;
d
++
)
if
(
b
.
hasOwnProperty
(
d
)
&&
b
[
d
]
===
a
)
return
d
;
return
-
1
},
y
=
function
(
a
){
if
(
"
string
"
==
typeof
a
)
throw
new
TypeError
(
"
ZeroClipboard doesn't accept query strings.
"
);
return
a
.
length
?
a
:[
a
]},
z
=
function
(
a
,
b
,
c
,
d
){
d
?
window
.
setTimeout
(
function
(){
a
.
apply
(
b
,
c
)},
0
):
a
.
apply
(
b
,
c
)},
A
=
function
(
a
){
var
b
,
c
;
return
a
&&
(
"
number
"
==
typeof
a
&&
a
>
0
?
b
=
a
:
"
string
"
==
typeof
a
&&
(
c
=
parseInt
(
a
,
10
))
&&!
isNaN
(
c
)
&&
c
>
0
&&
(
b
=
c
)),
b
||
(
"
number
"
==
typeof
L
.
zIndex
&&
L
.
zIndex
>
0
?
b
=
L
.
zIndex
:
"
string
"
==
typeof
L
.
zIndex
&&
(
c
=
parseInt
(
L
.
zIndex
,
10
))
&&!
isNaN
(
c
)
&&
c
>
0
&&
(
b
=
c
)),
b
||
0
},
B
=
function
(
a
,
b
){
if
(
a
&&
b
!==!
1
&&
"
undefined
"
!=
typeof
console
&&
console
&&
(
console
.
warn
||
console
.
log
)){
var
c
=
"
`
"
+
a
+
"
` is deprecated. See docs for more info:
\n
https://github.com/zeroclipboard/zeroclipboard/blob/master/docs/instructions.md#deprecations
"
;
console
.
warn
?
console
.
warn
(
c
):
console
.
log
(
c
)}},
C
=
function
(){
var
a
,
b
,
c
,
d
,
e
,
f
,
g
=
arguments
[
0
]
||
{};
for
(
a
=
1
,
b
=
arguments
.
length
;
b
>
a
;
a
++
)
if
(
null
!=
(
c
=
arguments
[
a
]))
for
(
d
in
c
)
if
(
c
.
hasOwnProperty
(
d
)){
if
(
e
=
g
[
d
],
f
=
c
[
d
],
g
===
f
)
continue
;
void
0
!==
f
&&
(
g
[
d
]
=
f
)}
return
g
},
D
=
function
(
a
){
if
(
null
==
a
||
""
===
a
)
return
null
;
if
(
a
=
a
.
replace
(
/^
\s
+|
\s
+$/g
,
""
),
""
===
a
)
return
null
;
var
b
=
a
.
indexOf
(
"
//
"
);
a
=-
1
===
b
?
a
:
a
.
slice
(
b
+
2
);
var
c
=
a
.
indexOf
(
"
/
"
);
return
a
=-
1
===
c
?
a
:
-
1
===
b
||
0
===
c
?
null
:
a
.
slice
(
0
,
c
),
a
&&
"
.swf
"
===
a
.
slice
(
-
4
).
toLowerCase
()?
null
:
a
||
null
},
E
=
function
(){
var
a
=
function
(
a
,
b
){
var
c
,
d
,
e
;
if
(
null
!=
a
&&
"
*
"
!==
b
[
0
]
&&
(
"
string
"
==
typeof
a
&&
(
a
=
[
a
]),
"
object
"
==
typeof
a
&&
"
length
"
in
a
))
for
(
c
=
0
,
d
=
a
.
length
;
d
>
c
;
c
++
)
if
(
a
.
hasOwnProperty
(
c
)
&&
(
e
=
D
(
a
[
c
]))){
if
(
"
*
"
===
e
){
b
.
length
=
0
,
b
.
push
(
"
*
"
);
break
}
-
1
===
x
(
e
,
b
)
&&
b
.
push
(
e
)}},
b
=
{
always
:
"
always
"
,
samedomain
:
"
sameDomain
"
,
never
:
"
never
"
};
return
function
(
c
,
d
){
var
e
,
f
=
d
.
allowScriptAccess
;
if
(
"
string
"
==
typeof
f
&&
(
e
=
f
.
toLowerCase
())
&&
/^always|samedomain|never$/
.
test
(
e
))
return
b
[
e
];
var
g
=
D
(
d
.
moviePath
);
null
===
g
&&
(
g
=
c
);
var
h
=
[];
a
(
d
.
trustedOrigins
,
h
),
a
(
d
.
trustedDomains
,
h
);
var
i
=
h
.
length
;
if
(
i
>
0
){
if
(
1
===
i
&&
"
*
"
===
h
[
0
])
return
"
always
"
;
if
(
-
1
!==
x
(
c
,
h
))
return
1
===
i
&&
c
===
g
?
"
sameDomain
"
:
"
always
"
}
return
"
never
"
}}(),
F
=
function
(
a
){
if
(
null
==
a
)
return
[];
if
(
Object
.
keys
)
return
Object
.
keys
(
a
);
var
b
=
[];
for
(
var
c
in
a
)
a
.
hasOwnProperty
(
c
)
&&
b
.
push
(
c
);
return
b
},
G
=
function
(
a
){
if
(
a
)
for
(
var
b
in
a
)
a
.
hasOwnProperty
(
b
)
&&
delete
a
[
b
];
return
a
},
H
=
function
(){
var
a
=!
1
;
if
(
"
boolean
"
==
typeof
d
.
disabled
)
a
=
d
.
disabled
===!
1
;
else
{
if
(
"
function
"
==
typeof
ActiveXObject
)
try
{
new
ActiveXObject
(
"
ShockwaveFlash.ShockwaveFlash
"
)
&&
(
a
=!
0
)}
catch
(
b
){}
!
a
&&
navigator
.
mimeTypes
[
"
application/x-shockwave-flash
"
]
&&
(
a
=!
0
)}
return
a
},
I
=
function
(
a
,
b
){
return
this
instanceof
I
?(
this
.
id
=
""
+
f
++
,
g
[
this
.
id
]
=
{
instance
:
this
,
elements
:[],
handlers
:{}},
a
&&
this
.
clip
(
a
),
"
undefined
"
!=
typeof
b
&&
(
B
(
"
new ZeroClipboard(elements, options)
"
,
L
.
debug
),
I
.
config
(
b
)),
this
.
options
=
I
.
config
(),
"
boolean
"
!=
typeof
d
.
disabled
&&
(
d
.
disabled
=!
H
()),
d
.
disabled
===!
1
&&
d
.
outdated
!==!
0
&&
null
===
d
.
bridge
&&
(
d
.
outdated
=!
1
,
d
.
ready
=!
1
,
M
()),
void
0
):
new
I
(
a
,
b
)};
I
.
prototype
.
setText
=
function
(
a
){
return
a
&&
""
!==
a
&&
(
e
[
"
text/plain
"
]
=
a
,
d
.
ready
===!
0
&&
d
.
bridge
&&
d
.
bridge
.
setText
(
a
)),
this
},
I
.
prototype
.
setSize
=
function
(
a
,
b
){
return
d
.
ready
===!
0
&&
d
.
bridge
&&
d
.
bridge
.
setSize
(
a
,
b
),
this
};
var
J
=
function
(
a
){
d
.
ready
===!
0
&&
d
.
bridge
&&
d
.
bridge
.
setHandCursor
(
a
)};
I
.
prototype
.
destroy
=
function
(){
this
.
unclip
(),
this
.
off
(),
delete
g
[
this
.
id
]};
var
K
=
function
(){
var
a
,
b
,
c
,
d
=
[],
e
=
F
(
g
);
for
(
a
=
0
,
b
=
e
.
length
;
b
>
a
;
a
++
)
c
=
g
[
e
[
a
]].
instance
,
c
&&
c
instanceof
I
&&
d
.
push
(
c
);
return
d
};
I
.
version
=
"
1.3.2
"
;
var
L
=
{
swfPath
:
l
,
trustedDomains
:
window
.
location
.
host
?[
window
.
location
.
host
]:[],
cacheBust
:
!
0
,
forceHandCursor
:
!
1
,
zIndex
:
999999999
,
debug
:
!
0
,
title
:
null
,
autoActivate
:
!
0
};
I
.
config
=
function
(
a
){
"
object
"
==
typeof
a
&&
null
!==
a
&&
C
(
L
,
a
);{
if
(
"
string
"
!=
typeof
a
||!
a
){
var
b
=
{};
for
(
var
c
in
L
)
L
.
hasOwnProperty
(
c
)
&&
(
b
[
c
]
=
"
object
"
==
typeof
L
[
c
]
&&
null
!==
L
[
c
]?
"
length
"
in
L
[
c
]?
L
[
c
].
slice
(
0
):
C
({},
L
[
c
]):
L
[
c
]);
return
b
}
if
(
L
.
hasOwnProperty
(
a
))
return
L
[
a
]}},
I
.
destroy
=
function
(){
I
.
deactivate
();
for
(
var
a
in
g
)
if
(
g
.
hasOwnProperty
(
a
)
&&
g
[
a
]){
var
b
=
g
[
a
].
instance
;
b
&&
"
function
"
==
typeof
b
.
destroy
&&
b
.
destroy
()}
var
c
=
N
(
d
.
bridge
);
c
&&
c
.
parentNode
&&
(
c
.
parentNode
.
removeChild
(
c
),
d
.
ready
=
null
,
d
.
bridge
=
null
)},
I
.
activate
=
function
(
a
){
c
&&
(
s
(
c
,
L
.
hoverClass
),
s
(
c
,
L
.
activeClass
)),
c
=
a
,
r
(
a
,
L
.
hoverClass
),
O
();
var
b
=
L
.
title
||
a
.
getAttribute
(
"
title
"
);
if
(
b
){
var
e
=
N
(
d
.
bridge
);
e
&&
e
.
setAttribute
(
"
title
"
,
b
)}
var
f
=
L
.
forceHandCursor
===!
0
||
"
pointer
"
===
n
(
a
,
"
cursor
"
);
J
(
f
)},
I
.
deactivate
=
function
(){
var
a
=
N
(
d
.
bridge
);
a
&&
(
a
.
style
.
left
=
"
0px
"
,
a
.
style
.
top
=
"
-9999px
"
,
a
.
removeAttribute
(
"
title
"
)),
c
&&
(
s
(
c
,
L
.
hoverClass
),
s
(
c
,
L
.
activeClass
),
c
=
null
)};
var
M
=
function
(){
var
a
,
b
,
c
=
document
.
getElementById
(
"
global-zeroclipboard-html-bridge
"
);
if
(
!
c
){
var
e
=
I
.
config
();
e
.
jsModuleId
=
"
string
"
==
typeof
j
&&
j
||
"
string
"
==
typeof
k
&&
k
||
null
;
var
f
=
E
(
window
.
location
.
host
,
L
),
g
=
w
(
e
),
h
=
L
.
moviePath
+
v
(
L
.
moviePath
,
L
),
i
=
'
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="global-zeroclipboard-flash-bridge" width="100%" height="100%"> <param name="movie" value="
'
+
h
+
'
"/> <param name="allowScriptAccess" value="
'
+
f
+
'
"/> <param name="scale" value="exactfit"/> <param name="loop" value="false"/> <param name="menu" value="false"/> <param name="quality" value="best" /> <param name="bgcolor" value="#ffffff"/> <param name="wmode" value="transparent"/> <param name="flashvars" value="
'
+
g
+
'
"/> <embed src="
'
+
h
+
'
" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="100%" height="100%" name="global-zeroclipboard-flash-bridge" allowScriptAccess="
'
+
f
+
'
" allowFullScreen="false" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="
'
+
g
+
'
" scale="exactfit"> </embed> </object>
'
;
c
=
document
.
createElement
(
"
div
"
),
c
.
id
=
"
global-zeroclipboard-html-bridge
"
,
c
.
setAttribute
(
"
class
"
,
"
global-zeroclipboard-container
"
),
c
.
style
.
position
=
"
absolute
"
,
c
.
style
.
left
=
"
0px
"
,
c
.
style
.
top
=
"
-9999px
"
,
c
.
style
.
width
=
"
15px
"
,
c
.
style
.
height
=
"
15px
"
,
c
.
style
.
zIndex
=
""
+
A
(
L
.
zIndex
),
document
.
body
.
appendChild
(
c
),
c
.
innerHTML
=
i
}
a
=
document
[
"
global-zeroclipboard-flash-bridge
"
],
a
&&
(
b
=
a
.
length
)
&&
(
a
=
a
[
b
-
1
]),
d
.
bridge
=
a
||
c
.
children
[
0
].
lastElementChild
},
N
=
function
(
a
){
for
(
var
b
=
/^OBJECT|EMBED$/
,
c
=
a
&&
a
.
parentNode
;
c
&&
b
.
test
(
c
.
nodeName
)
&&
c
.
parentNode
;)
c
=
c
.
parentNode
;
return
c
||
null
},
O
=
function
(){
if
(
c
){
var
a
=
u
(
c
,
L
.
zIndex
),
b
=
N
(
d
.
bridge
);
b
&&
(
b
.
style
.
top
=
a
.
top
+
"
px
"
,
b
.
style
.
left
=
a
.
left
+
"
px
"
,
b
.
style
.
width
=
a
.
width
+
"
px
"
,
b
.
style
.
height
=
a
.
height
+
"
px
"
,
b
.
style
.
zIndex
=
a
.
zIndex
+
1
),
d
.
ready
===!
0
&&
d
.
bridge
&&
d
.
bridge
.
setSize
(
a
.
width
,
a
.
height
)}
return
this
};
I
.
prototype
.
on
=
function
(
a
,
b
){
var
c
,
e
,
f
,
h
=
{},
i
=
g
[
this
.
id
]
&&
g
[
this
.
id
].
handlers
;
if
(
"
string
"
==
typeof
a
&&
a
)
f
=
a
.
toLowerCase
().
split
(
/
\s
+/
);
else
if
(
"
object
"
==
typeof
a
&&
a
&&
"
undefined
"
==
typeof
b
)
for
(
c
in
a
)
a
.
hasOwnProperty
(
c
)
&&
"
string
"
==
typeof
c
&&
c
&&
"
function
"
==
typeof
a
[
c
]
&&
this
.
on
(
c
,
a
[
c
]);
if
(
f
&&
f
.
length
){
for
(
c
=
0
,
e
=
f
.
length
;
e
>
c
;
c
++
)
a
=
f
[
c
].
replace
(
/^on/
,
""
),
h
[
a
]
=!
0
,
i
[
a
]
||
(
i
[
a
]
=
[]),
i
[
a
].
push
(
b
);
h
.
noflash
&&
d
.
disabled
&&
R
.
call
(
this
,
"
noflash
"
,{}),
h
.
wrongflash
&&
d
.
outdated
&&
R
.
call
(
this
,
"
wrongflash
"
,{
flashVersion
:
d
.
version
}),
h
.
load
&&
d
.
ready
&&
R
.
call
(
this
,
"
load
"
,{
flashVersion
:
d
.
version
})}
return
this
},
I
.
prototype
.
off
=
function
(
a
,
b
){
var
c
,
d
,
e
,
f
,
h
,
i
=
g
[
this
.
id
]
&&
g
[
this
.
id
].
handlers
;
if
(
0
===
arguments
.
length
)
f
=
F
(
i
);
else
if
(
"
string
"
==
typeof
a
&&
a
)
f
=
a
.
split
(
/
\s
+/
);
else
if
(
"
object
"
==
typeof
a
&&
a
&&
"
undefined
"
==
typeof
b
)
for
(
c
in
a
)
a
.
hasOwnProperty
(
c
)
&&
"
string
"
==
typeof
c
&&
c
&&
"
function
"
==
typeof
a
[
c
]
&&
this
.
off
(
c
,
a
[
c
]);
if
(
f
&&
f
.
length
)
for
(
c
=
0
,
d
=
f
.
length
;
d
>
c
;
c
++
)
if
(
a
=
f
[
c
].
toLowerCase
().
replace
(
/^on/
,
""
),
h
=
i
[
a
],
h
&&
h
.
length
)
if
(
b
)
for
(
e
=
x
(
b
,
h
);
-
1
!==
e
;)
h
.
splice
(
e
,
1
),
e
=
x
(
b
,
h
,
e
);
else
i
[
a
].
length
=
0
;
return
this
},
I
.
prototype
.
handlers
=
function
(
a
){
var
b
,
c
=
null
,
d
=
g
[
this
.
id
]
&&
g
[
this
.
id
].
handlers
;
if
(
d
){
if
(
"
string
"
==
typeof
a
&&
a
)
return
d
[
a
]?
d
[
a
].
slice
(
0
):
null
;
c
=
{};
for
(
b
in
d
)
d
.
hasOwnProperty
(
b
)
&&
d
[
b
]
&&
(
c
[
b
]
=
d
[
b
].
slice
(
0
))}
return
c
};
var
P
=
function
(
a
,
b
,
c
,
d
){
var
e
=
g
[
this
.
id
]
&&
g
[
this
.
id
].
handlers
[
a
];
if
(
e
&&
e
.
length
){
var
f
,
h
,
i
,
j
=
b
||
this
;
for
(
f
=
0
,
h
=
e
.
length
;
h
>
f
;
f
++
)
i
=
e
[
f
],
b
=
j
,
"
string
"
==
typeof
i
&&
"
function
"
==
typeof
window
[
i
]
&&
(
i
=
window
[
i
]),
"
object
"
==
typeof
i
&&
i
&&
"
function
"
==
typeof
i
.
handleEvent
&&
(
b
=
i
,
i
=
i
.
handleEvent
),
"
function
"
==
typeof
i
&&
z
(
i
,
b
,
c
,
d
)}
return
this
};
I
.
prototype
.
clip
=
function
(
a
){
a
=
y
(
a
);
for
(
var
b
=
0
;
b
<
a
.
length
;
b
++
)
if
(
a
.
hasOwnProperty
(
b
)
&&
a
[
b
]
&&
1
===
a
[
b
].
nodeType
){
a
[
b
].
zcClippingId
?
-
1
===
x
(
this
.
id
,
i
[
a
[
b
].
zcClippingId
])
&&
i
[
a
[
b
].
zcClippingId
].
push
(
this
.
id
):(
a
[
b
].
zcClippingId
=
"
zcClippingId_
"
+
h
++
,
i
[
a
[
b
].
zcClippingId
]
=
[
this
.
id
],
L
.
autoActivate
===!
0
&&
p
(
a
[
b
],
"
mouseover
"
,
o
));
var
c
=
g
[
this
.
id
].
elements
;
-
1
===
x
(
a
[
b
],
c
)
&&
c
.
push
(
a
[
b
])}
return
this
},
I
.
prototype
.
unclip
=
function
(
a
){
var
b
=
g
[
this
.
id
];
if
(
b
){
var
c
,
d
=
b
.
elements
;
a
=
"
undefined
"
==
typeof
a
?
d
.
slice
(
0
):
y
(
a
);
for
(
var
e
=
a
.
length
;
e
--
;)
if
(
a
.
hasOwnProperty
(
e
)
&&
a
[
e
]
&&
1
===
a
[
e
].
nodeType
){
for
(
c
=
0
;
-
1
!==
(
c
=
x
(
a
[
e
],
d
,
c
));)
d
.
splice
(
c
,
1
);
var
f
=
i
[
a
[
e
].
zcClippingId
];
if
(
f
){
for
(
c
=
0
;
-
1
!==
(
c
=
x
(
this
.
id
,
f
,
c
));)
f
.
splice
(
c
,
1
);
0
===
f
.
length
&&
(
L
.
autoActivate
===!
0
&&
q
(
a
[
e
],
"
mouseover
"
,
o
),
delete
a
[
e
].
zcClippingId
)}}}
return
this
},
I
.
prototype
.
elements
=
function
(){
var
a
=
g
[
this
.
id
];
return
a
&&
a
.
elements
?
a
.
elements
.
slice
(
0
):[]};
var
Q
=
function
(
a
){
var
b
,
c
,
d
,
e
,
f
,
h
=
[];
if
(
a
&&
1
===
a
.
nodeType
&&
(
b
=
a
.
zcClippingId
)
&&
i
.
hasOwnProperty
(
b
)
&&
(
c
=
i
[
b
],
c
&&
c
.
length
))
for
(
d
=
0
,
e
=
c
.
length
;
e
>
d
;
d
++
)
f
=
g
[
c
[
d
]].
instance
,
f
&&
f
instanceof
I
&&
h
.
push
(
f
);
return
h
};
L
.
hoverClass
=
"
zeroclipboard-is-hover
"
,
L
.
activeClass
=
"
zeroclipboard-is-active
"
,
L
.
trustedOrigins
=
null
,
L
.
allowScriptAccess
=
null
,
L
.
useNoCache
=!
0
,
L
.
moviePath
=
"
ZeroClipboard.swf
"
,
I
.
detectFlashSupport
=
function
(){
return
B
(
"
ZeroClipboard.detectFlashSupport
"
,
L
.
debug
),
H
()},
I
.
dispatch
=
function
(
a
,
b
){
if
(
"
string
"
==
typeof
a
&&
a
){
var
d
=
a
.
toLowerCase
().
replace
(
/^on/
,
""
);
if
(
d
)
for
(
var
e
=
c
?
Q
(
c
):
K
(),
f
=
0
,
g
=
e
.
length
;
g
>
f
;
f
++
)
R
.
call
(
e
[
f
],
d
,
b
)}},
I
.
prototype
.
setHandCursor
=
function
(
a
){
return
B
(
"
ZeroClipboard.prototype.setHandCursor
"
,
L
.
debug
),
a
=
"
boolean
"
==
typeof
a
?
a
:
!!
a
,
J
(
a
),
L
.
forceHandCursor
=
a
,
this
},
I
.
prototype
.
reposition
=
function
(){
return
B
(
"
ZeroClipboard.prototype.reposition
"
,
L
.
debug
),
O
()},
I
.
prototype
.
receiveEvent
=
function
(
a
,
b
){
if
(
B
(
"
ZeroClipboard.prototype.receiveEvent
"
,
L
.
debug
),
"
string
"
==
typeof
a
&&
a
){
var
c
=
a
.
toLowerCase
().
replace
(
/^on/
,
""
);
c
&&
R
.
call
(
this
,
c
,
b
)}},
I
.
prototype
.
setCurrent
=
function
(
a
){
return
B
(
"
ZeroClipboard.prototype.setCurrent
"
,
L
.
debug
),
I
.
activate
(
a
),
this
},
I
.
prototype
.
resetBridge
=
function
(){
return
B
(
"
ZeroClipboard.prototype.resetBridge
"
,
L
.
debug
),
I
.
deactivate
(),
this
},
I
.
prototype
.
setTitle
=
function
(
a
){
if
(
B
(
"
ZeroClipboard.prototype.setTitle
"
,
L
.
debug
),
a
=
a
||
L
.
title
||
c
&&
c
.
getAttribute
(
"
title
"
)){
var
b
=
N
(
d
.
bridge
);
b
&&
b
.
setAttribute
(
"
title
"
,
a
)}
return
this
},
I
.
setDefaults
=
function
(
a
){
B
(
"
ZeroClipboard.setDefaults
"
,
L
.
debug
),
I
.
config
(
a
)},
I
.
prototype
.
addEventListener
=
function
(
a
,
b
){
return
B
(
"
ZeroClipboard.prototype.addEventListener
"
,
L
.
debug
),
this
.
on
(
a
,
b
)},
I
.
prototype
.
removeEventListener
=
function
(
a
,
b
){
return
B
(
"
ZeroClipboard.prototype.removeEventListener
"
,
L
.
debug
),
this
.
off
(
a
,
b
)},
I
.
prototype
.
ready
=
function
(){
return
B
(
"
ZeroClipboard.prototype.ready
"
,
L
.
debug
),
d
.
ready
===!
0
};
var
R
=
function
(
f
,
g
){
f
=
f
.
toLowerCase
().
replace
(
/^on/
,
""
);
var
h
=
g
&&
g
.
flashVersion
&&
a
(
g
.
flashVersion
)
||
null
,
i
=
c
,
j
=!
0
;
switch
(
f
){
case
"
load
"
:
if
(
h
){
if
(
!
b
(
h
))
return
R
.
call
(
this
,
"
onWrongFlash
"
,{
flashVersion
:
h
}),
void
0
;
d
.
outdated
=!
1
,
d
.
ready
=!
0
,
d
.
version
=
h
}
break
;
case
"
wrongflash
"
:
h
&&!
b
(
h
)
&&
(
d
.
outdated
=!
0
,
d
.
ready
=!
1
,
d
.
version
=
h
);
break
;
case
"
mouseover
"
:
r
(
i
,
L
.
hoverClass
);
break
;
case
"
mouseout
"
:
L
.
autoActivate
===!
0
&&
I
.
deactivate
();
break
;
case
"
mousedown
"
:
r
(
i
,
L
.
activeClass
);
break
;
case
"
mouseup
"
:
s
(
i
,
L
.
activeClass
);
break
;
case
"
datarequested
"
:
var
k
=
i
.
getAttribute
(
"
data-clipboard-target
"
),
l
=
k
?
document
.
getElementById
(
k
):
null
;
if
(
l
){
var
m
=
l
.
value
||
l
.
textContent
||
l
.
innerText
;
m
&&
this
.
setText
(
m
)}
else
{
var
n
=
i
.
getAttribute
(
"
data-clipboard-text
"
);
n
&&
this
.
setText
(
n
)}
j
=!
1
;
break
;
case
"
complete
"
:
G
(
e
)}
var
o
=
i
,
p
=
[
this
,
g
];
return
P
.
call
(
this
,
f
,
o
,
p
,
j
)};
"
function
"
==
typeof
define
&&
define
.
amd
?
define
([
"
require
"
,
"
exports
"
,
"
module
"
],
function
(
a
,
b
,
c
){
return
j
=
c
&&
c
.
id
||
null
,
I
}):
"
object
"
==
typeof
module
&&
module
&&
"
object
"
==
typeof
module
.
exports
&&
module
.
exports
?(
k
=
module
.
id
||
null
,
module
.
exports
=
I
):
window
.
ZeroClipboard
=
I
}();
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets