PageSourceSearch

https://www.cctvplus.com/js/common.js?v=new%20Date()

js cctvplus.com collected 2026-10-02 07:36:01 UTC 4,364 bytes, 155 lines download raw bytes

1//(function(window,document){
2//
3//	//  px转换rem           -----------start
4////  var docEl = document.documentElement, //获取html标签
5////		resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
6////		recalc = function () {
7////			
8////			var clientWidth = docEl.clientWidth;
9////			if (!clientWidth) return;
10////			docEl.style.fontSize = 100 * (clientWidth / 750) + 'px';
11////		};
12////
13////	if (!document.addEventListener) return;
14////	window.addEventListener(resizeEvt, recalc, false);
15////	document.addEventListener('DOMContentLoaded', recalc, false);
16//	//  px转换rem           -----------end
17//	
18//	
19//
20//	var screenWidth = 0;
21//	var app = {
22//	 	init:function(){
23//	 		if( navigator.userAgent.indexOf('Windows') > 0 ){   //pc设备
24//	 			screenWidth = $(window).width();
25//	 			if( screenWidth > 1024 ){  //pc大屏
26//	 				screenWidth = 1024;
27//	 				console.log(screenWidth)
28//	 				$(".page_topbar").show();
29//					$(".page_body").show();
30//					$(".page_bottom").show();
31//					$(".page_topbar_s").hide();
32//					$(".page_topbar_nav_s").hide();
33//					$(".page_body_s").hide();
34//					$(".page_bottom_s").hide();
35//		 		}else{  //pc小屏
36//		 			screenWidth = $(window).width();
37//		 		}
38//	 		}else{  //移动设备
39//	 			screenWidth = window.screen.width;
40//				$(".page_topbar").hide();
41//				$(".page_body").hide();
42//				$(".page_bottom").hide();
43//				$(".page_topbar_s").show();
44//				$(".page_body_s").show();
45//				$(".page_bottom_s").show();
46//	 		}
47//	 		
48//	 		
49//	 	}()
50//	}
51//
52//
53//})(window,document); 
54
55
56$(function(){
57
58	changeSize();
59	//窗体大小改变事件
60	$(window).resize(function(){
61		changeSize();
62	});
63
64	function changeSize(){
65		var lnkLarge=$(".lnkLarge");
66		//获取窗体的宽度
67		var width=$(this).innerWidth();
68		var Version = navigator.userAgent;
69
70		//判断设备系统
71		if( /windows|Mac/i.test(Version) && /iPhone|iPod|iPad/i.test(Version)==false ) {  //pc端设备,且mac端不是iPhone,iPod,iPad设备
72			if( window.location.href.indexOf('news') > -1 ){
73				lnkLarge.attr('href','/style/style_news.css');
74			}else if( window.location.href.indexOf('live') > -1 ){
75				lnkLarge.attr('href','/style/style_news_06.css');
76			}else{
77				lnkLarge.attr('href','/style/style_news.css');
78			}
79
80			$(".page_topbar").show();
81			$(".page_body").show();
82			$(".page_bottom").show();
83			$(".page_topbar_s").hide();
84			$(".page_topbar_nav_s").hide();
85			$(".page_body_s").hide();
86			$(".page_bottom_s").hide();
87			$('.page_topbar_nav_n').hide();
88
89
90
91		}else{
92			if (width<=1280) {//窄屏
93				if( lnkLarge.attr('href').indexOf('style_phone') < 0 ){
94					lnkLarge.attr('href','/style/style_phone.css');
95				}
96
97				$(".page_topbar").hide();
98				$(".page_body").hide();
99				$(".page_bottom").hide();
100				$(".page_topbar_s").show();
101				$(".page_body_s").show();
102				$(".page_bottom_s").show();
103
104
105			}else{//宽屏
106				if( window.location.href.indexOf('news') > -1 ){
107					lnkLarge.attr('href','/style/style_news.css');
108				}else if( window.location.href.indexOf('live') > -1 ){
109					lnkLarge.attr('href','/style/style_news_06.css');
110				}else{
111					lnkLarge.attr('href','/style/style_news.css');
112				}
113				$(".page_topbar").show();
114				$(".page_body").show();
115				$(".page_bottom").show();
116				$(".page_topbar_s").hide();
117				$(".page_topbar_nav_s").hide();
118				$(".page_body_s").hide();
119				$(".page_bottom_s").hide();
120				$('.page_topbar_nav_n').hide();
121
122
123			}
124
125		}
126
127
128		$(".about-videos").css({'height':$(".about-videos").width()*9/16+'px'});
129		$(".about-videos_").css({'height':$(".about-videos_").width()*9/16+'px'});
130		//修改图文新闻
131		var imgHeight = $('#data_success_box').width()/16*9;
132		$("#data_success_box .el-carousel").height(imgHeight+'px');
133
134	};
135
136
137	$(".custom_sel_text_s").click(function(){
138		if( $(this).hasClass('open') ){
139			$(".custom_sel_list_s").hide();
140			$(this).removeClass('open');
141		}else{
142			$(".custom_sel_list_s").show();
143			$(this).addClass('open')
144		}
145	})
146
147	$(".custom_sel_list_s>li").click(function(){
148		var custom_val = $(this).text(),
149			custom_id = $(this).attr('ord_id')
150		$(".custom_sel_text_s").text(custom_val).attr('ord_id',custom_id).removeClass('open');
151		$(".custom_sel_list_s").hide();
152	})
153
154
155})

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.