-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
32 lines (30 loc) · 1.02 KB
/
index.html
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
<!doctype html>
<html><head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="https://help.github.com/assets/images/site/favicon.ico">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<title>Super Simple Example</title>
</head><body>
<div class="container">
<div class="row" style="text-align: center;padding:10% 0 0;"><button class="btn btn-lg btn-primary">Spin a bit</button></div>
</div>
<script src="https://code.jquery.com/jquery-3.0.0-alpha1.min.js"></script>
<script src="jquery.favico-spinner.dev.js"></script>
<script>
(function($){
$('button').on('click',function(e){
var $btn = $(this);
if($.favispin.ison()){
$.favispin.off();
$btn.html('Spin a bit');
}
else{
$.favispin.on();
$btn.html('Stop');
}
});
})(jQuery);
</script>
</body>
</html>