Author: Kamil Tekiela (kamil-tekiela) Date: 2022-07-13T17:31:07+01:00 Commit: https://github.com/php/web-php/commit/89b9ef2e6610a38a884baf3a8cc762625f1b63f4 Raw diff: https://github.com/php/web-php/commit/89b9ef2e6610a38a884baf3a8cc762625f1b63f4.diff
Delete jquery.ui.totop.js UItoTop was dead script since https://github.com/php/web-php/commit/613a15b4954034a65072cd78d007072221779998 Changed paths: D js/ext/jquery.ui.totop.js Diff: diff --git a/js/ext/jquery.ui.totop.js b/js/ext/jquery.ui.totop.js deleted file mode 100644 index d92ac9dc5..000000000 --- a/js/ext/jquery.ui.totop.js +++ /dev/null @@ -1,58 +0,0 @@ -/* -|-------------------------------------------------------------------------- -| UItoTop jQuery Plugin 1.1 -| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/ -|-------------------------------------------------------------------------- -*/ - -(function($){ - $.fn.UItoTop = function(options) { - - var defaults = { - text: 'To Top', - min: 200, - inDelay:600, - outDelay:400, - containerID: 'toTop', - containerHoverID: 'toTopHover', - scrollSpeed: 1200, - easingType: 'linear' - }; - - var settings = $.extend(defaults, options); - var containerIDhash = '#' + settings.containerID; - var containerHoverIDHash = '#'+settings.containerHoverID; - - $('body').append('<a href="#" id="'+settings.containerID+'" onclick="return false;">'+settings.text+'</a>'); - $(containerIDhash).hide().click(function(){ - $('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType); - $('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType); - return false; - }) - .prepend('<span id="'+settings.containerHoverID+'"></span>') - .hover(function() { - $(containerHoverIDHash, this).stop().animate({ - 'opacity': 1 - }, 600, 'linear'); - }, function() { - $(containerHoverIDHash, this).stop().animate({ - 'opacity': 0 - }, 700, 'linear'); - }); - - $(window).scroll(function() { - var sd = $(window).scrollTop(); - if(typeof document.body.style.maxHeight === "undefined") { - $(containerIDhash).css({ - 'position': 'absolute', - 'top': $(window).scrollTop() + $(window).height() - 50 - }); - } - if ( sd > settings.min ) - $(containerIDhash).fadeIn(settings.inDelay); - else - $(containerIDhash).fadeOut(settings.outDelay); - }); - -}; -})(jQuery); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php