PageSourceSearch

https://www.mingmeng07.com/wp-content/themes/MM/static/js/clickOnScrollButton.js

js mingmeng07.com collected 2026-10-04 04:56:38 UTC 788 bytes, 36 lines download raw bytes

1/* global woodmart_settings */
2(function($) {
3	woodmartThemeModule.clickOnScrollButton = function(btnClass, destroy, offset) {
4		if (typeof $.fn.waypoint != 'function') {
5			return;
6		}
7
8		var $btn = $(btnClass);
9		if ($btn.length === 0) {
10			return;
11		}
12
13		$btn.trigger('wd-waypoint-destroy');
14
15		if (!offset) {
16			offset = 0;
17		}
18
19		var waypoint = new Waypoint({
20			element: $btn[0],
21			handler: function() {
22				$btn.trigger('click');
23			},
24			offset : function() {
25				return woodmartThemeModule.$window.outerHeight() + parseInt(offset);
26			}
27		});
28
29		$btn.data('waypoint-inited', true).off('wd-waypoint-destroy').on('wd-waypoint-destroy', function() {
30			if ($btn.data('waypoint-inited')) {
31				waypoint.destroy();
32				$btn.data('waypoint-inited', false);
33			}
34		});
35	};
36})(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.