PageSourceSearch

http://www.mofcom.gov.cn/cms_files/filemanager/1077459795/script/20233/59609e1483b147ff8bf01dc5360312d7.js

js mofcom.gov.cn collected 2026-09-24 08:25:29 UTC 9,700 bytes, 337 lines download raw bytes

1/**
2 * @version:1.0
3 * @author:haolei <[email protected]>
4 * @description:Project public code
5 * @date:2019-06-12 
6 */
7;$(function(){
8	
9
10	$('.menuTggle').click(function (e) {
11		e.preventDefault();
12        e.stopPropagation();
13		$('.headerCol').toggleClass('menuOpen');
14		$(".menuLayout").slideToggle(250);
15	});
16	// 点击其他区域展开导航关闭
17	/**$('div').not('.menuTggle').mouseup(function (e) {
18		if($(e.target).parents('.menuLayout').length==0&&$(e.target).attr('class')!='menuTggle'&&$(e.target).attr('class')!='icon'){
19			$(".menuLayout").hide();
20			$('.headerCol').removeClass('menuOpen');
21		}
22	}); */
23	$(document).click(function(e){
24		var _con = $('.menuLayout'); 
25		if(!_con.is(e.target) && _con.has(e.target).length === 0){
26			$(".menuLayout").hide();
27			$('.headerCol').removeClass('menuOpen');
28		}
29	});
30
31	var thisTime;
32	$('.menuNav dd').mouseleave(function (even) {
33		thisTime = setTimeout(thisMouseOut,500);
34	});
35	$('.menuNav dd').mouseenter(function(){
36		clearTimeout(thisTime);
37		var thisUB = $('.menuNav dd').index($(this));
38		$('.menuNav dd').removeClass('cur');
39		$(this).addClass('cur')
40		if($.trim($('.subMenu').eq(thisUB).html()) != "")
41		{
42			$('.menuSlide').addClass('hover');
43			$('.subMenu').hide();
44			
45			$('.subMenu').eq(thisUB).show();
46		}
47		else{
48			$('.menuSlide').removeClass('hover');
49		}
50	})
51	function thisMouseOut(){
52		$('.menuSlide').removeClass('hover');
53		$('.menuNav dd').removeClass('cur');
54	}
55	 
56	$('.menuSlide').mouseenter(function(){
57		clearTimeout(thisTime);
58		$('.menuSlide').addClass('hover');
59	})
60	$('.menuSlide').mouseleave(function(){
61		$('.menuSlide').removeClass('hover');
62		$('.menuNav dd').removeClass('cur');
63	});
64
65	$('#scrollInner').hover(function(){
66		$('.nicescroll-rails').css('display','block');
67	},function(){
68		$('.nicescroll-rails').css('display','none');
69	})
70
71	$('.mFtInfo .copyright em').click(function(){
72		$('.mFooter_01').css('display','none');
73		$('.footer_01').css('display','block');
74	});
75
76	$('.topSearch .btnSearch').click(function(){
77		$('.searchDropDown').slideDown(300);
78	});
79	$('.dropDownClose').click(function(){
80		$('.searchDropDown').hide();
81	});
82
83	// 首页轮播图
84	jQuery(".slideBox").slide({mainCell:".bd ul",easing:"easeOutCirc",autoPlay:true,interTime:5000});
85	// 首页滚动
86	//jQuery(".picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"leftLoop",autoPlay:true,vis:3,trigger:"click"});
87	
88	// 首页展开
89	$('.iColumn .ftColumn').click(function(){
90		var that = $(this),
91			_prev = that.siblings('.hiddenColumn_01');
92		that.toggleClass('open').siblings('.hiddenColumn_01').slideToggle(250);
93		$('body,html').animate({'scrollTop':_prev.offset().top},400);
94	});
95
96	// 头部登录后展开
97	$(".j-UserBox p").on('click', function () {
98		if ($(this).siblings(".iHead-subnav").hasClass("f-dn")) {		
99			$(this).find("i").addClass("z-crt");		
100			$(this).siblings(".iHead-subnav").removeClass("f-dn")		
101		} else {		
102			$(this).find("i").removeClass("z-crt");		
103			$(this).siblings(".iHead-subnav").addClass("f-dn")	
104		}
105	})
106
107	// 一号登录我的下载切换
108	jQuery(".personal-mydownload-box").slide({ titCell:".public-tab ul li", mainCell:".public-tab-con"});
109
110	// 一号登录全选/全不选 
111	
112    $(".emdr-left .emailbox-item input").click(function(){
113        var flagTrue=$(this).prop("checked");
114        $(this).parents('.emdr-left').next().find("input:checkbox").prop("checked",flagTrue);
115	});
116	// 一号登录 全部选中后 选中上一级,否则取消
117    $(".emdr-right .emailbox-item input").click(function(){
118		var that =$(this),
119			flagTrue = that.prop("checked"),
120			_parents =  that.parents('.emdr-right');
121			if(_parents.find('input:checkbox').length == _parents.find('input:checkbox:checked').length){
122				_parents.prev().find("input:checkbox").prop("checked",true);
123			}else{
124				_parents.prev().find("input:checkbox").prop("checked",false);
125			}
126	});
127
128	/* 一号登录 修改成功提示 */
129	$('.personal_col .btn_tips').click(function(){
130		layer.open({
131			type: 1,
132			title: false,
133			closeBtn: 1,
134			shadeClose: true,
135			area: ['320px', '290px'], //宽高
136			content: '<div class="f-tac winbox_pwd"><p>修改密码成功,<br>请牢记新的登录密码!</p></div>'
137		});
138	});
139
140	
141	$('.task-pub-tips1').click(function(){
142		layer.open({
143			type: 1,
144			title: '提示信息',
145			closeBtn: 1,
146			shadeClose: true,
147			area: ['370px', '216px'], //宽高
148			content: '<div class="f-tac winbox_task"><p class="p_txt p1">请至少填写一项数据!</p><p class="p_btn"><input type="button" value="确定" /></p></div>'
149		});
150	});
151	$('.task-pub-tips2').click(function(){
152		layer.open({
153			type: 1,
154			title: '提示信息',
155			closeBtn: 1,
156			shadeClose: true,
157			area: ['370px', '216px'], //宽高
158			content: '<div class="f-tac winbox_task"><p class="p_txt p2">发布成功!</p><p class="p_btn"><input type="button" value="确定" /></p></div>'
159		});
160	});
161	
162
163	$(".wei-box").hover(function(){
164        $(".wei-ewm1").show();
165    },function(){
166        $(".wei-ewm1").hide();
167	});
168	/*****
169	* 左侧二级菜单展开
170	*/
171	$('.sideMenu h3').click(function(){
172		if($(this).hasClass('on')){
173			$(this).removeClass('on');
174			$(this).next('.sideCon').css('display','none');
175		}else{
176			$(this).addClass('on').siblings('h3').removeClass('on');
177			$(this).next('.sideCon').css('display','block').siblings('.sideCon').css('display','none');
178		}
179	});
180
181
182});
183
184/*****
185 * 左侧二级菜单展开
186 */
187//  jQuery(".sideMenu").slide({
188// 	titCell:"h3", //鼠标触发对象
189// 	targetCell:".sideCon", //与titCell一一对应,第n个titCell控制第n个targetCell的显示隐藏
190// 	effect:"slideDown", //targetCell下拉效果
191// 	delayTime:300 , //效果时间
192// 	// triggerTime:150, //鼠标延迟触发时间(默认150)
193// 	trigger:"click",
194// 	defaultPlay:true,//默认是否执行效果(默认true)
195// 	// returnDefault:true //鼠标从.sideMen移走后返回默认状态(默认false)
196// });
197
198/***
199  参数具体参考 edi.report_function.js 里面说明,页面不需要固定行列 请不要调用
200 ***/
201function report_fun(){
202	var table = $("#reportTable");
203	var tableId = table.attr('id');
204	var freezeRowNum = table.attr('freezeRowNum');
205	var freezeColumnNum = table.attr('freezeColumnNum');
206	var freezeWidth = table.data('width');
207	var freezeHeight = table.data('height');
208
209	if (typeof(freezeRowNum) != 'undefined' || typeof(freezeColumnNum) != 'undefined') {
210		_resizeTable();
211	}
212	$(window).resize(function() {
213		debounce(_resizeTable(),100)
214	});
215	function _resizeTable(){
216		if(typeof(freezeWidth) != 'undefined' || typeof(freezeHeight) != 'undefined'){
217			freezeTable(tableId, freezeRowNum || 0, freezeColumnNum || 0, freezeWidth, freezeHeight);
218		}else{
219			freezeTable(tableId, freezeRowNum || 0, freezeColumnNum || 0, pageWidth(), pageHeight());
220		}
221	}
222}
223//关闭layer弹窗
224function optFrame(){
225	var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
226	if(parent.ide_page){
227		parent.ide_page.reload({});
228	}
229	parent.$(".u-tools-wrap").hide();
230	parent.layer.close(index);
231	//刷新父页面,刷新数据
232	parent.location.reload();
233}
234
235// 
236function intellQa(){
237   var intelTop=$('.intel-qa').offset().top;
238   var conWidth=$('.container').width()
239   var intelQa=$('.intel-qa').width()
240   $(window).scroll(function(){
241	    if($(window).scrollTop()>intelTop){
242			$('.intel-qa').css({
243				"position":"fixed",
244				"top":"0px",
245				"left":"50%",
246				"margin-left":-(conWidth/2+intelQa)+"px"
247			});
248		}else{
249			$('.intel-qa').css({
250				"position":"absolute",
251				"top":"0px",
252				"left":"-120px",
253				"margin-left":"0px"
254			});
255		}
256   })
257
258}
259function shareQa(){
260	var shareTop=$('.share-qa').offset().top;
261	var conWidth=$('.container').width()
262	var shareQa=$('.share-qa').width()+20;
263	var shareFooter=$('.footer').offset().top;
264	$(window).scroll(function(){
265		 if($(window).scrollTop()>shareTop){
266			 $('.share-qa').css({
267				 "position":"fixed",
268				 "top":"0px",
269				 "right":"50%",
270				 "margin-right":-(conWidth/2+shareQa)+"px"
271			 });
272			 var shareTopF=shareFooter-$('.share-qa').height()
273			 if($(window).scrollTop()>=shareFooter){
274				$('.share-qa').css({
275					"position":"absolute",
276					"top":($(window).scrollTop()-shareFooter)+"px",
277					"right":"50%",
278					"margin-right":-(conWidth/2+shareQa)+"px"
279				});
280			 }
281		 }else{
282			 $('.share-qa').css({
283				 "position":"absolute",
284				 "top":"0px",
285				 "right":"-120px",
286				 "margin-right":"0px"
287			 });
288			 
289		 }
290	})
291 
292 }
293
294
295 $('.vid-pic .pic-box .col-lg-6').eq(1).css({
296	 "padding-right":'0px',
297	 "padding-left":'20px'
298 })
299
300
301
302//  
303
304
305/*******封装 ediAjax 调用********/
306function ediAjax(options) {
307	var defaults = {
308		url: '',
309		contentType: "application/json;utf-8",
310		xhrFields:{
311			withCredentials:true
312		},
313		crossDomain:true,
314		type: 'post',
315        dataType: 'json',
316		data: {},
317    };
318	_options = $.extend({}, defaults, options);    //调用 jq 方法转换参数
319	$.ajax({
320		type: _options.type,				
321		dataType: _options.dataType,
322		url: _options.url,
323		data: _options.data,
324		success: function(reslut){
325			options.success && options.success(reslut);
326		},
327		error: function (XMLHttpRequest, textStatus, errorThrown) { 
328			options.fail && options.fail();
329		},
330		beforeSend:function(XHR){
331			loding = layer.load(1,{shade: [0.4,'#000']});
332		},
333		complete:function (XMLHttpRequest, textStatus) {
334			layer.close(loding);
335		}
336	});
337}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.