client/podium.html
author veltr
Wed, 22 Feb 2012 11:19:36 +0100
changeset 33 98ffc58f0bd3
parent 2 5533075b5f08
permissions -rw-r--r--
server test

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>podium</title>
        <meta name="description" content="" />
        <style type="text/css">
            body {
                background: #000;
            }
            #podium {
                width: 600px;
                height: 300px;
                cursor: pointer;
            }
        </style>
        <script type="text/javascript" src="lib/jquery.min.js"></script>
        <script type="text/javascript" src="js/podium.js"></script>
        <script type="text/javascript">
            var myPodium;
            function randomValues() {
                var _res = [];
                for (var i = 0; i < 4; i++) {
                    _res.push(Math.floor(20*Math.random()));
                }
                return _res;
            }
            $(function() {
                myPodium = new Btv_Podium(randomValues());
                $("#podium").click(function() {
                   myPodium.update(randomValues());
                });
            });
        </script>
    </head>
    <body>
    </body>
</html>