Bugzilla Bug 54161 "about:plugins" should be proper HTML

fix by alexeyc@bigfoot.com r=hixie sr=alecf.
This commit is contained in:
timeless%mac.com 2001-05-09 07:56:23 +00:00
Родитель 4e4a6541ef
Коммит 6e911222c9
2 изменённых файлов: 236 добавлений и 132 удалений

Просмотреть файл

@ -1,90 +1,142 @@
<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil -*-
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!-- -*- Mode: HTML; tab-width: 2; indent-tabs-mode: nil -*-
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
Contributors:
Mark Olson <maolson@earthlink.net>
Alexey Chernyak <alexeyc@bigfoot.com>
-->
<html>
<html lang="en" dir="ltr">
<head>
<title>About Plug-ins</title>
<style type="text/css">
span#plugs {
font-size: xx-large;
font-weight: bold;
}
span#noplugs {
font-size: x-large;
font-weight: bold;
}
div div {
font-size: large;
font-weight: bold;
text-align: center;
}
table, th, td {
border-color: gray;
border-style: solid;
text-align: center;
}
table {
border-width: 2px;
width: 100%;
}
th, td {
border-width: 1px;
padding: 5px 0;
}
th {
font-size: small;
}
th.type, th.suff {
width: 20%;
}
th.desc {
width: 50%;
}
</style>
</head>
<body>
<script language="JavaScript1.5">
<div>
<script type="application/x-javascript">
<!--
<!-- JavaScript to enumerate and display all installed plug-ins -->
/* 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) -->
* First, refresh plugins in case anything has been changed recently in
* prefs: (The "false" argument tells refresh not to reload or activate
* any plug-ins 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;
var numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
document.writeln("<span id=\"plugs\">Installed plug-ins<\/span><br>");
else
document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
document.writeln("<span id=\"noplugs\">No plug-ins are installed.<\/span><br>");
document.writeln("Find more information about browser plug-ins at ");
document.writeln("<A HREF=\"http://home.netscape.com/plugins/index.html\">Netscape Netcenter</A>.");
document.writeln("<p><hr>");
document.writeln("<a href=\"http://home.netscape.com/plugins/index.html\">Netscape Netcenter<\/a>.");
document.writeln("<p><\/p><hr>");
for (i = 0; i < numPlugins; i++)
for (var 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>");
var plugin = navigator.plugins[i];
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";
if (plugin) {
document.write("<div>");
document.write(plugin.name);
document.writeln("<\/div><br>");
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>");
document.writeln("<dl><dd>File name:");
document.write(plugin.filename);
document.write("<\/dd><dd><br>");
document.write(plugin.description);
document.writeln("<\/dd><\/dl><p><\/p>");
document.writeln("<table>");
document.writeln("<tr><th class=\"type\">Mime Type<\/th>");
document.writeln("<th class=\"desc\">Description<\/th>");
document.writeln("<th class=\"suff\">Suffixes<\/th>");
document.writeln("<th>Enabled<\/th><\/tr>");
var numTypes = plugin.length;
var mimetype;
var enabled;
var enabledPlugin;
for (var 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>");
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><\/p><hr><p><\/p>");
}
}
//-->
</script>
</div>
</body>
</html>

Просмотреть файл

@ -1,90 +1,142 @@
<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil -*-
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!-- -*- Mode: HTML; tab-width: 2; indent-tabs-mode: nil -*-
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
Contributors:
Mark Olson <maolson@earthlink.net>
Alexey Chernyak <alexeyc@bigfoot.com>
-->
<html>
<html lang="en" dir="ltr">
<head>
<title>About Plug-ins</title>
<style type="text/css">
span#plugs {
font-size: xx-large;
font-weight: bold;
}
span#noplugs {
font-size: x-large;
font-weight: bold;
}
div div {
font-size: large;
font-weight: bold;
text-align: center;
}
table, th, td {
border-color: gray;
border-style: solid;
text-align: center;
}
table {
border-width: 2px;
width: 100%;
}
th, td {
border-width: 1px;
padding: 5px 0;
}
th {
font-size: small;
}
th.type, th.suff {
width: 20%;
}
th.desc {
width: 50%;
}
</style>
</head>
<body>
<script language="JavaScript1.5">
<div>
<script type="application/x-javascript">
<!--
<!-- JavaScript to enumerate and display all installed plug-ins -->
/* 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) -->
* First, refresh plugins in case anything has been changed recently in
* prefs: (The "false" argument tells refresh not to reload or activate
* any plug-ins 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;
var numPlugins = navigator.plugins.length;
if (numPlugins > 0)
document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
document.writeln("<span id=\"plugs\">Installed plug-ins<\/span><br>");
else
document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
document.writeln("<span id=\"noplugs\">No plug-ins are installed.<\/span><br>");
document.writeln("Find more information about browser plug-ins at ");
document.writeln("<A HREF=\"http://home.netscape.com/plugins/index.html\">Netscape Netcenter</A>.");
document.writeln("<p><hr>");
document.writeln("<a href=\"http://home.netscape.com/plugins/index.html\">Netscape Netcenter<\/a>.");
document.writeln("<p><\/p><hr>");
for (i = 0; i < numPlugins; i++)
for (var 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>");
var plugin = navigator.plugins[i];
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";
if (plugin) {
document.write("<div>");
document.write(plugin.name);
document.writeln("<\/div><br>");
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>");
document.writeln("<dl><dd>File name:");
document.write(plugin.filename);
document.write("<\/dd><dd><br>");
document.write(plugin.description);
document.writeln("<\/dd><\/dl><p><\/p>");
document.writeln("<table>");
document.writeln("<tr><th class=\"type\">Mime Type<\/th>");
document.writeln("<th class=\"desc\">Description<\/th>");
document.writeln("<th class=\"suff\">Suffixes<\/th>");
document.writeln("<th>Enabled<\/th><\/tr>");
var numTypes = plugin.length;
var mimetype;
var enabled;
var enabledPlugin;
for (var 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>");
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><\/p><hr><p><\/p>");
}
}
//-->
</script>
</div>
</body>
</html>