// SZ 2025-11-30 — override SMF expandPages for "..." pagination function expandPages(spanEl, base_link, first_page, last_page, per_page) { try { var per = parseInt(per_page, 10) || 1; // Try to derive the real maximum page count by inspecting the pagination links. var maxPage = 1; var container = spanEl && spanEl.closest ? spanEl.closest(".pagelinks") : null; if (container) { var links = container.querySelectorAll("a.nav_page"); var maxStart = 0; links.forEach(function (a) { var href = a.getAttribute("href") || ""; // Match the last . segment, e.g. topic=15206.7650 var m = href.match(/\.([0-9]+)(?:$|[^0-9])/); if (m) { var n = parseInt(m[1], 10); if (!isNaN(n) && n > maxStart) maxStart = n; } }); if (maxStart > 0) maxPage = Math.floor(maxStart / per) + 1; } // Fallback to SMF-provided last_page if DOM inspection failed. if (!maxPage || maxPage < 1) { var last = parseInt(last_page, 10); maxPage = Math.floor(last / per) + 1; if (!maxPage || maxPage < 1) maxPage = 1; } var input = prompt("Go to page (1-" + maxPage + "):"); if (input === null) return; var page = parseInt(input, 10); if (!page || page < 1 || page > maxPage) return; var start = (page - 1) * per; if (start < 0) start = 0; var url = base_link; // base_link may be an HTML string contain an tag; try to extract href try { var tmp = document.createElement("div"); tmp.innerHTML = base_link; var a = tmp.querySelector("a"); if (a && a.getAttribute("href")) { url = a.getAttribute("href"); } } catch (err) { url = base_link; } // Replace common SMF patterns with the computed offset if (url.indexOf("%1$d") !== -1) { url = url.replace("%1$d", start); } else if (url.indexOf(";start=") !== -1) { url = url.replace(/;start=\d+/, ";start=" + start); } else if (/\.0(?!\d)/.test(url)) { url = url.replace(/\.0(?!\d)/, "." + start); } window.location.href = url; } catch (e) { // fail silently } }

Since I got a B-...

Started by xSalashawty, Nov 5, 2010 02:23 PM

Previous topic - Next topic

1 Guest

xSalashawty

My mom got ANGRY for getting a b- (missing 10 on a 50 question test, or 10 on a 100 point quiz. My teacher doubles my score) and now she makes me study every Thurs for a long time. And I hate studying. So, -wavewave-
Signature

Are you lookin' at me fruitcake? I don't need a date.
Click me.

jkid101094

It's Friday. And that sucks. D=
*huggles*
Signature


Quote from: DracoDraco:  Saber was my bitch LONG before you heard about her.  I introduced you to FSN, loser.  D<
Oh, and still...
ILU JKIDDD

Says you. She likes me more. D<
And ILU2. o3o
IaFNSW.

Dropletz

a B, huh? so, you're mom is cracking down on you; double time, because you made a B on a quiz?! not to mention it was a 50 question quiz?

bummer...talk about being unnecessarily unsatisfied...

LOL...glad she's not me mom! but forrealz...I feel for ya, because we all know how dull studing is, right?


                                                  ~K, Later!
Signature

Elija2

Pfft, that's just a warning.

Skyle369

Just for getting 10 mistakes?!? That sucks...
Signature

xSalashawty

Quote from: Elija2 on Nov  5, 2010 02:39 PM
Pfft, that's just a warning.
No it isnt..
Quote from: jkid101094 on Nov  5, 2010 02:34 PM
It's Friday. And that sucks. D=
*huggles*
Huggles*
Quote from: Skyle369 on Nov  5, 2010 03:04 PM
Just for getting 10 mistakes?!? That sucks...
Quote from: Solar-Solace on Nov  5, 2010 02:35 PM
a B, huh? so, you're mom is cracking down on you; double time, because you made a B on a quiz?! not to mention it was a 50 question quiz?

bummer...talk about being unnecessarily unsatisfied...

LOL...glad she's not me mom! but forrealz...I feel for ya, because we all know how dull studing is, right?


                                                   ~K, Later!
She got mad for a B. so....
Signature

Are you lookin' at me fruitcake? I don't need a date.
Click me.

DatzAmorayEX

Quote from: xKáyáh'sCátpirèty on Nov  5, 2010 02:23 PM
My mom got ANGRY for getting a b- (missing 10 on a 50 question test, or 10 on a 100 point quiz. My teacher doubles my score) and now she makes me study every Thurs for a long time. And I hate studying. So, -wavewave-

I have to say, that is simply retarded. I'm not joking. A B-? seriously? Parents these days.
Signature
"Aw Shaddup! Don't order me around ya pile of scrud metal!"
"Hey, calm down. Or else you're going to have to take a time out in the corner."

xSalashawty

My parents actually forgot it, but when they remember I'm basically booted off.
Signature

Are you lookin' at me fruitcake? I don't need a date.
Click me.

DatzAmorayEX

That's not just undeserving, but completely unnecessary. Your parents should give you encouragement to do better, not punish you for a B-. This is merely stupid.
Signature
"Aw Shaddup! Don't order me around ya pile of scrud metal!"
"Hey, calm down. Or else you're going to have to take a time out in the corner."

Tanassy

Quote from: DatzAmorayEX on Nov 26, 2010 09:10 AM
That's not just undeserving, but completely unnecessary. Your parents should give you encouragement to do better, not punish you for a B-. This is merely stupid.
This.
Signature


SmashFinale

Quote from: DatzAmorayEX on Nov 26, 2010 09:10 AM
That's not just undeserving, but completely unnecessary. Your parents should give you encouragement to do better, not punish you for a B-. This is merely stupid.

I Agree...