[email protected] | 326975bc | 2010-01-26 02:53:54 | [diff] [blame] | 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
2 | <head> | ||||
3 | <title>Pepper GPU Demo</title> | ||||
[email protected] | f168a63e | 2011-08-02 19:19:17 | [diff] [blame] | 4 | <style> |
5 | #container | ||||
6 | { | ||||
7 | margin: auto; | ||||
8 | padding: 0px; | ||||
9 | width: 90%; | ||||
10 | height: 90%; | ||||
11 | border-style: solid; | ||||
12 | } | ||||
13 | #plugin | ||||
14 | { | ||||
15 | margin: 0; | ||||
16 | border: 0; | ||||
17 | } | ||||
18 | </style> | ||||
19 | |||||
20 | <script type="text/javascript"> | ||||
21 | var container; | ||||
22 | var plugin; | ||||
23 | |||||
24 | function resizePlugin() { | ||||
25 | plugin.width = container.clientWidth; | ||||
26 | plugin.height = container.clientHeight; | ||||
27 | }; | ||||
28 | |||||
29 | function init() { | ||||
30 | container = document.getElementById('container'); | ||||
31 | plugin = document.getElementById('plugin'); | ||||
32 | |||||
33 | window.onresize = resizePlugin; | ||||
34 | resizePlugin(); | ||||
35 | } | ||||
36 | </script> | ||||
[email protected] | 326975bc | 2010-01-26 02:53:54 | [diff] [blame] | 37 | </head> |
38 | |||||
[email protected] | f168a63e | 2011-08-02 19:19:17 | [diff] [blame] | 39 | <body onload="init();"> |
40 | <div id="container"> | ||||
41 | <embed id="plugin" type="pepper-application/x-gpu-demo" /> | ||||
42 | </div> | ||||
[email protected] | 326975bc | 2010-01-26 02:53:54 | [diff] [blame] | 43 | </body> |
44 | </html> |