WebContent/admin/js/common.js

(开头部分) 2KB

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


$(document).ready(function(){
	
	// 去除虚线框(会影响效率)
	$("a").on('focus',function(){$(this).blur();});
	
	
	$('.file input[type=file]').change(function(e) {
        $(this).siblings('.text').text($(this).val());
    });
	
	if(!-[1,]){
		$('input[type=radio]').bind('click',function(){
			var name = $(this).attr('name');
			$('input[type=radio]["name="'+ name +']').removeClass('checked');
			if($(this).prop('checked')){
				$(this).addClass('checked');
			}
		});
	}
	if(!!!$('.opt-panel').size() && !!!$('.system-switch').size()){
		$(document).click(function(e) {
			$(top.window.document).find('.opt-panel').hide().end().find('.system-switch').hide();
			$(top.window.document).find('.more-info').removeClass('active').end().find('.logo-icon').removeClass('active');
		});
	}
	
	if(!!!$('.more-bab-list').size()){
		$(document).click(function(e) {
			$(top.window.document).find('iframe').contents().find('.more-bab-list').hide();
			$(top.window.document).find('iframe').contents().find('.tab-more').removeClass('active');
		});	
	}
});


function hideElement(currentElement, targetElement, fn) {
	if (!$.isArray(targetElement)) {
		targetElement = [ targetElement ];
	}
	$(document).on("click.hideElement", function(e) {
		var len = 0, $target = $(e.target);
		for (var i = 0, length = targetElement.length; i < length; i++) {
			$.each(targetElement[i], function(j, n) {
				if ($target.is($(n)) || $.contains($(n)[0], $target[0])) {
					len++;
				}
			});
		}
		if ($.contains(currentElement[0], $target[0])) {
			len = 1;
		}
		if (len == 0) {
			currentElement.hide();
			fn && fn(currentElement, targetElement);
		}
	});
};


后面还有 49 行代码,购买后查看完整代码

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

AI 解读

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

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