home updates

This commit is contained in:
zefie
2024-10-16 10:13:35 -04:00
parent e068195f45
commit 00fb08cc49
2 changed files with 18 additions and 6 deletions

View File

@@ -112,8 +112,9 @@ function gTC(type,itm){
case 'v':return vclr case 'v':return vclr
} }
} }
function headr(msg,fs,bgm,lp,nl){ function headr(msg,fs,bgm,lp,nl,logo){
th=gV(0) th=gV(0)
if(!logo){logo=rch+'WebTVLogoJewel.gif'}
out='' out=''
switch(fs){ switch(fs){
case 'small':fsn=7 case 'small':fsn=7
@@ -152,7 +153,7 @@ function headr(msg,fs,bgm,lp,nl){
out+=tab(); out+=tab();
out+='<spacer type=block width=11 height=11><br><spacer type=block width=10 height=1>' out+='<spacer type=block width=11 height=11><br><spacer type=block width=10 height=1>'
if(!nl){out+='<a href="javascript:goHTV()">'} if(!nl){out+='<a href="javascript:goHTV()">'}
out+='<img src='+rch+'WebTVLogoJewel.gif width=90 height=69>' out+='<img src='+logo+' width=90 height=69>'
if(!nl){out+='</a>'} if(!nl){out+='</a>'}
out+=tab(msg); out+=tab(msg);
out+='</td></tr></table>' out+='</td></tr></table>'

View File

@@ -56,7 +56,7 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s
<td width=100% height=80 valign=top align=left background=/ROMCache/Themes/Images/ShadowLogoMB.gif> <td width=100% height=80 valign=top align=left background=/ROMCache/Themes/Images/ShadowLogoMB.gif>
<spacer type=block width=11 height=11><br> <spacer type=block width=11 height=11><br>
<spacer type=block width=10 height=1> <spacer type=block width=10 height=1>
<img src=file://ROMCache/WebTVLogoJewel.gif width=90 height=69> <img src=${minisrv_config.config.service_logo} width=90 height=69>
<td width=100% height=80 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif> <td width=100% height=80 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif>
<td abswidth=460 height=54 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif align=right> <td abswidth=460 height=54 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif align=right>
<spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>MiniBrowser Home &nbsp; </font></blackface></shadow></b> <spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>MiniBrowser Home &nbsp; </font></blackface></shadow></b>
@@ -89,7 +89,7 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s
title = `Home for ${session_data.getSessionData("subscriber_username") || "minisrv"}` title = `Home for ${session_data.getSessionData("subscriber_username") || "minisrv"}`
data = `<html><head>`; data = `<html><head>`;
if (hasJS) { if (hasJS) {
data += `<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script></head><script>head('${title}','','','',1)</script>` data += `<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script></head><script>head('${title}','','','',1,'${minisrv_config.config.service_logo}')</script>`
} else { } else {
data += `<body background=/ROMCache/Themes/Images/Pattern.gif text=42bd52 bgcolor=191919 vlink=dddddd link=dddddd hspace=0 vspace=0 fontsize=medium> data += `<body background=/ROMCache/Themes/Images/Pattern.gif text=42bd52 bgcolor=191919 vlink=dddddd link=dddddd hspace=0 vspace=0 fontsize=medium>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
@@ -97,7 +97,7 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s
<td width=100% height=80 valign=top align=left> <td width=100% height=80 valign=top align=left>
<spacer type=block width=11 height=11><br> <spacer type=block width=11 height=11><br>
<spacer type=block width=10 height=1> <spacer type=block width=10 height=1>
<img src=/ROMCache/WebTVLogoJewel.gif width=90 height=69> <img src=${minisrv_config.config.service_logo} width=90 height=69>
<td width=100% height=80 valign=top> <td width=100% height=80 valign=top>
<td abswidth=460 height=54 valign=top align=right> <td abswidth=460 height=54 valign=top align=right>
<spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>${title} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font></blackface></shadow></b> <spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>${title} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </font></blackface></shadow></b>
@@ -116,7 +116,17 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s
<a href="wtv-guide:/help?topic=Index&subtopic=Glossary" align="center"><b>Help</b></a> <a href="wtv-guide:/help?topic=Index&subtopic=Glossary" align="center"><b>Help</b></a>
</center> </center>
<hr> <hr>
<form action="wtv-tricks:/access">
<spacer type=block width="34">`
if (hasJS) {
data += `<script>document.write('<input type="text" name="url" width=440 autoexecute bgcolor='+gTC("bg")+' text='+gTC("t")+' cursor='+gTC("t")+' value="wtv-tricks:/tricks">')</script>`;
} else {
data += `<input type="text" name="url" width=440 bgcolor=191919 text=42bd52 cursor=42bd52 autoexecute value="wtv-tricks:/tricks">`;
}
data += `
<input type="submit" value="Go">
</form>
<hr>
<table> <table>
<tr> <tr>
@@ -222,6 +232,7 @@ This server is operated by ${minisrv_config.config.service_owner}.<br>
<tr><td absheight="6"></td></tr> <tr><td absheight="6"></td></tr>
<tr> <tr>
<td valign="top" colspan=4> <td valign="top" colspan=4>
&#149;&nbsp; Redesigned home page, uses custom rom theme system.<br>
&#149;&nbsp; Added Protoweb Support (<a href="proto://www.webtv.net/">Try it!</a>)<br> &#149;&nbsp; Added Protoweb Support (<a href="proto://www.webtv.net/">Try it!</a>)<br>
&#149;&nbsp; Added a <a href="wtv-tricks:/charmap">WebTV Character Map</a><br> &#149;&nbsp; Added a <a href="wtv-tricks:/charmap">WebTV Character Map</a><br>
&#149;&nbsp; Redesigned homepage based on MattMan69's HackTV<br> &#149;&nbsp; Redesigned homepage based on MattMan69's HackTV<br>