[totem] browser-plugin: More plugin info in tests/index.html
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] browser-plugin: More plugin info in tests/index.html
- Date: Thu, 17 Mar 2011 01:46:33 +0000 (UTC)
commit 4eef3c6fe38fc8f8b12755e6a70d47d539456c45
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 17 01:11:32 2011 +0000
browser-plugin: More plugin info in tests/index.html
browser-plugin/tests/index.html | 31 ++++++++++++++++++++++++-------
1 files changed, 24 insertions(+), 7 deletions(-)
---
diff --git a/browser-plugin/tests/index.html b/browser-plugin/tests/index.html
index b8e366b..980c53a 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]