on master help sign in
Improved layout
commit467d4353936f23ce8f2efb405e755a2ef9be553a authorDevine Lu Linvega <aliceffekt@gmail.com> dateSat 19 May 2018, 08:31 (8 years ago) parent3a75dda
2 files changed+4−7
index.html+2−2 portal.js+2−5
index.html+2−2
@@ -55,10 +55,10 @@
5555 body { background:#eee; padding:30px; }
5656 body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px}
5757 body a:hover { color:#eee; background:#000; text-decoration: none; }
58+ body p { display:block; padding:0px 5px}
5859 body list { display:block; columns:3; }
5960 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}
6262 </style>
6363</body>
6464</html>
portal.js+2−5
@@ -18,7 +18,7 @@ function Portal(sites)
1818 {
1919 var html = ""
2020
21− for(id in this.sites){
21+ for(var id in this.sites){
2222 var site = this.sites[id]
2323 html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
2424 }
@@ -72,10 +72,7 @@ function Portal(sites)
7272
7373 var html = ""
7474
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>
78−`
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>`
7976 return html
8077 }
8178}