ko/archetype/src/main/resources/archetype-resources/src/main/webapp/pages/index.html
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7 <style type="text/css">
8 @-webkit-keyframes spin {
9 0% { -webkit-transform: rotate(0deg); }
10 100% { -webkit-transform: rotate(360deg); }
13 0% { transform: rotate(0deg); }
14 100% { transform: rotate(360deg); }
18 -webkit-animation-name: spin;
19 -webkit-animation-duration: 3s;
20 -webkit-animation-iteration-count: infinite;
21 -webkit-animation-direction: alternate;
24 animation-duration: 3s;
25 animation-iteration-count: infinite;
26 animation-direction: alternate;
36 border: 1px solid #ccc;
37 background: rgba(255,255,155,0.8);
40 -webkit-box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
44 #words span:nth-child(1) { left: 45%; top: 0px; }
45 #words span:nth-child(2) { left: 25%; top: 100px; }
46 #words span:nth-child(3) { left: 65%; top: 100px; }
47 #words span:nth-child(4) { left: 10%; top: 200px; }
48 #words span:nth-child(5) { left: 45%; top: 200px; }
49 #words span:nth-child(6) { left: 80%; top: 200px; }
56 <input data-bind="value: message, valueUpdate: 'afterkeydown'" size="80">
58 <button data-bind="enable: !on(), click: $root.turnOn">Start</button>
59 <button data-bind="enable: on, click: $root.turnOff">Stop</button>
62 <span id="words" data-bind="foreach: words">
63 <span data-bind="text: $data, css: { 'rotate' : $root.on } "></span>
66 <script type="text/javascript" src="bck2brwsr.js"></script>
68 var vm = bck2brwsr('${project.build.finalName}.jar');
69 vm.loadClass('${package}.Main');