Improved layout

This commit is contained in:
Devine Lu Linvega 2018-05-19 08:31:05 +12:00
parent 3a75ddaf60
commit 467d435393
2 changed files with 4 additions and 7 deletions

View File

@ -55,10 +55,10 @@
body { background:#eee; padding:30px; } body { background:#eee; padding:30px; }
body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px} body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px}
body a:hover { color:#eee; background:#000; text-decoration: none; } body a:hover { color:#eee; background:#000; text-decoration: none; }
body p { display:block; padding:0px 5px}
body list { display:block; columns:3; } body list { display:block; columns:3; }
body list ln { display:block; padding-left:5px} body list ln { display:block; padding-left:5px}
body list ln a:active { color:#pink; background:black} body list ln a:visited { color:#000; background:white}
body list ln a:visited { color:#000; background:pink}
</style> </style>
</body> </body>
</html> </html>

View File

@ -18,7 +18,7 @@ function Portal(sites)
{ {
var html = "" var html = ""
for(id in this.sites){ for(var id in this.sites){
var site = this.sites[id] var site = this.sites[id]
html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>` html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
} }
@ -72,10 +72,7 @@ function Portal(sites)
var html = "" var html = ""
html = `Redirecting to ${target} 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>`
<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>
`
return html return html
} }
} }