NOTICE: Infinity N5.2 and N5 FAQ 0.0.0

The wiki has been updated to include the N5.2 changes and the v0.0.0 FAQ.
List of wiki pages updated in N5.2.

MediaWiki: Common.js

From Infinity
Jump to: navigation, search
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: $(document).ready(function(){ $(".n4").hide(); $("#dropdown").change(function...")
 
(N5 wiki no longer needs any JS, woo!)
Tag: Replaced
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
$(document).ready(function(){
 
          $(".n4").hide();
 
            $("#dropdown").change(function(){
 
                if ($("#dropdown").val() == "n4") {
 
                    $(".n4").show(300);
 
                } else {
 
                    $(".n4").hide(300);
 
                }
 
            });
 
        });
 
 
$(document).ready(function(){
 
          $(".n5toggle").hide();
 
            $("#gametoggle").click(function(){
 
                if ($("#gametoggle").is(":checked")) {
 
                    $(".n4").show(300);
 
                } else {
 
                    $(".n4").hide(300);
 
                }
 
            });
 
        });
 
 
 
$(function () {
 
$('#mw-mywiki-gameswap').html("<div class='form-row'><label><span>Game Version: </span><select name='register_as' id='dropdown'><option value='none'>Select One</option><option value='n4'>Show full N4 Rules</option><option value='c1'>Show CodeOne Rules</option></select></label> </div>");
 
}());
 
 
 
$(function () {
 
$('#n5gametoggle').html("<span class='gamesliderlabel'>Show full N4 rules: </span><label class='switch' > <input type='checkbox' id='gametoggle' ><span class='slider round' ></span></label>");
 
}());
 

Latest revision as of 09:42, 25 April 2025

/* Any JavaScript here will be loaded for all users on every page load. */