1$(function() { 2 var muted = true; 3 var $sounds = $('#btnSound'); 4 $sounds.on('click', function() { 5 if (muted) { 6 $sounds.addClass('active'); 7 $('.mainVisualVideo').get(0).muted = false; 8 $sounds.children('span').text('OFF'); 9 } else { 10 $sounds.removeClass('active'); 11 $('.mainVisualVideo').get(0).muted = true; 12 $sounds.children('span').text('ON'); 13 } 14 muted = !muted; 15 }) 16}); 17 18 19var scrollFixed = function () { 20 function scrollFixed() { 21 var s = this; 22 this._target = document.getElementById('header'); 23 this._mobile = document.getElementById('bHeader__bottom'); 24 this._btnFixed = document.querySelector('.btnFixed'); 25 this._hand = function(top) { 26 if (top > 0) { 27 s._btnFixed.classList.add('show'); 28 } else { 29 s._btnFixed.classList.remove('show'); 30 } 31 } 32 this.handling = function () { 33 var _top = document.documentElement.scrollTop || document.body.scrollTop; 34 var _left = document.documentElement.scrollLeft || document.body.scrollLeft; 35 if (window.innerWidth < 769) { 36 s._hand(_top); 37 } else { 38 s._hand(_top); 39 } 40 }; 41 window.addEventListener('scroll', s.handling, false); 42 window.addEventListener('resize', s.handling, false); 43 window.addEventListener('load', s.handling, false); 44 } 45 return scrollFixed; 46}(); 47 48window.addEventListener('DOMContentLoaded', function() { 49 if (document.querySelector('.btnFixed')) { 50 new scrollFixed(); 51 } 52}); 53 54jQuery(document).ready(function() { 55 // #ã§å§ã¾ãã¢ã³ã«ã¼ãã¯ãªãã¯ããå ´åã«å¦ç 56 jQuery('a[href^="#"]').click(function() { 57 var buffer = $('#header').height(); 58 // ã¹ã¯ãã¼ã«ã®é度 59 var speed = 400; // ããªç§ 60 // ã¢ã³ã«ã¼ã®å¤åå¾ 61 var href = jQuery(this).attr("href"); 62 // ç§»åå ãåå¾ 63 var target = jQuery(href == "#" || href == "" ? 'html' : href); 64 // ç§»åå ãæ°å¤ã§åå¾ 65 var position = target.offset().top - buffer; 66 // ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 67 $('body,html').animate({ scrollTop: position }, speed, 'swing'); 68 return false; 69 }); 70 71});
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.