1.1 --- a/mojo/src/main/resources/archetype-resources/src/main/java/App.java Tue Jan 22 21:59:13 2013 +0100
1.2 +++ b/mojo/src/main/resources/archetype-resources/src/main/java/App.java Tue Jan 22 22:11:52 2013 +0100
1.3 @@ -21,7 +21,10 @@
1.4
1.5 @On(event = CLICK, id="hello")
1.6 static void hello(Index m) {
1.7 - Element.alert(m.getHelloMessage());
1.8 + GraphicsContext g = m.CANVAS.getContext();
1.9 + g.clearRect(0, 0, 1000, 1000);
1.10 + g.setFont("italic 40px Calibri");
1.11 + g.fillText(m.getHelloMessage(), 10, 40);
1.12 }
1.13
1.14 @ComputedProperty
2.1 --- a/mojo/src/main/resources/archetype-resources/src/main/resources/index.xhtml Tue Jan 22 21:59:13 2013 +0100
2.2 +++ b/mojo/src/main/resources/archetype-resources/src/main/resources/index.xhtml Tue Jan 22 22:11:52 2013 +0100
2.3 @@ -8,6 +8,10 @@
2.4 <h1 data-bind="text: helloMessage">Loading Bck2Brwsr's Hello World...</h1>
2.5 Your name: <input data-bind="value: name, valueUpdate: 'afterkeydown'"></input>
2.6 <button id="hello">Say Hello!</button>
2.7 + <p>
2.8 + <canvas id="canvas" width="300" height="50">
2.9 + </canvas>
2.10 + </p>
2.11
2.12 <script src="/bck2brwsr.js"></script>
2.13 <script src="/vm.js"></script>