PageSourceSearch

https://www.semex.com/proof2016/js/universal/custom.js

js semex.com collected 2026-10-01 13:07:02 UTC 8,644 bytes, 449 lines download raw bytes

1(function($) {
2 "use strict";
3
4$(".scrollup").pageup();
5
6$(document).ready(function() {
7	
8	$("#owl-demo").owlCarousel({
9	autoPlay: 3000,
10	items : 4,
11	itemsDesktop : [1170,3],
12	itemsDesktopSmall : [1170,3]
13	});
14
15	$("#owl-demo-logobar").owlCarousel({
16	autoPlay: 4000,
17	items : 6,
18	itemsDesktop : [1170,3],
19	itemsDesktopSmall : [1170,3]
20	});
21	
22	$("#owl-demo2").owlCarousel({
23	autoPlay : 5000,
24	stopOnHover : true,
25	navigation: false,
26	paginationSpeed : 1000,
27	goToFirstSpeed : 2000,
28	singleItem : true,
29	autoHeight : true,
30	transitionStyle:"fade"
31	});
32	
33	$("#owl-demo3").owlCarousel({
34	autoPlay : 5000,
35	stopOnHover : true,
36	navigation: false,
37	paginationSpeed : 1000,
38	goToFirstSpeed : 2000,
39	singleItem : true,
40	autoHeight : true,
41	transitionStyle:"fadeUp"
42	});
43	
44	$("#owl-demo4").owlCarousel({
45	autoPlay : 5000,
46	stopOnHover : true,
47	navigation: false,
48	paginationSpeed : 1000,
49	goToFirstSpeed : 2000,
50	singleItem : true,
51	autoHeight : true,
52	transitionStyle:"goDown"
53	});
54	
55	$("#owl-demo5").owlCarousel({
56	autoPlay : 8000,
57	stopOnHover : true,
58	navigation: false,
59	paginationSpeed : 1000,
60	goToFirstSpeed : 2000,
61	singleItem : true,
62	autoHeight : true,
63	transitionStyle:"goDown"
64	});
65	
66	$("#owl-demo6").owlCarousel({
67	autoPlay : 5000,
68	stopOnHover : true,
69	navigation: false,
70	paginationSpeed : 1000,
71	goToFirstSpeed : 2000,
72	singleItem : true,
73	autoHeight : true,
74	transitionStyle:"fadeUp"
75	});
76	
77	$("#owl-demo7").owlCarousel({
78	items : 4,
79	lazyLoad : true,
80	navigation : true,
81	pagination:false,
82	});
83	
84	$("#owl-demo8").owlCarousel({
85	autoPlay : 5000,
86	stopOnHover : true,
87	singleItem : true,
88	paginationSpeed : 1000,
89	goToFirstSpeed : 2000,
90	transitionStyle:"fade"
91  	});
92
93	$("#owl-demo10").owlCarousel({
94	autoPlay : 8000,
95	stopOnHover : true,
96	navigation: false,
97	paginationSpeed : 1000,
98	goToFirstSpeed : 2000,
99	singleItem : true,
100	autoHeight : true,
101	transitionStyle:"backSlide"
102  	});
103	
104	$("#owl-demo11").owlCarousel({
105	autoPlay : 5000,
106	stopOnHover : true,
107	navigation: false,
108	paginationSpeed : 1000,
109	goToFirstSpeed : 2000,
110	singleItem : true,
111	autoHeight : true,
112	transitionStyle:"backSlide"
113	});
114	
115	$("#owl-demo12").owlCarousel({
116	autoPlay : 18000,
117	stopOnHover : true,
118	navigation: false,
119	paginationSpeed : 1000,
120	goToFirstSpeed : 2000,
121	singleItem : true,
122	});
123	
124	$("#owl-demo13").owlCarousel({
125	autoPlay : false,
126	stopOnHover : true,
127	navigation: false,
128	paginationSpeed : 1000,
129	goToFirstSpeed : 2000,
130	singleItem : true,
131	});
132
133	$("#owl-demo13b").owlCarousel({
134	autoPlay : false,
135	stopOnHover : true,
136	navigation: false,
137	paginationSpeed : 1000,
138	goToFirstSpeed : 2000,
139	singleItem : true,
140	});
141	
142	$("#owl-demo14").owlCarousel({
143	autoPlay : 5000,
144	stopOnHover : true,
145	navigation: false,
146	paginationSpeed : 1000,
147	goToFirstSpeed : 2000,
148	singleItem : true,
149	autoHeight : true,
150	transitionStyle:"goDown"
151	});
152	
153	$("#owl-demo15").owlCarousel({
154	autoPlay : 9000,
155	stopOnHover : true,
156	lazyLoad : true,
157	pagination:true,
158	singleItem : true,
159	});
160	
161	$("#owl-demo16").owlCarousel({
162	autoPlay : 12000,
163	stopOnHover : true,
164	lazyLoad : true,
165	pagination:true,
166	singleItem : true,
167	});
168	
169	$("#owl-demo17").owlCarousel({
170	items : 2,
171	autoPlay : 9000,
172	stopOnHover : true,
173	lazyLoad : true,
174	pagination:true,
175	itemsDesktop : [1170,2],
176	itemsDesktopSmall : [1170,2]
177	});
178	
179	$("#owl-demo18").owlCarousel({
180	autoPlay : 9000,
181	stopOnHover : true,
182	navigation: true,
183	paginationSpeed : 1000,
184	goToFirstSpeed : 2000,
185	singleItem : true,
186	autoHeight : true,
187	pagination:false,
188	transitionStyle:"backSlide"
189  	});
190
191	$("#owl-demo22").owlCarousel({
192	autoPlay : 9000,
193	stopOnHover : true,
194	navigation: true,
195	paginationSpeed : 1000,
196	goToFirstSpeed : 2000,
197	singleItem : true,
198	autoHeight : true,
199	pagination:false,
200  	});
201
202	$("#owl-demo222").owlCarousel({
203	autoPlay : 9000,
204	stopOnHover : true,
205	navigation: true,
206	paginationSpeed : 1000,
207	goToFirstSpeed : 2000,
208	singleItem : true,
209	autoHeight : true,
210	pagination:false,
211  	});
212		
213	$("#owl-demo20").owlCarousel({
214	autoPlay : 18000,
215	stopOnHover : true,
216	navigation: false,
217	paginationSpeed : 1000,
218	goToFirstSpeed : 2000,
219	singleItem : true,
220	autoHeight : true,
221	});
222	
223  var time = 7; // time in seconds
224
225  var $progressBar,
226	  $bar, 
227	  $elem, 
228	  isPause, 
229	  tick,
230	  percentTime;
231
232	//Init the carousel
233	$("#owl-demo9").owlCarousel({
234	  slideSpeed : 500,
235	  navigation: true,
236	  paginationSpeed : 500,
237	  singleItem : true,
238	  afterInit : progressBar,
239	  afterMove : moved,
240	  startDragging : pauseOnDragging
241	});
242
243	//Init progressBar where elem is $("#owl-demo")
244	function progressBar(elem){
245	  $elem = elem;
246	  //build progress bar elements
247	  buildProgressBar();
248	  //start counting
249	  start();
250	}
251
252	//create div#progressBar and div#bar then prepend to $("#owl-demo")
253	function buildProgressBar(){
254	  $progressBar = $("<div>",{
255		id:"progressBar"
256	  });
257	  $bar = $("<div>",{
258		id:"bar"
259	  });
260	  $progressBar.append($bar).prependTo($elem);
261	}
262
263	function start() {
264	  //reset timer
265	  percentTime = 0;
266	  isPause = false;
267	  //run interval every 0.01 second
268	  tick = setInterval(interval, 10);
269	};
270
271	function interval() {
272	  if(isPause === false){
273		percentTime += 1 / time;
274		$bar.css({
275		   width: percentTime+"%"
276		 });
277		//if percentTime is equal or greater than 100
278		if(percentTime >= 100){
279		  //slide to next item 
280		  $elem.trigger('owl.next')
281		}
282	  }
283	}
284
285	//pause while dragging 
286	function pauseOnDragging(){
287	  isPause = true;
288	}
289
290	//moved callback
291	function moved(){
292	  //clear interval
293	  clearTimeout(tick);
294	  //start again
295	  start();
296	}
297
298	
299	
300	var sync1 = $("#sync1");
301	var sync2 = $("#sync2");
302	
303	sync1.owlCarousel({
304	singleItem : true,
305	slideSpeed : 1000,
306	pagination:false,
307	afterAction : syncPosition,
308	responsiveRefreshRate : 200,
309	});
310	
311	sync2.owlCarousel({
312	items : 5,
313	itemsDesktop      : [1170,5],
314	itemsDesktopSmall     : [979,5],
315	itemsTablet       : [768,3],
316	itemsMobile       : [479,3],
317	pagination:false,
318	responsiveRefreshRate : 100,
319	afterInit : function(el){
320	  el.find(".owl-item").eq(0).addClass("synced");
321	}
322	});
323	
324	function syncPosition(el){
325	var current = this.currentItem;
326	$("#sync2")
327	  .find(".owl-item")
328	  .removeClass("synced")
329	  .eq(current)
330	  .addClass("synced")
331	if($("#sync2").data("owlCarousel") !== undefined){
332	  center(current)
333	}
334	
335	}
336	
337	$("#sync2").on("click", ".owl-item", function(e){
338	e.preventDefault();
339	var number = $(this).data("owlItem");
340	sync1.trigger("owl.goTo",number);
341	});
342	
343	function center(number){
344	var sync2visible = sync2.data("owlCarousel").owl.visibleItems;
345	
346	var num = number;
347	var found = false;
348	for(var i in sync2visible){
349	  if(num === sync2visible[i]){
350		var found = true;
351	  }
352	}
353	
354	if(found===false){
355	  if(num>sync2visible[sync2visible.length-1]){
356		sync2.trigger("owl.goTo", num - sync2visible.length+2)
357	  }else{
358		if(num - 1 === -1){
359		  num = 0;
360		}
361		sync2.trigger("owl.goTo", num);
362	  }
363	} else if(num === sync2visible[sync2visible.length-1]){
364	  sync2.trigger("owl.goTo", sync2visible[1])
365	} else if(num === sync2visible[0]){
366	  sync2.trigger("owl.goTo", num-1)
367	}
368	}
369	
370
371
372	$("#colosebut1").click(function(){
373	$("#div1").fadeOut("slow");
374	});
375	$("#colosebut2").click(function(){
376	$("#div2").fadeOut("slow");
377	});
378	$("#colosebut3").click(function(){
379	$("#div3").fadeOut("slow");
380	});
381	$("#colosebut4").click(function(){
382	$("#div4").fadeOut("slow");
383	});
384	
385		
386
387	// Variables
388	var clickedTab = $(".tabs > .active");
389	var tabWrapper = $(".tab__content");
390	var activeTab = tabWrapper.find(".active");
391	var activeTabHeight = activeTab.outerHeight();
392	
393	// Show tab on page load
394	activeTab.show();
395	
396	// Set height of wrapper on page load
397	tabWrapper.height(activeTabHeight);
398	
399	$(".tabs > li").on("click", function() {
400		
401		// Remove class from active tab
402		$(".tabs > li").removeClass("active");
403		
404		// Add class active to clicked tab
405		$(this).addClass("active");
406		
407		// Update clickedTab variable
408		clickedTab = $(".tabs .active");
409		
410		// fade out active tab
411		activeTab.fadeOut(100, function() {
412			
413			// Remove active class all tabs
414			$(".tab__content > li").removeClass("active");
415			
416			// Get index of clicked tab
417			var clickedTabIndex = clickedTab.index();
418
419			// Add class active to corresponding tab
420			$(".tab__content > li").eq(clickedTabIndex).addClass("active");
421			
422			// update new active tab
423			activeTab = $(".tab__content > .active");
424			
425			// Update variable
426			activeTabHeight = activeTab.outerHeight();
427			
428			// Animate height of wrapper to new tab height
429			tabWrapper.stop().delay(30).animate({
430				height: activeTabHeight
431			}, 300, function() {
432				
433				// Fade in active tab
434				activeTab.delay(30).fadeIn(100);
435				
436			});
437		});
438	});
439	
440	
441});
442
443
444
445
446
447
448
449})(jQuery);;

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.