Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 04 Nov 2026 - @585.42
Forum Activity: Four Stars Random | Recent Posts | Guild Recents
News: inconvenience is counterculture :eyes: Guild Events: 19: laptop
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ✁ ∙ Web Crafting
| | |-+  ☔︎ ∙ I need Help!
| | | |-+  Navigation in Rarebit


« previous next »
Pages: [1] Print Embed
Author Topic: Navigation in Rarebit  (Read 985 times)
bennizone
Jr. Member ⚓︎
**
View Profile WWWArt


⛺︎ My Room
Itch.io: My Games

Artifacts:
Devil HornsMelon T-ShirtDevil Cursor TailMaggieJoined 2025!
« on: Spring, 19 Apr 2026 @885 » Embed

Hey!!! :pc:
Does anyone know how to make the navigation-buttons show all the time when using Rarebit? When on the first page, only the "next" and "latest" buttons show. When on the last page, only "first" and "back". I'd like all of them to be there, permanently.

I've tried looking through the code, but haven't been able to figure it out haha. Here's my WIP comic site for reference, if needed. Thanks in advance!

Logged


Artifact Swap: Pangu Lagoongoth gfRoach
bennizone
Jr. Member ⚓︎
**
View Profile WWWArt


⛺︎ My Room
Itch.io: My Games

Artifacts:
Devil HornsMelon T-ShirtDevil Cursor TailMaggieJoined 2025!
« Reply #1 on: Spring, 21 Apr 2026 @546 » Embed

I'm gonna bump this, since I posted it right before the forum closed oops.. :drat: any help greatly appreciated  :transport:

Logged


Artifact Swap: Pangu Lagoongoth gfRoach
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
The Worm is creeping around Melonland profiles!Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #2 on: Spring, 21 Apr 2026 @688 » Toggle Font Embed

Don't know anything about Rarebit, but I assume the buttons disappear where they wouldn't go anywhere. So you don't get "next" or "last" buttons when you're on the most-recent comic, because they'd be pointless or confusing, and similarly you don't get "prev" or "first" buttons when you're on the oldest comic.

But glancing at the source code, I see these bits, which provides functions like this one:


Code
function firstButton() {
    //FIRST BUTTON
    if (pg > 1) {
        //wait until page 2 to make button active
        return `<a href="?pg=` + 1 + navScrollTo + `"/>` + imgOrText(imageToggle, 0) + `</a>`;
    } else {
        if (!imageToggle) {
            return imgOrText(imageToggle, 0);
        } else {
            return ``;
        }
    }
}

This is the code that chooses whether or not to render the "first" button. It checks if the current page is greater than 1 (i.e. not the first page!) and then, if so, renders the link. It renders TEXT versions even if you're on the first page... but not in other cases. Strange.

Anyway, I suspect you could "fix" that one by changing it to this:


Code
function firstButton() {
    //FIRST BUTTON
    if (pg > 1) {
        //wait until page 2 to make button active
        return `<a href="?pg=` + 1 + navScrollTo + `"/>` + imgOrText(imageToggle, 0) + `</a>`;
    } else {
        return imgOrText(imageToggle, 0);
    }
}

Give that a go. If it works, the fix for the other three functions would be similar. Or shout if you still need help (I've got to go do things now and won't be free probably until tomorrow, but I can look then if you're still stuck!)

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif https://origami.danq.dev/88x31.gif https://skelly.monster/dem-bones-88x31.gif

Artifact Swap: Pink ham-ham rangerPolyamorousI met Dan Q on Melonland!shoeJoined 2025!pin - by mall-made manners
bennizone
Jr. Member ⚓︎
**
View Profile WWWArt


⛺︎ My Room
Itch.io: My Games

Artifacts:
Devil HornsMelon T-ShirtDevil Cursor TailMaggieJoined 2025!
« Reply #3 on: Spring, 21 Apr 2026 @891 » Embed

Give that a go. If it works, the fix for the other three functions would be similar. Or shout if you still need help (I've got to go do things now and won't be free probably until tomorrow, but I can look then if you're still stuck!)

Thank you so much!!! I figured out a way to fix it from your explanation!! (I realize the buttons may seem 'pointless' if they aren't clickable, but I prefer them visible for layout/aesthetic-reasons, haha) I really appreciate you taking a look despite not knowing anything about Rarebit beforehand, very kind of you! :-DD

Logged


Artifact Swap: Pangu Lagoongoth gfRoach
Dan Q
Hero Member ⚓︎
*****
View Profile WWWArt


I have no idea what I am doing
⛺︎ My Room
RSS: RSS

Guild Memberships:
Artifacts:
The Worm is creeping around Melonland profiles!Dan Q Cruisin'I DIDN'T meet Dan Q on Melonland!Visited on Melon's 10th Anniversary!
« Reply #4 on: Spring, 22 Apr 2026 @400 » Toggle Font Embed

Nice! It's looking good!

Logged

https://danq.me/_q26t/badges/dan-q-88x31-lighter.gif https://danq.me/_q26t/badges/dan-q-88x31-peekaboo-scroller.gif https://beige-buttons.danq.dev/beige-buttons-88x31.gif https://embed-html.danq.dev/embed-html-88x31.gif https://origami.danq.dev/88x31.gif https://skelly.monster/dem-bones-88x31.gif

Artifact Swap: Pink ham-ham rangerPolyamorousI met Dan Q on Melonland!shoeJoined 2025!pin - by mall-made manners
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe