OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>SRPC Simple Plug-in</title> | 4 <title>SRPC Simple Plug-in</title> |
5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
7 </head> | 7 </head> |
8 <body onload="nacllib.waitForModulesAndRunTests();" | 8 <body onload="nacllib.waitForModulesAndRunTests();" |
9 onunload="nacllib.cleanUp();" > | 9 onunload="nacllib.cleanUp();" > |
10 <script type="text/javascript"> | 10 <script type="text/javascript"> |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 <h1>Native Client SRPC Simple Plug-in</h1> | 43 <h1>Native Client SRPC Simple Plug-in</h1> |
44 <p> | 44 <p> |
45 <button onclick="fortytwo()">Call fortytwo()</button> | 45 <button onclick="fortytwo()">Call fortytwo()</button> |
46 <button onclick="helloworld()">Call helloworld()</button> | 46 <button onclick="helloworld()">Call helloworld()</button> |
47 | 47 |
48 <embed name="nacl_module" | 48 <embed name="nacl_module" |
49 id="pluginobj" | 49 id="pluginobj" |
50 width=0 height=0 | 50 width=0 height=0 |
51 src="srpc_hw.nexe" | 51 src="srpc_hw.nexe" |
52 type="application/x-ppapi-nacl-srpc" /> | 52 type="application/x-nacl" /> |
53 </p> | 53 </p> |
54 | 54 |
55 <p>If the plug-in is working correctly, a click on the "Call fortytwo" button | 55 <p>If the plug-in is working correctly, a click on the "Call fortytwo" button |
56 should open a popup dialog containing <b>42</b> as value.</p> | 56 should open a popup dialog containing <b>42</b> as value.</p> |
57 | 57 |
58 <p> Clicking on the "Call helloworld" button | 58 <p> Clicking on the "Call helloworld" button |
59 should open a popup dialog containing <b>hello, world</b> as value.</p> | 59 should open a popup dialog containing <b>hello, world</b> as value.</p> |
60 | 60 |
61 <h2>Status</h2> | 61 <h2>Status</h2> |
62 <div id=status>NO-STATUS</div> | 62 <div id=status>NO-STATUS</div> |
(...skipping 15 matching lines...) Expand all Loading... |
78 | 78 |
79 document.cookie = 'status=OK'; | 79 document.cookie = 'status=OK'; |
80 | 80 |
81 return ""; | 81 return ""; |
82 }; | 82 }; |
83 //]]> | 83 //]]> |
84 </script> | 84 </script> |
85 | 85 |
86 </body> | 86 </body> |
87 </html> | 87 </html> |
OLD | NEW |