more optimizations, remove WTVIRC for now, upgrade test.js

This commit is contained in:
zefie
2025-08-13 21:42:22 -04:00
parent 54bb975f1a
commit 22c7229e38
162 changed files with 1002 additions and 5539 deletions

View File

@@ -25,7 +25,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body vlink="#660000" link="#180d4b" bgcolor="#eeeeee" background="clipart/styleMedia/us_flag.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -34,7 +34,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -44,7 +44,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font>
</center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/baseballfield.gif" text="#cccc99" link="#66ff66" vlink="#ccffcc">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -38,7 +38,7 @@ to return to editing it.
<img src="clipart/styleMedia/baseball.gif" width="400" height="100" align="bottom">
&nbsp;
</center><p>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -47,7 +47,7 @@ to return to editing it.
this.styledata.text +
`>${title}</font></H1></CENTER>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body text="#7ac2d5" bgcolor="#11144c" link="#a5a033" vlink="#25a51f">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -37,7 +37,7 @@ to return to editing it.
<tbody><tr>
<td>`;
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -47,7 +47,7 @@ to return to editing it.
`>${title}</font></td>
<td>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body vlink="#fa7474" text="#faf3ed" link="#fa9d46" background="clipart/styleMedia/tile5.gif">`;
// Do some templating here for some fucking reason
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `
<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
@@ -33,7 +33,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -43,7 +43,7 @@ to return to editing it.
this.styledata.titheader += `
${title}
</font></h1></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -21,7 +21,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body bgcolor="#eeeeee">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -34,13 +34,13 @@ to return to editing it.
<tbody>`;
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<center>
<font size="7" color="#000000"><b>${title}</b></font></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -50,13 +50,13 @@ to return to editing it.
</td>
<td bgcolor="#464de3" >
<center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<b><font size="7" color="#e6e1e1">${title}</font></b></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -46,7 +46,7 @@ to return to editing it.
<td><img src="clipart/styleMedia/so00483_.gif"></td>
<td >
<center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -55,7 +55,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body bgcolor="white" link="#180d4b" vlink="#660000" background="clipart/styleMedia/stars.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -35,7 +35,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -44,7 +44,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -61,13 +61,13 @@ to return to editing it.
<td colspan=3 >
<center>
`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<font size="6" color="#000000"><b>${title}</b></font></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/tile9.gif" text="black" link="#09021e" vlink="#2f0001">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
</head>
<body text="#ccffcc" bgcolor="#003300" link="#ffcc00" vlink="#ccb699">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -42,7 +42,7 @@ to return to editing it.
</td>
<td >
<center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -51,7 +51,7 @@ to return to editing it.
<font size="6" color=` +
this.styledata.text +
`><b>${title}</b></font></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<BODY bgcolor=#ffffcc link=#006600 vlink=#660000>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -34,13 +34,13 @@ to return to editing it.
<TR>
<TD><IMG src=clipart/Nature/Flowers/na00140_.gif width=253 height=273 align=left> </TD>
<TD>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<FONT size=+3 color=#003300>${title}</FONT>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/footballfield.gif" text="#ffffcc" bgcolor="white" link="yellow" alink="#ccffcc" vlink="#ffcc99">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -35,7 +35,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = `<img src="clipart/styleMedia/football.gif" width="283" height="55" align="bottom"><p>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -44,7 +44,7 @@ to return to editing it.
this.styledata.text +
`>${title}</font></H1>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body text="#97e373" bgcolor="#003300" link="#ccc63f" vlink="#22cc17">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -38,7 +38,7 @@ to return to editing it.
<td>`;
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -48,7 +48,7 @@ to return to editing it.
`>${title}</font></td>
<td>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body text="#261373" link="blue" vlink="#2a6e73" background="clipart/styleMedia/tile6.gif">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body bgcolor="silver" text="black" link="blue" alink="red" vlink="#ff00ff">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -47,7 +47,7 @@ to return to editing it.
<td><img height="150" width="150" src="clipart/Animations/j0205352.gif"></td>
<td >
<center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -56,7 +56,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<BODY bgcolor="#c4dbff" link="#33309a">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -34,13 +34,13 @@ to return to editing it.
<TR>
<TD><IMG src=clipart/styleMedia/AG00318_.gif align=left> </TD>
<TD>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<FONT size=+3 color=#003300>${title}</FONT>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<BODY bgcolor="#deb1b1" link="#4c58b6" vlink="#519eb6">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -34,13 +34,13 @@ to return to editing it.
<TR>
<TD><IMG src=clipart/styleMedia/AG00318_.gif align=left> </TD>
<TD>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<FONT size=+3 color=#003300>${title}</FONT>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body text="#7eecf7" link="#c5c1ca" vlink="#b4c1fa" background="clipart/styleMedia/tile4.gif">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b><i>${title}</i></b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/tile1.gif" text="#ffffa0" link="#fff81f" vlink="#ffa034">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -42,7 +42,7 @@ to return to editing it.
this.styledata.text +
`>${title}</font>
</H1></CENTER>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body vlink="#CCFFFF" text="#FFFFFF" link="#00FFFF" bgcolor="#7189ae" background="clipart/styleMedia/oceantile.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -35,7 +35,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -47,7 +47,7 @@ to return to editing it.
<td >
<center>
`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">`;
}
this.styledata.titheader +=
@@ -56,7 +56,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font></center>
`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}
this.styledata.titheader += `

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/show-tile3.gif" text="#c8e7f1" link="#fffe67" vlink="#ff7171">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body text="#cabdc7" bgcolor="#660517" link="#cac534" vlink="#c8cac5">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -38,7 +38,7 @@ to return to editing it.
<td>`;
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -48,7 +48,7 @@ to return to editing it.
`>${title}</font></td>
<td>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body bgcolor="white" link="#180d4b" vlink="#660000" background="clipart/styleMedia/stars.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -35,7 +35,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -44,7 +44,7 @@ to return to editing it.
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -22,7 +22,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body text="black" link="#552768" bgcolor="white" vlink="#333333" background="clipart/styleMedia/ringbinder.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -37,13 +37,13 @@ to return to editing it.
<TD >
<CENTER>
<FONT size=7>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader +=
`<font color=` + this.styledata.text + `><b>${title}</B>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body text="#e4ece6" link="#eceb9f" vlink="#e1903c" background="clipart/styleMedia/tile12.gif">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/tile11.gif" link="#2a238c" vlink="#f17075">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -21,7 +21,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body vlink="#ffff99" text="#cccccc" link="#ffcc00" bgcolor="#333333" background="clipart/styleMedia/spacefield.gif">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -30,7 +30,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -49,7 +49,7 @@ ${title}
</tr>
</tbody></table>
</center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body text="#ffffcc" bgcolor="white" link="#00ccff" vlink="#ccffff" background="clipart/styleMedia/stonesfield.gif">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -42,7 +42,7 @@ to return to editing it.
this.styledata.text +
`><b><i>${title}</i></b></font>
</center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/tile3.gif" text="#cccccc" link="#50caca" vlink="#47ca92">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -42,7 +42,7 @@ to return to editing it.
this.styledata.text +
`>${title}</font>
</H1></CENTER>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -23,7 +23,7 @@ class PBTemplate {
</head>
<body background="clipart/styleMedia/watertile.gif" text="white" link="aqua" alink="red" vlink="#ccffff">
<center>`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -32,7 +32,7 @@ to return to editing it.
</TABLE>`;
}
this.styledata.titheader = ``;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
@@ -41,7 +41,7 @@ to return to editing it.
<font size="+3" color=` +
this.styledata.text +
`><b>${title}</b></font>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -26,7 +26,7 @@ class PBTemplate {
<title>${title}</title>
</head>
<body bgcolor="#97bfbb" text="#3f3a89" link="#6a298c" vlink="#6a298c">`;
if (state == "previewing") {
if (state === "previewing") {
this.styledata.header += `<TABLE cellspacing=0 cellpadding=0 bgcolor=#1e4261 border=1 width=100%>
<TR><TD valign=middle align=center><FONT color=#D1D1D1>
You are previewing your page. Press <B>Back</B>
@@ -40,13 +40,13 @@ to return to editing it.
<td><img src="clipart/styleMedia/j0172489.gif" height="122" width="123"></td>
<td >
<center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
`;
}
this.styledata.titheader += `<FONT size=+3 color=#${this.styledata.text}><b>${title}</b></FONT></center>`;
if (state == "editing") {
if (state === "editing") {
this.styledata.titheader += `</a>`;
}

View File

@@ -64,7 +64,7 @@ the page's address.
<form>
<font color=ffcf69><shadow>
<input type=button usestyle borderimage="file://ROM/Borders/ButtonBorder2.bif"`;
if (request_headers.query.goBack == "true")
if (request_headers.query.goBack === "true")
data += "action=client:goback value=Done"
else
data += "action=Print value=Continue"

View File

@@ -76,7 +76,7 @@ To add a new user now, choose this link:
<form>
<font color=ffcf69><shadow>
<input type=button usestyle borderimage="file://ROM/Borders/ButtonBorder2.bif"`;
if (request_headers.query.directLink == "true")
if (request_headers.query.directLink === "true")
data += "action=javascript:location=history.go(-1);"
else
data += "action=javascript:location=history.go(-2);"

View File

@@ -64,7 +64,7 @@ Choose the first letter of the word you are looking for.
data += `<td width=40>\n<a href="wtv-guide:/help?topic=Glossary&subtopic=${self.page_args.letters[k]}" selected><blackface>${self.page_args.letters[k]}</blackface></a>\n`
i++;
j++;
if (i == 8 && self.page_args.letters.length != (j + 1)) {
if (i === 8 && self.page_args.letters.length !== (j + 1)) {
// add new <tr> every 8 entries, but only if its not the last entry
i = 0;
data += `<tr><td height=32>\n`;

View File

@@ -63,11 +63,11 @@ Choose a word to see what it means.
// test
data += `<a href="wtv-guide:/help?topic=Glossary&subtopic=${self.page_args.letter}&page=${self.page_args.words[k].link}" selected>${self.page_args.words[k].word}</a><br>\n`
words_rendered++;
if (self.page_args.words.length % 2 != 0) {
if (self.page_args.words.length % 2 !== 0) {
// odd so split later to put extra on first row
if (words_rendered - 1 == table_split) data += `<td>`;
if (words_rendered - 1 === table_split) data += `<td>`;
} else {
if (words_rendered == table_split) data += `<td>`;
if (words_rendered === table_split) data += `<td>`;
}
});