mirror of
https://github.com/ilyakooo0/webring.git
synced 2024-11-22 13:35:24 +03:00
Improved layout
This commit is contained in:
parent
3a75ddaf60
commit
467d435393
@ -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>
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user