equal
deleted
inserted
replaced
|
1 <!DOCTYPE html> |
|
2 <html lang="en"> |
|
3 <head> |
|
4 <meta charset="utf-8" /> |
|
5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> |
|
6 <title>podium</title> |
|
7 <meta name="description" content="" /> |
|
8 <style type="text/css"> |
|
9 body { |
|
10 background: #000; |
|
11 } |
|
12 #podium { |
|
13 width: 600px; |
|
14 height: 300px; |
|
15 cursor: pointer; |
|
16 } |
|
17 </style> |
|
18 <script type="text/javascript" src="lib/jquery.min.js"></script> |
|
19 <script type="text/javascript" src="js/podium.js"></script> |
|
20 <script type="text/javascript"> |
|
21 var myPodium; |
|
22 function randomValues() { |
|
23 var _res = []; |
|
24 for (var i = 0; i < 4; i++) { |
|
25 _res.push(Math.floor(20*Math.random())); |
|
26 } |
|
27 return _res; |
|
28 } |
|
29 $(function() { |
|
30 myPodium = new Btv_Podium(randomValues()); |
|
31 $("#podium").click(function() { |
|
32 myPodium.update(randomValues()); |
|
33 }); |
|
34 }); |
|
35 </script> |
|
36 </head> |
|
37 <body> |
|
38 </body> |
|
39 </html> |