Differenze tra le versioni di "Utente:Barbaforcuta/common.js"

nessun oggetto della modifica
( Creata nuova pagina: →‎pagina vuota)
 
$(document).ready(function(){
/* pagina vuota*/
$("*").mousemove (function (){
$("#showWikiCodeTattoo").attr("style","display:inline-block; position:fixed; top:5px; left:90px; z-index:1000; width:30px; height:34px;");
if ($(".codeEditor-ui-toolbar .group-format").css("display")==$("div.ourDiv").css("display")){
$("span.tab.tab-Edittools").css("display","none");
}
if (mw.config.get('wgCanonicalNamespace')=="Special" && (mw.config.get("wgAction")=="view") ) {
$("#mw-head").css("height","80px");
$("#showWikiCodeTattoo").hide();
}
if ($("#wpTextbox1").css("display")==$("div.ourDiv").css("display") && (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit")){
$("#newtattoo").hide();
$('[title="Allinea memoRegex alla pagina Discussioni indice"]').hide();
$("#wikiEditor-section-main > div.group.group-codeeditor-main > span > a > span.oo-ui-iconElement-icon.oo-ui-icon-markup.oo-ui-image-progressive").click(function(){
$("#newtattoo").toggle();
});
}
});
$("div.group.group-codeeditor-main img.tool.tool-button").click( function() {
$("span.tab.tab-Edittools,div#newtattoo").toggleClass("inlinelogo");
});
$(function() {
if (mw.user.options.get("gadget-bottoniera")===null) {
} else {
$("#mw-head").append( '<div id="to-arrow" style="top:5px; left:65px; cursor:pointer; position:absolute; display:inline-block;"><a id="ar" title="Menù link utili"><img width="25" src="https://upload.wikimedia.org/wikipedia/commons/3/35/50px_down.png"/></a></div>' );
$("#ar").click(function(){
$("#to-utility").toggle();
});
$("#content").append( '<div id="to-utility" class="panview" style="height:auto !important; font-size:75%; left:0; padding:4px 6px 7px 0px;"><ul style="list-style-image:none !important; list-style-type:none !important; margin: 15px 12px 15px 20px !important;"></ul></div>' );
$("#to-utility").hide();
$("#to-utility").append($('<div style="cursor:pointer; margin-left:20px;">Skin<div style="clear:both"></div></div><div id="post" style="padding-left:30px !important; font-size:90%;"><li id="common.js"><a href="/wiki/Speciale:MiaPaginaUtente/common.js">common.js</a></li><li id="common.css"><a href="/wiki/Speciale:MiaPaginaUtente/common.css">common.css</a></li><li id="vector.js"><a href="/wiki/Speciale:MiaPaginaUtente/vector.js">vector.js</a></li><li id="vector.css"><a href="/wiki/Speciale:MiaPaginaUtente/vector.css">vector.css</a></li><li id="monobook.js"><a href="/wiki/Speciale:MiaPaginaUtente/monobook.js">monobook.js</a></li><li id="monobook.css"><a href="/wiki/Speciale:MiaPaginaUtente/monobook.css">monobook.css</a></li><li id="commonsvector.js"><a href="//commons.wikimedia.org/wiki/Special:MyPage/vector.js">commonsvector.js</a></li></div><div style="clear:both"></div>'));
mw.util.addPortletLink('to-utility', 'https://tools.wmflabs.org/xtools/pcount/index.php?name=' + mw.config.get('wgUserName') + '&lang=it&wiki=wikisource', 'Edit count (' + mw.config.get('wgUserName') + ')', '');
mw.util.addPortletLink('to-utility', '/wiki/Speciale:Log', 'Log', '');
mw.util.addPortletLink('to-utility', '/wiki/Speciale:Ipblocklist', 'Block Log', '');
mw.util.addPortletLink('to-utility', '/wiki/Categoria:Da cancellare_subito', 'Cancella subito', '');
mw.util.addPortletLink('to-utility', 'https://tools.wmflabs.org/orphantalk/?wikidb=itwikisource_p&namespace=1&limit=100', 'Disc. orfane', '');
mw.util.addPortletLink('to-utility', 'https://phabricator.wikimedia.org/', 'Phabricator', '');
mw.util.addPortletLink('to-utility', 'http://tools.wmflabs.org/ia-upload/commons/init', 'IA Upload Bot', '');
mw.util.addPortletLink('to-utility', 'http://jquery.com/', 'jQuery', '');
mw.util.addPortletLink('to-utility', 'https://regex101.com/', 'OnlineRegex', '');
mw.util.addPortletLink('to-utility', 'http://jsfiddle.net/', 'JSFiddle', '');
mw.util.addPortletLink('to-utility', 'http://www.w3schools.com/', 'W3Schools', '');
mw.util.addPortletLink('to-utility', 'http://validator.w3.org/', 'W3C Validator', '');
mw.util.addPortletLink('to-utility', 'https://doc.wikimedia.org/mediawiki-core/master/js/#!/api', 'API Documentation', '');
mw.util.addPortletLink('to-utility', 'http://lilypond.org/website/manuals.it.html', 'Lilypond manual', '');
mw.util.addPortletLink('to-utility', 'http://outofcopyright.eu/calculator.html', 'Public Domain Calculator', '');
if (mw.config.get("wgAction")=="edit" || mw.config.get("wgAction")=="submit"){
$("#to-arrow,#to-utility").remove();
}
$("div.tux-navitoggle").click(function(){
$("#to-utility").toggleClass("lefty");
$("#to-arrow").toggleClass("all");
});
}
return false;
//inserisce un a capo all'inizio del footer (per il bug 26028)
footer = $('[name=wpFooterTextbox]');
if (footer.length > 0 && !footer.val().match(/^\n/)) {
footer.val('\n' + footer.val());
}
});
$("#utcdate").hover(function(){
$("#utcdate1").toggleClass("inlinelogo");
});
});
 
$(document).ready(function(){
$("#mw-panel").css("display","block !important");
if (mw.config.get("wgAction")=="view" || mw.config.get("wgAction")=="history"){
$( 'body' ).append( '<span id="to-panel" style="top:82px; position:fixed; display:inline-block; left:0;"><a href="https://commons.wikimedia.org/wiki/File%3AVector_skin_right_arrow.png"><img width="16" alt="Vector skin right arrow" src="//upload.wikimedia.org/wikipedia/commons/3/36/Vector_skin_right_arrow.png"/></a></span>' );
$("#to-panel").mouseenter(function(){
$("#to-panelbox").show();
$("#mw-panel").addClass("panview").show();
});
$("#mw-panel").mouseleave(function(){
$("#mw-panel").removeClass("panview").hide();
$("#to-panelbox").hide();
if ($("#p-logo").css("display")==$("#newtattoo").css("display")){
$("#mw-panel").removeClass("panview").show();
}
});
}
});
 
$(document).ready(function(){
$("*").mousemove(function(){
var tro=$("#wikiEditor-ui-toolbar").height();
var tro1=tro-30;
$("div#openEditFormButton a,div#editFormAutoreRight div a").attr("style","position:fixed; z-index:1001; right:5px;").css("top",""+tro1+"px");
});
});
26 047

contributi