Skip to content

Commit 1a8ee83

Browse files
committed
update for newer perl and better home page
gstp.htm is hash randomization inside uglifyjs
1 parent 6e04153 commit 1a8ee83

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

docs/gstp.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<meta content=0 name=mobileoptimized>No javascript<script>function e(e){var t;if(0==e.message.errorCode){var n,a=(new Date).toTimeString().split(" ");for(a.splice(1,1),t="MTA Time "+e.lastUpdatedTime+"<br>Page Time "+a.join(" ")+"<br>Cur Sta: "+e.stationName+"<br>",e.direction1.name,a=e.direction1.times,n=0;n<a.length;n++)t+="Min "+a[n].minutes+"-"+a[n].route+"-"+a[n].lastStation+"<br>";for(t+=e.direction2.name+"<br>",a=e.direction2.times,n=0;n<a.length;n++)t+="Min "+a[n].minutes+"-"+a[n].route+"-"+a[n].lastStation+"<br>"}else t="Failed: errorCode: "+e.message.errorCode+" Message: "+e.message.message;document.body.innerHTML+=t}function t(e){document.body.innerHTML=s;try{r=0,a.open("GET",i+"?_="+(new Date).getTime(),1),a.onreadystatechange=n,e&&a.setRequestHeader("If-Modified-Since",new Date(0)),a.send()}catch(e){r=1;var t=document.createElement("script");t.setAttribute("src",i+"?callback=e&_="+(new Date).getTime());var o=document.getElementsByTagName("head")[0];o.childNodes.length>1&&o.removeChild(o.childNodes[1]),o.appendChild(t)}}function n(n){4==a.readyState&&(200==a.status?"withCredentials"in a||a.getResponseHeader("Date")?e(eval("0,"+a.responseText)):t(1):alert("error HTTP status "+a.status))}var a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),r,i,s=location.hash;""!=s&&"#"!=s&&(i="http://TrainTimeLB-367443097.us-east-1.elb.amazonaws.com/getTime/"+s.substring(1),s='<a href="gstp.htm?'+(new Date).getTime()+s+'">Refresh</a> <a href="'+i+'">Raw</a><br>'),i?t():document.body.innerHTML="No station specified in url anchor."</script>
1+
<meta content=0 name=mobileoptimized>No javascript<script>function e(e){var t;if(0==e.message.errorCode){var n,a=(new Date).toTimeString().split(" ");for(a.splice(1,1),t="MTA Time "+e.lastUpdatedTime+"<br>Page Time "+a.join(" ")+"<br>Cur Sta: "+e.stationName+"<br>",e.direction1.name,a=e.direction1.times,n=0;n<a.length;n++)t+="Min "+a[n].minutes+"-"+a[n].route+"-"+a[n].lastStation+"<br>";for(t+=e.direction2.name+"<br>",a=e.direction2.times,n=0;n<a.length;n++)t+="Min "+a[n].minutes+"-"+a[n].route+"-"+a[n].lastStation+"<br>"}else t="Failed: errorCode: "+e.message.errorCode+" Message: "+e.message.message;document.body.innerHTML+=t}function t(e){document.body.innerHTML=s;try{i=0,a.open("GET",r+"?_="+(new Date).getTime(),1),a.onreadystatechange=n,e&&a.setRequestHeader("If-Modified-Since",new Date(0)),a.send()}catch(e){i=1;var t=document.createElement("script");t.setAttribute("src",r+"?callback=e&_="+(new Date).getTime());var o=document.getElementsByTagName("head")[0];o.childNodes.length>1&&o.removeChild(o.childNodes[1]),o.appendChild(t)}}function n(n){4==a.readyState&&(200==a.status?"withCredentials"in a||a.getResponseHeader("Date")?e(eval("0,"+a.responseText)):t(1):alert("error HTTP status "+a.status))}var a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),i,r,s=location.hash;""!=s&&"#"!=s&&(r="http://TrainTimeLB-367443097.us-east-1.elb.amazonaws.com/getTime/"+s.substring(1),s='<a href="gstp.htm?'+(new Date).getTime()+s+'">Refresh</a> <a href="'+r+'">Raw</a><br>'),r?t():document.body.innerHTML="No station specified in url anchor."</script>

