PageSourceSearch

https://www.golfhotel-saint-samson.com/wp-content/plugins/coherenc…/assets/js/controles-extenders.js?ver=5.0.0

js golfhotel-saint-samson.com collected 2026-10-08 19:42:30 UTC 3,490 bytes, 119 lines download raw bytes

1/* Coherence Extension Pro for Elementor v1.11.2 */
2
3!(function ($) {
4	'use strict';
5
6	var $animElems = $(".coherence-colors-anim-yes");
7
8
9	// For Colors Animation
10	$animElems.each(function(index, el) {
11		var $elem  = $(el);
12		var data   = $elem.data('coherence-anim-colors');
13		var length = data.colors.length;
14		var colors = data.colors.toString();
15
16		if ( 'hor-moving' == data.type ) {
17			$elem.css({
18				'background-color' : data.colors[0], // For browsers that do not support gradients
19				'background-image' : 'linear-gradient('+ data.angle +'deg,'+ colors +')',
20				'background-size' : length +'00% 100%',
21			});
22		} else if ( 'ver-moving' == data.type ) {
23			$elem.css({
24				'background-color' : data.colors[0], // For browsers that do not support gradients
25				'background-image' : 'linear-gradient('+ data.angle +'deg,'+ colors +')',
26				'background-size' : '100%'+ length +'00%',
27			});
28		}
29	});
30
31	// For Clips Animation, Section Particles, Water Ripples
32	$( window ).on('elementor/frontend/init', function() {
33		elementorFrontend.hooks.addAction('frontend/element_ready/global', function( $scope ) {
34			var $section = $($scope);
35			var $sectionID = $section.data('id');
36
37			// For Clips Animation
38			 if ( $section.hasClass('coherence-clips-animation-yes') ) {
39				
40				var coherenceClipsWrapSelector = '.coherence-clips-anim-wrap-'+ $sectionID;
41				
42				var $coherenceClipsWrapDetach = $section.siblings( coherenceClipsWrapSelector ).detach();
43				$section.prepend($coherenceClipsWrapDetach);
44
45				var $clips = $( coherenceClipsWrapSelector ).find('.coherence-clips-anim');
46				
47				$clips.each(function(index, el) {
48					var $this = $(this);
49					var data = $this.data('clips-anim');
50
51					anime({
52						targets: this,
53						translateX: data.moveX,
54						translateY: data.moveY,
55						scaleX: data.zoomX,
56						scaleY: data.zoomY,
57						skewX: data.skewX,
58						skewY: data.skewY,
59						rotateX: data.rotateX,
60						rotateY: data.rotateY,
61						rotateZ: data.rotateZ,
62						opacity: data.fade,
63						scale: data.scale,
64						delay: data.delay,
65						loop: true,
66						duration: data.duration,
67						rotate: [0, data.rotate],
68						easing: data.easing,
69						direction: data.direction,
70					});
71				});
72			}
73			// For Water Ripples
74			if ( $section.hasClass("coherence-water-ripples-yes") ) {
75				var ripplesData = $section.data("coherence-water-ripples"),
76				dropRadius = 20,
77				perturbance = 0.3,
78				resolution = 256;
79
80				if (ripplesData) {
81					dropRadius = ripplesData.dropRadius,
82					perturbance = ripplesData.perturbance,
83					resolution = ripplesData.resolution
84				}
85				$section.ripples({
86					dropRadius: dropRadius,
87					perturbance: perturbance,
88					resolution: resolution
89				});
90			}
91		});
92	});
93
94	
95
96	// For Reading Progressbar
97	$( window ).scroll( function() {
98		var winScroll = document.body.scrollTop || document.documentElement.scrollTop;
99		var height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
100		var scrolled = (winScroll / height) * 100;
101
102		$(".coherence-reading-progressbar").css({
103			width: scrolled + "%"
104		});
105	});
106
107
108	// For Preloader
109	$(document).ready(function($) {
110		var $preloader = $('.coherence-preloader-wrap');
111		var effect = $preloader.data('effect');
112
113		$('.coherence-preloader-wrap').addClass(effect);
114		setTimeout(function() {
115			$preloader.remove();
116		}, 1900);
117	});
118
119})(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.