1const btn = document.querySelector('.header-btn'); 2const nav = document.querySelector('.gnav'); 3 4btn.addEventListener('click', () => { 5 nav.classList.toggle('gnav_active'), 6 btn.classList.toggle('header-btn_close') 7}); 8 9// ã¢ã¼ãã«ã¦ã£ã³ã 10$(function () { 11 $(".modaal_image").modaal({ 12 type: 'image' 13 }); 14}); 15 16// ã¹ãã¼ããã©ã³ãã©ãã夿ãã¦ãã¹ãã¼ããã©ã³ã®å ´åã®ã¿å¦ç 17if (IsSmartPhone()) 18{ 19 // ã½ã¼ã¹ãå ¨ã¦æ¸ãåºãããå¾ã«å¦ç 20 $(function() 21 { 22 // å ¨ã¦ã®ãdata-sp-hrefã屿§ãç¹°ãè¿ãå¦ç 23 $('body').find('[data-sp-href]').each(function() 24 { 25 // ãªã³ã¯ãå ¥ãæ¿ã 26 $(this).attr('href', $(this).attr('data-sp-href')); 27 }); 28 }); 29} 30// ã¹ãã¼ããã©ã³ãã©ãã夿ããã¡ã½ãã 31function IsSmartPhone() 32{ 33 // ããã¤ã¹ã®ç¨®é¡ 34 var media = 35 [ 36 'iPhone', 37 'Windows Phone', 38 'Android' 39 ]; 40 var pattern = new RegExp(media.join('|'), 'i'); //ããã¤ã¹ã®ç¨®é¡ãæ£è¦è¡¨ç¾ã«ããã 41 return pattern.test(navigator.userAgent); //ã¦ã¼ã¶ã¼ã¨ã¼ã¸ã§ã³ãã«ããã¤ã¹ãå«ã¾ãããã調ã¹ãã 42}
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.