MediaWiki:Common.js: Difference between revisions

From Tsadra Commons
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 5: Line 5:
mw.loader.load( 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.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' );
mw.loader.load( '/Volumes/TsadraData/HomeDirs/jeremi/GOTHAM-BLACK.TTF' );
$(document).ready(function(){
$("#mwe-upwiz-deeds").prepend('<div class="mwe-upwiz-deed-license-group-body mw-collapsible-content"><div class="mwe-upwiz-deed-license"><input id="license2_14" name="license2" type="radio" value="{{subst:Custom license marker added by UW}}" class="mwe-upwiz-copyright-info-radio"><label for="license2_14" class="mwe-upwiz-copyright-info">The license is described by the following wikitext (must contain a valid <a target="_blank" href="//commons.wikimedia.org/wiki/Commons:Copyright_tags">copyright tag</a>):<span></span></label><br><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></div></div>')
});

Revision as of 16:13, 5 March 2018

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' );