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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 <h1>Native Client SRPC Simple Plug-in</h1> | 34 <h1>Native Client SRPC Simple Plug-in</h1> |
35 <p> | 35 <p> |
36 <button onclick='fortytwo()'>Call fortytwo()</button> | 36 <button onclick='fortytwo()'>Call fortytwo()</button> |
37 <button onclick='helloworld()'>Call helloworld()</button> | 37 <button onclick='helloworld()'>Call helloworld()</button> |
38 | 38 |
39 <embed name="nacl_module" | 39 <embed name="nacl_module" |
40 id="pluginobj" | 40 id="pluginobj" |
41 width=0 height=0 | 41 width=0 height=0 |
42 src="srpc_hw.nexe" | 42 src="srpc_hw.nexe" |
43 type="application/x-nacl-srpc" /> | 43 type="application/x-nacl" /> |
44 </p> | 44 </p> |
45 | 45 |
46 <p>If the plug-in is working correctly, a click on the "Call fortytwo" button | 46 <p>If the plug-in is working correctly, a click on the "Call fortytwo" button |
47 should open a popup dialog containing <b>42</b> as value.</p> | 47 should open a popup dialog containing <b>42</b> as value.</p> |
48 | 48 |
49 <p> Clicking on the "Call helloworld" button | 49 <p> Clicking on the "Call helloworld" button |
50 should open a popup dialog containing <b>hello, world</b> as value.</p> | 50 should open a popup dialog containing <b>hello, world</b> as value.</p> |
51 | 51 |
52 <h2>Status</h2> | 52 <h2>Status</h2> |
53 <div id=status>NO-STATUS</div> | 53 <div id=status>NO-STATUS</div> |
(...skipping 15 matching lines...) Expand all Loading... |
69 | 69 |
70 document.cookie = 'status=OK'; | 70 document.cookie = 'status=OK'; |
71 | 71 |
72 return ""; | 72 return ""; |
73 }; | 73 }; |
74 //]]> | 74 //]]> |
75 </script> | 75 </script> |
76 | 76 |
77 </body> | 77 </body> |
78 </html> | 78 </html> |
OLD | NEW |