v0.9.40
2
.gitignore
vendored
@@ -370,4 +370,4 @@ FodyWeavers.xsd
|
|||||||
/zefie_wtvp_minisrv/postest.js
|
/zefie_wtvp_minisrv/postest.js
|
||||||
/zefie_wtvp_minisrv/PageBuilderVault/http_pb/*
|
/zefie_wtvp_minisrv/PageBuilderVault/http_pb/*
|
||||||
!/zefie_wtvp_minisrv/PageBuilderVault/http_pb/clipart
|
!/zefie_wtvp_minisrv/PageBuilderVault/http_pb/clipart
|
||||||
!*.gitkeep
|
!*.gitkeep
|
||||||
@@ -40,7 +40,7 @@ This open source server is in beta status. Use at your own risk.
|
|||||||
- ~~Implement HTTP proxy (needs to be able to defluff most of the web, think retro WAP converter)~~ ***Done [v0.7.1](https://github.com/zefie/zefie_wtvp_minisrv/releases/tag/v0.7.1)***
|
- ~~Implement HTTP proxy (needs to be able to defluff most of the web, think retro WAP converter)~~ ***Done [v0.7.1](https://github.com/zefie/zefie_wtvp_minisrv/releases/tag/v0.7.1)***
|
||||||
|
|
||||||
### How To Use:
|
### How To Use:
|
||||||
- Install [node.js](https://nodejs.org/en/download/). If on Windows, be sure to say `Yes` when asked about `Chocolatey`.
|
- Install [node.js](https://nodejs.org/en/download/) v16 or newer. If on Windows, be sure to say `Yes` when asked about `Chocolatey`.
|
||||||
- Install git (if on Windows, install from [Git for Windows](https://gitforwindows.org/)
|
- Install git (if on Windows, install from [Git for Windows](https://gitforwindows.org/)
|
||||||
- Download a snapshot (either of master, or of any commit/branch/relase/tag etc)
|
- Download a snapshot (either of master, or of any commit/branch/relase/tag etc)
|
||||||
- Extract zip somewhere and enter that directory with a command prompt
|
- Extract zip somewhere and enter that directory with a command prompt
|
||||||
@@ -67,4 +67,3 @@ This open source server is in beta status. Use at your own risk.
|
|||||||
- Chime: $zefie
|
- Chime: $zefie
|
||||||
- [Credit Card or PayPal (powered by StreamElements)](https://zef.pw/ttv-tip)
|
- [Credit Card or PayPal (powered by StreamElements)](https://zef.pw/ttv-tip)
|
||||||
- [Sign up for a service via a referal link](https://zefie.tv/#ad)
|
- [Sign up for a service via a referal link](https://zefie.tv/#ad)
|
||||||
|
|
||||||
|
|||||||
6
package-lock.json
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"name": "zefie_wtvp_minisrv",
|
||||||
|
"lockfileVersion": 2,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {}
|
||||||
|
}
|
||||||
6
zefie_wtvp_minisrv/.gitignore
vendored
@@ -373,9 +373,3 @@ FodyWeavers.xsd
|
|||||||
# minisrv error log file
|
# minisrv error log file
|
||||||
errors.log
|
errors.log
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
# PageBuilder Vault
|
|
||||||
PageBuilderVault/http_pb/*
|
|
||||||
!PageBuilderVault/http_pb/clipart
|
|
||||||
=======
|
|
||||||
>>>>>>> dev
|
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
var styledata = {};
|
||||||
|
this.styledata.text = "#000000"
|
||||||
|
this.styledata.link = "#180d4b"
|
||||||
|
this.styledata.vlink = "#660000"
|
||||||
|
this.styledata.headcol = this.styledata.text
|
||||||
|
this.styledata.listcol1 = "#ff7c76"
|
||||||
|
this.styledata.listcol2 = "#81c2d0"
|
||||||
|
this.styledata.stylemedia = ["/clipart/styleMedia/us_flag.gif", "/clipart/Flags/fl00050_.gif"];
|
||||||
|
this.styledata.headerimgL = "clipart/Flags/fl00050_.gif";
|
||||||
|
this.styledata.headerimgLheight = "68";
|
||||||
|
this.styledata.headerimgLwidth = "66";
|
||||||
|
this.styledata.header = `<html><head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
|
||||||
|
<meta name="generator" content="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<meta name="description" content="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body vlink="#660000" link="#180d4b" bgcolor="#eeeeee" background="clipart/styleMedia/us_flag.gif">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<center>
|
||||||
|
<font size="6" color=` + this.styledata.text + `><b>${title}</b></font>
|
||||||
|
</center>`
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.titheader += ` <p> </p>`
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = `<blockquote>
|
||||||
|
<table>`;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `</blockquote>
|
||||||
|
<table width="100%" cellspacing="2" cellpadding="0" border="0">
|
||||||
|
<tbody><tr height="0">
|
||||||
|
<td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td></tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="position: static !important;"></div></body></html>`
|
||||||
|
return styledata;
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#7ac2d5";
|
||||||
|
this.styledata.link = "#a5a033";
|
||||||
|
this.styledata.vlink = "#25a51f";
|
||||||
|
this.styledata.headcol = this.styledata.text;
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = [];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body text="#7ac2d5" bgcolor="#11144c" link="#a5a033" vlink="#25a51f">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.header += `
|
||||||
|
<center>
|
||||||
|
<font size="+3" color="#66ff66"><b>
|
||||||
|
<table width="100%" cellspacing="4" cellpadding="4" border="0">
|
||||||
|
<tbody><tr>
|
||||||
|
<td>`
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<font size="+4" color=` + this.styledata.text + `>${title}</font></td>
|
||||||
|
<td>`
|
||||||
|
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = `</tr>
|
||||||
|
</table>
|
||||||
|
</b></font></center>`
|
||||||
|
|
||||||
|
this.styledata.tabstart = ``;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
||||||
|
<tr height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
</tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</BODY>
|
||||||
|
</HTML>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#faf3ed"
|
||||||
|
this.styledata.link = "#fa9d46"
|
||||||
|
this.styledata.vlink = "#fa7474"
|
||||||
|
this.styledata.headcol = this.styledata.text
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = ["/clipart/styleMedia/tile5.gif"];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html><head>
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
|
||||||
|
<meta name="generator" content="WebTV Page Builder (Rebuilt by JarHead)">
|
||||||
|
<meta name="description" content="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body vlink="#fa7474" text="#faf3ed" link="#fa9d46" background="clipart/styleMedia/tile5.gif">`
|
||||||
|
// Do some templating here for some fucking reason
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<center><h1><font color=` + this.styledata.text + `>`
|
||||||
|
|
||||||
|
this.styledata.titheader += `
|
||||||
|
${title}
|
||||||
|
</font></h1></center>`
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = `<table>
|
||||||
|
|
||||||
|
<p>`;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `<table width="100%" cellspacing="2" cellpadding="0" border="0">
|
||||||
|
<tbody><tr height="0">
|
||||||
|
<td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td></tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="position: static !important;"></div></body></html>` }
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.link = "#0000EE";
|
||||||
|
this.styledata.vlink = "#551A8B";
|
||||||
|
this.styledata.text = "#000000";
|
||||||
|
this.styledata.headcol = "#eeeeee"
|
||||||
|
this.styledata.listcol1 = "#eeeeee"
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = ["/clipart/styleMedia/CAT.gif"];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html><head>
|
||||||
|
<meta name="generator" content="WebTV Page Builder (Rebuilt by JarHead)">
|
||||||
|
<meta name="description" content="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#eeeeee">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.header += `
|
||||||
|
<table width="100%" cellspacing="4" cellpadding="4" border="0">
|
||||||
|
<tbody>`
|
||||||
|
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
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") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = `</td>
|
||||||
|
</tr><tr height="316">
|
||||||
|
<td width="101" height="316" background="clipart/styleMedia/CAT.gif"></td>
|
||||||
|
<td valign="top" height="316" bgcolor="#669999">`;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `<p> </p></td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
<table width="100%" cellspacing="2" cellpadding="0" border="0">
|
||||||
|
<tbody><tr height="0">
|
||||||
|
<td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td></tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="position: static !important;"></div></body></html>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#97e373";
|
||||||
|
this.styledata.link = "#ccc63f";
|
||||||
|
this.styledata.vlink = "#22cc17";
|
||||||
|
this.styledata.headcol = this.styledata.text;
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = [];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body text="#97e373" bgcolor="#003300" link="#ccc63f" vlink="#22cc17">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.header += `
|
||||||
|
<center>
|
||||||
|
<font size="+3" color="#66ff66"><b>
|
||||||
|
<table border=0 cellspacing="4" cellpadding="4" width=100%>
|
||||||
|
<tbody><tr>
|
||||||
|
<td>`
|
||||||
|
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<font size="+4" color=` + this.styledata.text + `>${title}</font></td>
|
||||||
|
<td>`
|
||||||
|
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = `</tr>
|
||||||
|
</table>
|
||||||
|
</b></font></center>`
|
||||||
|
|
||||||
|
this.styledata.tabstart = ``;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
||||||
|
<tr height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
</tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</BODY>
|
||||||
|
</HTML>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#e68a34";
|
||||||
|
this.styledata.link = "#e64045";
|
||||||
|
this.styledata.vlink = "#e64045";
|
||||||
|
this.styledata.headcol = this.styledata.text;
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = ["/clipart/Animations/j0205352.gif", "/clipart/Animations/j0205350.gif", "/clipart/Special_Occasions/Holidays/so00430_.gif"];
|
||||||
|
this.styledata.headerimgL = "clipart/Special_Occasions/Holidays/so00430_.gif";
|
||||||
|
this.styledata.headerimgLheight = "94";
|
||||||
|
this.styledata.headerimgLwidth = "119";
|
||||||
|
this.styledata.header = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="black" text="#e68a34" link="#e64045">`
|
||||||
|
this.styledata.previewheader = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="black" text="#e68a34" link="#e64045">
|
||||||
|
<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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>
|
||||||
|
`
|
||||||
|
this.styledata.titheader = `<center>
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" frame width="90%">
|
||||||
|
<tr>
|
||||||
|
<td><img height="150" width="150" src="clipart/Animations/j0205352.gif"></td>
|
||||||
|
<td >
|
||||||
|
<center>`
|
||||||
|
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") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.titheader += `</td>
|
||||||
|
<td><img height="150" width="150" src="clipart/Animations/j0205350.gif"></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</center>`
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = ``;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
||||||
|
<tr height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
</tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</BODY>
|
||||||
|
</HTML>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,78 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#cabdc7";
|
||||||
|
this.styledata.link = "#cac534";
|
||||||
|
this.styledata.vlink = "#c8cac5";
|
||||||
|
this.styledata.headcol = this.styledata.text;
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = [];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body text="#cabdc7" bgcolor="#660517" link="#cac534" vlink="#c8cac5">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.header += `
|
||||||
|
<center>
|
||||||
|
<font size="+3" color="#66ff66"><b>
|
||||||
|
<table border="0" cellspacing="4" cellpadding="4" width=100%>
|
||||||
|
<tbody><tr>
|
||||||
|
<td>`
|
||||||
|
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<font size="+4" color=` + this.styledata.text + `>${title}</font></td>
|
||||||
|
<td>`
|
||||||
|
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = `</tr>
|
||||||
|
</table>
|
||||||
|
</b></font></center>`
|
||||||
|
|
||||||
|
this.styledata.tabstart = ``;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
||||||
|
<tr height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
</tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</BODY>
|
||||||
|
</HTML>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.text = "#000000"
|
||||||
|
this.styledata.link = "#180d4b"
|
||||||
|
this.styledata.vlink = "#660000"
|
||||||
|
this.styledata.headcol = this.styledata.text
|
||||||
|
this.styledata.listcol1 = "#e5f4ff"
|
||||||
|
this.styledata.listcol2 = "#81c2d0"
|
||||||
|
this.styledata.stylemedia = ["/clipart/styleMedia/stars.gif", "/clipart/Animals/Wildlife/an00660_.gif", "/clipart/Animals/Wildlife/an00975_.gif"];
|
||||||
|
this.styledata.headerimgL = "clipart/Animals/Wildlife/an00975_.gif";
|
||||||
|
this.styledata.headerimgLheight = "70";
|
||||||
|
this.styledata.headerimgLwidth = "51";
|
||||||
|
this.styledata.header = `<html>
|
||||||
|
<head>
|
||||||
|
<META NAME="generator" CONTENT="WebTV Page Builder (Rebuilt By JarHead)">
|
||||||
|
<META NAME="description" CONTENT="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="white" link="#180d4b" vlink="#660000" background="clipart/styleMedia/stars.gif">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<center><font size="6" color=` + this.styledata.text + `><b>${title}</b></font>`
|
||||||
|
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
this.styledata.titheader += `<p><img src="clipart/Animals/Wildlife/an00660_.gif" width="317" height="273" align="bottom"> </p>
|
||||||
|
<p> </p>
|
||||||
|
</center>`
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = `<blockquote>`;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `</blockquote>
|
||||||
|
<table border="0" cellpadding="0" cellspacing="2" width="100%">
|
||||||
|
<tr height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
<td height=0>
|
||||||
|
<spacer type=block width=30% height=0>
|
||||||
|
</tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</BODY>
|
||||||
|
</HTML>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
|
||||||
|
class PBTemplate {
|
||||||
|
styledata = {};
|
||||||
|
|
||||||
|
constructor(wtvauthor, title, desc, state, docName) {
|
||||||
|
this.styledata.link = "#ffcc00";
|
||||||
|
this.styledata.vlink = "#ffff99";
|
||||||
|
this.styledata.text = "#cccccc";
|
||||||
|
this.styledata.headcol = "#cccccc"
|
||||||
|
this.styledata.listcol1 = null;
|
||||||
|
this.styledata.listcol2 = null;
|
||||||
|
this.styledata.stylemedia = ["/clipart/styleMedia/spacefield.gif"];
|
||||||
|
this.styledata.headerimgL = null;
|
||||||
|
this.styledata.headerimgLheight = null;
|
||||||
|
this.styledata.headerimgLwidth = null;
|
||||||
|
this.styledata.header = `<html><head>
|
||||||
|
<meta name="generator" content="WebTV Page Builder (Rebuilt by JarHead)">
|
||||||
|
<meta name="description" content="${desc}">
|
||||||
|
<title>${title}</title>
|
||||||
|
</head>
|
||||||
|
<body vlink="#ffff99" text="#cccccc" link="#ffcc00" bgcolor="#333333" background="clipart/styleMedia/spacefield.gif">`
|
||||||
|
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>
|
||||||
|
to return to editing it.
|
||||||
|
</FONT>
|
||||||
|
</TABLE>`
|
||||||
|
}
|
||||||
|
this.styledata.titheader = ``
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `<a href="wtv-author:/edit-title?docName=${docName}&titleOnly=true">
|
||||||
|
`
|
||||||
|
}
|
||||||
|
this.styledata.titheader += `<center>
|
||||||
|
<font size="7" color=` + this.styledata.text + `><b>
|
||||||
|
${title}
|
||||||
|
</b></font>
|
||||||
|
<p>
|
||||||
|
<table>
|
||||||
|
<tbody><tr><td>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
</center>`
|
||||||
|
if (state == "editing") {
|
||||||
|
this.styledata.titheader += `</a>`
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
this.styledata.afterblock1 = null;
|
||||||
|
|
||||||
|
this.styledata.tabstart = `<p>
|
||||||
|
<table>
|
||||||
|
<tbody><tr><td>`;
|
||||||
|
|
||||||
|
this.styledata.footerstart = `</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
</center>
|
||||||
|
<table width="100%" cellspacing="2" cellpadding="0" border="0">
|
||||||
|
<tbody><tr height="0">
|
||||||
|
<td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td><td height="0">
|
||||||
|
<spacer type="block" width="30%" height="0">
|
||||||
|
</spacer></td></tr>`
|
||||||
|
this.styledata.webtvfooter = wtvauthor.getCommonFooter();
|
||||||
|
this.styledata.footerend = `</td>
|
||||||
|
</tr>
|
||||||
|
</tbody></table>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
|
||||||
|
<div style="position: static !important;"></div></body></html>`
|
||||||
|
}
|
||||||
|
|
||||||
|
get() {
|
||||||
|
return this.styledata;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PBTemplate;
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 5.7 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 5.4 KiB |
|
After Width: | Height: | Size: 6.9 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 7.1 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 7.8 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 6.3 KiB |
|
After Width: | Height: | Size: 65 B |
|
After Width: | Height: | Size: 190 B |
|
After Width: | Height: | Size: 232 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 9.2 KiB |
|
After Width: | Height: | Size: 57 B |
|
After Width: | Height: | Size: 116 B |
|
After Width: | Height: | Size: 86 B |
|
After Width: | Height: | Size: 479 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 84 B |
|
After Width: | Height: | Size: 591 B |
|
After Width: | Height: | Size: 233 B |
|
After Width: | Height: | Size: 84 B |
|
After Width: | Height: | Size: 58 B |
|
After Width: | Height: | Size: 84 B |
|
After Width: | Height: | Size: 592 B |
|
After Width: | Height: | Size: 231 B |
|
After Width: | Height: | Size: 331 B |
|
After Width: | Height: | Size: 70 B |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 693 B |
|
After Width: | Height: | Size: 6.2 KiB |
|
After Width: | Height: | Size: 55 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 118 B |
|
After Width: | Height: | Size: 160 B |
|
After Width: | Height: | Size: 69 B |
|
After Width: | Height: | Size: 43 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 795 B |
|
After Width: | Height: | Size: 795 B |
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 564 B |
|
After Width: | Height: | Size: 256 B |
|
After Width: | Height: | Size: 251 B |
|
After Width: | Height: | Size: 764 B |
|
After Width: | Height: | Size: 641 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 635 B |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 3.0 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 4.7 KiB |
|
After Width: | Height: | Size: 387 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 126 B |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 70 B |
|
After Width: | Height: | Size: 57 B |
|
After Width: | Height: | Size: 53 B |
|
After Width: | Height: | Size: 496 B |
|
After Width: | Height: | Size: 846 B |
|
After Width: | Height: | Size: 509 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 5.0 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 3.4 KiB |