MediaWiki:Common.js: Difference between revisions
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 7: | Line 7: | ||
$(document).ready(function(){ | $(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") | $( "<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"); | ||
}); | }); |
Revision as of 15:09, 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' );
$(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");
});