MediaWiki:Mobile.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 27: Line 27:
$('body').append($bGetTIP);
$('body').append($bGetTIP);
$span.on('tap', function(){
$span[0].addEventListener('touchstart', function(){
    let toppos  = ($(window).height()/2) - ($bGetTIP.height()/2);
    let toppos  = ($(window).height()/2) - ($bGetTIP.height()/2);
    let leftpos = ($(window).width()/2)  - ($bGetTIP.width()/2);
    let leftpos = ($(window).width()/2)  - ($bGetTIP.width()/2);
Line 34: Line 34:
});
});
$bGetTIP.on('tap', function(){
$bGetTIP[0].addEventListener('touchstart', function(){
$(this).hide();
$(this).hide();
});
});