testing new homepage

This commit is contained in:
zefie
2024-10-08 09:58:14 -04:00
parent 28a45e408f
commit c54983f70f
4 changed files with 185 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ function gTC(type,itm){
tclr='cbcbcb'
vclr='dddddd'
lclr='dddddd'
if(!itm){itm=th}
if(!itm&&itm!=0){itm=th}
switch(itm){
case 1://dark
bgclr='191919'
@@ -236,7 +236,7 @@ function redir(){
if(r==htm+'Themes.html'||r==htm+'PhoneCallWaitThresh.html'||r==htm+'BGM.html'||r==htm+'NVRAM.html'||r.indexOf('wtv-')==0){go(r)}
}
function goHTV(){return go(htm+'HackTV.html')}
function goHTV(){return go('wtv-home:/home')}
function gsa(m,i,b1t,b1a,b2t,b2a){go(csa(m,i,b1t,b1a,b2t,b2a))}
function head(msg,fs,bgm,lp,nl){d.write(headr(msg,fs,bgm,lp,nl))}
function dhh(tit) {if(tit==1){head('Partition Map','','','',true)}}

View File

@@ -47,7 +47,7 @@ var supportZefieAlert = new clientShowAlert({
if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.ssid].get("wtv-need-upgrade")) {
data =`<html>
data = `<html>
<head>
<title>MiniBrowser Home</title>
<body background=/ROMCache/Themes/Images/Pattern.gif text=cbcbcb bgcolor=6e5b85 vlink=dddddd link=dddddd hspace=0 vspace=0 fontsize=medium>
@@ -85,7 +85,159 @@ data =`<html>
</form>
`
} else {
data =`<html>
hasJS = session_data.hasCap("client-can-do-javascript");
title = `Home for ${session_data.getSessionData("subscriber_username") || "minisrv"}`
data = `<html><head>`;
if (hasJS) {
data += `<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script></head><script>head('${title}','','','',1)</script>`
} else {
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>
<tr><td>
<td width=100% height=80 valign=top align=left>
<spacer type=block width=11 height=11><br>
<spacer type=block width=10 height=1>
<img src=/ROMCache/WebTVLogoJewel.gif width=90 height=69>
<td width=100% height=80 valign=top>
<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>
</td></tr></table>`;
}
data += `<display nooptions>
<hr>
<center>
<a href="wtv-mail:/listmail" align="center"><b>Mail</b></a> -
<a href="wtv-favorite:/favorite" align="center"><b>Favorites</b></a> -
<a href="wtv-setup:/sound" align="center"><b>Music</b></a> -
<a href="http://frogfind.com" align="center"><b>Search</b></a> -
<a href="wtv-flashrom:/willie" align="center"><b>ROMs</b></a> -
<a href="wtv-setup:/setup" align="center"><b>Settings</b></a> -
<a href="wtv-guide:/help?topic=Index&subtopic=Glossary" align="center"><b>Help</b></a>
</center>
<hr>
<table>
<tr>
<td valign="top" width="135">
<table><tr>
<td><b>&#187; Community &#171;</b></td>
</tr><tr>
<td><a href="wtv-chat:/home" height="18" valign="middle">&#128;&nbsp;Chat</a></td>
</tr><tr>
<td><a href="wtv-news:/lobby" height="18" valign="middle">&#128;&nbsp;Discuss</a></td>
</tr><tr>
<td><a href="wtv-setup:/messenger" height="21" valign="middle">&#128;&nbsp;Messenger</a></td>
</tr></table>
</td>
<td valign="top" width="120">
<table><tr>
<td><b>&#187; Account &#171;</b></td>
</tr><tr>
<td><a href="client:relogin" height="21" valign="middle">&#128;&nbsp;Relogin</a></td>
</tr><tr>
<td><a href="wtv-setup:/serve-billing-overview" height="21" valign="middle">&#128;&nbsp;Configure</a></td>
</tr><tr>
<td><a href="wtv-setup:/edit-password" height="21" valign="middle">&#128;&nbsp;Password</a></td>
</tr><tr>
<td><a href="wtv-setup:/accounts" height="21" valign="middle">&#128;&nbsp;Add User</a></td>
</tr><tr>
<td>
`;
if (session_data.getSessionData("registered")) data += `<a href="wtv-tricks:/unregister" height="21" valign="middle">&#128;&nbsp;Unregister`;
else data += `<a href="wtv-tricks:/register" height="21" valign="middle">&#128;&nbsp;Register`
data += `
</a></td>
</tr></table>
</td>
<td valign="top" width="120">
<table><tr>
<td><b>&#187; Tools &#171;</b></td>
</tr><tr>
<td><a href="wtv-tricks:/tricks">&#128;&nbsp;WTV Tricks</a></td>
</tr><tr>
<td><a href="wtv-tricks:/themes">&#128;&nbsp;Themes</a><td>
</tr><tr>
<td><a href="wtv-author:/documents">&#128;&nbsp;Pagebuilder</a></td>
</tr><tr>
<td><a href="wtv-tricks:/blastbacklist?return_to=wtv-home:/home">&#128;&nbsp;Clear Cache</a></td>
</tr></table>
</td>
<td valign="top">
<table><tr>
<td><b>&#187; More Stuff &#171;</b></td>
</tr><tr>
<td><a href="wtv-tricks:/cSetup">&#128;&nbsp;Switch server</a></td>
</tr><tr>
<td><a href="${ownMinisrv}">&#128;&nbsp;Run your own server</a></td>
</tr><tr>
<td><a href="http://archive.midnightchannel.net/zefie/media/">&#128;&nbsp;Midnight Archives</a></td>
</tr><tr>
<td><a href="${supportZefieAlert}">&#128;&nbsp;Help zefie</a></td>
</tr></table>
</td>
</tr>
</table>
<table>
<tr>
<td align="left" colspan=4>
<table border=0 cellspacing=0 cellpadding=0 width="100%">
<tr>`
if (hasJS) {
data += `<script>document.write('<td colspan=2 background="'+thi+gTC('shimg')+'" text="'+gTC('bg')+'" valign=middle absheight=24>')</script>`
} else {
data += `<td colspan=2 background="/ROMCache/Themes/Images/Pattern.gif" text=42bd52 valign="middle" absheight="24">`
}
data += `
<spacer type=block height=3 width=100%><b><shadow>&nbsp;&#128; Welcome to zefie's minisrv ${minisrv_version_string.split(" ")[3]}</shadow></b>
</td></tr>
<tr><td absheight="6"></tr>
<tr>
<td valign="top" colspan=3>
This server is operated by ${minisrv_config.config.service_owner}.<br>
`;
if (minisrv_config.config.service_description) {
if (typeof minisrv_config.config.service_description === "string") {
if (minisrv_config.config.service_description.length > 0) {
data += minisrv_config.config.service_description;
}
}
}
data += `
<p></p>
</tr>
<tr>`
if (hasJS) {
data += `<script>document.write('<td colspan=2 background="'+thi+gTC('shimg')+'" text="'+gTC('bg')+'" valign=middle absheight=24>')</script>`
} else {
data += `<td colspan=2 background="/ROMCache/Themes/Images/Pattern.gif" text=42bd52 valign="middle" absheight="24">`
}
data += `
<spacer type=block height=3 width=100%><b><shadow>&nbsp;&#128; minisrv Latest Updates</b></shadow>
<tr><td absheight="6"></td></tr>
<tr>
<td valign="top" colspan=4>
&#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; Redesigned homepage based on MattMan69's HackTV<br>
&#149;&nbsp; Added a new minisrv logo<br>
</td></tr>
</table>
</table>
</body>
</html>`
}
/*
data =`
<html>
<head>
<display hspace=0 vspace=0 fontsize=small noscroll showwhencomplete>
<title>
@@ -347,3 +499,4 @@ data += `
`
}
data += "</body>\n</html>";
*/

View File

@@ -0,0 +1,7 @@
var minisrv_service_file = true;
headers = `302 Moved
Connection: Keep-Alive
wtv-expire-all: wtv-tricks:/themes
Location: wtv-tricks:/themes
Content-Type: text/html`

View File

@@ -0,0 +1,20 @@
<html><head><display nooptions noscroll allowoffline notvaudio switchtowebmode noreconnectalert nosave nosend>
<script src=/ROMCache/h.js></script><script src=/ROMCache/n.js></script></head>
<script>head('Theme Settings','large','',5)
function sBG(c){sB(0,c)}</script>
<spacer width=30 height=6 type=vertical>
<table cellspacing=0 cellpadding=0><tr><td abswidth=14><td colspan=3><spacer height=20 type=vertical><td>
<tr><td><td width=350 height=230 valign=top align=left>
<table cellspacing=0 cellpadding=0><tr><td height=250 valign=top>
<font size=-1> Please select the theme you would like to use from the list below. Click done when finished.<br>
<table cellspacing=0 cellpadding=4><tr><font size=-2><script>
for(i=0;i<z_th.length;i++){
if(i==th){s=' selected'}
else{s=''}
if(i%6==0){d.write('<tr>')}
d.write('<td align=center><font size=-1>'+gTN(i)+'</font><br>')
d.write('<table border=1 href="javascript:sBG('+i+')" insetselection'+s+'><tr><td bgcolor='+gTC('bg',i)+' height=45 width=60></table>')
}</script></table>
</table>
<tr><td width=330 valign=top align=right colspan=2><br><form action="javascript:goHTV()"><script>butt('Done','Done',160);</script></form>
</table></body></html>