1(function ($) { 2 "use strict"; 3 4 /*Offcanvas menu wrap*/ 5 $(window).bind("resize", function () { 6 if ($(this).width() <= 1024) { 7 $('.drdt-nav-menu__layout-horizontal').addClass('drbt_menu_offcanvas_wrap') 8 } else { 9 $('.drdt-nav-menu__layout-horizontal').removeClass('drbt_menu_offcanvas_wrap'); 10 $('.drdt-nav-menu__layout-horizontal').removeClass("drbt_menu_active"); 11 } 12 }).trigger('resize'); 13 14 15 // header sticky add class js 16 $(window).on('scroll', function () { 17 var window_top = $(window).scrollTop() + 0; 18 if (window_top > 0) { 19 $('.drdt_is_sticky_header').addClass('drdt_menu_fixed'); 20 } else { 21 $('.drdt_is_sticky_header').removeClass('drdt_menu_fixed'); 22 } 23 }); 24 25 26 /*Back To Top -------------------------*/ 27 $(window).scroll(function(){ 28 if($(this).scrollTop()>100){ 29 $("#drdt_back_to_top").fadeIn(); 30 }else{ 31 $("#drdt_back_to_top").fadeOut(); 32 } 33 }); 34 $("#drdt_back_to_top").click(function(){ 35 $("html, body").animate({scrollTop:0},1000) 36 }) 37 38 $('.drdt-nav-menu-icon').on('click', function () { 39 $('.drdt-nav-menu__layout-horizontal').addClass("drbt_menu_active"); 40 $('.offcanvus_menu_overlay').addClass("drbt_overlay_active"); 41 }); 42 $('.drdt-flyout-close, .offcanvus_menu_overlay').on('click', function () { 43 $('.drdt-nav-menu__layout-horizontal').removeClass("drbt_menu_active"); 44 $('.offcanvus_menu_overlay').removeClass("drbt_overlay_active"); 45 }); 46 47 $('.drdt-has-submenu > .drdt-has-submenu-container').on('click', function () { 48 $(this).parent().find('.sub-menu').first().slideToggle(300).addClass('active_menu'); 49 $(this).parent().siblings().find('.sub-menu').hide(300).removeClass('active_menu'); 50 return false; 51 }); 52 53 54 // Back to Top Button 55 var back_btn = $('#back_to_top'); 56 $(window).scroll(function () { 57 if ($(window).scrollTop() > 300) { 58 back_btn.addClass('show'); 59 } else { 60 back_btn.removeClass('show'); 61 } 62 }); 63 back_btn.on('click', function (e) { 64 e.preventDefault(); 65 $('html, body').animate( 66 { 67 scrollTop: 0, 68 }, 69 '300' 70 ); 71 }); 72 73 $('.drdt-search-btn').on('click', function () { 74 $('body').addClass('open'); 75 setTimeout(function () { 76 $('.drdt-search-input').focus(); 77 }, 500); 78 // console.log(search); 79 return false; 80 81 }); 82 83 $('.drdt-close-icon').on('click', function () { 84 $('body').removeClass('open'); 85 return false; 86 }); 87 88}(jQuery));
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.