User:Acagastya/admin-dash.js

mw.loader.using(['mediawiki.api'], function {	"use strict";	// == Create an API object ==	var api = new mw.Api;	// == Query the wiki API to get HTML of ==	var fillMyDiv = function{		api.get( { action: 'parse', disableeditsection: 'true', text: '' } ).done( function ( data ) { var $mydiv = $('#gryllida-rcattheend-div'); $mydiv.empty; $mydiv.append($(data.parse.text['*'])); });	};	// == Add the HTML at the end of current page ==	var $mydiv = $(' ',{ id: 'gryllida-rcattheend-div', style:"background-color: beige !important; border: 5px red dashed; margin-left: 176px; padding: 20px; right: 1em" });	$mydiv.click(function{fillMyDiv;});	//$mydiv.mouseenter(function{ //	fillMyDiv; //});	$('body').append($mydiv);	fillMyDiv; });