Song.Site/obj/Debug/Package/PackageTmp/Manage/Course/Scripts/Courses_Knl.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$(function(){
	_contentsLoyout();
	_contentsInit();
	_contentsInitSelected();	
});
//当窗口大变化时
$(window).resize(
	function(){
		window.windowResizeTemp=window.windowResizeTemp==null ? 0 : window.windowResizeTemp++;
		if(window.windowResizeTemp%2==0)_contentsLoyout();
	}
); 
//界面始初化布局
function _contentsLoyout(){
    var h = document.documentElement.clientHeight;
    var w = document.documentElement.clientWidth;
    //左侧
    $("#leftBox").height($("#editLeft").height());
    $("#leftBox iframe").height($("#editLeft").height());
    var listBox = $("#leftBox select");
    listBox.height(h - 30);
    //右侧
    var right = $("#rightBox");
    //right.width(w - $("#leftBox").width() - 25);
    var iframe = right.find("iframe");
    iframe.height(h - 40);
    //iframe.width(w - $("#leftBox").width() - 25);
}

//界面初始设置
function _contentsInit(){
	//事件
	$("#leftBox select").change(function(){
		var curr=$(this).find("option:selected");
		var id=$(this).attr("value");
		$().pagecookie("curr",id);
		_goIframeFile(curr);
	});
}
function _contentsInitSelected(){
	//获取上次的记录
	var currid=$().pagecookie("curr");
	if(currid!=null )
	{
		var curr=$("#leftBox select option[value="+currid+"]");
		if(curr.size()>0)
		{
			_goIframeFile(curr);
			return;
		}
	}
	var sel=$("#leftBox select");
	var node=sel.find("option");	
	node.each(function(){
		var id=$(this).val();		
		var isChild=false;
		node.each(function(){
			var pid=$(this).attr("pid");
			if(id==pid)
			{
后面还有 23 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。