MediaWiki:Common.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
sostituita funzione hasClass con jQuery
m fix toolserver url, spezzate righe troppo lunghe
Riga 65:
var realTitleHTML = realTitle.innerHTML;
var realTitleText = $(realTitle).text();
// contains HTML that will be ignored when cut-n-pasted as a wikilink
 
var containsTooMuchHTML = /</.test( realTitleHTML.replace(/<\/?(sub|sup|small|big|a)>/gi, "") ); // contains HTML that will be ignored when cut-n-pasted as a wikilink
 
var h1 = document.getElementsByTagName("h1")[0];
Riga 503:
var iFrame = document.createElement ( 'iframe' ) ;
var url = '//toolservertools.wmflabs.org/~kolossoswiwosm/openlayersosm-on-ol/kml-on-ol.php?' +
'lang=' + mw.config.get('wgUserLanguage') + '&params=' + h +
'&title=' + mw.util.wikiUrlencode( mw.config.get( 'wgTitle' ) ) +
( window.___location.protocol == 'https:' ? '&secure=1' : '' ) ;
iFrame.style.width = '100%' ;
iFrame.style.height = ((AlterigiaSchermo*80/100)-100) + 'px' ;