⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
dist
/
js
/
Edit File: main.js
(function ($) { "use strict"; // Spinner var spinner = function () { setTimeout(function () { if ($('#spinner').length > 0) { $('#spinner').removeClass('show'); } }, 1); }; spinner(); // Initiate the wowjs new WOW().init(); // Sticky Navbar $(window).scroll(function () { if ($(this).scrollTop() > 45) { $('.navbar').addClass('sticky-top shadow-sm'); } else { $('.navbar').removeClass('sticky-top shadow-sm'); } }); // Dropdown on mouse hover const $dropdown = $(".dropdown"); const $dropdownToggle = $(".dropdown-toggle"); const $dropdownMenu = $(".dropdown-menu"); const showClass = "show"; $(window).on("load resize", function() { if (this.matchMedia("(min-width: 992px)").matches) { $dropdown.hover( function() { const $this = $(this); $this.addClass(showClass); $this.find($dropdownToggle).attr("aria-expanded", "true"); $this.find($dropdownMenu).addClass(showClass); }, function() { const $this = $(this); $this.removeClass(showClass); $this.find($dropdownToggle).attr("aria-expanded", "false"); $this.find($dropdownMenu).removeClass(showClass); } ); } else { $dropdown.off("mouseenter mouseleave"); } }); // Facts counter $('[data-toggle="counter-up"]').counterUp({ delay: 10, time: 2000 }); // Back to top button $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('.back-to-top').fadeIn('slow'); } else { $('.back-to-top').fadeOut('slow'); } }); $('.back-to-top').click(function () { $('html, body').animate({scrollTop: 0}, 1500, 'easeInOutExpo'); return false; }); // Testimonials carousel $(".testimonial-carousel").owlCarousel({ autoplay: true, smartSpeed: 1500, dots: true, loop: true, center: true, responsive: { 0:{ items:1 }, 576:{ items:1 }, 768:{ items:2 }, 992:{ items:3 } } }); // Vendor carousel $('.vendor-carousel').owlCarousel({ loop: true, margin: 45, dots: false, loop: true, autoplay: true, smartSpeed: 1000, responsive: { 0:{ items:2 }, 576:{ items:4 }, 768:{ items:6 }, 992:{ items:8 } } }); })(jQuery);
Simpan