UI.JS const header = { set : () => { header.textCopy(); }, /* header 제목 넣기 */ textCopy : () => { let headerClone = document.querySelector('.headerClone'); const subHeading = document.querySelector('.subHeader h2'); if(headerClone) { let headerCloneText = headerClone.cloneNode(true); subHeading && subHeading.appendChild(headerCloneText); return; } }, } const container = { top: 0, currentTop : 0, ..
kua.go.kr에 사용된 JS $(document).ready(function () { common = { mobile_size: 1200, init: function () { common.platform(); common.menu(); common.menu_active(); common.header_slider(); common.aside_scroll(); common.layer_popup(); common.family_site(); // skipnav용 본문 아이디 추가 var $contents = $(".contents"); $contents.attr("id", "container_id"); }, /* 모바일 플랫폼 관련 */ platform: function () { var isMobile = ..
vezzle.co.kr에 사용된 JS $(document).ready(function () { vezzle = { mobileSize: 767, init: function () { vezzle.menuopen(); vezzle.mobilemenu(); vezzle.topfix(); }, /* 메뉴 활성화 */ menuopen: function () { if(typeof depth !== "undefined") { var $nav = $(".gnb").find(".menu"); $.each($nav.find("a"), function(index, item) { var _item = $(this).attr("data-menu"); var _depth = _item.split("_"); var _depthSh..
mswitch.co.kr에 사용된 JS $(document).ready(function () { mswitch = { init: function () { mswitch.bubble(); mswitch.scroll(); mswitch.gnb(); mswitch.anchor(); mswitch.mobile(); mswitch.layer(); }, /* 거품 올라오는 애니메이션 */ bubble: function() { var bArray = []; var sArray = [6,8,10,12,20,50]; var $bubbles = $('.bubbles'); var $document_width = $(document).width(); if($document_width > 800) { for (var i = 0..