on master help sign in
Improved layout
commit3a75ddaf60ff22c567a4d84e958e912dcd1fe343 authorDevine Lu Linvega <aliceffekt@gmail.com> dateSat 19 May 2018, 08:20 (8 years ago) parent5b01fe3
2 files changed+41−39
index.html+39−35 portal.js+2−4
index.html+39−35
@@ -11,41 +11,41 @@
1111 // protocole://url.domain.ext/
1212 var sites = [
1313 "https://wiki.xxiivv.com/",
14− "http://estevancarlos.com/",
15− "https://electro.pizza/",
16− "http://xla.wiki/",
17− "https://monochromatic.co/",
18− "https://joshavanier.github.io/",
19− "http://kaemura.com/",
20− "https://liamcooke.com/",
21− "https://electricgecko.de/",
22− "https://wichniow.ski/",
23− "https://hraew.autophagy.io/",
24− "https://evenunto.net/",
25− "https://anxl.faith",
26− "https://xvw.github.io",
27− "https://heracl.es",
28− "https://felipecortez.net",
29− "http://rukial.tk",
30− "http://luminghao.com",
31− "http://silane.io",
32− "https://theiceshelf.com/",
33− "https://turelio.github.io/",
34− "https://spaceshipsin.space/",
35− "http://log.lectronice.com",
36− "https://craze.co.uk",
37− "https://shaneckel.com",
38− "https://cblgh.org",
39− "https://ellugar.co",
40− "http://hur.bet",
41− "http://chigby.org",
42− "https://0101.solar",
43− "https://longest.voyage",
44− "https://palomakop.tv/",
45− "https://travisshears.com/",
46− "https://v-os.ca",
47− "http://secretinternet.club/",
48− "https://jmandel.xyz"
14+ , "http://estevancarlos.com/"
15+ , "https://electro.pizza/"
16+ , "http://xla.wiki/"
17+ , "https://monochromatic.co/"
18+ , "https://joshavanier.github.io/"
19+ , "http://kaemura.com/"
20+ , "https://liamcooke.com/"
21+ , "https://electricgecko.de/"
22+ , "https://wichniow.ski/"
23+ , "https://hraew.autophagy.io/"
24+ , "https://evenunto.net/"
25+ , "https://anxl.faith"
26+ , "https://xvw.github.io"
27+ , "https://heracl.es"
28+ , "https://felipecortez.net"
29+ , "http://rukial.tk"
30+ , "http://luminghao.com"
31+ , "http://silane.io"
32+ , "https://theiceshelf.com/"
33+ , "https://turelio.github.io/"
34+ , "https://spaceshipsin.space/"
35+ , "http://log.lectronice.com"
36+ , "https://craze.co.uk"
37+ , "https://shaneckel.com"
38+ , "https://cblgh.org"
39+ , "https://ellugar.co"
40+ , "http://hur.bet"
41+ , "http://chigby.org"
42+ , "https://0101.solar"
43+ , "https://longest.voyage"
44+ , "https://palomakop.tv/"
45+ , "https://travisshears.com/"
46+ , "https://v-os.ca"
47+ , "http://secretinternet.club/"
48+ , "https://jmandel.xyz"
4949 // Don't forget the comma!
5050 ]
5151 var portal = new Portal(sites);
@@ -55,6 +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 list { display:block; columns:3; }
59+ 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}
5862 </style>
5963</body>
6064</html>
portal.js+2−4
@@ -20,11 +20,9 @@ function Portal(sites)
2020
2121 for(id in this.sites){
2222 var site = this.sites[id]
23− html += `${id}) <a href='${site}'>${site}</a>\n`
23+ html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
2424 }
25− html += `\n<a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a>`
26−
27− return html
25+ return `<list>${html}</list>\n<a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a></ln>`
2826 }
2927
3028 this.reload = function()