skin/js/common.js
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$b=$("body");
// Y_Move,Y_Tab,Y_Anchors
// top Class
!function(e){var n=function(n){var o=w.scrollTop()>(e(".TopLine").length?e(".TopLine").offset().top:1);e(".subpage").length&&(o=!0),void 0!=n&&(e(".nav .bg").Y_SetCss3({dur:"0ms"}),setTimeout(function(){e(".nav .bg").removeAttr("style")},1)),o?e(ysq.wrap).addClass("fixedNav"):e(ysq.wrap).removeClass("fixedNav")};w.on("scroll.navC",function(){n()}),n(0)}(jQuery);
// setSubPage
!function(t){!function(i){if(i.length){t(".TopLine");var e=t(".BottomLine");i.css("min-height",function(){return t(this).css("min-height")||0}),t(ysq.wrap).outerHeight()<w.height()&&i.css({"min-height":w.height()-(void 0==ysq._dpr?ptb(i,0)+ptb(i,1):0)-i.offset().top-(t(ysq.wrap).outerHeight()-e.offset().top)})}}(t(".subpage"))}(jQuery);
// banner
! function(n) {
function t(n) {
return n < 10 && (n = "0" + n), n
}
jQuery(".banner").Y_Move({
duration: 1500,
resizable: !1,
fullscreen: !0,
evenWidth: !0,
transparent: !0,
itemInit: !0,
slidable: !1,
IsIcon: !1,
IsDrag: !0,
oddEven: !0,
InOut: !0,
TimeOut: 4,
synchro: !0,
fn: {
after: function(n, e, i) {
n.find(".nums b").text(t(e.length))
},
start: function(n, e, i, r, u, s, s, a) {
n.find(".nums i").text(t(i + 1))
}
}
})
}();
jQuery(document).ready(function() {
//video
;(function($){
if(!$('video').length){return;}
var bCanPlay=!!$('video')[0].canPlayType;
if($(".vd-box .btn.play").not(".videoPlay").length){
$(".vd-box .btn.play").click(function(e) {
$(this).parents('.vd-box').find('.video').show(0,function(){
bCanPlay&&$(this)[0].play();
});
});
}else if($(".videoPlay").length){
$("#videoWindow").Y_Modal({sTrigger:$(".videoPlay"),fn:{
callback:function($this,$Tg){
$("video",$this)[0].src=$Tg.attr("video-src");
bCanPlay&&$("video",$this)[0].play();
},funno:function($this){
$("video",$this)[0].src=" ";
bCanPlay&&$("video",$this)[0].pause();
}}
});
}
})(jQuery);
! function(t) {
后面还有 163 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。