Improved layout

This commit is contained in:
Devine Lu Linvega 2018-05-19 08:20:34 +12:00
parent 5b01fe303f
commit 3a75ddaf60
2 changed files with 41 additions and 39 deletions

View File

@ -11,41 +11,41 @@
// protocole://url.domain.ext/ // protocole://url.domain.ext/
var sites = [ var sites = [
"https://wiki.xxiivv.com/", "https://wiki.xxiivv.com/",
"http://estevancarlos.com/", , "http://estevancarlos.com/"
"https://electro.pizza/", , "https://electro.pizza/"
"http://xla.wiki/", , "http://xla.wiki/"
"https://monochromatic.co/", , "https://monochromatic.co/"
"https://joshavanier.github.io/", , "https://joshavanier.github.io/"
"http://kaemura.com/", , "http://kaemura.com/"
"https://liamcooke.com/", , "https://liamcooke.com/"
"https://electricgecko.de/", , "https://electricgecko.de/"
"https://wichniow.ski/", , "https://wichniow.ski/"
"https://hraew.autophagy.io/", , "https://hraew.autophagy.io/"
"https://evenunto.net/", , "https://evenunto.net/"
"https://anxl.faith", , "https://anxl.faith"
"https://xvw.github.io", , "https://xvw.github.io"
"https://heracl.es", , "https://heracl.es"
"https://felipecortez.net", , "https://felipecortez.net"
"http://rukial.tk", , "http://rukial.tk"
"http://luminghao.com", , "http://luminghao.com"
"http://silane.io", , "http://silane.io"
"https://theiceshelf.com/", , "https://theiceshelf.com/"
"https://turelio.github.io/", , "https://turelio.github.io/"
"https://spaceshipsin.space/", , "https://spaceshipsin.space/"
"http://log.lectronice.com", , "http://log.lectronice.com"
"https://craze.co.uk", , "https://craze.co.uk"
"https://shaneckel.com", , "https://shaneckel.com"
"https://cblgh.org", , "https://cblgh.org"
"https://ellugar.co", , "https://ellugar.co"
"http://hur.bet", , "http://hur.bet"
"http://chigby.org", , "http://chigby.org"
"https://0101.solar", , "https://0101.solar"
"https://longest.voyage", , "https://longest.voyage"
"https://palomakop.tv/", , "https://palomakop.tv/"
"https://travisshears.com/", , "https://travisshears.com/"
"https://v-os.ca", , "https://v-os.ca"
"http://secretinternet.club/", , "http://secretinternet.club/"
"https://jmandel.xyz" , "https://jmandel.xyz"
// Don't forget the comma! // Don't forget the comma!
] ]
var portal = new Portal(sites); var portal = new Portal(sites);
@ -55,6 +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 list { display:block; columns:3; }
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:pink}
</style> </style>
</body> </body>
</html> </html>

View File

@ -20,11 +20,9 @@ function Portal(sites)
for(id in this.sites){ for(id in this.sites){
var site = this.sites[id] var site = this.sites[id]
html += `${id}) <a href='${site}'>${site}</a>\n` html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
} }
html += `\n<a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a>` return `<list>${html}</list>\n<a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a></ln>`
return html
} }
this.reload = function() this.reload = function()