| OLD | NEW |
| 1 <html xmlns="http://www.w3.org/1999/xhtml"> | 1 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 2 <head> | 2 <head> |
| 3 <title> Pepper Plugin Demo </title> | 3 <title> Pepper Plugin Demo </title> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 var event_box; | 5 var event_box; |
| 6 | 6 |
| 7 var addLine = function(line) { | 7 var addLine = function(line) { |
| 8 event_box.innerHTML = line + '<br>' + event_box.innerHTML; | 8 event_box.innerHTML = line + '<br>' + event_box.innerHTML; |
| 9 } | 9 } |
| 10 | 10 |
| 11 var runScripts = function() { | 11 var runScripts = function() { |
| 12 event_box = document.getElementById("event_text_box");; | 12 event_box = document.getElementById("event_text_box");; |
| 13 var plugin_obj = document.getElementById("plugin"); | 13 var plugin_obj = document.getElementById("plugin"); |
| 14 addLine('<b>Event log</b>'); | 14 if (plugin_obj.setTextBox) { |
| 15 plugin_obj.setTextBox(addLine); | 15 addLine('<b>Event log</b>'); |
| 16 plugin_obj.setTextBox(addLine); |
| 17 } else { |
| 18 alert('Plugin failed to load.'); |
| 19 } |
| 16 } | 20 } |
| 17 </script> | 21 </script> |
| 18 </head> | 22 </head> |
| 19 | 23 |
| 20 <body style="background-image:url(http://www.google.com/intl/en_ALL/images/logo.
gif); background-repeat:repeat;" onload="runScripts()"> | 24 <body style="background-image:url(http://www.google.com/intl/en_ALL/images/logo.
gif); background-repeat:repeat;" onload="runScripts()"> |
| 21 | 25 |
| 22 <p> | 26 <p> |
| 23 This page embeds a file declared as the pepper test plugins MIME type so that it
will get loaded for testing. | 27 This page embeds a file declared as the pepper test plugins MIME type so that it
will get loaded for testing. |
| 24 </p> | 28 </p> |
| 25 <table> | 29 <table> |
| 26 <tr> | 30 <tr> |
| 27 <td valign="top" width="50%"> | 31 <td valign="top" width="50%"> |
| 28 <object id="plugin" type="pepper-application/x-pepper-test-plugin" width="400" h
eight="400" dimensions="2" /> | 32 <object id="plugin" type="pepper-application/x-pepper-test-plugin" width="400" h
eight="400" dimensions="2" /> |
| 29 </td> | 33 </td> |
| 30 <td valign="top" style="background-color:Silver" width="50%"> | 34 <td valign="top" style="background-color:Silver" width="50%"> |
| 31 <div id="event_text_box" style="width:400px; height:400px; overflow:auto"> | 35 <div id="event_text_box" style="width:400px; height:400px; overflow:auto"> |
| 32 </div> | 36 </div> |
| 33 </td> | 37 </td> |
| 34 </tr> | 38 </tr> |
| 35 </table> | 39 </table> |
| 36 | 40 |
| 37 </body> | 41 </body> |
| 38 </html> | 42 </html> |
| OLD | NEW |