User:BryghtShadow/global.js

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

/** Common Site Enhancements **/ importScriptPage('DisplayClock/code.js', 'dev'); importScriptPage('RevealAnonIP/code.js', 'dev');

/** Tools **/ importScriptPage('DupImageList/code.js', 'dev');

/** Site Enhancements **/ importScriptPage( 'SkinSwitchButton/code.js', 'dev' );

function cboxprint { console.log("[" + $("#checkbox-1-1").prop("checked") + "]," +             "[" + $("#radio-1-1").prop("checked") +              "," + $("#radio-1-2").prop("checked") +              "," + $("#radio-1-3").prop("checked") +              "," + $("#radio-1-4").prop("checked") +              "]"); };

function toggle_check_output(id, t) { console.log("id = " + id + " obj.checked = " + t); $("#" + id + "-output").toggle(t); }

function toggle_radio_output(id) { console.log("id = " + id); $(".radio-output").hide; $("#" + id + "-output").show; }

$("#checkbox-1-1").change(function { console.log("Checkbox-1-1: Handler for .change called.");  cboxprint;  toggle_check_output(this.id, this.checked); });

$(".regular-radio").change(function { console.log("Regular radio: Handler for .change called.");  cboxprint;  toggle_radio_output(this.id); });

$(document).ready(function { toggle_check_output("checkbox-1-1", false);  toggle_radio_output("radio-1-1"); });