mojo/src/main/resources/archetype-resources/src/main/resources/index.xhtml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 22 Jan 2013 22:11:52 +0100
branchmodel
changeset 533 715a6c77b19e
parent 528 08cd5a0c967e
child 534 3cefccd50bd5
permissions -rw-r--r--
Using canvas in the sample application
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!DOCTYPE html>
     3 <html xmlns="http://www.w3.org/1999/xhtml">
     4     <head>
     5         <title>Bck2Brwsr's Hello World</title>
     6     </head>
     7     <body>
     8         <h1 data-bind="text: helloMessage">Loading Bck2Brwsr's Hello World...</h1>
     9         Your name: <input data-bind="value: name, valueUpdate: 'afterkeydown'"></input>
    10         <button id="hello">Say Hello!</button>
    11         <p>
    12             <canvas id="canvas" width="300" height="50">
    13             </canvas>
    14         </p>
    15 
    16         <script src="/bck2brwsr.js"></script>
    17         <script src="/vm.js"></script>
    18         <script type="text/javascript">
    19             vm.loadClass('${package}.App');
    20         </script>
    21     </body>
    22 </html>