OSDN Git Service

vendor/zlib submodule
[flapp/flapp.git] / debug.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
5 <title> Flapp (</title>
6 <!-- script type="text/javascript" src="bin/flapp.js"> </script> -->
7 <script type="text/javascript" src="closure-primitives/base.js"> </script>
8 </head>
9 <body bgcolor="#808080">
10
11 <h1></h1>
12 <script type="text/javascript">
13 var url = location.search.substr(1).split("&")[0];
14 url = "sample/"+(url?url:"saitama.swf");
15 goog.require('Flapp');
16 </script>
17 <table border=2>
18   <tr><th> flapp </th><th> flash player </th></tr>
19   <tr><td>
20     <canvas id="flashcanvas" width="240" height="240"> canvas is here</canvas>
21     <script type="text/javascript">
22     var canvas_id = "flashcanvas";
23     var flapp = new Flapp(url, canvas_id);
24     flapp.play();
25     </script>
26   </td><td>
27     <div id="flashobj_tag"> </div>
28     <script>
29      var flash_obj = document.getElementById("flashobj_tag");
30     console.log(flash_obj);
31     flash_obj.innerHTML = ' <object width="240" height="240"> <param name="movie" value="'+url+'" /> </object>';
32     </script>
33   </tr>
34 </table>
35
36 </body>
37 </html>