관리-도구
편집 파일: custom.min.js
jQuery(function(n){n("#preloader").delay(1e3).fadeOut(),n("#loader").delay(1e3).fadeOut("slow"),n(document).ready(function(){n(".menu-toggle").click(function(){n(".main-navigation .nav-menu").slideToggle("slow")})}),n(window).on("load resize",function(){1200>n(window).width()?n(".main-navigation").find("li").last().bind("keydown",function(a){9===a.which&&(a.preventDefault(),n("#masthead").find(".menu-toggle").focus())}):n(".main-navigation").find("li").unbind("keydown")});var a=n("#masthead .menu-toggle");a.on("keydown",function(e){var o=9===e.keyCode,i=e.shiftKey;a.hasClass("open")&&i&&o&&(e.preventDefault(),n(".main-navigation").toggleClass("toggled"),a.removeClass("open"))});var e=n(".navigation-search-wrap");n(".navigation-search-icon").click(function(n){n.preventDefault(),e.toggleClass("show"),e.find("input.search-field").focus()}),n(document).click(function(a){e.is(a.target)||e.has(a.target).length||n(".navigation-search-wrap").removeClass("show")}),n(".navigation-search-wrap").find(".search-submit").bind("keydown",function(a){9===a.keyCode&&(a.preventDefault(),n(".navigation-search-icon").focus())}),n(".navigation-search-icon").on("keydown",function(a){var e=9===a.keyCode,o=a.shiftKey;n(".navigation-search-wrap").hasClass("show")&&o&&e&&(a.preventDefault(),n(".navigation-search-wrap").removeClass("show"),n(".navigation-search-icon").focus())});var o=n(".blog-articles-scroll-to-top");n(window).scroll(function(){n(window).scrollTop()>400?o.addClass("show"):o.removeClass("show")}),o.on("click",function(a){a.preventDefault(),n("html, body").animate({scrollTop:0},"300")})});