1!(function () { 2 const viewport = document.querySelector('meta[name="viewport"]'); 3 function switchViewport() { 4 const value = 5 window.outerWidth > 360 6 ? 'width=device-width,initial-scale=1' 7 : 'width=360'; 8 if (viewport.getAttribute('content') !== value) { 9 viewport.setAttribute('content', value); 10 } 11 } 12 addEventListener('resize', switchViewport, false); 13 switchViewport(); 14})(); 15 16/** 17 * ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ãã¿ã³ã¯ãªã㯠18 */ 19$('#hamburger').click(function() { 20 openSideMenu(); 21}); 22 23/** 24 * ãµã¤ãã¡ãã¥ã¼éãããã¿ã³ã¯ãªã㯠25 */ 26$('#sp-menu-close').click(function() { 27 closeSideMenu(); 28}); 29 30/** 31 * ãµã¤ãã¡ãã¥ã¼å¤ã¯ãªã㯠32 */ 33$('.sp-menu-wrap').click(function(e) { 34 if(!$(e.target).closest('.sp-menu-contents').length) { 35 closeSideMenu(); 36 } 37}); 38 39/** 40 * ãµã¤ãã¡ãã¥ã¼ãéã 41 */ 42function openSideMenu() { 43 $('body').css('overflow', 'hidden'); 44 $('.sp-menu-wrap').css('visibility', 'visible'); 45 $('.sp-menu-contents').addClass('is-active'); 46} 47 48/** 49 * ãµã¤ãã¡ãã¥ã¼ãéãã 50 */ 51function closeSideMenu() { 52 $('.sp-menu-contents').removeClass('is-active'); 53 setTimeout(function(){ 54 $('.sp-menu-wrap').css('visibility', 'hidden'); 55 $('body').css('overflow', 'auto'); 56 }, 200 ); 57}
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.