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