MediaWiki:Common.js

From Tsadra Commons
Revision as of 16:09, 5 March 2018 by Jeremi (talk | contribs) ((by SublimeText.Mediawiker))
Jump to navigation Jump to search

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 / Edge: 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.
mw.loader.load( 'https://use.fontawesome.com/releases/v5.0.7/js/all.js' );
mw.loader.load( 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css' );
mw.loader.load( 'https://code.jquery.com/jquery-3.2.1.slim.min.js' );
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js' );
mw.loader.load( 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js' );
mw.loader.load( '/Volumes/TsadraData/HomeDirs/jeremi/GOTHAM-BLACK.TTF' );

$(document).ready(function(){
	$( "<div class="mwe-upwiz-license-custom"><span class="oo-ui-widget oo-ui-widget-enabled oo-ui-buttonElement oo-ui-buttonElement-framed oo-ui-labelElement oo-ui-flaggedElement-progressive oo-ui-buttonWidget" aria-disabled="false"><a class="oo-ui-buttonElement-button" role="button" tabindex="0" aria-disabled="false" rel="nofollow"><span class="oo-ui-iconElement-icon oo-ui-image-progressive"></span><span class="oo-ui-labelElement-label">Preview</span><span class="oo-ui-indicatorElement-indicator oo-ui-image-progressive"></span></a></span><div class="oo-ui-widget oo-ui-widget-enabled oo-ui-inputWidget oo-ui-textInputWidget oo-ui-textInputWidget-type-text" aria-disabled="false"><textarea tabindex="0" aria-disabled="false" class="oo-ui-inputWidget-input" name="license2_14_custom" id="license2_14_custom"></textarea><textarea tabindex="0" aria-disabled="false" class="oo-ui-inputWidget-input oo-ui-element-hidden" name="license2_14_custom" aria-hidden="true" rows="10" style="height: auto;"></textarea><span class="oo-ui-iconElement-icon"></span><span class="oo-ui-indicatorElement-indicator"></span></div></div>" ).insertBefore(".mwe-upwiz-deed-ownwork");
});