MediaWiki:Wikiminiatlas.js: Difference between revisions

m
No edit summary
Line 480: Line 480:
   }).append(mapbutton);
   }).append(mapbutton);
   $(link).wrap(
   $(link).wrap(
     $('<span/>')
     $('<span>')
     .css( { position: 'relative', whiteSpace: 'nowrap' } )
     .css( { position: 'relative', whiteSpace: 'nowrap' } )
     .mouseleave(function () { tooltip.fadeOut(); })
     .mouseleave(function () { tooltip.fadeOut(); })
Line 490: Line 490:
   ws = $(link).css('whiteSpace');
   ws = $(link).css('whiteSpace');
   if (site!=='de' || link.parentNode.id!=='coordinates') {
   if (site!=='de' || link.parentNode.id!=='coordinates') {
     $(link).wrap( $('<span/>').css('whiteSpace', 'nowrap') ).css('whiteSpace', ws).before(mapbutton);
     $(link).wrap( $('<span>').css('whiteSpace', 'nowrap') ).css('whiteSpace', ws).before(mapbutton);
   } else {
   } else {
     $('#coordinates').append('<span class="noprint coordinates-separator"> | </span>').append(mapbutton);
     $('#coordinates').append('<span class="noprint coordinates-separator"> | </span>').append(mapbutton);
Line 643: Line 643:
  // prepare iframe to house the map
  // prepare iframe to house the map
  if (coordinates!==null) {
  if (coordinates!==null) {
   wi.div = $('<div/>').css( {
   wi.div = $('<div>').css( {
   width: (wc.width+2)+'px', height: (wc.height+2)+'px',
   width: (wc.width+2)+'px', height: (wc.height+2)+'px',
   margin: '0px', padding: '0px',
   margin: '0px', padding: '0px',
Line 658: Line 658:


   // cover the iframe to prevent loosing the mouse to the iframe during resizing
   // cover the iframe to prevent loosing the mouse to the iframe during resizing
   wi.resizehelper = $('<div/>').css( { position: 'absolute', top:0, left:0, zIndex: 20 } ).hide();
   wi.resizehelper = $('<div>').css( { position: 'absolute', top:0, left:0, zIndex: 20 } ).hide();


   wi.closebutton = $('<img>').attr( {
   wi.closebutton = $('<img>').attr( {
Line 667: Line 667:
   } ).click( function(e) { wi.div.hide(); } );
   } ).click( function(e) { wi.div.hide(); } );


   wi.iframe = $('<iframe/>')
   wi.iframe = $('<iframe>')
   .attr( { scrolling: 'no', frameBorder : 0 } )
   .attr( { scrolling: 'no', frameBorder : 0 } )
   .css( {
   .css( {
Line 684: Line 684:
   }
   }
   wi.div.append(
   wi.div.append(
     $('<div/>')
     $('<div>')
     .css( {
     .css( {
       zIndex : 15, position : 'absolute', bottom : '3px',
       zIndex : 15, position : 'absolute', bottom : '3px',
Anonymous user