PageSourceSearch

https://www.naaleh.com/wp-content/themes/sydney/js/so-legacy-main.js?ver=6.6.1

js naaleh.com collected 2026-10-02 13:28:02 UTC 3,034 bytes, 109 lines download raw bytes

1;(function($) {
2
3    'use strict'
4
5	var rollAnimation = function() {
6		$('.orches-animation').each( function() {
7		var orElement = $(this),
8			orAnimationClass = orElement.data('animation'),
9			orAnimationDelay = orElement.data('animation-delay'),
10			orAnimationOffset = orElement.data('animation-offset');
11
12			orElement.css({
13				'-webkit-animation-delay':  orAnimationDelay,
14				'-moz-animation-delay':     orAnimationDelay,
15				'animation-delay':          orAnimationDelay
16			});
17
18			orElement.waypoint(function() {
19				orElement.addClass('animated').addClass(orAnimationClass);
20			},{ triggerOnce: true, offset: orAnimationOffset });
21		});
22	};
23
24	var detectViewport = function() {
25		$('[data-waypoint-active="yes"]').waypoint(function() {
26			$(this).trigger('on-appear');
27		}, { offset: '90%', triggerOnce: true });
28
29		$(window).on('load', function() {
30			setTimeout(function() {
31				$.waypoints('refresh');
32			}, 100);
33		});
34    };
35    
36	var projectEffect = function() {
37		var effect = $('.project-wrap').data('portfolio-effect');
38
39		$('.project-item').children('.item-wrap').addClass('orches-animation');
40
41		$('.project-wrap').waypoint(function(direction) {
42			$('.project-item').children('.item-wrap').each(function(idx, ele) {
43				setTimeout(function() {
44					$(ele).addClass('animated ' + effect);
45				}, idx * 150);
46			});
47		}, { offset: '75%' });
48    };
49    
50	var counter = function() {
51		$('.roll-counter').on('on-appear', function() {
52			$(this).find('.numb-count').each(function() {
53				var to = parseInt($(this).attr('data-to'));
54				$(this).countTo({
55					to: to,
56				});
57			});
58		}); //counter
59    };   
60    
61	var progressBar = function() {
62		$('.progress-bar').on('on-appear', function() {
63			$(this).each(function() {
64				var percent = $(this).data('percent');
65
66				$(this).find('.progress-animate').animate({
67					"width": percent + '%'
68				},3000);
69
70				$(this).parent('.roll-progress').find('.perc').addClass('show').animate({
71					"width": percent + '%'
72				},3000);
73			});
74		});
75    };    
76    
77	var panelsStyling = function() {
78		$(".panel-row-style").each( function() {
79			if ($(this).data('hascolor')) {
80				$(this).find('h1,h2,h3,h4,h5,h6,a,.fa, div, span').css('color','inherit');
81			}
82			if ($(this).data('hasbg') && $(this).data('overlay') ) {
83				$(this).append( '<div class="overlay"></div>' );
84				var overlayColor = $(this).data('overlay-color');
85				$(this).find('.overlay').css('background-color', overlayColor );				
86			}
87		});
88		$('.panel-grid .panel-widget-style').each( function() {
89			var titleColor = $(this).data('title-color');
90			var headingsColor = $(this).data('headings-color');
91			if ( titleColor ) {
92				$(this).find('.widget-title').css('color', titleColor );
93			}
94			if ( headingsColor ) {
95				$(this).find('h1,h2,h3:not(.widget-title),h4,h5,h6,h3 a').css('color', headingsColor );
96			}			
97		});	
98	};    
99
100	// Dom Ready
101	$(function() {       
102		counter();
103		progressBar();
104		detectViewport();
105        rollAnimation();
106		panelsStyling();
107        projectEffect();
108   	});
109})(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.