on master help sign in
Improved layout
467d435Devine Lu Linvega
index.html+2−2
@@ -55,10 +55,10 @@
55 body { background:#eee; padding:30px; }
55 body { background:#eee; padding:30px; }
56 body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px}
56 body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px}
57 body a:hover { color:#eee; background:#000; text-decoration: none; }
57 body a:hover { color:#eee; background:#000; text-decoration: none; }
58+ body p { display:block; padding:0px 5px}
58 body list { display:block; columns:3; }
59 body list { display:block; columns:3; }
59 body list ln { display:block; padding-left:5px}
60 body list ln { display:block; padding-left:5px}
60− body list ln a:active { color:#pink; background:black}
61− body list ln a:visited { color:#000; background:pink}
61+ body list ln a:visited { color:#000; background:white}
62 </style>
62 </style>
63</body>
63</body>
64</html>
64</html>
portal.js+2−5
@@ -18,7 +18,7 @@ function Portal(sites)
18 {
18 {
19 var html = ""
19 var html = ""
20
20
21− for(id in this.sites){
21+ for(var id in this.sites){
22 var site = this.sites[id]
22 var site = this.sites[id]
23 html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
23 html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
24 }
24 }
@@ -72,10 +72,7 @@ function Portal(sites)
72
72
73 var html = ""
73 var html = ""
74
74
75− html = `Redirecting to ${target}
76−<meta http-equiv="refresh" content="3; url=${target}">
77−<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>
75+ html = `<p>Redirecting to ${target}</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>`
78−`
79 return html
76 return html
80 }
77 }
81}
78}