PageSourceSearch

https://spbindia.com/wp-content/themes/wp-giving-child/assets/js/fancybox/wheel.js?ver=1.0

js spbindia.com collected 2026-09-25 02:11:44 UTC 1,152 bytes, 41 lines download raw bytes

vendor: 1,152 bytes, lines 1-41
1// ==========================================================================
2//
3// Wheel
4// Basic mouse weheel support for gallery navigation
5//
6// ==========================================================================
7(function (document, $) {
8  "use strict";
9
10  var prevTime = new Date().getTime();
11
12  $(document).on({
13    "onInit.fb": function (e, instance, current) {
14      instance.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll", function (e) {
15        var current = instance.current,
16          currTime = new Date().getTime();
17
18        if (instance.group.length < 2 || current.opts.wheel === false || (current.opts.wheel === "auto" && current.type !== "image")) {
19          return;
20        }
21
22        e.preventDefault();
23        e.stopPropagation();
24
25        if (current.$slide.hasClass("fancybox-animated")) {
26          return;
27        }
28
29        e = e.originalEvent || e;
30
31        if (currTime - prevTime < 250) {
32          return;
33        }
34
35        prevTime = currTime;
36
37        instance[(-e.deltaY || -e.deltaX || e.wheelDelta || -e.detail) < 0 ? "next" : "previous"]();
38      });
39    }
40  });
41})(document, jQuery);

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.