Song.Site/obj/Debug/Package/PackageTmp/Templates/Web/NetSchool/Scripts/Course.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function(){
tabEvent();
});
//选项卡切换
function tabEvent(){
$(".tabArea").each(function(index, element) {
$(this).find(".tab-bar>div").click(function(){
$(this).parent().find(">div").removeClass("titOver");
$(this).parent().parent().find(".tab-context>div").hide();
$(this).addClass("titOver");
var index = $(this).parent().find(">div").index(this);
$(this).parent().parent().find(".tab-context>div:eq("+index+")").show();
});
$(this).find(".tab-bar>div:eq(0)").click();
});
}
$(function(){
initEvent();
TreeEvent();
});
//页面初始事件
function initEvent(){
//点击选择学习的按钮
var btn=$("a[state=noSelected]");
$("a[state=noSelected]").click(function(){
var url=$(this).attr("href");
//当前学员是否通过审核
var isPass=$(this).attr("isPass")=="False" ? false : true;
if(isPass) {
var txt = "您是否确认学习当前课程?";
var msg = new MsgBox("选择课程", txt, 400, 300, "confirm");
msg.EnterEvent = function () {
window.location.href = url;
};
msg.Open();
}else {
var txt = "您还没有通过审核,无法进行课程学习。<br/>如果您确认已经通过审核,请重新登录。";
var msg = new MsgBox("学员未通过审核", txt, 400, 200, "alert");
msg.Open();
}
return false;
});
}
//树形菜单事件,如打开折叠等
function TreeEvent(){
var tree=new Tree();
//当点击节点前的图标时,如加减号文件夹图标
$("div[type='text']").prev("div[IsChilds='True']").click(
function()
{
//栏目图标,文件夹或文件图标
var last=$(this).find("img:last");
//节点图标,加号或┝号
var pre=last.prev();
tree.tranImg(pre,"plus.gif","minus.gif");
tree.tranImg(pre,"minusbottom.gif","plusbottom.gif");
tree.tranImg(last,"folderopen.gif","folder.gif");
$(this).parent().next().slideToggle();
var state=$(this).attr("state");
后面还有 25 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