docs/index.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<meta content=0 name=mobileoptimized>Do you have a<br>[1]<a accesskey=1 href=stations.htm>Smart Phone (Subway)</a><br>[2]<a accesskey=2 href=mn/stations.htm>Smart Phone (Metro North)</a><br>[3]<a accesskey=3 href=li/stations.htm>Smart Phone (Long Island)</a><br>[4]<a accesskey=4 href=gwl/rt.htm>Dumb Phone (Subway)</a><br>[5]<a accesskey=5 href=mn/rt.htm>Dumb Phone (Metro North)</a><br>[6]<a accesskey=6 href=li/gwl/rt.htm>Dumb Phone (Long Island)</a><br>?<br>[7]<a accesskey=7 href=README.html>About</a>
1+
<meta content=0 name=mobileoptimized>Do you have a<br>[1]<a accesskey=1 href=stations.htm>Smart Phone (Subway)</a><br>[2]<a accesskey=2 href=mn/stations.htm>Smart Phone (Metro North)</a><br>[3]<a accesskey=3 href=li/stations.htm>Smart Phone (Long Island)</a><br>[4]<a accesskey=4 href=gwl/rt.htm>Dumb Phone (Subway)</a><br>[5]<a accesskey=5 href=mn/rt.htm>Dumb Phone (Metro North)</a><br>[6]<a accesskey=6 href=li/gwl/rt.htm>Dumb Phone (Long Island)</a><br>[7]<a accesskey=7 href=http://tripplanner.mta.info/MyTrip/ui_phone/cp/idefault.aspx>Trip Planner Lite</a><br>[8]<a accesskey=8 href=http://service.mta.info/ServiceStatus/status.html>Service Changes Lite</a><br>[9]<a accesskey=9 href=README.html>About</a>

index.htm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
[3]<a accesskey=3 href=li/stations.htm>Smart Phone (Long Island)</a><br>
66
[4]<a accesskey=4 href=gwl/rt.htm>Dumb Phone (Subway)</a><br>
77
[5]<a accesskey=5 href=mn/rt.htm>Dumb Phone (Metro North)</a><br>
8-
[6]<a accesskey=6 href=li/gwl/rt.htm>Dumb Phone (Long Island)</a><br>?<br>
9-
[7]<a accesskey=7 href=README.html>About</a>
8+
[6]<a accesskey=6 href=li/gwl/rt.htm>Dumb Phone (Long Island)</a><br>
9+
[7]<a accesskey=7 href=http://tripplanner.mta.info/MyTrip/ui_phone/cp/idefault.aspx>Trip Planner Lite</a><br>
10+
[8]<a accesskey=8 href=http://service.mta.info/ServiceStatus/status.html>Service Changes Lite</a><br>
11+
[9]<a accesskey=9 href=README.html>About</a>
1012
</body></html>

mnr/gr3.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
die "1st arg must be generate desktop MTA site stations or mobilized MTA site stations " if ! defined $ARGV[0];
2323
my $mob = $ARGV[0];
2424
our $VAR1;
25-
do 'routedatafinal.pl';
25+
do '.\routedatafinal.pl';
2626
my @lineshtml;
2727
my @linesboroughhtml;
2828
my @linestopshtml;

mnr/grmp.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#nodejs processes instead of a million system() calls
2828
my $minifyhtml = !$ENV{DISABLEMINI};
2929
our $VAR1;
30-
do 'routedatafinal.pl';
30+
do '.\routedatafinal.pl';
3131
my @lineshtml;
3232
my %rtdispname = getRouteDisplayNames('route_long_name');
3333

sub/gr3.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
die "1st arg must be generate JS stations or no-JS" if ! defined $ARGV[0];
1515
my $js = $ARGV[0];
1616
our $VAR1;
17-
do 'routedatafinal.pl';
17+
do '.\routedatafinal.pl';
1818
my @lineshtml;
1919
my @linesboroughhtml;
2020
my @linestopshtml;

sub/grmp.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#nodejs processes instead of a million system() calls
2626
my $minifyhtml = !$ENV{DISABLEMINI};
2727
our $VAR1;
28-
do 'routedatafinal.pl';
28+
do '.\routedatafinal.pl';
2929
my @lineshtml;
3030
my %rtdispname = getRouteDisplayNames('route_id');
3131

0 commit comments

Comments
 (0)