Материал из Hilarious Wiki
|
|
| (не показано 60 промежуточных версий этого же участника) |
| Строка 1: |
Строка 1: |
| − | /* Добавляет кнопку "Вверх" слева */
| + | mw.loader.using( 'jquery.tipsy', function () { |
| − | ( function() {
| + | $('.tooltip').tipsy({gravity: $.fn.tipsy.autoNS}); |
| − | var body = document.getElementsByTagName('body');
| + | } ); |
| − | document.body.innerHTML +='<div id="BackToTop" class="noprint" style="background-color:#DDEFDD; position:fixed;
| |
| − | bottom:32px; left:2%; z-index:9999; padding:0; margin:0;"><span style="color:blue;
| |
| − | font-size:8pt; font-face:verdana,sans-serif; border:0.2em outset #ceebf7;
| |
| − | padding:0.1em; font-weight:bolder; -moz-border-radius:8px; ">
| |
| − | [[#top| Back to the Top ]]</span></div>';
| |
| − | /*$(document).ready(function() {
| |
| − | $(".scroll-top").each(function() {
| |
| − | var t, e;
| |
| − | return (t = $(this)).hide().removeClass("hide-scroll-top"),
| |
| − | e = 0,
| |
| − | $(window).scroll(function() {
| |
| − | return t[$(this).scrollTop() > 0 ? "fadeIn" : "fadeOut"](300)
| |
| − | }),
| |
| − | t.find(".scroll-top-img").click(function() {
| |
| − | var t;
| |
| − | return t = $(window),
| |
| − | t.scrollTop() > 0 && (e = t.scrollTop(),
| |
| − | $("body,html").animate({
| |
| − | scrollTop: 0
| |
| − | }, 400)),
| |
| − | !1
| |
| − | });
| |
| − | });
| |
| − | });*/
| |
| − | } )();
| |
Текущая версия на 16:19, 29 января 2017
mw.loader.using( 'jquery.tipsy', function () {
$('.tooltip').tipsy({gravity: $.fn.tipsy.autoNS});
} );