From 2194f6488e58cfdb3e67ce0659d77cf79fa65b86 Mon Sep 17 00:00:00 2001 From: cel 馃尭 Date: Fri, 26 Jan 2024 21:40:59 +0000 Subject: add badge --- README.md | 2 ++ badge.png | Bin 0 -> 1961 bytes bnuy.png | Bin 0 -> 1592 bytes bunnyring.js | 66 +++++++++++++++++++++++++++++------------------------------ next.png | Bin 0 -> 208 bytes prev.png | Bin 0 -> 205 bytes random.png | Bin 0 -> 236 bytes 7 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 badge.png create mode 100644 bnuy.png create mode 100644 next.png create mode 100644 prev.png create mode 100644 random.png diff --git a/README.md b/README.md index a142211..794d266 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # the bunny web! +![badge](badge.png) + come join the bunny web!!! the webring for all bunny enjoyers 馃悋 ## rules and guidelines diff --git a/badge.png b/badge.png new file mode 100644 index 0000000..fdc790d Binary files /dev/null and b/badge.png differ diff --git a/bnuy.png b/bnuy.png new file mode 100644 index 0000000..f6e8747 Binary files /dev/null and b/bnuy.png differ diff --git a/bunnyring.js b/bunnyring.js index a783a41..9fa9fa6 100644 --- a/bunnyring.js +++ b/bunnyring.js @@ -28,10 +28,10 @@ var bunnyring_members = [ // Again, if you're hosting this Librering, please change all the instances of bunnyring to your particular webring name in lower case, and insert valid image URLs for the badges and navigation. var bunnyring_ringurl = "https://bunny.garden/bunnyring/about/"; // The URL of the webring itself, for contact and information purposes. // var bunnyring_badgeurl = "https://bunny.garden/bunnyring/badge.png"; // The URL of the main badge of the webring; 88x31 recommended, but any size goes. -// var bunnyring_prevurl = "https://thewebringitself.site/prev.png"; // The URL of the PREVIOUS badge of the webring; in the original design, a quarter of the main badge. -// var bunnyring_nexturl = "https://thewebringitself.site/next.png"; // The URL of the NEXT badge of the webring; in the original design, a quarter of the main badge. -// var bunnyring_randomurl = "https://thewebringitself.site/random.png"; // The URL of the RANDOM badge of the webring; in the original design, a quarter of the main badge. -// var bunnyring_abouturl = "https://thewebringitself.site/about.png"; // The URL of the ABOUT LIBRERING badge of the webring; in the original design, a quarter of the main badge. +var bunnyring_prevurl = "https://bunny.garden/bunnyring/plain/prev.png"; // The URL of the PREVIOUS badge of the webring; in the original design, a quarter of the main badge. +var bunnyring_nexturl = "https://bunny.garden/bunnyring/plain/next.png"; // The URL of the NEXT badge of the webring; in the original design, a quarter of the main badge. +var bunnyring_randomurl = "https://bunny.garden/bunnyring/plain/random.png"; // The URL of the RANDOM badge of the webring; in the original design, a quarter of the main badge. +var bunnyring_abouturl = "https://bunny.garden/bunnyring/plain/bnuy.png"; // The URL of the ABOUT LIBRERING badge of the webring; in the original design, a quarter of the main badge. // 路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路路 // : DISPLAY SECTION :: This defines whatever happens on a member's individual site: most notably, inserting a little display. : @@ -59,30 +59,6 @@ if (siteIndex == -1) { } // 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 = bunnyring_members.length - 1; } -// else { beforeID = siteIndex - 1; } -// if (siteIndex == bunnyring_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() * bunnyring_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: bunnyring 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; @@ -99,9 +75,33 @@ else { // 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 = - "

this site is part of the bunny web!!
" + - "previous |" + - " random |" + - " about LibreRing |" + - " next

"; + // "Badge: bunnyring webring
" + + "previous" + + "about the bunny web" + + "random" + + "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 = bunnyring_members.length - 1; } +// else { beforeID = siteIndex - 1; } +// if (siteIndex == bunnyring_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() * bunnyring_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 = +// "

this site is part of the bunny web!!
" + +// "previous |" + +// " random |" + +// " about LibreRing |" + +// " next

"; +// } diff --git a/next.png b/next.png new file mode 100644 index 0000000..4f2dc82 Binary files /dev/null and b/next.png differ diff --git a/prev.png b/prev.png new file mode 100644 index 0000000..9aa0e75 Binary files /dev/null and b/prev.png differ diff --git a/random.png b/random.png new file mode 100644 index 0000000..277b806 Binary files /dev/null and b/random.png differ -- cgit