summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-03-17 01:11:32 +0000
committerBastien Nocera <hadess@hadess.net>2011-03-17 01:46:15 +0000
commit4eef3c6fe38fc8f8b12755e6a70d47d539456c45 (patch)
tree31595c602935a4ef6676a4db4de7cdfa36069bf6
parenteb5304574e3328323b72dd373eca4850c1d515d5 (diff)
downloadtotem-4eef3c6fe38fc8f8b12755e6a70d47d539456c45.tar.gz
browser-plugin: More plugin info in tests/index.html
-rw-r--r--browser-plugin/tests/index.html31
1 files changed, 24 insertions, 7 deletions
diff --git a/browser-plugin/tests/index.html b/browser-plugin/tests/index.html
index b8e366b82..980c53a21 100644
--- a/browser-plugin/tests/index.html
+++ b/browser-plugin/tests/index.html
@@ -1,13 +1,30 @@
<script language="javascript">
function print_plugins () {
- document.write('<ul>');
- for(var i=0; i<navigator.plugins.length; i++) {
- var name = navigator.plugins[i].name;
- document.write('<li> \'' + name + '\'<br>');
- }
- document.write('</ul>');
+ document.write("There are <b>" + navigator.plugins.length + "</b> plug-ins installed.<p>");
+ document.write("<table border=1 width='100%' cellpadding=5>" +
+ "<tr valign='top'>" +
+ "<td bgcolor='Aqua' width='25%'>Name</td>" +
+ "<td bgcolor='Aqua' width='25%'>Description</td>" +
+ "<td bgcolor='Aqua' width='25%'>Filename</td>" +
+ "<td bgcolor='Aqua' width='15%'>Suffixes / MIME " +
+ "type</td>" +
+ "</tr>");
+ // Scan through each plug-in:
+ for (n=0; n < navigator.plugins.length; n++) {
+ document.write("<tr valign='top'>" +
+ "<td><b>" + navigator.plugins[n].name + "</b></td>" + "<td>" + navigator.plugins[n].description + "</td>" +
+ "<td>" + navigator.plugins[n].filename +
+ "</td><td>");
+ // Scan through this plug-inĂ­s suffixes array:
+ for (m=0; m < navigator.plugins[n].length; m++) {
+ document.write(navigator.plugins[n][m].suffixes + " = " +
+ navigator.plugins[n][m].type +
+ "<br>");
+ }
+ document.write("</td></tr>");
+ }
+ document.write("</table>");
}
-
</script>