1$(function(){ 2 fade('.g_nav'); 3}); 4 5function fade(elm){ 6 var $fade = $(elm), 7 $body = $('body'); 8 // .toggleWrapãé表示ã«ãã¦ãã 9 $fade.addClass('hide'); 10 11 // #toggleãã¯ãªãã¯ãããæã«ã.hideã®ä»ãå¤ãã§ .toggleWrapã®è¡¨ç¤ºã»é表示ãåãæ¿ã 12 // .addClass('animation');ã§ã¢ãã¡ã¼ã·ã§ã³ã®CSSãé©å¿ 13 $('#toggle').on('click', function(){ 14 $fade.toggleClass('hide').addClass('animation'); 15 $('.trigger').toggleClass('active'); 16 17 // ã¹ã¯ãã¼ã«ã®å¶å¾¡ 18 // .hideãæã£ã¦ããç¶æ ã¯ã¡ãã¥ã¼ãéãã¦ããç¶æ ã§ããã®ã¨ãã¯.no-scrollã¯ä¸è¦ 19 if ($fade.hasClass('hide')) { 20 $body.removeClass('no-scroll').off('.noScroll'); 21 } else { 22 // ã¡ãã¥ã¼ãéãã¦ããæã«ãbodyã«.no-scrollã追å ãã¦ã¹ã¯ãã¼ã«ãããªã 23 $body.addClass('no-scroll').on('touchmove.noScroll', function(e){ 24 e.preventDefault(); 25 }); 26 } 27 }); 28}
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.