PageSourceSearch

https://wonikrobotics.com/js/common.js?v=260924074754

js wonikrobotics.com collected 2026-09-24 10:46:21 UTC 25,483 bytes, 772 lines download raw bytes

1$(function () {
2	$('header h1 a').clone().appendTo('#allmenuBox .mlogo');
3	$('header #gnb > ul').clone().appendTo('#allmenuBox .menuBox .mCont');
4	$('header #gnb > ul').clone().appendTo('.policy-box .sitemap');
5	$('header .top-menu .lang').clone().appendTo('#allmenuBox .lang');
6	$('footer .footer_box .fmenu > ul').clone().appendTo('#allmenuBox .fmenu');
7	$('footer .footer_box .sns > ul').clone().appendTo('#allmenuBox .sns');
8
9    var $wrap = $('#wrap'),
10        $header = $('header'),
11        $navi = $('#navi'),
12        $gnb = $('#gnb > ul'),
13        $gnbHover = $('#navi #gnb > ul > li'),
14        $gnbSub = $('#navi #gnb > ul > li > ul'),
15        $btn_all = $('.allBox'),
16        $all_bg = $('#allmenuBox .allBg'),
17        $lnb_p = $('#lnb p.sub_title'),
18        $lnbul = $('#lnb ul'),
19        $lnbli = $('#lnb li'),
20        $btn_top = $('.btn_top'),
21        $e_mail = $('.btn_qbox .e_mail'),
22        $allmenuBox = $('#allmenuBox');
23
24
25    $(window).on('load scroll', function() {
26        bodyScroll = $(document).scrollTop();
27        if (bodyScroll > 0) {
28            $header.addClass('fix');
29            setTimeout(function() {
30                $('body').removeClass('intro');
31            }, 2700);
32        } else {
33            $header.removeClass('fix');
34        }
35    });
36
37    // 탑버튼
38    $(".btn_top a").click(function(e) {
39        e.preventDefault();
40        $("html,body").stop().animate({
41            scrollTop: 0
42        });
43    });
44
45	let fTimer;
46	$('.family-site > a').click(function(e) {
47		e.preventDefault();
48		clearTimeout(fTimer); // 닫기 타이머 제거
49		$(this).parent().toggleClass("on");
50		$('.family-site .fbox').stop(true, true).slideToggle();
51	});
52
53
54	let lTimer;
55    $('header .lang > a, #allmenuBox .lang > a').click(function(e) {
56		e.preventDefault();
57		clearTimeout(lTimer); // 닫기 타이머 제거
58        $(this).parent().toggleClass("on");
59        $('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideToggle();
60    });
61    $('header .lang, #allmenuBox .lang').on('mouseleave', function() {
62        lTimer = setTimeout(lTime, 1500);
63    });
64    function lTime() {
65        $('header .lang, #allmenuBox .lang').removeClass('on');
66        $('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideUp();
67    }
68
69	// 마우스 들어왔을 때 닫기 타이머 제거
70	$('.family-site').on('mouseenter', function() {
71		clearTimeout(fTimer);
72	});
73
74	// 마우스 나갔을 때 닫기 타이머 시작
75	$('.family-site').on('mouseleave', function() {
76		fTimer = setTimeout(fTime, 1500);
77	});
78
79	function fTime() {
80		$('.family-site').removeClass('on');
81		$('.family-site .fbox').stop(true, true).slideUp();
82	}
83
84    // SVG 변환 함수
85    function replaceSvg($img) {
86        var imgID = $img.attr('id');
87        var imgClass = $img.attr('class');
88        var imgURL = $img.attr('src');
89
90        $.get(imgURL, function(data) {
91            var $svg = $(data).find('svg');
92
93            if ($svg.length === 0) return;
94
95            if (typeof imgID !== 'undefined') $svg.attr('id', imgID);
96            if (typeof imgClass !== 'undefined') $svg.attr('class', imgClass);
97            $svg.removeAttr('xmlns:a');
98
99            $img.replaceWith($svg);
100
101        }, 'xml').fail(function() {
102            console.error('SVG fetch failed:', imgURL);
103        });
104    }
105
106    var menuCont = function() {
107
108        /* allmenu */
109        $btn_all.off('click');
110        $btn_all.click(function(e) {
111			e.preventDefault();
112			if (!$(this).is('.active')) {
113				$('html, body').addClass('body_hidden');
114				$(this).addClass('active');
115				$allmenuBox.removeClass('off').addClass('on');
116				$('#allmenuBox .menuBox .mCont > ul > li > .subDepth').removeAttr("style");
117				$('#allmenuBox .menuBox .mCont > ul > li').removeAttr("style");
118				$('header').addClass('over_all');
119				$('header .searchBox').removeClass('on');
120				$('#allmenuBox.on .menuBox').overlayScrollbars({});
121				$('header h1 a').clone().appendTo('#allmenuBox .top .mLogo').find('img').addClass('svg').each(function() {
122					replaceSvg($(this));
123				});
124				$('header .lang, #allmenuBox .lang').removeClass('on');
125				$('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideUp();
126			} else{
127				$('.allBox').removeClass('active');
128				$('html, body').removeClass('body_hidden');
129				$allmenuBox.removeClass('on').addClass('off');
130				$('header').removeClass('over_all');
131				$('header .lang, #allmenuBox .lang').removeClass('on');
132				$('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideUp();
133			}
134        });
135
136    }
137
138    var windowSize = function() {
139
140		$('.depth3').each(function() {
141			$(this).closest('li').addClass('arr');
142		});
143
144        var winWidth = $(window).width();
145        if (winWidth > 760) {
146            $('.subtitleTop .submenu-box').removeAttr("style");
147            $('.subtitleTop .depthMenu .stit').removeClass("ov");
148        }
149        if (winWidth > 1024) {
150            $wrap.addClass('web');
151            $wrap.removeClass('mobile');
152			$('#allmenuBox .top .menu').removeClass('on');
153			$('.allBox').removeClass('active');
154            $('html, body').removeClass('body_hidden');
155            $(this).addClass('active');
156            $allmenuBox.removeClass('on');
157			
158			/* #gnb > ul > li width:size 
159            $('header #navi #gnb > ul > li').css('width', '');
160            $('header #navi #gnb > ul > li').each(function() {
161                var $aW = $(this).find('> a');
162                var contentWidth = $aW.outerWidth();
163                $(this).css('width', contentWidth + 'px');
164            });
165			*/
166			
167			$('.depth3.sm').each(function() {
168				$(this).closest('li').addClass('ov');
169			});
170            $('header #navi #gnb > ul').each(function() {
171                var max_h = 0;
172                var dep2 = $(this).find('> li > .subDepth');
173                var li_On = $(this).find('> li');
174                dep2.removeAttr('style');
175                dep2.each(function() {
176                    var h = parseInt($(this).css('height'));
177                    if (max_h < h) {
178                        max_h = h;
179                    }
180                });
181                dep2.each(function() {
182                    $(this).css({
183                        height: max_h
184                    });
185                });
186                var head_H = $('header').height();
187                var subHeight = max_h + head_H;
188                $(this).on('mouseenter', function() {
189                    $('header').addClass('over');
190                    $('header .gnb_bg').css({
191                        'height': subHeight + 'px'
192                    });
193                });
194                $(this).on('mouseleave', function() {
195                    $('header').removeClass('over');
196                    $('header .gnb_bg').css({
197                        'height': 90
198                    });
199						
200                });
201                li_On.on('mouseenter', function() {
202                    $(this).addClass('on');
203					$('.language').removeClass('on');
204                });
205                $('header #navi #gnb > ul').on('mouseenter', function() {
206					$('header #navi #gnb > ul > li > .subDepth > ul > li').removeClass('active');
207					$('header #navi #gnb > ul > li > .subDepth > ul > li .depth3').hide();
208                });
209                li_On.on('mouseleave', function() {
210                    $(this).removeClass('on');
211                    //$('.subDepth').removeAttr("style");
212                });
213                console.log('head:' + head_H, 'max_h:' + max_h, 'gnb_bg:' + subHeight);
214				$('header #navi #gnb > ul > li > .subDepth ul > li').each(function() {
215					var depth3 = $(this).find('.depth3');
216					var subH = depth3.height();
217					var dep1H = depth3.closest('.subDepth').height();
218					var dep2H = depth3.closest('.subDepth').find('.depth2').height();
219					depth3.removeAttr('style');
220
221					if (depth3.length > 0) {
222						let toggleTimeout; // 클릭 시 약간의 지연을 줄 수도 있음
223
224						$(this).children('a').off('click').on('click', function(e) {
225							e.preventDefault();
226
227							const li = $(this).parent();
228							const gnbBg = $('header .gnb_bg');
229
230							clearTimeout(toggleTimeout);
231
232							toggleTimeout = setTimeout(() => {
233								// 이미 열려있으면 닫기
234								if (li.hasClass('active')) {
235									li.removeClass('active');
236									depth3.stop().slideUp();
237									gnbBg.css({'height': subHeight + 'px'});
238									return;
239								}
240
241								// 다른 메뉴 닫기
242								$('header #navi #gnb > ul > li > .subDepth ul > li').removeClass('active').find('.depth3').stop().slideUp();
243
244								// 클릭한 메뉴 열기
245								li.addClass('active');
246								depth3.stop().slideDown();
247
248								// gnb_bg 높이 조정
249								if (li.hasClass('on')) {
250									gnbBg.css({'height': subHeight + 'px'});
251								} else {
252									gnbBg.css({'height': subH + dep2H + dep1H +'px'});
253								}
254
255							}, 0);
256						});
257					}
258				});
259
260            });
261			
262        } else {
263            $wrap.removeClass('web');
264            $wrap.addClass('mobile');
265
266			$('.allBox').removeClass('active');
267            $('html, body').removeClass('body_hidden');
268            $(this).addClass('active');
269            $allmenuBox.removeClass('on');
270
271
272			/* mobile gnb menu */
273			$(document).on('click', function() { // 복제
274				$(".mobile #allmenuBox .menuBox .mCont > ul > li").each(function() {
275					var subDepthDiv = $(this).find('.subDepth > ul, .subDepth .pbox');
276					if (subDepthDiv.length > 0) {
277						$(this).children("a").off('click').on('click', function(e) {
278							e.preventDefault(); //a 태그 막기	
279							var depth2 = $(this).siblings('.subDepth');
280							if (!depth2.is(':visible')) {
281								//$('.subDepth').removeAttr("style");
282								$('.menuBox .mCont > ul').find('.subDepth').stop().slideUp();
283								depth2.stop().slideDown();
284								$('.menuBox .mCont > ul > li').removeClass('hover');
285								$(this).parent().addClass('hover');
286							} else {
287								$('.menuBox .mCont > ul > li').removeClass('hover');
288								$('.menuBox .mCont > ul').find('.subDepth').stop().slideUp();
289							};
290						});
291					}
292				});
293			});
294        }
295        $('#allmenuBox .btnClose').click(function() {
296			$('.allBox').removeClass('active');
297            $('html, body').removeClass('body_hidden');
298            $('.allBox').removeClass('active');
299            $allmenuBox.removeClass('on').addClass('off');
300			$('header').removeClass('over_all');
301			$('header .lang, #allmenuBox .lang').removeClass('on');
302			$('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideUp();
303        });
304
305        $all_bg.click(function() {
306            $('html, body').removeClass('body_hidden');
307            $('.allBox').removeClass('active');
308            $allmenuBox.removeClass('on').addClass('off');
309			$('header .lang, #allmenuBox .lang').removeClass('on');
310			$('header .lang .sbox, #allmenuBox .lang .sbox').stop().stop().slideUp();
311        });
312
313        menuCont();
314    }
315
316    var headerRe = function() {
317        if (!navigator.userAgent.match(/Android|Mobile|iP(hone|od|ad)|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/)) {
318            if ($btn_all.is('.active')) {
319                $btn_all.click();
320
321                $('#allmenuBox .menuBox .mCont').empty();
322                $('.allBox').removeClass('active');
323                $('html, body').removeClass('body_hidden');
324                $(this).addClass('active');
325                $allmenuBox.removeClass('on').addClass('off');
326            }
327        }
328    }
329
330    $(window).on('load resize orientationchange', function() {
331        windowSize();
332        headerRe();
333        menuCont;
334    });
335
336    $(window).resize(function() {
337        windowSize();
338        headerRe();
339        menuCont;
340    });
341
342    $(window).on("orientationchange", function(event) {
343        windowSize();
344        headerRe();
345        menuCont;
346    });
347
348    // 탑버튼
349    $(".btn_top a").click(function(e) {
350        e.preventDefault();
351        $("html,body").stop().animate({
352            scrollTop: 0
353        });
354    });
355
356    //서브페이지
357	$(document).on('click', '.depthMenu .stit', function() {
358		if (!$(this).is('.ov')) {
359			$('.depthMenu .submenu-box').stop().slideUp();
360			$('.depthMenu .stit').removeClass('ov');
361
362			$(this).next('.submenu-box').stop().slideDown();
363			$(this).addClass('ov');
364		} else {
365			$(this).next('.submenu-box').stop().slideUp();
366			$(this).removeClass('ov');
367		}
368	});
369
370	$('.dep3Menu > *').clone().appendTo('.subtitleTop .depthMenu.dep03');
371
372    var subTit1 = $("#navi #gnb > ul").children("li.hover").children("a").text();
373    var subTit2 = $("#gnb > ul > li.hover > .subDepth ul > li.over > a").text();
374    var subTit3 = $("#gnb > ul > li.hover > .subDepth ul > li.over .depth3 > ul > li.on > a").text();
375    var subTit4 = $(".dep3Menu .submenu-box > ul > li.on > a").text();
376	var dep03Tit = subTit4 || subTit3;
377    $(".subtitleTop .depthMenu.dep01 .stit").text(subTit1);
378    $(".subtitleTop .depthMenu.dep02 .stit").text(subTit2);
379    $(".subtitleTop .depthMenu.dep03 .stit").text(dep03Tit);
380	/*
381	if (!$(".pageTitle").hasClass("dNo")) {
382		let $h3 = $(".pageTitle h3");
383		if ($h3.text() !== subTit2) {
384			$h3.text(subTit2);
385		}
386	}
387	*/
388    $("h2.sub-title-m > span").text(subTit1);
389    console.log("tit1:"+subTit1)
390    console.log("tit2:"+subTit2)
391    console.log("tit3:"+subTit3)
392    console.log("tit4:"+subTit4)
393
394	
395    for (var i = 1; i <= 20; i++) {
396        $("#navi #gnb >
396 ul").clone().appendTo(".subtitleTop .depthMenu.dep01 .subm" + i);
397    };	
398    for (var j = 1; j <= 20; j++) {
399        $("#navi #gnb > ul > li > .menu" + j + "> ul").clone().appendTo(".subtitleTop .depthMenu.dep02 .subm" + j);
400    };
401    for (var k = 1; k <= 20; k++) {
402        $("#navi #gnb > ul > li > .menu" + k + "> ul > li .smenu" + k).clone().appendTo(".subtitleTop .depthMenu.dep03 .subm" + k);
403    };
404
405    $(".depthMenu.dep01 .subDepth").remove();
406	$(".depthMenu.dep02 .depth3").remove();
407
408    if ($(".subtitleTop .submenu-box > ul").length === 0) {
409        $(".subtitleTop .submenu-box").hide();
410    }
411
412
413    //text ani
414    $(".txt_ani").each(function() {
415        $(this).html(function(i, el) {
416            var spanizer = $.trim(el).split("");
417            return '<span>' + spanizer.join('</span><span>') + '</span>';
418        });
419    });
420    $(".txt_ani").each(function() {
421        $(this).find("> span").each(function(i) {
422            var i = 0.10 * i
423            $(this).css("animation-delay", (i) + "s")
424        })
425    })
426
427    $(".txt_ani_ul").each(function() {
428        $(this).find("> li").each(function(i) {
429            var i = 0.10 * i
430            $(this).css("animation-delay", (i) + "s")
431        })
432    })
433
434    // 갯수
435    //$(".submenu-box > ul").addClass("m" + $(".submenu-box > ul > li").length);
436    /*
437    $("#lnb p").click(function() {
438    	$(this).next('ul').stop().slideToggle();
439    	$(this).toggleClass('ov');
440    })
441    var subTit = $("#lnb .depth2").children("li.on").children().text();
442    $("#lnb p").text(subTit);
443    */
444
445
446    //animation
447    var $section = $('.ani'),
448        $section_s = $('.ani_s'),
449        bodyScroll, windowHeight;
450	var currentPageUrl = window.location.pathname;
451
452    function sectionAni() {
453        bodyScroll = $(document).scrollTop();
454		if (currentPageUrl.indexOf("index.php") !== -1 || currentPageUrl.indexOf("") !== -1) {
455			windowHeight = $(window).height() / 1.3;
456		} else {
457			windowHeight = $(window).height() / 1.3;
458		}
459
460        $section.each(function() {
461            if (bodyScroll >= $(this).offset().top + 80 - windowHeight && bodyScroll < $(this).offset().top + $(this).height()) {
462                $(this).addClass('on');
463                $(this).addClass('subOn');
464                $('.main .pnt-box').each(function() {
465                    var box = $(this).find('.listbox');
466                    if ($(this).hasClass('subOn')) {
467                        $(this).addClass('subOn');
468                        setTimeout(function() {
469                            box.addClass('active');
470                        }, 1700);
471                    }
472                });
473            } else {
474                $(this).removeClass('on');
475            }
476        });
477    }
478    $(function() {
479        sectionAni();
480    });
481    $(window).on('load scroll', function() {
482        sectionAni();
483    });
484
485    var didScroll;
486    var lastScrollTop = 0;
487    var delta = 0;
488    var subVHeight = $('.subVisual').outerHeight();
489    $(window).scroll(function(event) {
490        didScroll = true;
491    });
492    setInterval(function() {
493        if (didScroll) {
494            hasScrolled();
495            didScroll = false;
496        }
497    }, 1);
498
499    function hasScrolled() {
500        var st = $(this).scrollTop();
501        if (Math.abs(lastScrollTop - st) <= delta) return;
502        if (st > lastScrollTop && st > subVHeight - 28) {
503            $('header').addClass('nav');
504        } else {
505            $('header').removeClass('nav');
506        }
507        lastScrollTop = didScroll;
508    }
509
510	//random
511	$('.random-list').each(function () {
512		const $items = $(this).children('.box, li');
513		$items.each(function () {
514			let randomDelay = Math.random();
515			$(this).css('animation-delay', randomDelay + 's');
516		});
517	});
518	$('.random-list1').each(function () {
519		const $items = $(this).children('.box, li');
520		$items.each(function () {
521			let randomDelay = Math.random() + 0.3;
522			$(this).css('animation-delay', randomDelay + 's');
523		});
524	});
525	$('.random-list2').each(function () {
526		const $items = $(this).children('.box, li');
527		$items.each(function () {
528			let randomDelay = Math.random() + 0.6;
529			$(this).css('animation-delay', randomDelay + 's');
530		});
531	});
532	
533	//index
534	$(".index-list").each(function() {
535		const $boxes = $(this).children(".box, li");
536		$boxes.each(function(index) {
537			$(this).css("animation-delay", (0.3 * index) + "s");
538		});
539	});
540	$(".index-list1").each(function() {
541		const $boxes = $(this).children(".box, li");
542		$boxes.each(function(index) {
543			$(this).css("animation-delay", (0.3 + 0.1 * index) + "s");
544		});
545	});
546	$(".index-list2").each(function() {
547		const $boxes = $(this).children(".box, li");
548		$boxes.each(function(index) {
549			$(this).css("animation-delay", (0.3 + 0.3 * index) + "s");
550		});
551	});
552	$(".index-list3").each(function() {
553		const $boxes = $(this).children(".box, li");
554		$boxes.each(function(index) {
555			$(this).css("animation-delay", (0.1 + 0.2 * index) + "s");
556		});
557	});
558	$(".index-list4").each(function() {
559		const $boxes = $(this).children(".box, li");
560		$boxes.each(function(index) {
561			$(this).css("animation-delay", (0.1 + 0.3 * index) + "s");
562		});
563	});
564	
565	//zoom
566	$('.zoom-box').each(function () {
567		var imgSrc = $(this).find('img').attr('src');
568		var imgUrl = window.location.origin + imgSrc;
569		var btn = $('<div class="btn-z"><a href="' + imgUrl + '" target="_blank">이미지 링크</a></div>');
570		$(this).append(btn);
571	});
572
573	$('.global-box .global-popup .scroll-box').overlayScrollbars({});
574
575    stickyTop();
576    $(window).scroll(stickyTop).resize(stickyTop);
577
578});
579
580function stickyTop() {
581    document_height = $(document).height(); // 문서 전체 높이
582    document_scrollTop = $(document).scrollTop(); // 문서 전체 높이 중 스크롤 위치
583    window_height = $(window).height(); // 창 높이
584
585    visual_height = $('.topActive').height() - window_height;
586
587    if (document_scrollTop > visual_height) {
588        $('.quickMenu').addClass('active')
589    } else {
590        $('.quickMenu').removeClass('active')
591    }
592}
593
594$(function() {
595    /* gnb */
596    var didScroll;
597    var lastScrollTop = 0;
598    var delta = 5;
599    var navbarHeight = $('header').outerHeight();
600    $(window).scroll(function(event) {
601        didScroll = true;
602    });
603    setInterval(function() {
604        if (didScroll) {
605            hasScrolled();
606            didScroll = false;
607        }
608    }, 250);
609
610    function hasScrolled() {
611        var st = $(this).scrollTop();
612
613        if (Math.abs(lastScrollTop - st) <= delta) return;
614        if (st > lastScrollTop && st > navbarHeight) {
615            $('header').removeClass('nav-down').addClass('nav-up');
616            $('#wrap').removeClass('down');
617        } else {
618            if (st + $(window).height() < $(document).height()) {
619                $('header').removeClass('nav-up').addClass('nav-down');
620                $('#wrap').addClass('down');
621            }
622        }
623        lastScrollTop = st;
624    }
625    stickyFooter();
626    $(window).scroll(stickyFooter).resize(stickyFooter);
627
628    var $w = $(window),
629        footerHei = $('footer').outerHeight() - 60,
630        $btn_top = $('#btn_top');
631    $w.on('scroll', function() {
632        var sT = $w.scrollTop();
633        var val = $(document).height() - $w.height() - footerHei;
634        if (sT >= val) {
635            $btn_top.addClass('active');
636        } else {
637            $btn_top.removeClass('active');
638        }
639    });
640});
641
642function stickyFooter() {
643    document_height = $(document).height(); // 문서 전체 높이
644    document_scrollTop = $(document).scrollTop(); // 문서 전체 높이 중 스크롤 위치
645    window_height = $(window).height(); // 창 높이
646    footer_height = $("footer .copyright").height();
647
648    gap = document_height - footer_height - window_height;
649    bottom = document_scrollTop - gap;
650
651    if (document_scrollTop > gap) {
652        $("#wrap").addClass('s_off')
653    } else {
654        $("#wrap").removeClass('s_off')
655    }
656
657    visual_height = $(".subtitleTop").height() - 50;
658    //console.log(visual_height,document_scrollTop)
659
660    if (document_scrollTop > visual_height) {
661        $("header").addClass('active')
662    } else {
663        $("header").removeClass('active')
664    }
665}
666
667
668
669// 게시글 동영상 반응형
670document.addEventListener("DOMContentLoaded", function() {
671    // 모든 iframe 요소를 선택
672    var iframes = document.querySelectorAll('.board-view iframe');
673
674    iframes.forEach(function(iframe) {
675        // 새 div 요소 생성
676        var div = document.createElement('div');
677        div.className = 'video-container';
678
679        // iframe의 부모 노드에 div를 추가하고 iframe을 그 안에 넣음
680        iframe.parentNode.insertBefore(div, iframe);
681        div.appendChild(iframe);
682    });
683
684    // 모든 video 요소를 선택
685    var videos = document.querySelectorAll('.board-view video');
686    videos.forEach(function(video) {
687        // 새 div 요소 생성
688        var div = document.createElement('div');
689        div.className = 'video-container';
690
691        // video의 부모 노드에 div를 추가하고 video를 그 안에 넣음
692        video.parentNode.insertBefore(div, video);
693        div.appendChild(video);
694    });
695});
696
697function resizeContent() {
698    if ($(window).width() < 1024) {
699        $('a.tel').each(function(){
700            var telHref = $(this).data('tel-href');
701            if (telHref) {
702                $(this).attr('href', telHref);
703            }
704        });
705    } else {
706        $('a.tel').each(function(){
707            var telHref = $(this).attr('href');
708            if (telHref && telHref.startsWith('tel:')) {
709                $(this).data('tel-href', telHref);
710                $(this).removeAttr('href');
711            }
712        });
713    }
714}
715
716$(document).ready(function () {
717	resizeContent();
718    $(window).on('resize', resizeContent);
719});
720
721//global map
722function initSlick() {
723    var $slider = $('.global-box .map-list > .mapCont .listbox');
724    var windowWidth = $(window).width();
725    if (windowWidth < 1024) {
726        if (!$slider.hasClass('slick-initialized')) {
727            $slider.slick({
728                infinite: true,
729                speed: 600,
730                slidesToShow: 1,
731                autoplay: false,
732                autoplaySpeed: 3000,
733                dots: true,
734                arrows: false,
735                pauseOnFocus: false,
736                focusOnSelect: false,
737                adaptiveHeight: true,
738                cssEase: 'cubic-bezier(0.7, 0, 0.3, 1)',
739                pauseOnHover: true,
740                responsive: [{
741                        breakpoint: 1024,
742                        settings: {
743                            slidesToShow: 1
744                        }
745                    },
746                    {
747                        breakpoint: 640,
748                        settings: {
749                            slidesToShow: 1
750                        }
751                    }
752                ]
753            });
754        }
755    } else {
756        if ($slider.hasClass('slick-initialized')) {
757            $slider.slick('unslick');
758        }
759    }
760}
761
762$(document).ready(function() {
763    initSlick();
764});
765
766var resizeTimer;
767$(window).on('resize', function() {
768    clearTimeout(resizeTimer);
769    resizeTimer = setTimeout(function() {
770        initSlick();
771    }, 250);
772});

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.