Thanks for using our site!

If you're looking to become an editor, please read the Becoming an Editor section carefully.

MediaWiki:Mobile.js: Difference between revisions

From ranchstory
Jump to navigationJump to search
mNo edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 2: Line 2:


mw.loader.using('mobile.site.styles')
mw.loader.using('mobile.site.styles')
<!-- Spoiler Tag -->
/*
    Template:Spoiler on dev.miraheze.org
*/
$(function(){
    //spoiler block behavior
$('.spoiler').click(function(){
$(this).toggleClass('off');
});
// spoiler button behavior
    $('#spoilerbtn').text('Show all spoilers');
$('#spoilerbtn').click(function(){
$(this).toggleClass('hide');
$('.spoiler').toggleClass('showall');
if ($(this).is('.hide')){ $(this).text('Hide all spoilers'); }
        else { $(this).text('Show all spoilers'); }
});
});
// [[Category:Scripts]]
<!-- End Spoiler Tag -->

Revision as of 12:20, 4 April 2026

/* All JavaScript here will be loaded for users of the mobile site */

mw.loader.using('mobile.site.styles')