PageSourceSearch

https://www.hoyu-witz.co.jp/wp-content/themes/visoftech_resposive/asset/js/script.js

js hoyu-witz.co.jp collected 2026-10-08 00:28:05 UTC 2,205 bytes, 71 lines download raw bytes

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.