Song.Site/Templates/Web/Neimeng/Scripts/Outline.js
(开头部分) 13KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
setStyle();
//分隔栏上的事件
$("#median").click(function () {
if ("undefined" == typeof window.fullScreen) {
window.fullScreen = false;
}
if (!window.fullScreen) {
$("#outlineBox").animate({ width: 100 }, 500, function () { $(this).hide(); });
$("#MainBox").animate({ width: $(window).width() * 0.99 }, 500);
$("#btnClose").hide();
$("#btnOpen").show();
window.fullScreen = true;
} else {
$("#MainBox").animate({ width: $(window).width() * 0.79 }, 500);
$("#outlineBox").animate({ width: $(window).width() * 0.2 }, 300,
function () {
$(this).slideDown(800);
});
$("#btnOpen").hide();
$("#btnClose").show();
window.fullScreen = false;
}
});
setInitTilte();
});
/*=====================================================================
*/
//设置标题栏的事件
function setInitTilte() {
//取当前状态值
var box = $("div[statebox]").first();
var stateCurr = box.attr("statebox");
//标题栏的项
var tit = $("a.titBox");
tit.removeClass("titCurr");
tit.each(function () {
var href = $(this).attr("href");
var rs = new RegExp("(^|)state=([^\&]*)(\&|$)", "gi").exec(href), tmp;
var state = 0;
if (tmp = rs) state = tmp[2];
if (stateCurr == state) {
$(this).addClass("titCurr");
try {
var func = eval("setInit_" + state);
if ("undefined" != typeof (func) && func != null) func();
} catch (e) { }
}
});
}
//习题界面的初始化
function setInit_4() {
var frame = $("#Exercises");
var pat = frame.parent();
frame.height(pat.parent().height() - $("#mainTop").height());
}
//设置样式
function setStyle() {
后面还有 255 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
