webapp/resources/xznstatic/js/front.js
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(document).ready(function () {
'use strict';
// ------------------------------------------------------- //
// Search Box
// ------------------------------------------------------ //
$('#search').on('click', function (e) {
e.preventDefault();
$('.search-box').fadeIn();
});
$('.dismiss').on('click', function () {
$('.search-box').fadeOut();
});
// ------------------------------------------------------- //
// Card Close
// ------------------------------------------------------ //
$('.card-close a.remove').on('click', function (e) {
e.preventDefault();
$(this).parents('.card').fadeOut();
});
// ------------------------------------------------------- //
// Tooltips init
// ------------------------------------------------------ //
$('[data-toggle="tooltip"]').tooltip()
// ------------------------------------------------------- //
// Adding fade effect to dropdowns
// ------------------------------------------------------ //
$('.dropdown').on('show.bs.dropdown', function () {
$(this).find('.dropdown-menu').first().stop(true, true).fadeIn();
});
$('.dropdown').on('hide.bs.dropdown', function () {
$(this).find('.dropdown-menu').first().stop(true, true).fadeOut();
});
// ------------------------------------------------------- //
// Sidebar Functionality
// ------------------------------------------------------ //
$('#toggle-btn').on('click', function (e) {
e.preventDefault();
$(this).toggleClass('active');
$('.side-navbar').toggleClass('shrinked');
$('.content-inner').toggleClass('active');
$(document).trigger('sidebarChanged');
if ($(window).outerWidth() > 1183) {
if ($('#toggle-btn').hasClass('active')) {
$('.navbar-header .brand-small').hide();
$('.navbar-header .brand-big').show();
} else {
$('.navbar-header .brand-small').show();
$('.navbar-header .brand-big').hide();
}
后面还有 112 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
