src/main/webapp/resources/xznstatic/js/init.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/** *************Init JS*********************
TABLE OF CONTENTS
---------------------------
1.Ready function
2.Load function
3.Full height function
4.snoopy function
5.Chat App function
6.Resize function
** ***************************************/
"use strict";
/*****Ready function start*****/
$(document).ready(function(){
snoopy();
$('.preloader-it > .la-anim-1').addClass('la-animate');
});
/*****Ready function end*****/
/*****Load function start*****/
$(window).on("load",function(){
$(".preloader-it").delay(500).fadeOut("slow");
/*Progress Bar Animation*/
var progressAnim = $('.progress-anim');
if( progressAnim.length > 0 ){
for(var i = 0; i < progressAnim.length; i++){
var $this = $(progressAnim[i]);
$this.waypoint(function() {
var progressBar = $(".progress-anim .progress-bar");
for(var i = 0; i < progressBar.length; i++){
$this = $(progressBar[i]);
$this.css("width", $this.attr("aria-valuenow") + "%");
}
}, {
triggerOnce: true,
offset: 'bottom-in-view'
});
}
}
});
/*****Load function* end*****/
/***** Full height function start *****/
var setHeightWidth = function () {
var height = $(window).height();
var width = $(window).width();
$('.full-height').css('height', (height));
$('.page-wrapper').css('min-height', (height));
/*Right Sidebar Scroll Start*/
if(width<=1007){
$('#chat_list_scroll').css('height', (height - 270));
$('.fixed-sidebar-right .chat-content').css('height', (height - 279));
$('.fixed-sidebar-right .set-height-wrap').css('height', (height - 219));
}
else {
$('#chat_list_scroll').css('height', (height - 204));
$('.fixed-sidebar-right .chat-content').css('height', (height - 213));
后面还有 318 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。