/
example.js
44 lines (43 loc) · 1.17 KB
/
example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$(document).ready(function () {
$('#tester').zeroclipboard({
text: 'Hahaha! You clicked me :)',
hand: true
});
$('#resizetest').zeroclipboard({
text: 'Hahaha! You clicked me :)',
hand: true
});
$('#testerupdate').click(function () {
$('#tester').css('width', '100px');
$('#tester').zeroclipboard({
'text': 'Updated from #testerupdate ;)',
'hand': true
});
});
$('#destroyflash').zeroclipboard({
'text': 'Copied from #destroyflash, now destroy the flash!',
'hand': true
});
$('#destroyflasha').click(function () {
$('#destroyflash').zeroclipboard({'destroy': true});
});
$('#destroywhole').zeroclipboard({
'text': 'Copied from #destroywhole, now destroy me!',
'hand': true
});
$('#destroywholea').click(function () {
$('#destroywhole').remove();
});
$('#testercss').zeroclipboard({
'text': 'Copied from #testercss',
'hand': true
}).mouseover(function () {
$(this).css({'color': '#f00'}, 1000);
}).mouseout(function () {
$(this).css({'color': '#000'}, 1000);
}).mousedown(function () {
$(this).css('font-weight', 'bold');
}).mouseup(function () {
$(this).css('font-weight', 'normal');
});
});