PageSourceSearch

https://rental.lghellovision.net/resources/js/ui-common.js

js lghellovision.net collected 2026-09-24 10:09:02 UTC 26,492 bytes, 758 lines download raw bytes

1window.browser = {};
2
3// 스킵 네비게이션
4$(document).on('click', '#skip a', function () {
5    var tg = $(this).attr('href');
6    $(tg).attr('tabindex', '0').focus();
7    return false;
8});
9
10// GNB 기업
11$(document).on('mouseenter', '.gnb-biz>ul>li', function () {
12    gnbBizOpen($(this));
13}).on('mouseleave', '.gnb-biz', function () {
14    gnbBizClose();
15}).on('focus', '.gnb-biz>ul>li>a', function () {
16    gnbBizOpen($(this).parent());
17}).on('focus', '#brand a, #btn-search-open', function () {
18    gnbBizClose();
19});
20
21function gnbBizOpen(lnb) {
22    cosole.log('biz');
23    $(lnb).addClass('active').siblings().removeClass('active');
24    $('#gnb>ul>li').children('ul').stop().slideDown({ duration: 200, easing: 'easeOutQuint' });
25    $('#gnb .bg-gnb').stop().slideDown({ duration: 300, easing: 'easeOutQuint' });
26}
27
28function gnbBizClose() {
29    $('#gnb>ul>li').removeClass('active').children('ul').stop().slideUp({ duration: 0, easing: 'easeOutQuint' });
30    $('#gnb .bg-gnb').stop().slideUp({ duration: 300, easing: 'easeOutQuint' });
31}
32
33// 사이트맵
34$(function () {
35    $(document).on('click', '#btn-sitemap-open', function () {
36        $('#sitemap').show().addClass('opened').children('ul').stop().slideDown({ duration: 1000, easing: 'easeOutQuint' });
37        $('#global-search').hide().children('form').hide();
38        return false;
39    });
40    $(document).on('click', '#btn-sitemap-close', function () {
41        $('#sitemap').removeClass('opened').children('ul').stop().slideUp({ duration: 1000, easing: 'easeOutQuint' }).parent().delay(500).fadeOut('fast');
42        $('#btn-sitemap-open').focus();
43    });
44    $(document).on('click', '#sitemap li button', function () {
45        $(this).next('ul').stop().slideToggle({ duration: 600, easing: 'easeOutQuint' }).parent('li').toggleClass('on');
46        if ($(this).hasClass('btn-open')) {
47            $(this).removeClass('btn-open').addClass('btn-close');
48            return false;
49        } else {
50            $(this).removeClass('btn-close').addClass('btn-open');
51        }
52    });
53});
54
55// 화면 경로
56$(document).on('click', '.path-item .btn-open', function () {
57    var pathItem = $(this).closest('.path-item');
58    $(pathItem).addClass('active').children('dd').slideDown(500);
59    $(pathItem).siblings().removeClass('active').children('dd').slideUp(500);
60}).on('click', '.path-item .btn-close', function () {
61    var pathItem = $(this).closest('.path-item');
62    $(pathItem).removeClass('active').children('dd').slideUp(500);
63    $('.btn-open', pathItem).focus();
64}).on('mouseup', function (e) {
65    var pathList = $('.path-item.active');
66    if (pathList.length) {
67        var objPos = $(pathList).offset();
68        objPos.right = (objPos.left + $(pathList).width());
69        objPos.bottom = (objPos.top + $(pathList).height());
70        if (e.pageX < objPos.left || e.pageX > objPos.right || e.pageY < objPos.top || e.pageY > objPos.bottom) {
71            $(pathList).removeClass('active').children('dd').slideUp(500);
72            $('.btn-open', pathList).focus();
73        }
74    }
75});
76
77// 계열사 사이트
78$(document).on('click', '#btn-family-toggle', function () {
79    $('#family-site').toggleClass('on').children('dd').slideToggle();
80}).on('click', '#btn-family-close', function () {
81    $('#family-site').removeClass('on').children('dd').slideUp();
82    $('#btn-family-toggle').focus();
83});
84
85// 맨 위로
86$(document).on('click', '.sm-dn #btn-totop', function () {
87    //    $('body, html').animate({ scrollTop: 0 }, 200);
88    window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
89    return false;
90});
91$(window).on('scroll', function () {
92    if ($(this).scrollTop() > 100) {
93        $('.sm-dn #btn-totop').fadeIn();
94    } else {
95        $('.sm-dn #btn-totop').fadeOut();
96    }
97});
98
99// 스티키 위치
100$(function () {
101    if ($('#sticky-counsel').length) {
102        $('#footer').addClass('sticky-space');
103    }
104});
105
106// 탭메뉴
107$(function () {
108    $('.tab-list .on a, .tab-list-matrix .on a, .sort .on a').each(function () {
109        var tg = $(this).attr('href');
110        if (tg !== '#' && tg.charAt(0) === '#') {
111            $(tg + '.tab-cont').show();
112        }
113    });
114});
115$(document).on('click', '.tab-list a, .tab-list-matrix a, .sort a', function () {
116    $(this).parent('li').addClass('on').siblings('li').removeClass('on');
117    var tg = $(this).attr('href');
118    if (tg === '#' || tg === '') {
119        return false;
120    } else if (tg.charAt(0) === '#') {
121        if ($(tg).hasClass('tab-cont')) {
122            $(tg).show().siblings('.tab-cont').hide();
123            return false;
124        }
125    }
126});
127
128// 토글(여닫기)버튼
129$(function () {
130    $('.btn-toggle.active').each(function () {
131        var tg = $(this).attr('href');
132        $(tg).show();
133        return false;
134    });
135    $('.btn-toggle').click(function () {
136        $(this).toggleClass('active');
137        var tg = $(this).attr('href');
138        $(tg).slideToggle('fast');
139        return false;
140    });
141});
142
143// 토글 목록
144$(function () {
145    $('.toggle-item.active').each(function () {
146        $(this).children('.toggle-content').show();
147    });
148    $('.toggle-item .btn-open').click(function () {
149        $(this).closest('.toggle-item').toggleClass('active').children('.toggle-content').slideToggle();
150    });
151});
152
153// 태그 목록 토글
154$(function () {
155    $('.relation-tag').each(function () {
156        var defaultH = 34;
157        if ($(this).hasClass('relation-tag-event')) {
158            defaultH = 40;
159        }
160        if ($(this).find('.tag-list').outerHeight() > defaultH) {
161            $(this).addClass('overflow');
162        }
163    });
164    $('.relation-tag .btn-toggle-tag').click(function () {
165        $(this).closest('.relation-tag').toggleClass('opened');
166    });
167});
168
169//마이헬로 토글 목록
170$(function () {
171    $('.toggle-item-s.active').each(function () {
172        $(this).children('.toggle-content-s').show();
173    });
174    $('.toggle-item-s .btn-open').click(function () {
175        $(this).closest('.toggle-item-s').toggleClass('active').children('.toggle-content-s').slideToggle();
176    });
177});
178
179$(function () {
180    $('.toggle-item-sale.active').each(function () {
181        $(this).children('.toggle-content-sale').show();
182    });
183    $('.toggle-item-s .btn-open-sale').click(function () {
184        $(this).closest('.toggle-item-sale').toggleClass('active').children('.toggle-content-sale').slideToggle();
185    });
186});
187
188// 파일첨부 디자인
189$(function () {
190    $('.form-file').each(function (index, item) {
191        var w = $(item).outerWidth();
192        var title = $(item).attr('title');
193        var noIndex = Number(index) + 1;
194        $(item).hide().after('<div class="input-group file-attach" style="width:100%;"><input type="text" class="i-file-name" id="noIndex' + noIndex + '" title="' + title + '" readonly><span class="input-addon"><button type="button" class="btn btn-black">첨부</button></span></div>');
195    });
196    var fileTarget = $('input[type=file]');
197    fileTarget.on('change', function () {
198        if (window.FileReader) {
199            // modern browser
200            var filename = $(this)[0].files[0].name;
201        } else {
202            // old IE
203            var filename = $(this).val().split('/').pop().split('\\').pop();
204        }
205        $(this).next().children('.i-file-name').val(filename);
206    });
207});
208$(document).on('click', '.file-attach input, .file-attach .btn', function () {
209    $(this).closest('.file-attach').prev('.form-file').click();
210});
211
212// 팝업 오픈
213$(document).on('click', '.js-open-popup', function () {
214    openModal($(this));
215    return false;
216}).on('click', '.js-close-popup', function () {
217    closeModal($(this));
218});
219
220var popOpenBtn = null;
221
222function openWindow(_obj, popName, w, h, _opener) {
223    var popW = 850;
224    var popH = 600;
225    var myUrl = _obj;
226
227    if (typeof _obj !== 'string') {
228        if ($(_obj).prop('tagName') === 'A') {
229            popOpenBtn = $(_obj);
230            myUrl = $(_obj).attr('href');
231        } else if (_opener) {
232            popOpenBtn = $(_opener);
233        }
234    }
235
236    if (w) popW = w;
237    if (h) popH = h;
238    var left = window.screenX + (window.outerWidth - popW) / 2;
239    var top = window.screenY + (window.outerHeight - popH) / 2;
240    window.open(myUrl, popName, 'width=' + popW + ', height=' + popH + ', left=' + left + ', top=' 
240+ top + ', scrollbars=yes');
241}
242
243function closeWindow() {
244    if (window.opener != null) {
245        window.opener.openerFocus();
246    }
247    window.close();
248}
249
250function openerFocus() {
251    if (popOpenBtn != null) {
252        $(popOpenBtn).focus();
253        popOpenBtn = null;
254    }
255}
256
257// 모달 레이어
258$(document).on('click', '.js-open-modal', function () {
259    openModal($(this));
260    return false;
261}).on('click', '.js-close-modal', function () {
262    closeModal($(this));
263});
264
265var layerOpener = null;
266
267function openModal(_obj, opener) {
268    var tg;
269    if ($(_obj).prop('tagName') === 'A') {
270        tg = $(_obj).attr('href');
271        layerOpener = _obj;
272    } else {
273        tg = _obj;
274        if (opener !== '') layerOpener = $(opener);
275    }
276    // history.pushState('', document.title, window.location.pathname + window.location.search + tg);
277    var $target = $(tg);
278
279    if ($target.data('toggle') === true) { // 0810, 클래스만 제어
280        $target.addClass('show').find('.popup-inner').attr('tabindex', '0').focus();
281    } else {
282        $target.fadeIn(600).addClass('show').find('.popup-inner').attr('tabindex', '0').focus();
283    }
284
285    if ($target.data('overlay') !== false) { // 0810, 오버레이 제어
286        bgOverlayIn($('body').width());
287    }
288}
289
290function closeModal(_obj) {
291    var tg;
292    if ($(_obj).prop('tagName') === 'A' || $(_obj).prop('tagName') === 'BUTTON') {
293        var $obj = $(_obj); // 0810, 타겟 지정 기능
294        if ($obj.data('target') !== undefined) {
295            tg = $($obj.data('target'));
296        } else {
297            tg = $obj.closest('.layer-popup');
298        }
299    } else {
300        tg = _obj;
301    }
302    if (typeof tg == 'string') {
303        tg = $(tg);
304    }
305    if ($(tg).data('toggle') === true) { // 0810, 클래스만 제어
306        $(tg).removeClass('show');
307    } else {
308        $(tg).hide().removeClass('show');
309    }
310    if (layerOpener !== null) {
311        layerOpener.focus();
312        layerOpener = null;
313    }
314    removeHash();
315    bgOverlayOut();
316}
317
318function closeModal2(_obj) {
319    var tg;
320    if ($(_obj).prop('tagName') === 'A' || $(_obj).prop('tagName') === 'BUTTON') {
321        tg = $(_obj).closest('.layer-popup');
322    } else {
323        tg = _obj;
324    }
325    $(tg).hide().removeClass('show');
326    if (layerOpener !== null) {
327        layerOpener.focus();
328        layerOpener = null;
329    }
330    removeHash();
331    //bgOverlayOut();
332}
333
334function orderCancel2() {
335    $("#lb-name").val("");
336    $("#lb-tel").val("");
337    $("#lb-time").prop("selectedIndex", "0");
338    $('input:checkbox[id="modallb-agree"]').attr("checked", false);
339}
340
341function bgOverlayIn(orgWidth) {
342    $('.overlay').fadeIn(600);
343    $('body').addClass('modal-opened');
344    if ($('html').get(0).scrollWidth > $('html').width() === false) {
345        $('body, .fixed-area').css('margin-right', $('body').width() - orgWidth);
346    }
347}
348
349function bgOverlayOut() {
350    $('body, .fixed-area').css('margin-right', '');
351    $('body').removeClass('modal-opened');
352    $('.overlay').fadeOut(600);
353}
354
355$(document).on('keydown', '.layer-popup .btn-close-popup', function (e) {
356    if (e.keyCode == 9 && !e.shiftKey) { // tab
357        e.preventDefault();
358        $(this).siblings('.popup-title').attr('tabindex', '0').focus();
359    }
360}).on('keydown', '.layer-popup .popup-title', function (e) {
361    if (e.keyCode == 9 && e.shiftKey) { // shift + tab
362        e.preventDefault();
363        $(this).siblings('.btn-close-popup').focus();
364    }
365});
366
367function removeHash() {
368    history.pushState('', document.title, window.location.pathname + window.location.search);
369}
370
371$(function () {
372    // 유의사항 펼침/닫침
373    var discTitle = $('.event-note h4');
374    //var discCont = $('.event-note ul');
375
376    discTitle.each(function () {
377        $(this).find('> a').on('click', function (e) {
378            e.preventDefault();
379
380            if ($(this).hasClass('open')) {
381                $(this).removeClass('open');
382                //discCont.hide();
383                $(this).parent().parent().find('ul').hide();
384            } else {
385                $(this).addClass('open');
386                //discCont.show();
387                $(this).parent().parent().find('ul').show();
388            }
389        }).on('mouseover', function () {
390            $(this).css('color', '#ed174d');
391        }).on('mouseleave', function () {
392            $(this).css('color', '#000000');
393        });
394    });
395});
396
397//가입가능지역 조회
398$(document).on("click", "#btn-search-area", function () {
399    if ($("#dong_nm").val() == "") {
400        alert("동/면/읍을 입력해주세요.");
401        $("#dong_nm").focus();
402        return;
403    }
404    $.ajax({
405        type: 'POST',
406        url: "/main/getAddrSearch.do",
407        data: $("#areaFrm").serialize(),
408        dataType: 'json',
409        success: function (data) {
410            if (data.success) {
411                if (data.addrList[0].CNT > 0) {
412                    $('#area_true').show();
413                } else {
414                    $('#area_false').show();
415                }
416            } else {
417                $('#area_false').show();
418            }
419        }
420    });
421})
422
423function enterAreaSearch() {
424    if (window.event.keyCode == 13) {
425        $("#btn-search-area").trigger("click");
426    }
427}
428//모달 레이어 - 헬세권이벤트
429$(document).on('click', '.event_pop_close', function () {
430    $('.event_popwrap').hide();
431});
432
433
434//2022 new header
435$(function () {
436
437    var $loginLayer = $('.hv-header__loginLayer'),
438        $loginLayerOpenbtn = $(".hv-launcher .myhello-btn"),
439        $gnbDepth_1 = $(".hv-gnb ul li"),
440        $gnbDepth_1_link = $gnbDepth_1.find('a'),
441        $gnbDepth_2_link = $(".hv-header .sub-gnb .menu ul li.d2"),
442        $gnbDepth_3_link = $(".hv-header .sub-gnb .menu ul li .d3-list li.d3"),
443        $gnbDepth_4_link = $(".hv-header .sub-gnb .menu ul li .d4-list li.d4")
444    $launcher_link = $(".hv-launcher > ul > li a");
445
446    $(document).on('click', '#btn-sitemap-open', function () {
447        if ($loginLayer.hasClass('active')) {
448            $loginLayer.removeClass('active');
449            $('.myhello-btn').removeClass('active');
450        }
451        if ($(".sub-gnb").hasClass('active')) {
452            $(".sub-gnb").removeClass('active');
453        }
454        $('.sm-dn [data-id=hello-rental]').parent().addClass('active')
455        $('.sm-dn #hello-rental').addClass('on active')
456        return false;
457    });
458
459    $loginLayerOpenbtn.on("mouseenter", function (e) {
460        e.preventDefault();
461        if ($(this).hasClass('on') == false) {
462            $loginLayer.addClass("active");
463        }
464    });
465
466    $loginLayer.on("mouseleave", function (e) {
467        e.preventDefault();
468        $loginLayerOpenbtn.removeClass("active");
469        // $loginLayerOpenbtn.find('img').css("transform", "scaleY(1)");
470        $(this).removeClass("active");
471        if ($loginLayerOpenbtn.hasClass('on') == true) {
472            $loginLayerOpenbtn.addClass('active');
473        }
474    });
475
476    $gnbDepth_1_link.on("mouseenter", function () {
477        var $this = $(this),
478            $thisId = $this.attr("data-id");
479        if ($thisId != "hello-market") {
480            $gnbDepth_1.removeClass('active');
481            $this.parent().addClass('active');
482
483        } else {
484            $gnbDepth_1.removeClass('active');
485            closeSubGnb();
486        }
487        openSubGnb($thisId);
488    });
489
490    $gnbDepth_1_link.on("mouseleave", function () {
491        var $this = $(this),
492            $thisId = $this.attr("data-id");
493        if ($('#' + $thisId).length == 0) {
494            $this.parent().removeClass('active');
495            $('.sm-dn [data-id=hello-rental]').parent().addClass('active');
496            $('.sm-dn #hello-rental').addClass('on active');
497            onMenuCheck();
498        }
499    });
500
501    $gnbDepth_2_link.on("mouseenter", function () {
502        var $this = $(this);
503        $gnbDepth_2_link.removeClass('active');
504        $this.addClass('active');
505        $('.d3-list').hide();
506        $this.find('.d3-list').show();
507        if ($gnbDepth_3_link.hasClass('on') == true) {
508            $(".hv-header .sub-gnb .menu ul li .d3-list li.on").addClass('active');
509        }
510        if ($this.children('.d3-list').hasClass('grid_list') === true) {
511            $this.children('.d3-list').css('display', 'grid');
512        }
513    });
514
515    $gnbDepth_3_link.find("a").on("mouseenter", function () {
516        var $this = $(this);
517        $gnbDepth_3_link.removeClass('active');
518        $gnbDepth_4_link.removeClass('active');
519        $this.parent().addClass('active');
520    });
521
522    $gnbDepth_4_link.find("a").on("mouseenter", function () {
523        var $this = $(this);
524        $gnbDepth_3_link.removeClass('active');
525        $gnbDepth_4_link.removeClass('active');
526        $this.parent().addClass('active');
527    });
528
529
530    $launcher_link.on("mouseenter", function () {
531        var $this = $(this),
532            $thisId = $this.attr("data-id");
533
534        $launcher_link.removeClass('active');
535        //        $gnbDepth_1.removeClass('active');
536        $this.addClass('active');
537        // $loginLayerOpenbtn.find('img').css("transform", "scaleY(1)");
538
539        if ($thisId == "myhello") {
540            $('.hv-header__loginLayer').addClass("active");
541            // $loginLayerOpenbtn.find('img').css("transform", "scaleY(-1)");
542
543        } else {
544            $('.myhello-btn').removeClass('active');
545            $loginLayer.removeClass('active');
546        }
547        if ($thisId != undefined) {
548            openSubGnb($thisId);
549
550        } else {
551            $(".sm-dn .sub-gnb").removeClass('active');
552
553            // hello-rental 1depth active
554            $('.sm-dn [data-id=hello-rental]').parent().addClass('active');
555            $('.sm-dn #hello-rental').addClass('on active');
556
557            onMenuCheck();
558        }
559    });
560
561    $launcher_link.on("mouseleave", function () {
562        var $this = $(this),
563            $thisId = $this.attr("data-id");
564        if ($('#' + $thisId).length == 0) {
565            $this.removeClass('active');
566            onMenuCheck();
567        }
568    });
569
570    $(".sub-gnb").on("mouseleave", function () {
571        closeSubGnb();
572    });
573
574    if ($gnbDepth_1.hasClass('on') == true || $launcher_link.hasClass('on') == true) {
575        $("#global-search").addClass('withGnb');
576        $("#sitemap").addClass('withGnb');
577    }
578
579    function openSubGnb(dataID) {
580        var $openId = dataID;
581        if ($openId != undefined) {
582            $(".sm-dn .sub-gnb").removeClass('fix');
583            $(".sm-dn .sub-gnb").removeClass('active');
584
585            if ($openId == "myhello" && $("#myhello").length == 0) {
586                onMenuCheck();
587
588            } else {
589                $(".sm-dn #" + $openId).addClass('active');
590
591                if ($openId == 'myhello' || $openId == 'hello-market') {
592                    // hello-rental active
593                    $('.sm-dn [data-id=hello-rental]').parent().addClass('active');
594                    $('.sm-dn #hello-rental').addClass('on active');
595                }
596
597            }
598
599            if ($loginLayer.hasClass('active') && $openId !== "myhello") {
600                $loginLayer.removeClass('active');
601                $('.myhello-btn').removeClass('active');
602            }
603
604        } else {
605            closeSubGnb();
606            return false
607        }
608        if ($launcher_link.attr("id") == "btn-search-open") {
609            $('.myhello-btn').removeClass('active');
610        }
611    }
612
613    function onMenuCheck() {
614        if ($gnbDepth_1.hasClass('on') == true) {
615            var $onMenu = $(".sm-dn .hv-gnb ul li.on a").attr("data-id");
616            $(".sm-dn #" + $onMenu).addClass('fix');
617            $(".sm-dn .hv-gnb ul li.on").addClass('active');
618        }
619        if ($launcher_link.hasClass('on') == true) {
620            var $onMenu = $(".sm-dn .hv-launcher ul li a.on").attr("data-id");
621            $(".sm-dn #" + $onMenu).addClass('fix');
622            $(".sm-dn .hv-launcher ul li a.on").addClass('active');
623        }
624    }
625
626    function closeSubGnb() {
627        $gnbDepth_1.removeClass('active');
628        $launcher_link.removeClass('active');
629        $(".sm-dn .sub-gnb").removeClass('active');
630        $gnbDepth_2_link.removeClass('active');
631        $gnbDepth_3_link.removeClass('active');
632        $gnbDepth_4_link.removeClass('active');
633        $('.sm-dn .d3-list').hide();
634        onMenuCheck();
635        if ($gnbDepth_2_link.hasClass('on') == true) {
636            $(".hv-header .sub-gnb .menu ul li.on").addClass('active');
637        }
638        if ($gnbDepth_3_link.hasClass('on') == true) {
639            $(".hv-header .sub-gnb .menu ul li .d3-list li.on").addClass('active');
640        }
641        if ($gnbDepth_4_link.hasClass('on') == true) {
642            $(".hv-header .sub-gnb .menu ul li .d4-list li.on").addClass('active');
643        }
644
645        // hello-rental 1depth active
646        $('.sm-dn [data-id=hello-rental]').parent().addClass('active');
647        $('.sm-dn #hello-rental').addClass('on active');
648    }
649
650    var $window = $(window);
651    var $body = $('body');
652
653    // toggle sitemap
654    var $window = $window || $(window),
655        $sitemap = $('.sm-dn #footerSitemap');
656    var _timerFooter = null;
657
658    $sitemap.on('click', '.toggle-sitemap', function (e) {
659        e.preventDefault();
660        clearTimeout(_timerFooter);
661        var $upper = $sitemap.find('.upper'),
662            _bool = ($sitemap.hasClass('in')),
663            //            _height = (_bool === true) ? '0' : $upper.children().height();
664            _height = (_bool === true) ? '0' : '750';
665        $upper.css('height', _height);
666        $sitemap.toggleClass('in', !_bool);
667        _timerFooter = setTimeout(function () {
668            $sitemap.toggleClass('anim', !_bool);
669            window.localStorage.setItem('toggleSitemap', !_bool);
670            $window.trigger('resize');
671        }, 5);
672    });
673
674    $("#sticky-counsel .link-chat").on("mouseenter", function (e) {
675        e.preventDefault();
676        $(".layerChat").show();
677    });
678
679    $("#sticky-counsel .layerChat").on("mouseleave", function (e) {
680        e.preventDefault();
681        $(this).hide();
682    });
683    //floating
684    $(".hv-floating img").on("click", function () {
685        $("html, body").animate({ scrollTop: 0 }, 400);
686    });
687});
688
689
690function fnGaipPop() {
691
692    var cw = window.screen.width;     //화면 넓이
693    var ch = window.screen.height;    //화면 높이
694
695    //	var sw=570;    //띄울 창의 넓이
696    //	var sh=ch - 110; //855;    //띄울 창의 높이
697    sw = 648; //664     //띄울 창의 넓이
698    sh = 692; //759		//띄울 창의 높이
699
700    sh = Math.min(sh, 730); // 상품명 없을 때
701    sh = ($('html').hasClass('macos')) ? sh + 25 : sh; // MacOs일 때 25 추가
702
703    var ml = (cw - sw) / 2;        //가운데 띄우기위한 창의 x위치
704    var mt = 0; //200 //(ch-sh)/2;         //가운데 띄우기위한 창의 y위치
705
706    var winenpop;
707
708    let url = rentalOutUrl;
709
710    winenpop = window.open(url, 'main_entry', 'width=' + sw + ',height=' + sh + ',left=' + ml + ',top==' + mt + ',scrollbars=yes, resizable=yes');
711    //    winenpop = window.open(url, targetName, 'width='+sw+',height='+sh+',left='+ml+',top=='+mt+',scrollbars=yes, resizable=yes');
712
713    var utm_campaign, utm_content, utm_medium, utm_source, utm_term = '';
714    var prodNm="";
715    if(sessionStorage.getItem("UTM_DATA")){
716        utm_campaign = JSON.parse(sessionStorage.getItem("UTM_DATA")).utm_campaign;
717        utm_content = JSON.parse(sessionStorage.getItem("UTM_DATA")).utm_content;
718        utm_medium = JSON.parse(sessionStorage.getItem("UTM_DATA")).utm_medium;
719        utm_source = JSON.parse(sessionStorage.getItem("UTM_DATA")).utm_source;
720        utm_term = JSON.parse(sessionStorage.getItem("UTM_DATA")).utm_term;
721
722        if(utm_campaign) prodNm=("<input type='hidden' value='"+ utm_campaign +"' name='utm_campaign'>")
723        if(utm_content) prodNm=prodNm+("<input type='hidden' value='"+ utm_content +"' name='utm_content'>")
724        if(utm_medium) prodNm=prodNm+("<input type='hidden' value='"+ utm_medium +"' name='utm_medium'>")
725        if(utm_source) prodNm=prodNm+("<input type='hidden' value='"+ utm_source +"' name='utm_source'>")
726        if(utm_term) prodNm=prodNm+("<input type='hidden' value='"+ utm_term +"' name='utm_term'>")
727    }
728    const pcode = new URLSearchParams(window.location.search);
729    if(pcode.get('pcode') != null)
730        prodNm=prodNm+("<input type='hidden' value='"+ pcode.get('pcode') +"' name='ref_id'/>")
731
732    var form = $('<form></form>');
733    form.attr("action", url);
734    form.attr("method", 'post');
735    form.attr("target", 'main_entry');
736    form.appendTo('body');
737    var custNm = $(`<input type='hidden' value='` + $("#cust_name").val() + `' name='custNm'>
738    				<input type='hidden' value='`+ $("#cust_tel").val() + `' name='custTel'>
739    				<input type='hidden' value='기타페이지' name='select_route'>
740    				<input type='hidden' value='_' name='product_section'>
741    				<input type='hidden' value='`+ custom_page_title_name + `' name='custom_page_title'>
742    				<input type='hidden' value='`+ promotion_page_title_name + `' name='promotion_page_title'>
743    				<input type='hidden' value='`+ _device + `' name='device'>` + prodNm);
744    form.append(custNm);
745    form.submit();
746
747    $("#cust_name").val('');
748    $("#cust_tel").val('');
749}
750
751$(document).on("click", "#btn_insert", function () { //가입상담신청
752    fnGaipPop();
753});
754
755
756$(document).on('keyup', '#cust_tel', function (e) {
757    $(this).val($(this).val().replace(/[^-0-9]/g, ''));
758})

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.