-The Dream Cancel Wiki has successfully upgraded it's wiki software and editing has returned. Tables for data have returned.

MediaWiki:Common.js: Difference between revisions

From Dream Cancel Wiki
Jump to navigation Jump to search
Created page with "β†’β€ŽAny JavaScript here will be loaded for all users on every page load.: $(document).ready(function() { $('.hitbox-toggle-off').click(function() { $('.hitbox-toggle-of..."
(No difference)

Revision as of 16:03, 29 September 2021

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

$(document).ready(function() {
	
	$('.hitbox-toggle-off').click(function() {
		$('.hitbox-toggle-off').hide();
		$('.move-image').hide();
		$('.caption').hide();
		$('.hitbox-toggle-on').show();
		$('.hitbox-image').show();
		$('.hitbox-caption').show();
	});

	$('.hitbox-toggle-on').click(function() {
		$('.hitbox-toggle-on').hide();
		$('.hitbox-image').hide();
		$('.hitbox-caption').hide();
		$('.hitbox-toggle-off').show();
		$('.move-image').show();
		$('.caption').show();
	});
	
	// Add placeholder text to Upload Summary
	$('#wpUploadDescription').attr("placeholder",
		"Add a description here.\n" +
		"If you're uploading a new file, make sure to categorize!\n" +
		"Example:\n" +
		"[[Category:Skullgirls]]\n" +
		"[[Category:Filia]]");

});