diff --git a/index.html b/index.html index 8f36ab2..be12562 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@
-

A Tyrany Incoporated

+

A Tyrant Incoporated

a.k.a "Atiran Inc."
@@ -92,7 +92,7 @@
- \ No newline at end of file + diff --git a/webring.js b/webring.js index e4a1434..fbdca7b 100644 --- a/webring.js +++ b/webring.js @@ -1,89 +1,23 @@ -/* - L I BBB RRRR EEEE RRRR I N N GGGG - L I B B R R E R R I NN N G - L I BBBB RRRR EEE RRRR I N N N G GG - L I B B R R E R R I N NN G G - LLLLL I BBBB R R EEEE R R I N N GGGG - - LIBRERING is a simple javascript webring script. - It should be compatible with HTML and XHTML and supports rudimentary configuration options. - - Copyright 2023: Lian B. of Libre.Town - - This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . -*/ - -// ······································································· -// : ADMINISTRATOR SECTION :: This section contains configuration options : -// ······································································· - -// List of all members in the webring. Add onto this manually whenever you want to add someone new to the ring. -// Please take time to go through here and use the search-and-replace feature of your favorite text editor to change all instances of atiran to a lower-case or camel-case version of your webring name, as well as change the configuration to your liking. var atiran_members = [ 'https://midnadimple.com/', 'https://devraza.giize.com/', 'https://happybull.co.uk/' ] -// Various config options that should be self-documenting. -// Again, if you're hosting this Librering, please change all the instances of atiran to your particular webring name in lower case, and insert valid image URLs for the badges and navigation. -var atiran_ringurl = "https://atiran.giize.com/"; // The URL of the webring itself, for contact and information purposes. -var atiran_badgeurl = "https://atiran.giize.com/badge.png"; // The URL of the main badge of the webring; 88x31 recommended, but any size goes. -// ···························································································································· -// : DISPLAY SECTION :: This defines whatever happens on a member's individual site: most notably, inserting a little display. : -// ···························································································································· +var atiran_ringurl = "https://atiran.giize.com/"; +var atiran_badgeurl = "https://atiran.giize.com/badge.png"; -// Before you can use this, please replace all instances of atiran with your webring name in lower case. -// This will allow you to have multiple webrings on the same site without them conflicting with each other. -// Please also carefully read through these options to see what you can (and have to) change; the design, the layout and the links. -// For more information and a step-by-step tutorial, see: https://libre.town/creative/development/librering.xhtml - -// ... Let's begin. - -// For displaying messages of all kinds, as well as the working webring display, we want to keep our little HTML element in mind. -// Remember to insert your webring's name here, just like everywhere, if you host this webring. var displayElement = document.getElementById("atiran"); -// First of all, we want to check whether we are even a member of this particular webring, and if so, at which position. var currentLocation = window.location.href; var siteIndex = atiran_members.indexOf(currentLocation); -// If our current location is NOT in the webring, display an error message. The rest of the code only runs if the site has been found in the webring. if (siteIndex == -1) { displayElement.innerHTML = "

I am sorry, but the atiran display has failed to find you in the member list.
Please contact the webring administrator for support if you are the webmaster of this site and believe this to be in error.

"; } -// // If our current location IS in the webring, this is where it continues. -// else { -// // This is a readable (but technologically not very sound) way to loop around when you are either the first or last member of the webring. -// var beforeID; -// var afterID; -// if (siteIndex == 0) { beforeID = atiran_members.length - 1; } -// else { beforeID = siteIndex - 1; } -// if (siteIndex == atiran_members.length - 1) { afterID = 0; } -// else { afterID = siteIndex + 1; } - -// // This chooses a random website from a copy of the member list. -// var randomID; -// randomID = Math.floor(Math.random() * atiran_members.length); - -// // Now it is time to get to the meaty stuff. This will replace our little display container with the actual display content: a general badge, next/previous buttons, and a webring info and random link. -// // Remove, swap around or change these components as you see fit. -// displayElement.innerHTML = -// "Badge: atiran webring
" + -// "Previous" + -// "Random" + -// "About LibreRing" + -// "Next"; -// } - -// If you want to choose a text-based display instead without any images, remove or comment up the entire else block above and instead uncomment this one. - else { - // This is a readable (but technologically not very sound) way to loop around when you are either the first or last member of the webring. var beforeID; var afterID; if (siteIndex == 0) { beforeID = atiran_members.length - 1; } @@ -91,16 +25,14 @@ else { if (siteIndex == atiran_members.length - 1) { afterID = 0; } else { afterID = siteIndex + 1; } - // This chooses a random website from a copy of the member list. var randomID; randomID = Math.floor(Math.random() * atiran_members.length); - // Now it is time to get to the meaty stuff. This will replace our little display container with the actual display content: a general badge, next/previous buttons, and a webring info and random link. - // Remove, swap around or change these components as you see fit. displayElement.innerHTML = "

Badge: atiran webring
" + "<< Previous |" + " Random |" + " About LibreRing |" + " >>>

"; -} \ No newline at end of file +} +