src/main/webapp/manager/bootstrap/custom.js

(开头部分) 3KB

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

//页签生成模板
var addTabs = function(obj) {
	id = "tab_" + obj.id;
	var target;
	if(top==window)
	target=window.document;
	else {
		target=window.top.document;
	}
	$(".active",target).removeClass("active");
	if (!$("#" + id, target)[0]) {
			mainHeight = screen.height*0.78;
		if (screen.height == "1080") {
			mainHeight =  "895px"
		}
		if (screen.height == "1050") {
			mainHeight = "865px"
		}
		if (screen.height == "1024") {
			mainHeight = "838px"
		}
		if (screen.height == "960") {
			mainHeight = "772px"
		}
		if (screen.height == "900") {
			mainHeight = "715px"
		}
		if (screen.height == "864") {
			mainHeight = "676px"
		}
		if (screen.height == "800") {
			mainHeight = "612px"
		}
		if (screen.height == "768") {
			mainHeight = "580px"
		}
		if (screen.height == "720") {
			mainHeight = "532px"
		}


		title = '<li role="presentation" id="tab_' + id + '"><a style="font-family: SimHei;font-weight:600;" href="#' + id
				+ '" aria-controls="' + id + '" role="tab" data-toggle="tab">'
				+ obj.title + '</a>';

		if (obj.close) {
			/*title += ' <i id="close_'+id+'" class="close-tab fa fa-times" style="position:absolute;top:0px;right:0px;font-size:6px;cursor: pointer;"></i>';*/
			title += ' <img id="close_'+id+'" src="img/colse.png" class="close-tab fa fa-times" style="position:absolute;top:0px;right:0px;font-size:6px;cursor: pointer;" />';
		}
		title += '</li>';
		if(obj.contentFn){
			content = '<div role="tabpanel" class="tab-pane" id="' + id + '" >'
			+ obj.contentFn() + '</div>';
		}
		if (obj.content) {
			content = '<div role="tabpanel" class="tab-pane" style="height: 100%" id="' + id + '" >'
					+ obj.content + '</div>';
		} else {
			content = '<div role="tabpanel" class="tab-pane" style="height: 100%"  id="'
					+ id
后面还有 51 行代码,购买后查看完整代码

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

AI 解读

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

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