PageSourceSearch

https://www.invibe.at/wp-content/plugins/cf7-styler-for-divi/asset…/cf7m-range-slider.js?ver=3.0.8.1782985667

js invibe.at collected 2026-09-30 06:25:33 UTC 1,297 bytes, 49 lines download raw bytes

1/**
2 * CF7 Mate — Range slider [cf7m-range] frontend behaviour.
3 * Mirrors the displayed value to the live `.cf7m-range-value` text as the
4 * user drags; the text node has aria-live="polite" on it (set in PHP) so
5 * screen readers announce the change.
6 */
7(function () {
8	'use strict';
9
10	function initOne(container) {
11		if (container.dataset.cf7mRangeInit) return;
12		container.dataset.cf7mRangeInit = '1';
13
14		var input   = container.querySelector('.cf7m-range-input');
15		var display = container.querySelector('.cf7m-range-value');
16		if (!input) return;
17
18		var prefix = container.dataset.prefix || '';
19		var suffix = container.dataset.suffix || '';
20
21		function update() {
22			if (display) display.textContent = prefix + input.value + suffix;
23		}
24
25		input.addEventListener('input', update);
26		input.addEventListener('change', update);
27		update();
28	}
29
30	function init() {
31		document.querySelectorAll('.cf7m-range-slider').forEach(initOne);
32	}
33
34	function onReady() {
35		init();
36		if (typeof jQuery !== 'undefined') {
37			jQuery(document).on(
38				'wpcf7mailsent wpcf7invalid wpcf7spam wpcf7mailfailed wpcf7submit',
39				function () { setTimeout(init, 100); }
40			);
41		}
42	}
43
44	if (document.readyState === 'loading') {
45		document.addEventListener('DOMContentLoaded', onReady);
46	} else {
47		onReady();
48	}
49})();

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.