diff options
author | sn4il <sn4il@localhost.localdomain> | 2024-05-04 19:33:08 +0300 |
---|---|---|
committer | sn4il <sn4il@localhost.localdomain> | 2024-05-04 19:33:08 +0300 |
commit | 15b6a74002796d6d3532884f112bfe9ffc9763ae (patch) | |
tree | fc0d73215a120f7c6e2f4e8acdedfd772c2a6773 /ring | |
download | smol-15b6a74002796d6d3532884f112bfe9ffc9763ae.tar.gz smol-15b6a74002796d6d3532884f112bfe9ffc9763ae.zip |
Init
Diffstat (limited to 'ring')
-rw-r--r-- | ring/README.txt | 61 | ||||
-rwxr-xr-x | ring/getid.js | 28 | ||||
-rw-r--r-- | ring/index.html | 78 | ||||
-rw-r--r-- | ring/list.html | 55 | ||||
-rw-r--r-- | ring/next.html | 18 | ||||
-rw-r--r-- | ring/prev.html | 18 | ||||
-rw-r--r-- | ring/rand.html | 17 | ||||
-rw-r--r-- | ring/urls.txt | 3 | ||||
-rw-r--r-- | ring/webring.png | bin | 0 -> 16789 bytes |
9 files changed, 278 insertions, 0 deletions
diff --git a/ring/README.txt b/ring/README.txt new file mode 100644 index 0000000..8fb2f9f --- /dev/null +++ b/ring/README.txt @@ -0,0 +1,61 @@ +Extreme Webring of the Far Future by RainbowCemetery v221114_1432
+
+released under MIT license go nuts
+
+WEBRING OWNER:
+
+put all files in a subdirectory on your personal home page
+add all webring participants to the urls.txt file, one url per line
+each sites ID is its line number in the list, using list.html can show you quickly if necessary
+if a site needs to be removed in the future, leave a blank line in its place to not disrupt the chain of IDs
+included index.html is a hasty example feel free to replace it with whatever
+if ID is ommitted or otherwise invalid the position on the list will be attempted to be found based on the referring URL, this will probably be ok in most cases, use the id as a fallback if needed
+
+WEBRING PARTICIPANT:
+
+add links to the webring directory using your ID to prev.html, next.html, list.html and rand.html as desired
+ex: <a href="http://www.coolsite.com/webring/prev.html?id=0">previous</a>
+<a href="http://www.coolsite.com/webring/rand.html?id=0">random</a>
+<a href="http://www.coolsite.com/webring/list.html?id=0">list</a>
+<a href="http://www.coolsite.com/webring/next.html?id=0">next</a>
+
+
+
+ @&&&&@@# *@@&&&&@
+ .@&&&&&&&&@/ &@&&&&&&@.%@@@&&&&@@%
+ &@&&&&&&&&@(@&&&&&&&@&&&&&&&&&&&&&&&&#
+ /@@&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@@@@&#. *(.
+ @&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&@( *#. *@ (&
+ .,@@@&&&&&&&&&@%####%&@@&&&&&&&&&&&&&&&&&&&@ *@@*,,,*& @. @&
+ @@&&&&&&&&&&&&@@##############@@&&&&&&&&&&&&&&&@,,,,,,,,#% .
+ .@&&&&&&&&&&&&&@@###################&@@@&&&&&&&&@&,,,,,,,@*
+ #&&&&&&&&&&&&&&@&#######%@@@@&##########@,.*@,,,,,,,,,,*@ *@@
+ ,@&&&&&&&&&&&@@@@#######@..&@@@@@##########@...@,,,,,,&/
+ @&&&&&&@@#...*@#######&%..@@@@@@@##########@...,@,,@ *&@@(,
+ .@............@@#######@@@@@@@@@@@%##########@....@ @@ (@(
+ @*..............@@#######&@@.%@@@@@@###########@.....&/*#& &%*@ *@# *&
+ .@@#........,%........,@#########@@@@@@@%############@......@*****&/ /@@%*@
+ *@&,...............,#........(@###########################&(.......@ ,@( &%
+ #@#.......................&,.........@%########################@/........%. .@.
+ @,..............................@.*@@*......@%####################@&...........@@ * (#
+ *@@@@@@.......................................&@%##########%&@@&..............@,,,,,,#@@( *. *@ #/
+ .&...*%@/......(....................(.............*(#%#(,...................@,,,,,,,,,,,,,%/ %@ @( @
+ ,&&&*/%%(#&@/@@*@,@*......,.*&........................................@
+ %............@....@..&(,..........................................@
+ (*...........@.@@.&@@*.............................................@
+ * %..................................................................@
+ (*.%( #,................................................................./,
+ @...%# &..................................................................@
+ ((.../@ #*.................................................................#
+ (*./@* (&....%@@................................................................@
+ &*......%&/...................................................................@
+ .@(...........@...........................................................,&
+ ,@@@%..(..@ %(........................................................@
+ *@%#%@@(# .@....................................................@.
+ , @*.............................................&#
+ /@*...................................../@@/%
+ .&@*..#%,,*@(,@,@,@............(@# (
+ ,(,,,,@,,,@,,((....,&@#
+ @(#&@,,&,&@/
+ rainbowcemetery[at]gmail.com
+ there may be updates in the future but where will you find them i dunno
\ No newline at end of file diff --git a/ring/getid.js b/ring/getid.js new file mode 100755 index 0000000..4aba45d --- /dev/null +++ b/ring/getid.js @@ -0,0 +1,28 @@ +var urls;
+var id;
+
+fetch("./urls.txt").then(response => response.text()).then((data) => {
+ urls=data.split("\n");
+ process();
+})
+
+function process() {
+ var urlParams = new URLSearchParams(window.location.search);
+ id=urlParams.get('id');
+
+ if (!urlParams.has('id') || id.isNaN || id==0){
+ id=-1;
+ var ref=document.referrer.replace(/[^/]*$/, '');
+
+ for (var i=0;i<urls.length;i++){
+ if (urls[i]==ref || urls[i]+"/"==ref){
+ id=i;
+ break;
+ }//end if
+ }//next
+ //console.log(document.referrer+" "+ref+" "+id);
+ }else{
+ id--;
+ }//end if
+ activate();
+}//
\ No newline at end of file diff --git a/ring/index.html b/ring/index.html new file mode 100644 index 0000000..5dda5a7 --- /dev/null +++ b/ring/index.html @@ -0,0 +1,78 @@ +<!DOCTYPE html>
+<html lang="ru">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <title>Малая Сеть</title>
+ <link rel="stylesheet" href="../style.css">
+
+ </head>
+ <body>
+ <h1>Малая Сеть</h1>
+ <div class="bh-row bh-no-border">
+ <div class="bh-wide-row bh-vert-2">
+ <div class="bh-col-4">
+ <h3>RuWR - Russian WebRing</h3>
+ </div>
+
+ <div class="bh-col-8">
+ <div class="bh-wide-row bh-no-border">
+ <div class="bh-col-2">
+
+ </div>
+ </div>
+ Чтоб принять участие в Кольце Сайтов русскоязычного SmolNet, разместите у себя на страничке следующий код:<br>
+ <hr>
+
+ <!-- area where html can be copied from -->
+ <textarea id="codes" name="codes" rows="12" cols="60"></textarea>
+ <center>
+ <br/><br/>
+ <aside class="bh-aside-left">
+ выглядит как-то так
+ </aside>
+ <!-- div where your webring html will be displayed -->
+ <hr>
+ <div id="ringbase"></div>
+
+
+ <script>
+ //change this to the title of your webring if you want
+ var ringtitle = "RuWR";
+
+ //this can probably be left alone, but change this to your webring url base directory if required.
+ //ex: var ringurl = "https://www.site.com/webring/";
+ var ringurl = window.location.href.replace(/[^/]*$/, '');
+
+ //this html will be injected into the textarea and div
+ var codes="[ <a href=\""+ringurl+"\">"+ringtitle+"</a> ]<br>[<a href=\""+ringurl+"prev.html?id=0\">←Назад</a> | <a href=\""+ringurl+"rand.html?id=0\">Случайный сайт</a> | <a href=\""+ringurl+"list.html?id=0\">Список</a> | <a href=\""+ringurl+"next.html?id=0\">Вперёд→</a> ]";
+
+ document.getElementById("codes").value=codes
+ document.getElementById("ringbase").innerHTML=codes
+ </script>
+ </center>
+ </div>
+ </div>
+<div class="bh-col-4">
+ <h4>Включение в список</h4>
+</div>
+
+<div class="bh-col-8">
+ <div class="bh-wide-row bh-no-border">
+ <div class="bh-col-2">
+
+ </div>
+ </div>
+ Для добавления вашего сайта в список ротации Кольца Сайтов отправьте письмо на sn4il [собака] thedroth [точка] rocks, указав в теме письма тег [webring]
+
+</div>
+</div>
+<div class="bh-col-10">
+ <center>
+ В согласии с духом <a href="https://tt.sn4il.site/landing.html">Тривиальных Технологий</a> |  Хостинг: <a href="https://vdsina.ru/?partner=7kp5qpehru">VDSина</a> (скидка 10% по партнёрской ссылке)
+</center>
+
+ </div>
+ </body>
+</html>
\ No newline at end of file diff --git a/ring/list.html b/ring/list.html new file mode 100644 index 0000000..cd23a62 --- /dev/null +++ b/ring/list.html @@ -0,0 +1,55 @@ +<!DOCTYPE html>
+<html lang="ru">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <title>Малая Сеть</title>
+ <link rel="stylesheet" href="../style.css">
+
+ </head>
+ <body>
+ <h1>Малая Сеть</h1>
+ <div class="bh-row bh-no-border">
+ <div class="bh-wide-row bh-vert-2">
+ <div class="bh-col-4">
+ </div>
+
+ <div class="bh-col-8">
+ <div class="bh-wide-row bh-no-border">
+ <div class="bh-col-2">
+
+ </div>
+ </div>
+ Список сайтов, включённых в Кольцо<br>
+ <hr>
+ <div id='list'></div>
+ <script>
+ function activate() {
+ var ihtml="<center><br /><a href='.'>[webring home]</a><br /><br />participant list<br /><br /><table border='2px'><tbody><tr><td>";
+ for (var i=0;i<urls.length;i++){
+ if (urls[i]!=""){
+ ihtml+=" " + (i+1) + " - <a href='" + urls[i] + "'>" + urls[i] + "</a>";
+ if (i==id){
+ ihtml+=" << <p></p>";
+ }else{
+ ihtml+=" <p></p>";
+ }//end if
+ }//end if
+ }//next
+ ihtml+="</td></tr></tbody></table></center>";
+
+ document.getElementById('list').innerHTML=ihtml;
+ }//
+ </script>
+ <script src="getid.js"></script>
+</div>
+</div>
+<div class="bh-col-10">
+ <center>
+ В согласии с духом <a href="https://tt.sn4il.site/landing.html">Тривиальных Технологий</a> |  Хостинг: <a href="https://vdsina.ru/?partner=7kp5qpehru">VDSина</a> (скидка 10% по партнёрской ссылке)
+</center>
+
+ </div>
+ </body>
+</html>
\ No newline at end of file diff --git a/ring/next.html b/ring/next.html new file mode 100644 index 0000000..dbde737 --- /dev/null +++ b/ring/next.html @@ -0,0 +1,18 @@ +<HTML><HEAD></HEAD>
+<BODY>
+ <script>
+ function activate() {
+ var targetURL="";
+ var targetid=id;
+ while (targetURL==""){
+ targetid++;
+ if (targetid>=urls.length) targetid=0;
+ targetURL=urls[targetid];
+ }//wend
+
+ location.href=targetURL;
+ }//
+ </script>
+ <script src="getid.js"></script>
+</BODY>
+</HTML>
\ No newline at end of file diff --git a/ring/prev.html b/ring/prev.html new file mode 100644 index 0000000..fb45256 --- /dev/null +++ b/ring/prev.html @@ -0,0 +1,18 @@ +<HTML><HEAD></HEAD>
+<BODY>
+ <script>
+ function activate() {
+ var targetURL="";
+ var targetid=id;
+ while (targetURL==""){
+ targetid--;
+ if (targetid<0) targetid=urls.length-1;
+ targetURL=urls[targetid];
+ }//wend
+
+ location.href=targetURL;
+ }//
+ </script>
+ <script src="getid.js"></script>
+</BODY>
+</HTML>
\ No newline at end of file diff --git a/ring/rand.html b/ring/rand.html new file mode 100644 index 0000000..a105cec --- /dev/null +++ b/ring/rand.html @@ -0,0 +1,17 @@ +<HTML><HEAD></HEAD>
+<BODY>
+ <script>
+ function activate() {
+ var targets=new Array();
+ for (var i=0;i<urls.length;i++){
+ if (i!=id && urls[i]!="") targets.push(i);
+ }//next
+
+ targetid=Math.floor(Math.random() * targets.length)
+
+ location.href=urls[targetid];
+ }//
+ </script>
+ <script src="getid.js"></script>
+</BODY>
+</HTML>
\ No newline at end of file diff --git a/ring/urls.txt b/ring/urls.txt new file mode 100644 index 0000000..7b216ef --- /dev/null +++ b/ring/urls.txt @@ -0,0 +1,3 @@ +https://www.rainbowcemetery.com/
+https://duckduckgo.com/
+https://www.w3schools.com/
\ No newline at end of file diff --git a/ring/webring.png b/ring/webring.png Binary files differnew file mode 100644 index 0000000..0a4b194 --- /dev/null +++ b/ring/webring.png |