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/
var sites = [
"https://wiki.xxiivv.com/",
"http://estevancarlos.com/",
"https://electro.pizza/",
"http://xla.wiki/",
"https://monochromatic.co/",
"https://joshavanier.github.io/",
"http://kaemura.com/",
"https://liamcooke.com/",
"https://electricgecko.de/",
"https://wichniow.ski/",
"https://hraew.autophagy.io/",
"https://evenunto.net/",
"https://anxl.faith",
"https://xvw.github.io",
"https://heracl.es",
"https://felipecortez.net",
"http://rukial.tk",
"http://luminghao.com",
"http://silane.io",
"https://theiceshelf.com/",
"https://turelio.github.io/",
"https://spaceshipsin.space/",
"http://log.lectronice.com",
"https://craze.co.uk",
"https://shaneckel.com",
"https://cblgh.org",
"https://ellugar.co",
"http://hur.bet",
"http://chigby.org",
"https://0101.solar",
"https://longest.voyage",
"https://palomakop.tv/",
"https://travisshears.com/",
"https://v-os.ca",
"http://secretinternet.club/",
"https://jmandel.xyz"
, "http://estevancarlos.com/"
, "https://electro.pizza/"
, "http://xla.wiki/"
, "https://monochromatic.co/"
, "https://joshavanier.github.io/"
, "http://kaemura.com/"
, "https://liamcooke.com/"
, "https://electricgecko.de/"
, "https://wichniow.ski/"
, "https://hraew.autophagy.io/"
, "https://evenunto.net/"
, "https://anxl.faith"
, "https://xvw.github.io"
, "https://heracl.es"
, "https://felipecortez.net"
, "http://rukial.tk"
, "http://luminghao.com"
, "http://silane.io"
, "https://theiceshelf.com/"
, "https://turelio.github.io/"
, "https://spaceshipsin.space/"
, "http://log.lectronice.com"
, "https://craze.co.uk"
, "https://shaneckel.com"
, "https://cblgh.org"
, "https://ellugar.co"
, "http://hur.bet"
, "http://chigby.org"
, "https://0101.solar"
, "https://longest.voyage"
, "https://palomakop.tv/"
, "https://travisshears.com/"
, "https://v-os.ca"
, "http://secretinternet.club/"
, "https://jmandel.xyz"
// Don't forget the comma!
]
var portal = new Portal(sites);
@ -55,6 +55,10 @@
body { background:#eee; padding:30px; }
body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px}
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>
</body>
</html>

View File

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