diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder1.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder1.bif new file mode 100644 index 00000000..9a1a6687 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder1.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder1.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder10.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder10.bif new file mode 100644 index 00000000..aedcbb09 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder10.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder10.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder11.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder11.bif new file mode 100644 index 00000000..a5342ac1 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder11.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder3.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder2.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder2.bif new file mode 100644 index 00000000..e25f0138 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder2.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder2.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder3.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder3.bif new file mode 100644 index 00000000..a5342ac1 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder3.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder3.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder4.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder4.bif new file mode 100644 index 00000000..027c9ace --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder4.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder4.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder5.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder5.bif new file mode 100644 index 00000000..bd044e99 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder5.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder5.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder6.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder6.bif new file mode 100644 index 00000000..c72d9256 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder6.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder6.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder7.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder7.bif new file mode 100644 index 00000000..ac576bb3 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder7.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder7.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder8.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder8.bif new file mode 100644 index 00000000..75642b33 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder8.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder8.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder9.bif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder9.bif new file mode 100644 index 00000000..8c944fa6 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Borders/ButtonBorder9.bif @@ -0,0 +1,5 @@ +IMAGE /ROMCache/Themes/Images/ButtonBorder9.gif +INNERBOUNDS 22, 14, 35, 22 +PADBOUNDS 14, 9, 16, 6 +DRAWCENTER +SCALEEDGES diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/9xbg.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/9xbg.gif new file mode 100644 index 00000000..3374965b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/9xbg.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/BannerSM.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/BannerSM.jpg new file mode 100644 index 00000000..29fd83c4 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/BannerSM.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder10.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder10.gif new file mode 100644 index 00000000..5340fc65 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder10.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder2.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder2.gif new file mode 100644 index 00000000..9929e1c3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder2.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder3.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder3.gif new file mode 100644 index 00000000..e872b3b3 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder3.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder4.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder4.gif new file mode 100644 index 00000000..8216a67c Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder4.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder5.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder5.gif new file mode 100644 index 00000000..98872413 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder5.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder6.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder6.gif new file mode 100644 index 00000000..85ae371d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder6.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder7.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder7.gif new file mode 100644 index 00000000..e6547e43 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder7.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder8.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder8.gif new file mode 100644 index 00000000..4a659580 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder8.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder9.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder9.gif new file mode 100644 index 00000000..f197d45b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ButtonBorder9.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Paper.jpg b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Paper.jpg new file mode 100644 index 00000000..1d4923e8 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Paper.jpg differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Pattern.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Pattern.gif new file mode 100644 index 00000000..2f003a83 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Pattern.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Shadow.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Shadow.gif new file mode 100644 index 00000000..1f3e660b Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/Shadow.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo.gif new file mode 100644 index 00000000..3067d92d Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo4.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo4.gif new file mode 100644 index 00000000..c29e7bcc Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo4.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo8.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo8.gif new file mode 100644 index 00000000..cb418786 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogo8.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogoMB.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogoMB.gif new file mode 100644 index 00000000..9a3e6ab1 Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/ShadowLogoMB.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/xpbg.gif b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/xpbg.gif new file mode 100644 index 00000000..e34a07af Binary files /dev/null and b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/Themes/Images/xpbg.gif differ diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/h.js b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/h.js new file mode 100644 index 00000000..44090b02 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/h.js @@ -0,0 +1,235 @@ +String.prototype.replace=function(o,n){return this.split(o).join(n)} +d=document +rom='file://rom/' +htm=rom+'HTMLs/' +cch='/ROMCache/' +thm=cch+'Themes/' +thi=thm+'Images/' +thb=thm+'Borders/' + +function clientvers(){d.write('
');return parseInt(d.z2.v.value)} +function go(u){d.open('text/url');d.write(u);d.close();location=u} +function dial(){go('client:redialphone');go('client:logoshown')} +function nbsp(c){nout='';for(i=0;i'} + out+='' + if(bgm){ + if(bgm.indexOf('.')<0){bgm += '.mid'} + if(bgm.indexOf('/')<0){bgm = cch+'Music/' + bgm} + out+='' + } + } + if(!msg){msg=''} + out+='' + if(!nl){out+=''} + out+=tab(msg); + out+='
' + return out; +} +function tab(msg){ + bgimg=gTC(th,'bgimg') + shimg=gTC(th,'shimg') + bgclr=gTC(th,'bg') + gclr=gTC(th,'g') + if(msg){ + msg=msg.replace(' ',' ') + if(!shimg && bgimg=='Pattern.gif'){msg += nbsp(5)} + tout='' + }else{ + tout='' + } + return tout +} +function ta(th,r,s,n,b,c,x,u){ + bgclr=gTC(th,'bg') + tclr=gTC(th,'t') + if(u){x+=' usestyle';d.write('')} + d.write(''); + if(u){d.write('')} +} +function as(th,bg,h,w,g,b,lc,rc,lo,ro,s){ + if(s){ + if(!lc){lc=gTC(th,'t')} + if(!rc){rc=gTC(th,'bg')} + }else{ + if(!lc){lc=gTC(th,'bg')} + if(!rc){rc=gTC(th,'t')} + } + if(th==1){bgclr='333333'} + if(!bg){bg='191919'} + if(!h){h=32} + if(!w){w=320} + if(!g){g=0} + if(!lo){lo=0} + if(!ro){ro=0} + if(!b){b=1} + d.write('') +} +function butt(th,v,n,w,t,x){ + if(th>0&&th!=4&&th!=7&&th!=10){sh=true} + bclr=gTC(th,'b') + bbif=gTC(th,'bbif') + if(sh){d.write('')} + d.write('') + if(!t)t='submit' + d.write('') + if(sh){d.write('')} +} +function sa(m,i,b1t,b1a,b2t,b2a) { + u='client:showalert?message='+escape(m); + if(i)u+='&image='+escape(i); + if(b1t)u+='&buttonlabel1='+escape(b1t); + if(b1t&&!b1a){b1a='client:donothing'} + if(b1a)u+='&buttonaction1='+escape(b1a); + if(b2t)u+='&buttonlabel2='+escape(b2t); + if(b2t&&!b2a){b2a='client:donothing'} + if(b2a)u+='&buttonaction2='+escape(b2a); + return u; +} + +function redir(){ + r=history.previous + 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 gsa(m,i,b1t,b1a,b2t,b2a){go(sa(m,i,b1t,b1a,b2t,b2a))} +function head(th,msg,fs,bgm,lp,nl){d.write(headr(th,msg,fs,bgm,lp,nl))} +function vhead(th){d.write(headr(th,'VFat Hax'))} diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/n.js b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/n.js new file mode 100644 index 00000000..09cc4ff6 --- /dev/null +++ b/zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/n.js @@ -0,0 +1,50 @@ +z_nv=null; +z_th=new Array() + z_th[0]='HackTV Light' + z_th[1]='WebTV Dark' + z_th[2]='Avegee Red' + z_th[3]='Pumpkin Orange' + z_th[4]='WinXP Tan' + z_th[5]='Ryder Green' + z_th[6]='SKCro Blue' + z_th[7]='Win95 Teal' + z_th[8]='zefie Purple' + z_th[9]='MattMan Brown' + z_th[10]='Paper White' + z_th[11]='Halloween Black' + +z_def=new Array() + z_def[0]=0//theme + +chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@-"//64 possible different values +function gTN(th){return z_th[parseInt(th)]} +function gB(nv,off){ + b=nv.charAt(off) + if(b){return chars.indexOf(b)} + else{return -1} +} +function sB(nv,off,dat){ + prefix='' + if(off > 0){prefix=nv.substring(0,off)} + if(off>prefix.length){while(off!=prefix.length){prefix+='.'}} + dat=chars.charAt(parseInt(dat)); + z_url='client:ConfirmBYOISPSetup?BYOISPProviderName='+prefix+dat+nv.substring(off+1) + go(z_url) +} +function gV(nv,off){ + z_len=0 + switch(off){ + case 0:z_len=z_th.length + break + case 1:z_len=z_bgm.length + break + } + z_val=gB(nv,off) + if(z_val<0||z_val>=z_len){return parseInt(z_def[off])} + return parseInt(z_val) +} +function pp(){ + d.write('
') + z_nv=d.z.h.value + return parseInt(gV(z_nv,0))//theme +} \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js index fbd3a967..f876f896 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/home.js @@ -50,14 +50,16 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s data =` MiniBrowser Home - +
- +
- -
MiniBrowser Home   + + + +MiniBrowser Home  
diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/splash.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/splash.js index b5e1d8e7..93536821 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/splash.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-home/splash.js @@ -8,7 +8,7 @@ Content-Type: text/html` data = ` - + Engaging zefie... diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAccountInfo.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAccountInfo.js index 583beb51..d233dadf 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAccountInfo.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAccountInfo.js @@ -5,6 +5,7 @@ if (!request_headers.query.registering) { headers = errpage[0]; data = errpage[1]; } else { + var hasJS = session_data.hasCap("client-can-do-javascript"); const WTVRegister = require(classPath + "/WTVRegister.js") var wtvr = new WTVRegister(minisrv_config, SessionStore); var errpage = null; @@ -25,15 +26,10 @@ if (!request_headers.query.registering) { } else { headers = `200 OK -wtv-noback-all: wtv-register: Content-Type: text/html`; var title = "Account Review"; - var isOldBuild = wtvshared.isOldBuild(session_data); - var main_data = ''; - if (!isOldBuild) main_data += `
-
`; - - main_data += `
+ var main_data = `
+ @@ -42,10 +38,7 @@ Content-Type: text/html`;  
Here is your account information. If you need to
-correct an item, press Back.

`; - if (isOldBuild) main_data += ""; - - main_data += ` +correct an item, press Back.

`; - if (isOldBuild) main_data += '
  NAME
@@ -69,13 +62,18 @@ correct an item, press Back.

`; ${request_headers.query.subscriber_contact_method}

 

 

-
'; - var form_data = ` - - - -`; - data = wtvr.getHTMLTemplate(title, main_data, form_data, isOldBuild); +

`; + + + var form_data = ''; + if (hasJS) { + form_data += ``; + } + else { + form_data += ``; + } + + form_data += ''; + data = wtvr.getHTMLTemplate(title, main_data, form_data, hasJS); } } \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAgreement.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAgreement.js index 23f5934b..d00076fb 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAgreement.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateAgreement.js @@ -5,6 +5,7 @@ if (!request_headers.query.registering) { headers = errpage[0]; data = errpage[1]; } else { + var hasJS = session_data.hasCap("client-can-do-javascript"); const WTVRegister = require(classPath + "/WTVRegister.js") var wtvr = new WTVRegister(minisrv_config); headers = `200 OK @@ -13,32 +14,39 @@ Content-Type: text/html`; ENCTYPE="x-www-form-encoded" METHOD="POST"> Please set up your account:

+ + + + + + + + + + + + +
YOUR NAME: - -

+ +

+ +
DESIRED USERNAME: - -

+ +

+ +
YOUR CONTACT INFO: - -

-CONTACT INFO TYPE: -

CONTACT INFO TYPE: + + -`; - var form_data = ` - - - -`; - data = wtvr.getHTMLTemplate(minisrv_config.config.service_name + " Account Setup", main_data, form_data, wtvshared.isOldBuild(session_data)); +
`; + var form_data = `` + if (hasJS) { + form_data += ``; + } else { + form_data += ``; + } + form_data += ``; + data = wtvr.getHTMLTemplate(minisrv_config.config.service_name + " Account Setup", main_data, form_data, hasJS); } \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateReviewAccountInfo.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateReviewAccountInfo.js index 3eb76532..3390fb29 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateReviewAccountInfo.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/ValidateReviewAccountInfo.js @@ -51,78 +51,37 @@ if (!request_headers.query.registering || data = errpage[1]; } else { + var hasJS = session_data.hasCap("client-can-do-javascript") headers = `200 OK Content-Type: text/html`; - - data = ` - - -Finished signing up - - - - - - - - - -
- - - -
- - - - - -You've finished signing up - -
- -
- - - - - - - -
-
-
+ var title = "Finished signing up"; + var main_data = ` + + + + Thank you for signing up for ${minisrv_config.config.service_name}.

You will now go to your Web Home page. You can always connect to the Internet by choosing -Web Home on your TV Home page. - -

-
- -
-
- - - - - - - - - -
- - -`; +Web Home on your TV Home page.`; + + + var form_data = ''; + if (hasJS) { + form_data += ``; + } + else { + form_data += ``; + } + + form_data += ''; + data = wtvr.getHTMLTemplate(title, main_data, form_data, hasJS); + + headers = `200 OK +Content-Type: text/html`; } } } \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/register.js b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/register.js index 619a52ce..b5c01da5 100644 --- a/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/register.js +++ b/zefie_wtvp_minisrv/includes/ServiceVault/wtv-register/register.js @@ -8,19 +8,26 @@ var wtvr = new WTVRegister(minisrv_config); var namerand = Math.floor(Math.random() * 100000); var nickname = (minisrv_config.config.service_name + '_' + namerand) var human_name = nickname; -var isOldBuild = wtvshared.isOldBuild(session_data); -var form_data = ``; -if (minisrv_config.config.allow_guests) form_data += ``; +var hasJS = session_data.hasCap("client-can-do-javascript"); +if (hasJS) { + var form_data = `'; +} else { + var form_data = ``; + if (minisrv_config.config.allow_guests) form_data += ``; +} var main_data = `
Welcome to the ${minisrv_config.config.service_name} Mini Service, operated by ${minisrv_config.config.service_owner}. The next screens will lead you through a quick setup process for using this service.

Press the "Continue" button below to begin setup.

`; +if (hasJS) { + form_data += ``; +} else { + form_data += ``; +} -form_data += ` - - -

-`; +form_data += ``; -data = wtvr.getHTMLTemplate("Welcome to " + minisrv_config.config.service_name, main_data, form_data, isOldBuild); \ No newline at end of file +data = wtvr.getHTMLTemplate("Welcome to " + minisrv_config.config.service_name, main_data, form_data, hasJS); \ No newline at end of file diff --git a/zefie_wtvp_minisrv/includes/classes/WTVRegister.js b/zefie_wtvp_minisrv/includes/classes/WTVRegister.js index 6b23aa16..00dafc48 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVRegister.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVRegister.js @@ -73,39 +73,28 @@ class WTVRegister { * @param {string} title HTML Page Title * @param {string} main_content Main center content * @param {string} form_buttons Form and buttons - * @param {boolean} is_old_build True or false * @returns {string} HTML Page */ - getHTMLTemplate(title, main_content, form_buttons, is_old_build) { + getHTMLTemplate(title, main_content, form_buttons, hasJS) { var data; - if (is_old_build) { - data = ` - - - ${title} - - - - - - - - -
- - - - - - - - -
- ${title} -
-
-
-
+ data = ``; + if (hasJS) { + data += `` + } else { + data += ` + +
+ +
+ + +
+ +${title}           +
`; + } + data += ` +
@@ -132,64 +121,6 @@ class WTVRegister { `; - } else { - data = ` - - - ${title} - - - - - - - - - -
- - - -
- - - - - -${title} - -
- -
- - - - - - - - -
- -${main_content} - -
- -
-
- - - - -${form_buttons} - -
- -`; - } return data; }