1$(document).ready(function() { 2 $('.sub_menu-trigger, .menu_btn_bg a, #menu_contents .close').on('click', function() { 3 $('.sub_menu-trigger').toggleClass('active'); 4 return false; 5 }); 6}); 7 8$(document).ready(function() { 9 $('#menu_btn_bg a').on('click', function() { 10 $('#menu_btn_bg a').toggleClass('active'); 11 return false; 12 }); 13}); 14 15//PC ãããããã¦ã³ã¢ãã¡ã¼ã·ã§ã³ 16$(document).ready(function() { 17 $('.sub_nav_sp_block .dropdown-toggle, #navbarNav .dropdown-toggle').click(function () { 18 $(this).next().toggleClass("dropdown-fade"); 19 }); 20}); 21 22//SP ãããããã¦ã³ã¢ãã¡ã¼ã·ã§ã³ 23$(document).ready(function() { 24 $('.sub_nav_sp_close').click(function () { 25 $('.sub_nav_sp_dropdown').toggleClass("dropdown-fade"); 26 }); 27}); 28 29//PCãããã¼ãã èæ¯åºå® 30// $(function(){ 31// var state = false; 32// var scrollpos; 33// 34// $('#sub_menu_btn').on('click', function(){ 35// if(state == false) { 36// scrollpos = $(window).scrollTop(); 37// $('body').addClass('fixed').css({'top': -scrollpos}); 38// state = true; 39// } else { 40// $('body').removeClass('fixed').css({'top': 0}); 41// window.scrollTo( 0 , scrollpos ); 42// state = false; 43// } 44// }); 45// 46// $( '#menu_contents .close' ).on( 'click', function(){ 47// $('body').removeClass('fixed').css({'top': 0}); 48// window.scrollTo( 0 , scrollpos ); 49// state = false; 50// } ); 51// }); 52 53 54//spãããã¼ãã èæ¯åºå® 55// $(function(){ 56// var state = false; 57// var scrollpos; 58// 59// $('.sub_nav_sp_button').on('click', function(){ 60// if(state == false) { 61// scrollpos = $(window).scrollTop(); 62// $('body').addClass('fixed').css({'top': -scrollpos}); 63// state = true; 64// } else { 65// $('body').removeClass('fixed').css({'top': 0}); 66// window.scrollTo( 0 , scrollpos ); 67// state = false; 68// } 69// }); 70// 71// $( '.sub_nav_sp_close' ).on( 'click', function(){ 72// $('body').removeClass('fixed').css({'top': 0}); 73// window.scrollTo( 0 , scrollpos ); 74// state = false; 75// } ); 76// }); 77 78 79 80 81 82jQuery(function ($) { 83 'use strict'; 84 var resizeTimer, overlay, 85 docWidth = $(document).width(), 86 docHeight = $(document).height(), 87 gnav = $("#menu_contents"), 88 //current_scrollY, 89 overlay_conf = {display: "none", "z-index": 1050, position: "absolute", top: 0, left: 0}; 90 91 92 function resetDocumentSize() { 93 docWidth = $(document).width(); 94 docHeight = $(document).height(); 95 } 96 function hideNav() { 97 gnav.stop().fadeOut(200); 98 overlay.stop().fadeOut(200); 99 overlay.data("nowOn", false); 100 } 101 function showNav() { 102 gnav.stop().fadeIn(200); 103 gnav.scrollTop(0); 104 gnav.scrollLeft(0); 105 106 overlay.css({width: docWidth, height: docHeight}); 107 overlay.stop().fadeIn(200); 108 overlay.data("nowOn", true); 109 } 110 function reloadOverlay() { 111 if (overlay.data("nowOn") === true) { 112 overlay.hide(); 113 overlay.css({width: docWidth, height: docHeight}); 114 overlay.show(); 115 } 116 } 117 $(window).on("resize", function () { 118 clearTimeout(resizeTimer); 119 resizeTimer = setTimeout(function () { 120 resetDocumentSize(); 121 reloadOverlay(); 122 }, 250); 123 }); 124 125 126 $("#sub_menu_btn,#menu_btn,#menu_contents .close").on("click", function () { 127 128 if (overlay.data("nowOn") === true) { 129 $( '#wrapper, html' ).attr( { style: '' } ); 130 hideNav(); 131 } else { 132 $( '#wrapper, html' ).css( { 133 overflow: 'hidden' 134 } ); 135 resetDocumentSize(); 136 reloadOverlay(); 137 setTimeout(function(){ 138 showNav(); 139 }, 1) 140 } 141 }); 142 $("#menu_contents .close").on("click", function () { 143 if (overlay.data("nowOn") === true) { 144 145 $( '#wrapper, html' ).attr( { style: '' } ); 146 hideNav(); 147 } 148 }); 149 overlay = $("<div class='overlay'> </div>").css(overlay_conf).appendTo("body"); 150}); 151
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.