ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/thietkeweb2/layout/default/node_modules/vanillatop/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkeweb2/layout/default/node_modules/vanillatop/src/vanillatop.js
// Vanillatop : Lightweight plugin in vanilla javascript to animate scrolling to the top of the page.
//
// @package    vanillatop
// @version    v1.0.6
// @author     Bernard Collet <webmaster@russianconcept.com>
// @copyright (c) 2019 Bernard Collet
// @license    MIT <https://opensource.org/licenses/MIT>
// @link       https://github.com/bernydole/vanillatop
//
(function () {
  document.addEventListener("DOMContentLoaded", function () {
    var anchorToTop = document.querySelector('.vanillatop'),
      offset = 280, // browser window scroll (in pixels) after which the "back to top" link is shown
      scrollDuration = 700;

    function scrollToTop(duration) {
      var start = window.pageYOffset,
        startTime = Math.floor(Date.now());

      function scroll() {
        Math.easeInOutQuad = function (t) {
          return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
        };
        var time = Math.min(1, ((Math.floor(Date.now()) - startTime) / duration));
        window.scroll(0, Math.ceil((Math.easeInOutQuad(time) * (0 - start)) + start));
        if (window.pageYOffset === 0) {
          callback();
        }
        requestAnimationFrame(scroll);
      }
      scroll();
    }

    function scrollingDown() {
      if (document.body.scrollTop > offset || document.documentElement.scrollTop > offset) {
        anchorToTop.removeAttribute("style", "transform: translateX(120px);");
        anchorToTop.setAttribute("style", "transform: translateX(0);");
      } else {
        anchorToTop.removeAttribute("style", "transform: translateX(0);");
        anchorToTop.setAttribute("style", "transform: translateX(120px);");
      }
    }

    anchorToTop.addEventListener('click', function () {
      (!window.requestAnimationFrame) ? window.scrollTo(0, 0): scrollToTop(scrollDuration);
    });
    window.addEventListener('scroll', scrollingDown);
  });
})();

ZeroDay Forums Mini