@@ -31,6 +31,13 @@ function Portal(sites)
32 setTimeout(()=>{ window.location.reload() },500)
32 setTimeout(()=>{ window.location.reload() },500)
35+ this.navigate = function(target)
38+ window.location.href = target
35 this.location = function()
42 this.location = function()
@@ -63,12 +70,14 @@ function Portal(sites)
64 var location = this.locate();
71 var location = this.locate();
65 var target = this.next(location);
72 var target = this.next(location);
73+ this.navigate(target)
67 var html = ""
75 var html = ""
69 html = `Redirecting to ${target}
77 html = `Redirecting to ${target}
70− <meta http-equiv="refresh" content="3; url=${target}">
78+<meta http-equiv="refresh" content="3; url=${target}">
71−<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>`
79+<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>
72 return html
81 return html