1var HeaderNFooter = (function () { 2 3 var urls = { 4 manual : "https://support.flow.team/hc/ko", 5 faq: "https://support.flow.team/hc/ko/categories/204406027-%EC%9E%90%EC%A3%BC-%EB%AC%BB%EB%8A%94-%EC%A7%88%EB%AC%B8", 6 tip: "https://post.flow.team/category/tip", 7 insight: "https://post.flow.team/category/insight", 8 video: "https://post.flow.team/category/video", 9 interview: "https://post.flow.team/category/interview", 10 news: "https://post.flow.team/category/news", 11 blog: "https://post.flow.team/", 12 youtube: "https://www.youtube.com/channel/UCmnzKvpQMl8uyT1PUMdPsXQ", 13 facebook: "https://www.facebook.com/flow.team/", 14 instagram: "https://www.instagram.com/flow.designlab/", 15 reference: "https://post.flow.team/category/reference/", 16 } 17 18 return { 19 addEvent: addEvent, 20 }; 21 22 function addEvent() { 23 $("header").on({ 24 mouseover: activeItem, 25 mouseleave: disabledItem, 26 }); 27 $(".btnNavi").on("click", clickMobileHamburger); 28 $(".btnTop").on("click", function () { 29 $("html, body").animate({scrollTop: 0}, 500); 30 }); 31 $(".btnBannerClose").on("click", function () { 32 $('.mainBannerWrap').addClass('on'); 33 }); 34 $(".js-go-url").on("click", function (e) { 35 e.preventDefault(); 36 var code = $(this).attr("data-code"); 37 window.open(urls[$(this).attr("data-code")], code); 38 }) 39 $("#m-voucher-banner").on("click", function () { 40 OpenUtil.openWindow('https://www.flow.team/goodchance', '_blank'); 41 }) 42 $(".js-signup-btn").on("click", function() { 43 const projectInviteKey = Often.null2Void(window.CONNECT_INVITE_KEY) 44 45 const isRenewalSignUp = Often.null2Void(window.isRenewalSignUp) 46 const signUpUrl = isRenewalSignUp ? '/newSignup.act' : '/signup.act' 47 48 // ì´ë¯¸ íë¡ì í¸ ì´ë -> ì§ìì¼ë¡ ì°¸ì¬ ìë£ë ê²½ì°ìë ë¤ì íìê°ì ìë ì ì´ëí¤ë¥¼ ì ê±°í¨ 49 const url = new URL(location.href) 50 const isInvitationCompleted = url.searchParams.get('complete') === 'true' 51 if (isInvitationCompleted) { 52 window.CONNECT_INVITE_KEY = undefined 53 Often.submitForm('invite_form', signUpUrl, '_self') 54 return 55 } 56 57 Often.submitForm('invite_form', signUpUrl, '_self', { 58 INVT_KEY: projectInviteKey 59 }) 60 }); 61 $(".js-signin-btn").on("click", function() { 62 const projectInviteKey = Often.null2Void(window.CONNECT_INVITE_KEY); 63 if (projectInviteKey) { 64 Often.submitForm("invite_form", "/signin.act", "_self", {INVT_KEY: projectInviteKey}); 65 } else { 66 location.href = "/signin.act"; 67 } 68 }) 69 70 // 모ë°ì¼ (ë¹ëë©´ ë°ì°ì² ë°°ë) ì ì¸ 71 /* 72 < 모ë 모ë°ì¼ì ë¹ëë©´ ë°ì°ì² ì ì¸ (ììì¡°ì¹) > 73 var mobileVoucherExceptionPages = ["terms", "privacy", "company", "consult"]; 74 var isMobileVoucherNecessary = isArrayContainPage(mobileVoucherExceptionPages); 75 if(Often.isMobile() && isMobileVoucherNecessary) 76 $(".article_float_banner").css("display", "none"); 77 */ 78 79 // web (ë¹ëë©´ ë°ì°ì² ë°°ë) ì ì¸ 80 const VoucherExceptionPages = ["company", "corpsignup", "corpsignin"]; 81 const isVoucherNecessary = isArrayContainPage(VoucherExceptionPages); 82 if (isVoucherNecessary){ 83 $(".voucher").css("display", "none"); 84 $(".flower-event").css("display", "none"); 85 } 86 // (ìê° ë° íì¬ ë¹êµìë£ ì ì² ë°°ë) ì 무 íë³ 87 const bannerNecessaryPages = ["terms", "privacy", "signin", "corpsignin", "setpwd_renewal", "signup", "corpsignup", "company", "consult", "pt-recruit", "finance", "marketing", "design"]; // web ë°°ë ì ì¸ 88 const mobileExceptionPages = ["terms", "privacy", "signin", "corpsignin", "setpwd_renewal", "signup", "corpsignup", "consult", "pt-recruit"]; // web ì ì¸ ë¬´ì í mobileì ë°°ë ì¶ê° 89 const isNecessary = isArrayContainPage(bannerNecessaryPages); 90 const isMobileNecessary = isArrayContainPage(mobileExceptionPages); 91 92 if (!isNecessary || (Often.isMobile() && isMobileNecessary)) { 93 $("#topBannerButton").removeClass('d-none'); 94 } 95 96 function isArrayContainPage(pages) { 97 var necessaryResult = false;
98 pages.forEach(function (page){ 99 if (Often.isAct(page)) { 100 necessaryResult = true; 101 return necessaryResult; 102 } 103 }) 104 return necessaryResult; 105 } 106 107 if (Often.isAct("company")) { 108 $("#topBannerButton").addClass("company"); 109 $("#headerInnerSection").addClass("company"); 110 } 111 } 112 113 function activeItem(e) { 114 // headerì gnb ë§ì°ì¤ ì¤ë² ì ëì í¨ì 115 var $gnbList = $(e.target).closest(".js-gnb"); 116 if ($gnbList.length === 0) return; 117 $(e.currentTarget).find(".js-gnb").removeClass('active'); 118 $gnbList.addClass('active'); 119 } 120 121 function disabledItem(e) { 122 $(e.currentTarget).find(".js-gnb").removeClass('active'); 123 } 124 125 function clickMobileHamburger() { 126 var $mobileGnb = $(".mobileMenu"); 127 $mobileGnb.toggleClass("open"); 128 if ($mobileGnb.hasClass("open")) { 129 $("#ch-plugin").css("display", "none"); 130 $("html").css("overflow", "hidden"); 131 $('.mobileGnbItem').on("click", function () { 132 $(this).toggleClass('open'); 133 }); 134 $(".top-thin-banner").css("display", "none"); 135 $(".top-thin-banner.voucher").css("display", "flex"); 136 mobileBtnWrapToggle("flex"); 137 138 } else { 139 $("#ch-plugin").css("display", ""); 140 $("html").css("overflow", "visible"); 141 $('.mobileGnbItem').off("click"); 142 $(".top-thin-banner").css("display", "flex"); 143 mobileBtnWrapToggle("none"); 144 145 } 146 } 147 148 // KSH : 모ë°ì¼ì© íë¨ 2ê°ì ë²í¼ì´ ëì¤ì§ ìë íì´ì§ìì, íë²ê±° ë©ë´ ëì¸ììë 2ê°ì ë²í¼ì´ ë³´ì´ëë¡ ì²ë¦¬íë í¨ì. 149 // íì¬ìê° - /company.act 150 // ìê° ë° ë¹êµìë£ ì ì² - /consult.act?contact=resource 151 // ëì 문ì - /consult.act 152 function mobileBtnWrapToggle(displayVal){ 153 var companySection = $("#company"); 154 var consultSection = $("#consult"); 155 156 if(companySection || consultSection){ 157 $(".mobile-button-wrap").css("display", displayVal); 158 } 159 } 160 161})();
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.