|
2 | 2 | <html>
|
3 | 3 | <head>
|
4 | 4 | <meta name="layout" content="main"/>
|
5 |
| - <title>Version 1</title> |
| 5 | + <title>Version 2</title> |
6 | 6 | </head>
|
7 | 7 | <body>
|
8 |
| - <h1>Welcome to Version 1</h1> |
9 |
| - <div id="status" role="complementary"> |
10 |
| - <h1>Application Status</h1> |
11 |
| - <ul> |
12 |
| - <li>App version: <g:meta name="app.version"/></li> |
13 |
| - <li>Grails version: <g:meta name="app.grails.version"/></li> |
14 |
| - <li>Groovy version: ${GroovySystem.getVersion()}</li> |
15 |
| - <li>JVM version: ${System.getProperty('java.version')}</li> |
16 |
| - <li>Reloading active: ${grails.util.Environment.reloadingAgentEnabled}</li> |
17 |
| - <li>Controllers: ${grailsApplication.controllerClasses.size()}</li> |
18 |
| - <li>Domains: ${grailsApplication.domainClasses.size()}</li> |
19 |
| - <li>Services: ${grailsApplication.serviceClasses.size()}</li> |
20 |
| - <li>Tag Libraries: ${grailsApplication.tagLibClasses.size()}</li> |
21 |
| - </ul> |
22 |
| - </div> |
23 |
| - <div id="page-body" role="main"> |
24 |
| - <h1>Welcome to Version 1</h1> |
25 |
| - <p>Congratulations, you have successfully deployed version 1</p> |
26 |
| - </div> |
| 8 | + <script type="text/javascript"> |
| 9 | + // we need a full screen canvas, but the canvas tag doesn't support percentage widths |
| 10 | + // so we simply write out the canvas tag using javascript |
| 11 | + document.write('<div style="background:url(images/background.jpg) repeat-x;position:absolute;left:0;top:'+($(window).height()-193)+'px;width:100%;height:200px;"></div>'); |
| 12 | + document.write('<canvas id="cv" width="'+$(window).width()+'" height="'+($(window).height()-100)+'" style="position:absolute;left:0;top:0;"></canvas>'); |
| 13 | + // obviously, this become wrong if the browser window changes size |
| 14 | + // so we simply reload the page on resize |
| 15 | + </script> |
| 16 | + |
| 17 | + <div id="message"> |
| 18 | + Number of items on the screen: <div id="fireCount">1</div> |
| 19 | + <a href="http://kenneth.kufluk.com" target="_blank">© Kenneth Kufluk 2010</a> |
| 20 | + <a href="http://github.com/kennethkufluk/js-fireworks" target="_blank">My code is open sourced at github.</a> |
| 21 | + </div> |
| 22 | + |
| 23 | + <div id="attributions"> |
| 24 | + Looking a little slow? <a href="http://www.google.com/chrome" target="_blank">Download Chrome!</a><br/> |
| 25 | + Panorama:<a href="http://www.flickr.com/photos/chrishudson/" target="_blank">flickr/ChrisH2006</a><br/> |
| 26 | + Eye:<a href="http://www.flickr.com/photos/mcdemoura/" target="_blank">flickr/Márcio Cabral de Moura</a><br/> |
| 27 | + Font: <a href="http://bitmapmania.m78.com/" target="_blank">BM Receipt</a> via <a href="http://cufon.shoqolate.com/generate/" target="_blank">Cufón Generator</a> |
| 28 | + </div> |
| 29 | + |
| 30 | + <div id="slider_firework_speed"><span class="label" style="display:block;margin:10px 20px 10px -50px;">Speed</div> |
| 31 | + <div id="slider_fragment_spread"><span class="label" style="display:block;margin:10px 20px 10px -50px;">Blast Radius</div> |
| 32 | + <div id="slider_gravity"><span class="label" style="display:block;margin:10px 20px;">Gravity</div> |
| 33 | + <div id="slider_framerate"><span class="label" style="display:block;margin:20px 20px;">Framerate</span></div> |
| 34 | + |
| 35 | + <div id="form"> |
| 36 | + <form onsubmit="FireworkDisplay.launchText();return false;"> |
| 37 | + <div> |
| 38 | + <span class="boxtext">Enter your own message and click Launch to see it written in Fireworks over London</span><br/> |
| 39 | + <input id="firetext" type="text" value="Version 2"/> |
| 40 | + <input id="launch" type="submit" value="Launch!"/> |
| 41 | + </div> |
| 42 | + </form> |
| 43 | + </div> |
27 | 44 | </body>
|
28 | 45 | </html>
|
0 commit comments