js/main.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*------------------------------------------------------------------
* Project: Hotux
* Author: CN-InfoTech
* URL: hthttps://themeforest.net/user/cn-infotech
* Created: 01/08/2020
-------------------------------------------------------------------*/
(function ($) {
"use strict";
/*======== Doucument Ready Function =========*/
jQuery(document).ready(function () {
//CACHE JQUERY OBJECTS
$("#status").fadeOut();
$("#preloader").delay(200).fadeOut("slow");
$("body").delay(200).css({ "overflow": "visible" });
/* Init Wow Js */
new WOW().init();
});
// Mouse-enter dropdown
$('#navbar li').on('mouseenter', function () {
$(this).find('ul').first().stop(true, true)
.delay(350)
.slideDown(500, 'easeInOutQuad');
});
// Mouse-leave dropdown
$('#navbar li').on('mouseleave', function () {
$(this).find('ul').first().stop(true, true)
.delay(100)
.slideUp(150, 'easeInOutQuad');
});
$(window).scroll(() => {
if ($(window).scrollTop() > 10) {
$('.navigation').addClass('navbar-sticky');
} else {
$('.navigation').removeClass('navbar-sticky');
}
});
/* ------------------------------------------------------------------------ */
/* BACK TO TOP
/* ------------------------------------------------------------------------ */
$(document).on('click', '#back-to-top, .back-to-top', () => {
$('html, body').animate({ scrollTop: 0 }, '500');
return false;
});
$(window).on('scroll', () => {
if ($(window).scrollTop() > 500) {
$('#back-to-top').fadeIn(200);
} else {
后面还有 330 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。