// ȨÇÇ¿î¿ë ½ºÅ©¸³Æ® //------------------------------- »ó´Ü Æ˾÷°øÁö ¼¼Æà -----------------------------------------> /* $(document).ready(function() { //$.removeCookie("homepee_popup01", { path : '/' } ) if ($.cookie("homepee_popup01") != "ok") { $("#popup01").slideDown() } $("#popup01 .popup_content .popup_close").click(function() { $.cookie("homepee_popup01", "ok", { expires : 1, path : '/' }); $("#popup01").slideUp(); }); }); */ //------------------------------- Modal Æ˾÷°øÁö ¼¼Æà -----------------------------------------> /*$(document).ready(function() { //$.removeCookie("homepee_popup02", { path : '/' } ) if ($.cookie("homepee_popup02") != "ok") { $("#popup02").modal() } $("#popup02 .close, #popup02 .close2").click(function() { $.cookie("homepee_popup02", "ok", { expires : 1, path : '/' }); }); });*/ //------------------------------- ·¹À̾î Æ˾÷°øÁö ¼¼Æà -----------------------------------------> /*$(document).ready(function() { //$.removeCookie("homepee_popup03", { path : '/' } ) if ($.cookie("homepee_popup03") != "ok") { $("#popup03").fadeIn() } $("#popup03 .popup_content .popup_close").click(function() { $.cookie("homepee_popup03", "ok", { expires : 1, path : '/' }); $("#popup03").fadeOut(); }); });*/ //------------------------------- ½ºÆ½¸Þ´º -----------------------------------------> $(document).ready(function() { var win = $(window), nav = $('#navwrap_bg'), pos = nav.offset().top, sticky = function(){ win.scrollTop() > pos ? nav.addClass('sticky') : nav.removeClass('sticky') }; win.scroll(sticky) }); // ------------------------------- ½ºÅ©·Ñž --------------------------------------- --> $(function() { $.fn.scrollToTop = function() { $(this).hide().removeAttr("href"); if ($(window).scrollTop() != "0") { $(this).stop().fadeIn(1000); } var scrollDiv = $(this); $(window).scroll(function() { if ($(window).scrollTop() == "0") { $(scrollDiv).fadeOut(1000) } else { $(scrollDiv).fadeIn(1000) } }); $(this).click(function() { $("html, body").animate({ scrollTop: 0 }, "slow") }) } }); $(function() { $("#scrollTop").scrollToTop(); }); // ------------------------------- ½ºÅ©·Ñž Á¾·á --------------------------------------- --> /* ÅøÆÁ°ú ¿Í¿ì ÃʱâÈ­ */ $(function () { $('[data-toggle="tooltip"]').tooltip(); new WOW().init(); }); // ¸ð¹ÙÀϹöÆ° $(document).ready(function(){ $('.menu-icon-container').on('click', function(){ $('.menu-icon').toggleClass('transformed'); }); $(".menu-icon-container").on('click', function(){ $('#nav').slideToggle(300); } ); }); // /* $(document).ready(function(){ $("#navwrap_bg").stickThis({ top: 0, // top position of sticky element, measured from 'ceiling' minscreenwidth: 769, // element will not be sticky when viewport width smaller than this maxscreenwidth: 999999, // element will not be sticky when viewport width larger than this zindex: 19, // z-index value of sticky element }); });*/ // $(document).ready(function() { // jQuery(".big_title").fitText(0.6, { minFontSize: '18px', maxFontSize: '28px' }); // jQuery(".sub_title").fitText(1.0, { minFontSize: '24px', maxFontSize: '32px' }); }); $(document).ready(function(){ var d = new Date(); var n = d.getFullYear(); $("#year").html(n); }); // ÆÄÀÏ À̸§: °øÅ뽺ũ¸³Æ® ÆÄÀϸí: common ÆÄÀÏ°æ·Î: {{$template}}/inc/common.js function bluring() { try{ if(event.srcElement.tagName=='A'||event.srcElement.tagName=='IMG') { document.body.focus(); } }catch( e ) { } } try{ document.onfocusin=bluring; }catch( e ) { } var rurl = location.href; var purl = getUrl(rurl); function getUrl(url_str) { var real_url; if (url_str.indexOf('/') > 0) { real_url = url_str.split('/'); real_url = real_url[0]+'//'+real_url[2]+'/'+real_url[3]+'/'; } return real_url; } function goLocate(go_url) { document.location = purl + go_url; }