summaryrefslogtreecommitdiffstats
path: root/khtml/test/jsplugins.html
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /khtml/test/jsplugins.html
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/test/jsplugins.html')
-rw-r--r--khtml/test/jsplugins.html73
1 files changed, 73 insertions, 0 deletions
diff --git a/khtml/test/jsplugins.html b/khtml/test/jsplugins.html
new file mode 100644
index 000000000..7af7a25f7
--- /dev/null
+++ b/khtml/test/jsplugins.html
@@ -0,0 +1,73 @@
+<HTML>
+<HEAD>
+<TITLE>About Plug-ins</TITLE>
+</HEAD>
+<BODY>
+<SCRIPT language="javascript">
+
+
+<!-- JavaScript to enumerate and display all installed plug-ins -->
+
+<!-- First, refresh plugins in case anything has been changed recently in prefs: -->
+<!-- (The "false" argument tells refresh not to reload or activate any plugins that would -->
+<!-- be active otherwise. In contrast, one would use "true" in the case of ASD instead of -->
+<!-- restarting) -->
+navigator.plugins.refresh(false);
+
+
+numPlugins = navigator.plugins.length;
+
+if (numPlugins > 0)
+ document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
+else
+ document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
+
+document.writeln("For more information on Netscape plug-ins, <A HREF=http://home.netscape.com/plugins/>click here</A>.<p><hr>");
+
+for (i = 0; i < numPlugins; i++)
+{
+ plugin = navigator.plugins[i];
+
+ document.write("<center><font size=+1><b>");
+ document.write(plugin.name);
+ document.writeln("</b></font></center><br>");
+
+ document.writeln("<dl><dd>File name:");
+ document.write(plugin.filename);
+ document.write("<dd><br>");
+ document.write(plugin.description);
+ document.writeln("</dl><p>");
+
+ document.writeln("<table width=100% border=2 cellpadding=5>");
+ document.writeln("<tr><th width=20%><font size=-1>Mime Type</font></th>");
+ document.writeln("<th width=50%><font size=-1>Description</font></th>");
+ document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
+ document.writeln("<th><font size=-1>Enabled</th></tr>");
+ numTypes = plugin.length;
+ for (j = 0; j < numTypes; j++)
+ {
+ mimetype = plugin[j];
+
+ if (mimetype)
+ {
+ enabled = "No";
+ enabledPlugin = mimetype.enabledPlugin;
+ if (enabledPlugin && (enabledPlugin.name == plugin.name))
+ enabled = "Yes";
+
+ document.writeln("<tr align=center>");
+ document.writeln("<td>" + mimetype.type + "</td>");
+ document.writeln("<td>" + mimetype.description + "</td>");
+ document.writeln("<td>" + mimetype.suffixes + "</td>");
+ document.writeln("<td>" + enabled + "</td>");
+ document.writeln("</tr>");
+ }
+ }
+
+ document.write("</table><p><hr><p>");
+}
+
+
+</SCRIPT>
+</BODY>
+</HTML> \ No newline at end of file