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