forked from yemM/flippy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.js
49 lines (43 loc) · 1.33 KB
/
demo.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
45
46
47
48
49
$(function(){
$("#btn-reverse").on("click",function(e){
$(".flipbox").flippyReverse();
e.preventDefault();
});
$("#btn-left").on("click",function(e){
$(".flipbox").flippy({
color_target: "red",
direction: "left",
duration: "750",
verso: "<span>Woohoo ! \\o/</span>",
});
e.preventDefault();
});
$("#btn-right").on("click",function(e){
$(".flipbox").flippy({
color_target: "red",
direction: "right",
duration: "750",
verso: "<div id=\"right-content\"><img src=\"http://placekitten.com/610/300\" alt=\"placeholder\"/></div>",
});
e.preventDefault();
});
$("#btn-top").on("click",function(e){
$(".flipbox").flippy({
color_target: "#b6d635",
direction: "top",
duration: "750",
verso: "<span class=\"big\">Great !</span>",
});
e.preventDefault();
});
$("#btn-bottom").on("click",function(e){
$(".flipbox").flippy({
color_target: "#03588C",
direction: "bottom",
duration: "750",
verso: "<span class=\"big\">Flip !</span>",
});
e.preventDefault();
});
SyntaxHighlighter.all();
});