PageSourceSearch

https://mura.ec/wp-content/plugins/nova-blocks/dist/vendor/jquery.bully.js?ver=6.5.2

js mura.ec collected 2026-09-25 02:24:05 UTC 7,801 bytes, 259 lines download raw bytes

vendor: 4,429 bytes, lines 1-117
1/******/ (function(modules) { // webpackBootstrap
2/******/ 	// The module cache
3/******/ 	var installedModules = {};
4/******/
5/******/ 	// The require function
6/******/ 	function __webpack_require__(moduleId) {
7/******/
8/******/ 		// Check if module is in cache
9/******/ 		if(installedModules[moduleId]) {
10/******/ 			return installedModules[moduleId].exports;
11/******/ 		}
12/******/ 		// Create a new module (and put it into the cache)
13/******/ 		var module = installedModules[moduleId] = {
14/******/ 			i: moduleId,
15/******/ 			l: false,
16/******/ 			exports: {}
17/******/ 		};
18/******/
19/******/ 		// Execute the module function
20/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21/******/
22/******/ 		// Flag the module as loaded
23/******/ 		module.l = true;
24/******/
25/******/ 		// Return the exports of the module
26/******/ 		return module.exports;
27/******/ 	}
28/******/
29/******/
30/******/ 	// expose the modules object (__webpack_modules__)
31/******/ 	__webpack_require__.m = modules;
32/******/
33/******/ 	// expose the module cache
34/******/ 	__webpack_require__.c = installedModules;
35/******/
36/******/ 	// define getter function for harmony exports
37/******/ 	__webpack_require__.d = function(exports, name, getter) {
38/******/ 		if(!__webpack_require__.o(exports, name)) {
39/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
40/******/ 		}
41/******/ 	};
42/******/
43/******/ 	// define __esModule on exports
44/******/ 	__webpack_require__.r = function(exports) {
45/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
46/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
47/******/ 		}
48/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
49/******/ 	};
50/******/
51/******/ 	// create a fake namespace object
52/******/ 	// mode & 1: value is a module id, require it
53/******/ 	// mode & 2: merge all properties of value into the ns
54/******/ 	// mode & 4: return value when already ns object
55/******/ 	// mode & 8|1: behave like require
56/******/ 	__webpack_require__.t = function(value, mode) {
57/******/ 		if(mode & 1) value = __webpack_require__(value);
58/******/ 		if(mode & 8) return value;
59/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
60/******/ 		var ns = Object.create(null);
61/******/ 		__webpack_require__.r(ns);
62/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
63/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
64/******/ 		return ns;
65/******/ 	};
66/******/
67/******/ 	// getDefaultExport function for compatibility with non-harmony modules
68/******/ 	__webpack_require__.n = function(module) {
69/******/ 		var getter = module && module.__esModule ?
70/******/ 			function getDefault() { return module['default']; } :
71/******/ 			function getModuleExports() { return module; };
72/******/ 		__webpack_require__.d(getter, 'a', getter);
73/******/ 		return getter;
74/******/ 	};
75/******/
76/******/ 	// Object.prototype.hasOwnProperty.call
77/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
78/******/
79/******/ 	// __webpack_public_path__
80/******/ 	__webpack_require__.p = "";
81/******/
82/******/
83/******/ 	// Load entry module and return exports
84/******/ 	return __webpack_require__(__webpack_require__.s = 0);
85/******/ })
86/************************************************************************/
87/******/ ([
88/* 0 */
89/***/ (function(module, exports) {
90
91/*!
92 * jQuery Bully Plugin v0.1.3
93 * Examples and documentation at http://pixelgrade.github.io/rellax/
94 * Copyright (c) 2016 PixelGrade http://www.pixelgrade.com
95 * Licensed under MIT http://www.opensource.org/licenses/mit-license.php/
96 */
97;(
98	function( $, window, document, undefined ) {
99
100		var $window = $( window ),
101			windowHeight = $window.height(),
102			elements = [],
103			$bully,
104      $current,
105			lastScrollY = (window.pageYOffset || document.documentElement.scrollTop)  - (document.documentElement.clientTop || 0),
106			current = 0,
107			inversed = false,
108			frameRendered = true;
109
110    $( function() {
111      $bully.appendTo( 'body' );
112    } );
113
114    $bully = $( '<div class="c-bully">' );
115    $current = $( '<div class="c-bully__bullet c-bully__bullet--active">' ).appendTo( $bully );
116
117		(
118			function update() {
119				if ( frameRendered !== true ) {
120
121					var count = 0,
122						inverse = false;
123
124					$.each( elements, function( i, element ) {
125						if ( lastScrollY >= element.offset.top - windowHeight / 2 ) {
126							count = count + 1;
127							inverse = lastScrollY < element.offset.top + element.height - windowHeight / 2;
128						}
129					} );
130
131					if ( inversed !== inverse ) {
132						inversed = inverse;
133						$bully.toggleClass( 'c-bully--inversed', inversed );
134					}
135
136					if ( count !== current ) {
137						var offset = $bully.children( '.c-bully__bullet' ).not( '.c-bully__bullet--active' ).first().outerHeight( true ) * (
138							count - 1
139						);
140						$current.removeClass( 'c-bully__bullet--squash' );
141						setTimeout( function() {
142							$current.addClass( 'c-bully__bullet--squash' );
143						} );
144						$current.css( 'top', offset );
145						current = count;
146					}
147				}
148
149				window.requestAnimationFrame( update );
150				frameRendered = true;
151			}
152		)();
153
154		function reloadAll() {
155			$.each( elements, function( i, element ) {
156				element._reloadElement();
157			} );
158		}
159
160		function staggerClass( $elements, classname, timeout ) {
161
162			$.each( $elements, function( i, obj ) {
163
164				var stagger = i * timeout;
165
166				setTimeout( function() {
167					obj.$bullet.addClass( classname );
168				}, stagger );
169			} );
170		}
171
172		$window.on( 'load', function( e ) {
173			staggerClass( elements, 'c-bully__bullet--pop', 400 );
174			frameRendered = false;
175		} );
176
177		$window.on( 'scroll', function( e ) {
178			if ( frameRendered === true ) {
179				lastScrollY = (window.pageYOffset || document.documentElement.scrollTop)  - (document.documentElement.clientTop || 0);
180			}
181			frameRendered = false;
182		} );
183
184		$window.on( 'load resize', function() {
185			reloadAll();
186		} );
187
188		function Bully( element, options ) {
189			this.element = element;
190			this.options = $.extend( {}, $.fn.bully.defaults, options );
191
192			var self = this,
193				$bullet = $( '<div class="c-bully__bullet">' );
194
195			$bullet.data( 'bully-data', self ).appendTo( $bully );
196			$bullet.on( 'click', function( event ) {
197				event.preventDefault();
198				event.stopPropagation();
199
200				self.onClick();
201			} );
202
203			this.$bullet = $bullet;
204
205			self._reloadElement();
206			elements.push( self );
207			current = 0;
208		}
209
210		Bully.prototype = {
211			constructor: Bully,
212			_reloadElement: function() {
213				this.offset = $( this.element ).offset();
214				this.height = $( this.element ).outerHeight();
215			},
216			onClick: function() {
217
218				var self = this,
219					$target = $( 'html, body' );
220
221				if ( self.options.scrollDuration == 0 ) {
222					$target.scrollTop( self.offset.top );
223					return;
224				}
225
226				if ( self.options.scrollDuration === 'auto' ) {
227					var duration = Math.abs( lastScrollY - self.offset.top ) / (
228					               self.options.scrollPerSecond / 1000
229					);
230					$target.animate( {scrollTop: self.offset.top}, duration );
231					return;
232				}
233
234				$target.animate( {scrollTop: self.offset.top}, self.options.scrollDuration );
235			}
236		};
237
238		$.fn.bully = function( options ) {
239			return this.each( function() {
240				if ( ! $.data( this, "plugin_" + Bully ) ) {
241					$.data( this, "plugin_" + Bully, new Bully( this, options ) );
242				}
243			} );
244		};
245
246		$.fn.bully.defaults = {
247			scrollDuration: 'auto',
248			scrollPerSecond: 4000
249		};
250
251		$window.on( 'rellax load', reloadAll );
252
253
254	}
255)( jQuery, window, document );
256
257
258/***/ })
259/******/ ]);

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.