testing new homepage
This commit is contained in:
@@ -27,7 +27,7 @@ function gTC(type,itm){
|
|||||||
tclr='cbcbcb'
|
tclr='cbcbcb'
|
||||||
vclr='dddddd'
|
vclr='dddddd'
|
||||||
lclr='dddddd'
|
lclr='dddddd'
|
||||||
if(!itm){itm=th}
|
if(!itm&&itm!=0){itm=th}
|
||||||
switch(itm){
|
switch(itm){
|
||||||
case 1://dark
|
case 1://dark
|
||||||
bgclr='191919'
|
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)}
|
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 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 head(msg,fs,bgm,lp,nl){d.write(headr(msg,fs,bgm,lp,nl))}
|
||||||
function dhh(tit) {if(tit==1){head('Partition Map','','','',true)}}
|
function dhh(tit) {if(tit==1){head('Partition Map','','','',true)}}
|
||||||
|
|||||||
@@ -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")) {
|
if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.ssid].get("wtv-need-upgrade")) {
|
||||||
data =`<html>
|
data = `<html>
|
||||||
<head>
|
<head>
|
||||||
<title>MiniBrowser Home</title>
|
<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>
|
<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>
|
</form>
|
||||||
`
|
`
|
||||||
} else {
|
} 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} </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>» Community «</b></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-chat:/home" height="18" valign="middle">€ Chat</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-news:/lobby" height="18" valign="middle">€ Discuss</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-setup:/messenger" height="21" valign="middle">€ Messenger</a></td>
|
||||||
|
</tr></table>
|
||||||
|
</td>
|
||||||
|
<td valign="top" width="120">
|
||||||
|
<table><tr>
|
||||||
|
<td><b>» Account «</b></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="client:relogin" height="21" valign="middle">€ Relogin</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-setup:/serve-billing-overview" height="21" valign="middle">€ Configure</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-setup:/edit-password" height="21" valign="middle">€ Password</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-setup:/accounts" height="21" valign="middle">€ Add User</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td>
|
||||||
|
`;
|
||||||
|
if (session_data.getSessionData("registered")) data += `<a href="wtv-tricks:/unregister" height="21" valign="middle">€ Unregister`;
|
||||||
|
else data += `<a href="wtv-tricks:/register" height="21" valign="middle">€ Register`
|
||||||
|
data += `
|
||||||
|
</a></td>
|
||||||
|
</tr></table>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td valign="top" width="120">
|
||||||
|
<table><tr>
|
||||||
|
<td><b>» Tools «</b></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-tricks:/tricks">€ WTV Tricks</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-tricks:/themes">€ Themes</a><td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-author:/documents">€ Pagebuilder</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-tricks:/blastbacklist?return_to=wtv-home:/home">€ Clear Cache</a></td>
|
||||||
|
</tr></table>
|
||||||
|
</td>
|
||||||
|
|
||||||
|
<td valign="top">
|
||||||
|
<table><tr>
|
||||||
|
<td><b>» More Stuff «</b></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="wtv-tricks:/cSetup">€ Switch server</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="${ownMinisrv}">€ Run your own server</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="http://archive.midnightchannel.net/zefie/media/">€ Midnight Archives</a></td>
|
||||||
|
</tr><tr>
|
||||||
|
<td><a href="${supportZefieAlert}">€ 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> € 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> € minisrv Latest Updates</b></shadow>
|
||||||
|
<tr><td absheight="6"></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td valign="top" colspan=4>
|
||||||
|
• Added Protoweb Support (<a href="proto://www.webtv.net/">Try it!</a>)<br>
|
||||||
|
• Added a <a href="wtv-tricks:/charmap">WebTV Character Map</a><br>
|
||||||
|
• Redesigned homepage based on MattMan69's HackTV<br>
|
||||||
|
• Added a new minisrv logo<br>
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>`
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
data =`
|
||||||
|
|
||||||
|
|
||||||
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<display hspace=0 vspace=0 fontsize=small noscroll showwhencomplete>
|
<display hspace=0 vspace=0 fontsize=small noscroll showwhencomplete>
|
||||||
<title>
|
<title>
|
||||||
@@ -347,3 +499,4 @@ data += `
|
|||||||
`
|
`
|
||||||
}
|
}
|
||||||
data += "</body>\n</html>";
|
data += "</body>\n</html>";
|
||||||
|
*/
|
||||||
@@ -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`
|
||||||
@@ -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>
|
||||||
Reference in New Issue
Block a user