1jQuery(window).on('load',function(){ 2 "use strict"; 3 var getDevice = (function(){ 4 var ua = navigator.userAgent; 5 if(ua.indexOf('iPhone') > 0 || ua.indexOf('iPod') > 0 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0){ 6 return 'sp'; 7 }else if(ua.indexOf('iPad') > 0 || ua.indexOf('Android') > 0){ 8 return 'tab'; 9 }else{ 10 return 'other'; 11 } 12 })(); 13 let obj = { 14 init : function(){ 15 this.Megamenu(); 16 this.Fixheader(); 17 this.Nav_clone(); 18 this.Sp_ham(); 19 this.Dom_move(); 20 this.Comp_tab(); 21 this.Sp_lider(); 22 }, 23 24 Megamenu : function(){ 25 var ww = jQuery('body').width(); 26 if (ww >= 768) { 27 $(function () { 28 $('li.tgt').hover(function () { 29 $(this).find('.menu_contents').stop().slideDown(); 30 }, function () { 31 $(this).find('.menu_contents').stop().slideUp(); 32 }); 33 }); 34 }else{ 35 } 36 }, 37 38 Fixheader : function(){ 39 if( getDevice == 'other' || getDevice == 'tab' ){ 40 var nav_pos = $("nav.general").offset().top; 41 var nav_height = $("nav.general").outerHeight(); 42 $(window).scroll(function () { 43 if ($(this).scrollTop() > nav_pos) { 44 $("body").css("padding-top", nav_height); 45 $("nav.general").addClass("fixed"); 46 } else { 47 $("body").css("padding-top", 0); 48 $("nav.general").removeClass("fixed"); 49 } 50 }); 51 } 52 }, 53 54 55 Nav_clone : function(){ 56 var ww = jQuery('body').width(); 57 if (ww < 768) { 58 let clone = $("nav.general").clone(); 59 $('.sp_hd').append(clone); 60 } 61 }, 62 63 Sp_ham : function(){ 64 $(".menu-trigger").click(function () { 65 $(this).toggleClass("active"); 66 $(".sp_hd nav.general .menu_list").slideToggle(300); 67 }); 68 }, 69 70 Dom_move : function(){ 71 console.log("set1"); 72 var ww = jQuery('body').width(); 73 if (ww >= 768) { 74 console.log("set2"); 75 $('.under .nav_top nav.general').prepend('<figure class="ud_logo"><a href="/"><img src="/img/logo_under.png" alt="æ¢ ä¸å¯¿å¸ã®ç¾ç»å©ç·æ¬åº" class="max_img"></a></figure>'); 76 } 77 }, 78 Comp_tab : function(){ 79 $('.item_list_wrap ul.choice li').click(function() { 80 var index = $('.item_list_wrap ul.choice li').index(this); 81 $('.item_list_wrap ul.choice li, .tab_panel').removeClass('active'); 82 $(this).addClass('active'); 83 $('.tab_panel').eq(index).addClass('active'); 84 }); 85 }, 86 Sp_lider : function(){ 87 var ww = jQuery('body').width(); 88 if (ww < 768) { 89 $('.sp_slider').slick({ 90 arrows: false, 91 centerMode: true, 92 centerPadding: '6%' 93 }); 94 } 95 }, 96 97 }; 98 99 obj.init(); 100 101 102});
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.