on master help sign in
404.html+2−2
since splitsnapshots
unifiedsplit
@@ -9,8 +9,8 @@ permalink: /404.html
9</head>
9</head>
10<body style='background:black'>
10<body style='background:black'>
11 <script>
11 <script>
12− let parts = window.location.pathname.split("/")
12+ const parts = window.location.pathname.split("/")
13− let target = parts.slice(-1);
13+ const target = parts.slice(-1);
14 parts.splice(-1)
14 parts.splice(-1)
15 document.location.href = parts.join("/")+"/#"+target
15 document.location.href = parts.join("/")+"/#"+target
16 </script>
16 </script>
README.md+1−1
@@ -1,6 +1,6 @@
1# Webring
1# Webring
2
2
3−This [webring](https://wiki.xxiivv.com/webring) is an attempt to inspire artists & developers to create and maintain their own website and share traffic among each other. The webring's aim is to share personal websites such as *diaries, wikis & portfolios*. To add yourself to the ring, submit an [edit](https://github.com/XXIIVV/webring/edit/master/scripts/sites.js) to this repository.
3+This [webring](https://wiki.xxiivv.com/webring) is an attempt to inspire artists & developers to create and maintain their own website and share traffic among each other. The webring's aim is to share hand-crafted websites such as **diaries, wikis & portfolios**, single pagers with nothing but outgoing links to social platforms will be rejected. To add yourself to the ring, submit an [edit](https://github.com/XXIIVV/webring/edit/master/scripts/sites.js) to this repository.
4
4
5## Join the webring
5## Join the webring
6
6
index.html+2−1
@@ -11,7 +11,8 @@
11</head>
11</head>
12<body>
12<body>
13 <script>
13 <script>
14− let portal = new Portal(sites);
14+ const portal = new Portal(sites);
15+ portal.install(document.body);
15 portal.start();
16 portal.start();
16 </script>
17 </script>
17</body>
18</body>
links/fonts.css+8−15
@@ -1,22 +1,15 @@
1/* Input Mono */
1/* Input Mono */
2
2
3@font-face {
3@font-face {
4− font-family: 'input_mono_regular';
4+ font-family: 'input_mono_regular';
5− src: url('../media/fonts/input_mono_regular.ttf') format('truetype');
5+ src: url('../media/fonts/input_mono_regular.ttf') format('truetype');
6− font-weight: normal;
6+ font-weight: normal;
7− font-style: normal;
7+ font-style: normal;
8}
8}
9
9
10@font-face {
10@font-face {
11− font-family: 'input_mono_medium';
11+ font-family: 'input_mono_medium';
12− src: url('../media/fonts/input_mono_medium.ttf') format('truetype');
12+ src: url('../media/fonts/input_mono_medium.ttf') format('truetype');
13− font-weight: normal;
14− font-style: normal;
15−}
16−
17−@font-face {
18− font-family: 'input_mono_thin';
19− src: url('../media/fonts/input_mono_thin.ttf') format('truetype');
20− font-weight: normal;
13+ font-weight: normal;
21− font-style: normal;
14+ font-style: normal;
22}
15}
links/main.css+10−8
@@ -1,3 +1,5 @@
1+* { margin:0;padding:0;border:0;outline:0;text-decoration:none;font-weight:inherit;font-style:inherit;color:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;list-style:none;border-collapse:collapse;border-spacing:0; -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}
2+
1body { background:#f4f4f4; padding:0px; margin:0px; }
3body { background:#f4f4f4; padding:0px; margin:0px; }
2body div { display:block; background: #ddd;min-height: calc(100vh - 60px);width: calc(100vw - 60px);margin: 15px;color: #555;padding: 15px;font-family:'input_mono_regular', 'Monospaced','Courier New',courier;font-size:11px; position: relative; border-radius: 2px }
4body div { display:block; background: #ddd;min-height: calc(100vh - 60px);width: calc(100vw - 60px);margin: 15px;color: #555;padding: 15px;font-family:'input_mono_regular', 'Monospaced','Courier New',courier;font-size:11px; position: relative; border-radius: 2px }
3body div #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 10px;right:10px;background-position: center;padding:0px }
5body div #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 10px;right:10px;background-position: center;padding:0px }
@@ -6,12 +8,12 @@ body div p a { color:black; text-decoration: none; text-decoration: underline;}
6body div p a:hover { text-decoration: underline; }
8body div p a:hover { text-decoration: underline; }
7body div p b { font-weight: normal; color:#000; font-family: 'input_mono_medium' }
9body div p b { font-weight: normal; color:#000; font-family: 'input_mono_medium' }
8body div p.readme { max-width:500px; }
10body div p.readme { max-width:500px; }
9−body div list { display:block; max-width: 800px; columns:3; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;}
11+body div ul { display:block; max-width: 800px; columns:3; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;}
10−body div list ln { width: 22em; display:block; padding-left:5px; overflow: hidden; text-overflow: ellipsis; }
12+body div ul li { width: 22em; display:block; padding-left:5px; overflow: hidden; text-overflow: ellipsis; }
11−body div list ln a { line-height: 20px; display: inline-block; color:#000; padding:0px 5px; text-decoration: none;}
13+body div ul li a { line-height: 20px; display: inline-block; color:#000; padding:0px 5px; text-decoration: none;}
12−body div list ln a:visited { color:#999; text-decoration: none;}
14+body div ul li a:visited { color:#999; text-decoration: none;}
13−body div list ln a:hover { background:#ccc; color:#000; text-decoration: none; border-radius: 2px }
15+body div ul li a:hover { background:#ccc; color:#000; text-decoration: none; border-radius: 2px }
14
16
15−@media (max-width: 950px) {
17+@media (max-width: 950px){
16− body div list { columns: 2 }
18+ body div ul { columns: 2 }
17−}
19+}
media/fonts/input_mono_thin.ttfdeleted

Binary file not shown.

scripts/portal.js+42−66
@@ -1,87 +1,63 @@
1−'use strict';
1+'use strict'
2
2
3−function Portal(sites)
3+function Portal (sites) {
4−{
5− this.el = document.createElement("div");
4+ this.el = document.createElement('div')
6− this.sites = sites;
5+ this.sites = sites
7−
6+
8− this.install = function()
7+ // Templates
9− {
8+
10− document.body.appendChild(this.el);
9+ function _readme () {
10+ return `<p class='readme'>This webring is an attempt to inspire artists & developers to build their own website and share traffic among each other. The ring welcomes personalized websites such as <b>diaries, wikis & portfolios</b>.</p><p>To add yourself to the ring, submit a <a href='https://github.com/XXIIVV/webring/edit/master/scripts/sites.js' target='_blank'>Pull Request</a>.<br />If you found a broken link, please <a href='https://github.com/XXIIVV/webring/issues/new' target='_blank'>report it</a>.</p>`
11 }
11 }
12−
12+
13− this.start = function()
13+ function _buttons () {
14− {
14+ return `<p class='buttons'><a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a> <a id='icon' href='#random' onClick="portal.reload('random')"></a></p>`
15− this.install();
16− this.el.innerHTML = window.location.hash && window.location.hash.length > 4 ? this.redirect() : this.directory();
17 }
15 }
18
16
19− this.readme = function()
17+ function _directory (sites) {
20− {
18+ return `
21− return `<p class='readme'>This webring is an attempt to inspire artists & developers to build their own website and share traffic among each other. The ring welcomes personalized websites such as <b>diaries, wikis & portfolios</b>.</p><p>To add yourself to the ring, submit a <a href='https://github.com/XXIIVV/webring/edit/master/index.html' target='_blank'>Pull Request</a>.<br />If you found a broken link, please <a href='https://github.com/XXIIVV/webring/issues/new' target='_blank'>report it</a>.</p>`
19+ <ul>${sites.reduce((acc, val, id) => { return `${acc}<li>${id}) <a href='${val}'>${val.split('//')[1]}</a></li>` }, '')}</ul>\n${_readme()}${_buttons()}`
22 }
20 }
23
21
24− this.buttons = function()
22+ function _redirect (target) {
25− {
23+ return `<p>Redirecting to <b>${target}</b></p><meta http-equiv="refresh" content="3; url=${target}">
26− return `<p class='buttons'><a href='#random' onClick="portal.reload('random')">Random</a> | <a href='https://github.com/XXIIVV/webring'>Information</a> <a id='icon' href='#random' onClick="portal.reload('random')"></a></p>`
24+ <p class='buttons'><a href='#' onClick="portal.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> <a id='icon' href='#random' onClick="portal.reload('random')"></a></p>`
27 }
25 }
28−
26+
29− this.directory = function()
27+ //
30− {
28+
31− let html = ""
29+ this.install = function (host) {
32−
30+ host.appendChild(this.el)
33− for(let id in this.sites){
34− let site = this.sites[id]
35− html += `<ln>${id}) <a href='${site}'>${site.split("//")[1]}</a></ln>`
36− }
37− return `<list>${html}</list>\n${this.readme()}${this.buttons()}`
38 }
31 }
39
32
40− this.reload = function()
33+ this.start = function () {
41− {
34+ this.el.innerHTML = window.location.hash && window.location.hash.length > 4 ? _redirect(this.next()) : _directory(this.sites)
42− setTimeout(()=>{ window.location.reload() },500)
43 }
35 }
44
36
45− this.navigate = function(target)
37+ this.reload = function () {
46− {
47− setTimeout(() => {
48− window.location.href = target
38+ setTimeout(() => { window.location.reload() }, 500)
49− },3000)
50 }
39 }
51−
40+
52− this.location = function()
41+ this.navigate = function (target) {
53− {
42+ setTimeout(() => { window.location.href = target }, 3000)
54− return window.location.hash.replace("#","").trim();
55 }
43 }
56−
44+
57− this.locate = function()
45+ this.locate = function () {
58− {
59− let hash = this.location();
46+ const hash = window.location.hash.replace('#', '').trim()
60−
47+
61− if(hash == "random"){
48+ if (hash == 'random') {
62− return Math.floor(Math.random()*this.sites.length)
49+ return Math.floor(Math.random() * this.sites.length)
63 }
50 }
64−
51+
65− for(let id in this.sites){
52+ for (const id in this.sites) {
66− let site = this.sites[id];
67− if(site.indexOf(hash) >-1){
53+ if (this.sites[id].indexOf(hash) > -1) {
68 return parseInt(id)
54 return parseInt(id)
69 }
55 }
70 }
56 }
71 return -1
57 return -1
72 }
58 }
73−
59+
74− this.next = function(loc)
60+ this.next = function (loc = this.locate()) {
75− {
76− return loc == this.sites.length-1 ? this.sites[0] : this.sites[loc+1];
61+ return loc == this.sites.length - 1 ? this.sites[0] : this.sites[loc + 1]
77− }
78−
79− this.redirect = function()
80− {
81− let location = this.locate();
82− let target = this.next(location);
83− this.navigate(target)
84− return `<p>Redirecting to <b>${target}</b></p><meta http-equiv="refresh" content="3; url=${target}">
85− <p class='buttons'><a href='#' onClick="portal.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> <a id='icon' href='#random' onClick="portal.reload('random')"></a></p>`
86 }
62 }
87}
63}
scripts/sites.js+69−60
@@ -1,61 +1,70 @@
1+'use strict';
2+
3+// Don't forget the comma! No trailing slashes
1// protocole://url.domain.ext
4// protocole://url.domain.ext
5+
2−let sites = [
6+const sites = [
3− "https://wiki.xxiivv.com"
7+ "https://wiki.xxiivv.com"
4− , "http://estevancarlos.com"
8+ , "http://estevancarlos.com"
5− , "https://electro.pizza"
9+ , "https://electro.pizza"
6− , "https://monochromatic.co"
10+ , "https://monochromatic.co"
7− , "https://joshavanier.github.io"
11+ , "https://joshavanier.github.io"
8− , "http://kaemura.com"
12+ , "http://kaemura.com"
9− , "https://liamcooke.com"
13+ , "https://liamcooke.com"
10− , "https://electricgecko.de"
14+ , "https://electricgecko.de"
11− , "https://wichniow.ski"
15+ , "https://wichniow.ski"
12− , "https://hraew.autophagy.io"
16+ , "https://hraew.autophagy.io"
13− , "https://evenunto.net"
17+ , "https://evenunto.net"
14− , "https://anxl.faith"
18+ , "https://anxl.faith"
15− , "https://xvw.github.io"
19+ , "https://xvw.github.io"
16− , "https://heracl.es"
20+ , "https://heracl.es"
17− , "https://felipecortez.net"
21+ , "https://felipecortez.net"
18− , "http://luminghao.com"
22+ , "http://luminghao.com"
19− , "https://theiceshelf.com"
23+ , "https://theiceshelf.com"
20− , "https://turelio.github.io"
24+ , "https://turelio.github.io"
21− , "https://spaceshipsin.space"
25+ , "https://spaceshipsin.space"
22− , "http://log.lectronice.com"
26+ , "http://log.lectronice.com"
23− , "https://craze.co.uk"
27+ , "https://craze.co.uk"
24− , "https://shaneckel.com"
28+ , "https://shaneckel.com"
25− , "https://cblgh.org"
29+ , "https://cblgh.org"
26− , "https://ellugar.co"
30+ , "https://ellugar.co"
27− , "http://hur.bet"
31+ , "http://hur.bet"
28− , "http://chigby.org"
32+ , "http://chigby.org"
29− , "https://longest.voyage"
33+ , "https://longest.voyage"
30− , "https://palomakop.tv"
34+ , "https://palomakop.tv"
31− , "https://travisshears.com"
35+ , "https://travisshears.com"
32− , "https://v-os.ca"
36+ , "https://v-os.ca"
33− , "http://secretinternet.club"
37+ , "http://secretinternet.club"
34− , "https://jmandel.xyz"
38+ , "https://jmandel.xyz"
35− , "https://systems.ws"
39+ , "https://systems.ws"
36− , "https://jamesin.space"
40+ , "https://jamesin.space"
37− , "https://nathanwentworth.co"
41+ , "https://nathanwentworth.co"
38− , "https://eswat.ca"
42+ , "https://eswat.ca"
39− , "https://uonai.space"
43+ , "https://uonai.space"
40− , "http://controls.ee"
44+ , "http://controls.ee"
41− , "https://wasin.io"
45+ , "https://wasin.io"
42− , "https://inns.studio"
46+ , "https://inns.studio"
43− , "http://kokorobot.ca"
47+ , "http://kokorobot.ca"
44− , "https://ameyama.com"
48+ , "https://ameyama.com"
45− , "https://wake.st"
49+ , "https://wake.st"
46− , "https://xarene.la"
50+ , "https://xarene.la"
47− , "https://alex.zyzhang.me"
51+ , "https://alex.zyzhang.me"
48− , "http://bildwissenschaft.vortok.info"
52+ , "http://bildwissenschaft.vortok.info"
49− , "https://jakofranko.github.com"
53+ , "https://jakofranko.github.com"
50− , "https://aeriform.io"
54+ , "https://aeriform.io"
51− , "http://blog.lucasdidthis.com"
55+ , "http://blog.lucasdidthis.com"
52− , "http://npisanti.com"
56+ , "http://npisanti.com"
53− , "https://underscorediscovery.ca"
57+ , "https://underscorediscovery.ca"
54− , "https://drisc.io"
58+ , "https://drisc.io"
55− , "https://neufv.website"
59+ , "https://neufv.website"
56− , "https://simbolo.xyz"
60+ , "https://simbolo.xyz"
57− , "https://ricky.codes"
61+ , "https://ricky.codes"
58− , "https://maxdeviant.com"
62+ , "https://maxdeviant.com"
59− , "https://tynandebold.com"
63+ , "https://tynandebold.com"
64+ , "http://gytis.co"
65+ , "https://nomand.co"
66+ , "http://memoriata.com"
67+ , "https://mmm.s-ol.nu"
68+ , "https://chad.is"
69+ , "https://smidgeo.com/bots"
60− ];
70+];
61− // Don't forget the comma! No trailing slashes