minesweeper/src/main/webapp/pages/index.html
author Jaroslav Tulach <jtulach@netbeans.org>
Fri, 07 Feb 2014 14:47:07 +0100
branchminesweeper
changeset 63 56477205fdb5
child 65 8e31706fc5da
permissions -rw-r--r--
First version of a mine sweeper game
jtulach@63
     1
<!--
jtulach@63
     2
jtulach@63
     3
    The MIT License (MIT)
jtulach@63
     4
jtulach@63
     5
    Copyright (C) 2013 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jtulach@63
     6
jtulach@63
     7
    Permission is hereby granted, free of charge, to any person obtaining a copy
jtulach@63
     8
    of this software and associated documentation files (the "Software"), to deal
jtulach@63
     9
    in the Software without restriction, including without limitation the rights
jtulach@63
    10
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
jtulach@63
    11
    copies of the Software, and to permit persons to whom the Software is
jtulach@63
    12
    furnished to do so, subject to the following conditions:
jtulach@63
    13
jtulach@63
    14
    The above copyright notice and this permission notice shall be included in
jtulach@63
    15
    all copies or substantial portions of the Software.
jtulach@63
    16
jtulach@63
    17
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
jtulach@63
    18
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
jtulach@63
    19
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
jtulach@63
    20
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
jtulach@63
    21
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
jtulach@63
    22
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
jtulach@63
    23
    THE SOFTWARE.
jtulach@63
    24
jtulach@63
    25
-->
jtulach@63
    26
<!DOCTYPE html>
jtulach@63
    27
<html>
jtulach@63
    28
    <head>
jtulach@63
    29
        <title></title>
jtulach@63
    30
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
jtulach@63
    31
        <link href="bootstrap.css" rel="stylesheet">
jtulach@63
    32
        <link href="bootstrap-responsive.css" rel="stylesheet">
jtulach@63
    33
        <link href="mines.css" rel="stylesheet">
jtulach@63
    34
    </head>
jtulach@63
    35
    <body>
jtulach@63
    36
        <h1>MineSweeper</h1>
jtulach@63
    37
        A demo of an HTML/Java rendering technology.
jtulach@63
    38
jtulach@63
    39
        <table class="field">
jtulach@63
    40
            <tbody>
jtulach@63
    41
                <!-- ko foreach: rows -->
jtulach@63
    42
                <tr>
jtulach@63
    43
                    <!-- ko foreach: columns -->
jtulach@63
    44
                    <td data-bind="click: $parents[1].click" >
jtulach@63
    45
                        <span data-bind='css: state, text: text'></span>
jtulach@63
    46
                    </td>
jtulach@63
    47
                    <!-- /ko -->
jtulach@63
    48
                </tr>
jtulach@63
    49
                <!-- /ko -->
jtulach@63
    50
            </tbody>
jtulach@63
    51
        </table>
jtulach@63
    52
        
jtulach@63
    53
        
jtulach@63
    54
        
jtulach@63
    55
        <script type="text/javascript" src="bck2brwsr.js"></script>
jtulach@63
    56
        <script>
jtulach@63
    57
            var vm = bck2brwsr('${project.build.finalName}.jar');
jtulach@63
    58
            vm.loadClass('cz.xelfi.demo.minesweeper.MainBrwsr');
jtulach@63
    59
        </script>
jtulach@63
    60
        
jtulach@63
    61
    </body>
jtulach@63
    62
</html>