-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.js
40 lines (34 loc) · 981 Bytes
/
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
$(document).ready(function(){
$("#examples h1").decrypt_effect({
decrypted_text: "decrypt.js examples!",
});
$("#examples #slow-example button").on("click", function(){
$("#slow-example h3").decrypt_effect({
speed: 100,
decrypted_text: "sloooooooow example"
});
});
$("#examples #fast-example button").on("click", function(){
$("#fast-example h3").decrypt_effect({
speed: 10,
decrypted_text: "fast example!"
});
});
$("#examples #custom-example button").on("click", function(){
var speed = $("input#speed").val();
$("#custom-example h3").decrypt_effect({
speed: speed,
decrypted_text: "custom speed example",
});
});
$("#examples #callback-example button").on("click", function(){
var speed = $("input#speed").val();
$("#callback-example h3").decrypt_effect({
decrypted_text: "callback example!",
callback: function(){
alert("all done!");
$("#examples #callback-example button").fadeOut();
},
});
});
});