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 /*Back To Top -------------------------*/ 16 $(window).scroll(function(){ 17 if($(this).scrollTop()>100){ 18 $("#drdt_back_to_top").fadeIn(); 19 }else{ 20 $("#drdt_back_to_top").fadeOut(); 21 } 22 }); 23 $("#drdt_back_to_top").click(function(){ 24 $("html, body").animate({scrollTop:0},1000) 25 }) 26 27 $('.drdt-nav-menu-icon').on('click', function () { 28 $('.drdt-nav-menu__layout-horizontal').addClass("drbt_menu_active"); 29 $('.offcanvus_menu_overlay').addClass("drbt_overlay_active"); 30 }); 31 $('.drdt-flyout-close, .offcanvus_menu_overlay').on('click', function () { 32 $('.drdt-nav-menu__layout-horizontal').removeClass("drbt_menu_active"); 33 $('.offcanvus_menu_overlay').removeClass("drbt_overlay_active"); 34 }); 35 36 $('.drdt-has-submenu > .drdt-has-submenu-container').on('click', function () { 37 $(this).parent().find('.sub-menu').first().slideToggle(300).addClass('active_menu'); 38 $(this).parent().siblings().find('.sub-menu').hide(300).removeClass('active_menu'); 39 return false; 40 }); 41 42 43 // Back to Top Button 44 var back_btn = $('#back_to_top'); 45 $(window).scroll(function () { 46 if ($(window).scrollTop() > 300) { 47 back_btn.addClass('show'); 48 } else { 49 back_btn.removeClass('show'); 50 } 51 }); 52 back_btn.on('click', function (e) { 53 e.preventDefault(); 54 $('html, body').animate( 55 { 56 scrollTop: 0, 57 }, 58 '300' 59 ); 60 }); 61 62 63 64 $('.drdt-search-btn').on('click', function () { 65 $('body').addClass('open'); 66 setTimeout(function () { 67 $('.drdt-search-input').focus(); 68 }, 500); 69 return false; 70 71 }); 72 $('.drdt-close-icon').on('click', function () { 73 $('body').removeClass('open'); 74 return false; 75 }); 76 77 78}(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.