משתמש:Shimon.tre/common.js – הבדלי גרסאות
תוכן שנמחק תוכן שנוסף
Shimon.tre (שיחה | תרומות) אין תקציר עריכה |
Shimon.tre (שיחה | תרומות) אין תקציר עריכה |
||
שורה 33: | שורה 33: | ||
$topButton.css('bottom', '-30px'); |
$topButton.css('bottom', '-30px'); |
||
} |
} |
||
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Guycn2/UserInfoPopup.js/min.js&action=raw&ctype=text/javascript"); |
|||
}); |
}); |
||
}); |
}); |
גרסה מ־02:30, 6 ביוני 2023
importUserScript( 48, 79, 110, 10, 52, 97, 29, 56, 67, 16, 33, 80, 76);
importScript('משתמש:Yonidebest/monobook.js/highlightAnon.js');
importScript('משתמש:החבלן/common.js/editCounterTab.js');
/* הוספת "מעבר למעלה" בשולי חלון הצפייה */
/* goToTop – Handy for phones. Adds a small button to the bottom left of the page which moves to the top of the page when tapped. */
/* https://en.wikipedia.org/wiki/User:Numbermaniac/goToTop.js :מקור */
$(function(){
'use strict';
$('body').append('<span id="to-top">↟ מעבר למעלה ↟</span>');
var $topButton = $('#to-top');
$topButton.css({
'color': 'blue',
'position': 'fixed',
'bottom': '-30px',
'left': '4px',
'cursor': 'pointer',
'transition': 'bottom 0.5s',
'-webkit-transition': 'bottom 0.5s',
'user-select': 'none',
'-webkit-user-select': 'none',
'-moz-user-select': 'none',
'-ms-user-select': 'none'
}).click(function(){
$('html, body').animate({scrollTop: 0},200);
});
$(window).scroll(function(){
if ($(window).scrollTop() > 100 ) {
$topButton.css('bottom', '4px');
}else{
$topButton.css('bottom', '-30px');
}
mw.loader.load("https://en.wikipedia.org/w/index.php?title=User:Guycn2/UserInfoPopup.js/min.js&action=raw&ctype=text/javascript");
});
});