Merge pull request #76 from CreoOne/master

Moved sites list to external file, also added API section to README
This commit is contained in:
Лu Лinveгa 2018-09-02 07:01:28 +12:00 committed by GitHub
commit ec1e1cb18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 64 deletions

View File

@ -22,6 +22,13 @@ Instead of linking to the directory, you can also link to the next link in the r
<a href='https://webring.xxiivv.com/#wiki.xxiivv' target='_blank'><img src='https://webring.xxiivv.com/icon.black.svg'/></a> <a href='https://webring.xxiivv.com/#wiki.xxiivv' target='_blank'><img src='https://webring.xxiivv.com/icon.black.svg'/></a>
``` ```
## API
This repository does not contain mature API capabilities, but there is one way to request list of sites currently in the webring.
- Request [sites.js on xxiivv](https://webring.xxiivv.com/scripts/sites.js) or [sites.js on github](https://raw.githubusercontent.com/XXIIVV/webring/master/scripts/sites.js)
- Parse it as text from `[` to `]`, split by `,` and then trim all whitespace and `"` in resulting array.
## Need Help? ## Need Help?
The ring is managed by [@neauoire](https://twitter.com/neauoire), but any member of the network is also welcome to join this repository as a collaborator to help manage new links and Pull Requests. Read more [here](https://wiki.xxiivv.com/webring). The ring is managed by [@neauoire](https://twitter.com/neauoire), but any member of the network is also welcome to join this repository as a collaborator to help manage new links and Pull Requests. Read more [here](https://wiki.xxiivv.com/webring).

View File

@ -6,73 +6,11 @@
<link rel="stylesheet" type="text/css" href="links/fonts.css"/> <link rel="stylesheet" type="text/css" href="links/fonts.css"/>
<link rel="stylesheet" type="text/css" href="links/main.css"/> <link rel="stylesheet" type="text/css" href="links/main.css"/>
<script src="scripts/portal.js"></script> <script src="scripts/portal.js"></script>
<script src="scripts/sites.js"></script>
<title>Webring</title> <title>Webring</title>
</head> </head>
<body> <body>
<script> <script>
// protocole://url.domain.ext
let 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.pw"
, "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"
, "https://systems.ws"
, "https://jamesin.space"
, "https://nathanwentworth.co"
, "https://eswat.ca"
, "https://uonai.space"
, "http://controls.ee"
, "https://wasin.io"
, "https://inns.studio"
, "http://kokorobot.ca"
, "https://ameyama.com"
, "https://wake.st"
, "https://xarene.la"
, "https://alex.zyzhang.me"
, "http://bildwissenschaft.vortok.info"
, "https://jakofranko.github.com"
, "https://aeriform.io"
, "http://blog.lucasdidthis.com"
, "http://npisanti.com"
, "https://underscorediscovery.ca"
, "https://drisc.io"
, "https://neufv.website"
, "https://simbolo.xyz"
, "https://ricky.codes"
// Don't forget the comma! No trailing slashes
]
let portal = new Portal(sites); let portal = new Portal(sites);
portal.start(); portal.start();
</script> </script>

63
scripts/sites.js Normal file
View File

@ -0,0 +1,63 @@
// protocole://url.domain.ext
let 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.pw"
, "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"
, "https://systems.ws"
, "https://jamesin.space"
, "https://nathanwentworth.co"
, "https://eswat.ca"
, "https://uonai.space"
, "http://controls.ee"
, "https://wasin.io"
, "https://inns.studio"
, "http://kokorobot.ca"
, "https://ameyama.com"
, "https://wake.st"
, "https://xarene.la"
, "https://alex.zyzhang.me"
, "http://bildwissenschaft.vortok.info"
, "https://jakofranko.github.com"
, "https://aeriform.io"
, "http://blog.lucasdidthis.com"
, "http://npisanti.com"
, "https://underscorediscovery.ca"
, "https://drisc.io"
, "https://neufv.website"
, "https://simbolo.xyz"
, "https://ricky.codes"
];
// Don't forget the comma! No trailing slashes