blob: b8a0e97fc4ffbf0172d66e8265089ba1b03a7e6a [file] [log] [blame]
[email protected]326975bc2010-01-26 02:53:541<html xmlns="http://www.w3.org/1999/xhtml">
2<head>
3<title>Pepper GPU Demo</title>
[email protected]f168a63e2011-08-02 19:19:174<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">
21var container;
22var plugin;
23
24function resizePlugin() {
25 plugin.width = container.clientWidth;
26 plugin.height = container.clientHeight;
27};
28
29function init() {
30 container = document.getElementById('container');
31 plugin = document.getElementById('plugin');
32
33 window.onresize = resizePlugin;
34 resizePlugin();
35}
36</script>
[email protected]326975bc2010-01-26 02:53:5437</head>
38
[email protected]f168a63e2011-08-02 19:19:1739<body onload="init();">
40<div id="container">
41 <embed id="plugin" type="pepper-application/x-gpu-demo" />
42</div>
[email protected]326975bc2010-01-26 02:53:5443</body>
44</html>