PageSourceSearch

https://archive.toyotafes.jp/result/js/site.js

js toyotafes.jp collected 2026-09-26 12:24:39 UTC 3,108 bytes, 114 lines download raw bytes

1/*メニューのロールオーバー*/
2jQuery(function ($) {
3  initImgover($);
4});
5
6var initImgover = function ($) {
7  $(document).on("mouseover", "li:not(.active) .imgover", function (event) {
8    var $this = $(this),
9      opacity = $this.data("opacity") || 0,
10      duration = $this.data("duration") || 200,
11      easing = $this.data("easing") || "linear";
12    $this.animate(
13      { opacity: opacity },
14      { duration: duration, easing: easing, queue: false }
15    );
16  });
17  $(document).on("mouseout", "li:not(.active) .imgover", function (event) {
18    var $this = $(this);
19    $this.animate(
20      { opacity: 1 },
21      { duration: 200, easing: "linear", queue: false }
22    );
23  });
24};
25
26/*メニュー以外のロールオーバー*/
27jQuery(function ($) {
28  initRollover($);
29});
30
31var initRollover = function ($) {
32  $(document).on("mouseover", ".rollover", function (event) {
33    var $this = $(this),
34      opacity = $this.data("opacity") || 0.8,
35      duration = $this.data("duration") || 200,
36      easing = $this.data("easing") || "linear";
37    $this.animate(
38      { opacity: opacity },
39      { duration: duration, easing: easing, queue: false }
40    );
41  });
42  $(document).on("mouseout", ".rollover", function (event) {
43    var $this = $(this);
44    $this.animate(
45      { opacity: 1 },
46      { duration: 200, easing: "linear", queue: false }
47    );
48  });
49};
50
51/*モーダルウィンドウの制御*/
52jQuery(function ($) {
53  if (
54    !(
55      navigator.userAgent.indexOf("iPhone") > 0 ||
56      navigator.userAgent.indexOf("iPod") > 0 ||
57      navigator.userAgent.indexOf("Android") > 0
58    )
59  ) {
60    if ($("a.modal").length > 0) {
61      $("a.modal").colorbox({
62        opacity: 0.25,
63        iframe: true,
64        width: "960px",
65        height: "660px",
66        title: function () {
67          var url = $(this).attr("href");
68          return '<a href="' + url + '" target="_blank">Open In New Window</a>';
69        },
70      });
71    }
72  } else {
73    var url = $(this).attr("href");
74    return '<a href="' + url + '" target="_blank">Open In New Window</a>';
75  }
76});
77
78/*ポップアップウィンドウ*/
79function winOpen(url, w, h) {
80  var name = "",
81    H = screen.width / 2 - w / 2,
82    V = 100,
83    maxWin = window.open(
84      url,
85      name,
86      "width=" +
87        w +
88        ",height=" +
89        h +
90        ",scrollbars=1,resizable=1,menubar=0,toolbar=0,status=0,location=0,directories=0,left=" +
91        H +
92        ",top=" +
93        V +
94        ""
95    );
96}
97
98/*アンカーリンクの制御*/
99jQuery(function ($) {
100  $(".anchor a").click(function () {
101    var $target = $(this.hash);
102    var offset = $target.offset().top;
103    $("html, body").stop().animate({ scrollTop: offset }, 1000, "easeOutExpo");
104    return false;
105  });
106  $('a[rel*="anchor"]').click(function () {
107    var $target = $(this.hash);
108    var offset = $target.offset().top;
109    $("html, body")
110      .stop()
111      .animate({ scrollTop: offset - 44 }, 1000, "easeOutExpo");
112    return false;
113  });
114});

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.