histogram/src/main/webapp/pages/index.html
branchchess
changeset 87 c2293ae622df
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/histogram/src/main/webapp/pages/index.html	Sun Nov 17 09:46:45 2013 +0100
     1.3 @@ -0,0 +1,83 @@
     1.4 +<!--
     1.5 +
     1.6 +    The MIT License (MIT)
     1.7 +
     1.8 +    Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     1.9 +
    1.10 +    Permission is hereby granted, free of charge, to any person obtaining a copy
    1.11 +    of this software and associated documentation files (the "Software"), to deal
    1.12 +    in the Software without restriction, including without limitation the rights
    1.13 +    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    1.14 +    copies of the Software, and to permit persons to whom the Software is
    1.15 +    furnished to do so, subject to the following conditions:
    1.16 +
    1.17 +    The above copyright notice and this permission notice shall be included in
    1.18 +    all copies or substantial portions of the Software.
    1.19 +
    1.20 +    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    1.21 +    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    1.22 +    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    1.23 +    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    1.24 +    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    1.25 +    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    1.26 +    THE SOFTWARE.
    1.27 +
    1.28 +-->
    1.29 +<!DOCTYPE html>
    1.30 +<html>
    1.31 +    <head>
    1.32 +        <title></title>
    1.33 +        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    1.34 +
    1.35 +        <style type="text/css">
    1.36 +            #graph {
    1.37 +                position: relative;
    1.38 +                width: 660px;
    1.39 +                height: 216px;
    1.40 +                margin: 8px;
    1.41 +                padding: 0;
    1.42 +            }
    1.43 +            
    1.44 +            #graph ul {
    1.45 +                position: absolute;
    1.46 +                top: 0;
    1.47 +                left: 32px;
    1.48 +                width: 600px;
    1.49 +                height: 200px;
    1.50 +                border-left: 1px solid black;
    1.51 +                border-bottom: 1px solid black;
    1.52 +            }
    1.53 +            
    1.54 +            #graph li {
    1.55 +                position: absolute;
    1.56 +                list-style: none;
    1.57 +                background: lightblue;
    1.58 +                width: 40px;
    1.59 +                text-align: center;
    1.60 +                border: 1px solid black;
    1.61 +                top: 60px;
    1.62 +                visibility: hidden;
    1.63 +            }
    1.64 +        </style>
    1.65 +
    1.66 +    </head>
    1.67 +    <body>
    1.68 +        <h1>Histogram Demo</h1>
    1.69 +        <input data-bind="value: numbers, valueUpdate: 'afterkeydown'" size="80">
    1.70 +
    1.71 +        <div id="graph">
    1.72 +            <ul data-bind="foreach: bars">
    1.73 +                <li data-bind="style: { left : left, top: top, height : height, visibility : 'visible' }"> 
    1.74 +                    <span style="margin:8px; background: lightblue"></span>
    1.75 +                </li>
    1.76 +            </ul>
    1.77 +        </div>
    1.78 +        
    1.79 +        <script type="text/javascript" src="bck2brwsr.js"></script>
    1.80 +        <script>
    1.81 +            var vm = bck2brwsr('${project.build.finalName}.jar');
    1.82 +            vm.loadClass('dew.demo.histogram.MainBrwsr');
    1.83 +        </script>
    1.84 +        
    1.85 +    </body>
    1.86 +</html>