MediaWiki:Wikiminiatlas.js: Difference between revisions
due to database problems on the toolserver
(change placement of tooltop) |
(due to database problems on the toolserver) |
||
Line 445: | Line 445: | ||
var wrap, span=$('#coordinates>span>span>img') | var wrap, span=$('#coordinates>span>span>img') | ||
, bubble = $('<div><div>').css( { width: '150px', border: '1px solid #bbb', borderRadius: '8px', position: 'absolute', bottom: '22px', right: '-4px', whiteSpace: 'normal', textAlign: 'left', padding: '0.25em 0.75em 0.25em 0.75em', fontSize: '90%', backgroundColor: '#f9f9f9', boxShadow: '4px 4px 10px rgba(0,0,0,0.2)' } ).text('Click the blue globe to open an interactive map.').append( $('<div></div>').css({position: 'absolute', width: 0, height: 0, bottom: '-10px', right: '10px', borderBottom:0, borderLeft: '5px solid transparent', borderRight: '5px solid transparent', borderTop: '10px solid #bbb'}) ).append( $('<div></div>').css({position: 'absolute', width: 0, height: 0, bottom: '-7px', right: '10px', borderBottom:0, borderLeft: '5px solid transparent', borderRight: '5px solid transparent', borderTop: '10px solid #f9f9f9'}) ).hide(); | , bubble = $('<div><div>').css( { width: '150px', border: '1px solid #bbb', borderRadius: '8px', position: 'absolute', bottom: '22px', right: '-4px', whiteSpace: 'normal', textAlign: 'left', padding: '0.25em 0.75em 0.25em 0.75em', fontSize: '90%', backgroundColor: '#f9f9f9', boxShadow: '4px 4px 10px rgba(0,0,0,0.2)' } ).text('Click the blue globe to open an interactive map.').append( $('<div></div>').css({position: 'absolute', width: 0, height: 0, bottom: '-10px', right: '10px', borderBottom:0, borderLeft: '5px solid transparent', borderRight: '5px solid transparent', borderTop: '10px solid #bbb'}) ).append( $('<div></div>').css({position: 'absolute', width: 0, height: 0, bottom: '-7px', right: '10px', borderBottom:0, borderLeft: '5px solid transparent', borderRight: '5px solid transparent', borderTop: '10px solid #f9f9f9'}) ).hide(); | ||
if( span.length>0 ) { | if( span.length>0 && false ) { | ||
wrap = $('<span></span>').css( { width: '20px', height: '17px', position: 'relative' } ); | wrap = $('<span></span>').css( { width: '20px', height: '17px', position: 'relative' } ); | ||
span.wrap(wrap).parent().append(bubble.fadeIn().click(function(){ bubble.fadeOut(); window.localStorage.setItem('wmatooltipdismissed','yes') })); | span.wrap(wrap).parent().append(bubble.fadeIn().click(function(){ bubble.fadeOut(); window.localStorage.setItem('wmatooltipdismissed','yes') })); |