PageSourceSearch

https://clinical-homeopathy.ru/wp-content/themes/clinicalhomeopathy/assets/js/custom.js?ver=5.8.9

js clinical-homeopathy.ru collected 2026-10-06 04:48:11 UTC 1,938 bytes, 78 lines download raw bytes

1(function($) {
2	"use strict";
3
4    $(document).ready(function() {
5		// add zoom effect when cursor hover on img
6		$('.imgZoom').on( "mousemove", (e) => {
7			const zoomer = e.currentTarget;
8			const positionX = e.offsetX / zoomer.offsetWidth * 100;
9			const positionY = e.offsetY / zoomer.offsetHeight * 100;
10			zoomer.style.backgroundPosition = positionX + '% ' + positionY + '%';
11		});
12
13		// fixed element when scrolling page
14		const $window = $(window);
15		const $fixElement = $('.jsFix');
16		let fixElementPositionTop;
17		let triggerFixed = 0;
18
19		const resize = () => {
20            if ($fixElement.length) {
21                fixElementPositionTop = $fixElement.offset().top;
22            }
23		};
24		const scroll = () => {
25			const windowPositionTop = $window.scrollTop();
26
27            if ($fixElement.length) {
28    			if(fixElementPositionTop < windowPositionTop && triggerFixed !== 1) {
29    				triggerFixed = 1;
30    				$fixElement.addClass('fixed');
31    			} else if (fixElementPositionTop > windowPositionTop && triggerFixed !== 0) {
32    				triggerFixed = 0;
33    				$fixElement.removeClass('fixed');
34    			}
35            }
36		};
37
38		resize();
39		scroll();
40
41		$(window).on({
42			'scroll': () => {
43				scroll();
44			},
45			'resize': () => {
46				resize();
47			}
48		});
49    });
50
51
52	$('.product-detail-buy-button-delivery a').on('click', () => {
53		if (typeof ym !== 'undefined') {
54			ym(66904462,'reachGoal','dostavkaCH')
55		} else {
56			console.error('ym is not defined');
57		}
58	});
59
60	$('.product-detail-buy-button-pickup a').on('click', () => {
61		if (typeof ym !== 'undefined') {
62			ym(66904462,'reachGoal','samovyvozCH')
63		} else {
64			console.error('ym is not defined');
65		}
66	});
67
68	$('a[href*="/poleznoe-o-zdorove/futlyary-dlya-monopreparatov/futlyary-dlya-monopreparatov"]').on('click', () => {
69		if (typeof ym !== 'undefined') {
70			ym(66904462,'reachGoal','kupit_futlyar');
71		} else {
72			console.error('ym is not defined');
73		}
74	});
75
76
77
78})(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.