MediaWiki:Chameleon.js
Australian New Zealand Wiring Rules
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
var wens = $('<div>')
.addClass('we-namespace text-white smw-issue-label mt-3')
.text( mw.config.get('wgCanonicalNamespace') )
$('#firstHeading').before(wens);
$('.book-contents-menu').on('click', function(){
$('.fancytree').toggleClass('active');
});
$(document).mouseup(function(e) {
var container = $('.fancytree.active');
if (!container.is(e.target) && container.has(e.target).length === 0) {
container.removeClass('active');
}
});
$(document).keyup(function(e) {
if (e.key === "Escape") { // escape key maps to keycode `27`
var container = $('.fancytree.active');
if (!container.is(e.target) && container.has(e.target).length === 0) {
container.removeClass('active');
}
}
});
$(document).ready( function() {
//$('#tree').bind('fancytreeinit', function(event, data) {
// data.tree.makeTitleVisible();
//});
secureFormInput();
goBottom();
drawDividers();
$('.page-Project_Reference_Cards .smw-plainlist-furtherresults').detach().insertAfter('.card-columns');
});
function secureFormInput() {
if ($('[name="title"]').val() == ''){
$('input[name="create"]').attr('disabled',true);
}
$('[name="title"]').on('input', function(){
if ($(this).val() == ''){
$('input[name="create"]').attr('disabled',true);
} else {
$('input[name="create"]').attr('disabled',false);
}
});
}
function goBottom(){
$('.go-bottom').detach().prependTo('#bottom-notice-ns').show();
}
function drawDividers(){
$('[href="/---"]').parent().addClass('divider');
$('[href="/---"]').hide();
}