If you had an issue logging in, that was fixed.

MediaWiki:Mobile.js: Difference between revisions

From Screamer Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
m Reverted edits by Lawiki (talk) to last revision by Tankmanfan44
Tag: Rollback
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
$("#PollTest").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=45&embed=1&estyle=DefaultLight" max-width="100%" height="400" max-height="600">');
$("#PollTest").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=45&embed=1&estyle=DefaultLight" max-width="100%" height="400" max-height="600">');
$("#PollTest2").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=49&embed=1&estyle=DefaultLight" width="500" max-width="500" height="400" max-height="600">');
$("#PollTest2").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=49&embed=1&estyle=DefaultLight" width="500" max-width="500" height="400" max-height="600">');
$(document).ready(function () {
    $("a.external").each(function () {
        let url = new URL(this.href);
        if (!url.searchParams.has("utm_source")) {
            url.searchParams.set("utm_source", "screamer.wiki");
            this.href = url.toString();
        }
    });
});

Latest revision as of 12:49, 14 October 2026

/* Any JavaScript here will be loaded for users using the mobile site */
mw.loader.using('mobile.site.styles')

//Poll Test
$("#PollTest").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=45&embed=1&estyle=DefaultLight" max-width="100%" height="400" max-height="600">');
$("#PollTest2").replaceWith('<iframe src="https://polls.screamer.wiki/polls.php?id=49&embed=1&estyle=DefaultLight" width="500" max-width="500" height="400" max-height="600">');