on master help sign in
How do you website
d383aadDevine Lu Linvega
portal.js+2−2
@@ -11,7 +11,7 @@ function Portal(sites)
11 this.start = function()
11 this.start = function()
12 {
12 {
13 this.install();
13 this.install();
14− this.el.innerHTML = window.location.hash ? this.redirect() : this.directory();
14+ this.el.innerHTML = window.location.hash && window.location.hash.length > 4 ? this.redirect() : this.directory();
15 }
15 }
16
16
17 this.directory = function()
17 this.directory = function()
@@ -69,6 +69,6 @@ function Portal(sites)
69 var location = this.locate();
69 var location = this.locate();
70 var target = this.next(location);
70 var target = this.next(location);
71 this.navigate(target)
71 this.navigate(target)
72− return `<p>Redirecting to <b>${target}</b></p><meta http-equiv="refresh" content="3; url=${target}"><a href='#' onClick="window.location.reload()">Directory</a> | <a href='#${target}' onClick="portal.reload('random')">Skip</a> | <a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a> <a id='icon' href='#random' onClick="portal.reload('random')"></a>`
72+ return `<p>Redirecting to <b>${target}</b></p><meta http-equiv="refresh" content="3; url=${target}"><a href='#' onClick="portal.reload('')">Directory</a> | <a href='#${target}' onClick="portal.reload('random')">Skip</a> | <a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a> <a id='icon' href='#random' onClick="portal.reload('random')"></a>`
73 }
73 }
74}
74}