PageSourceSearch

https://www.onpartech.com/wp-content/themes/ave-child/js/global.js?991702420=487731584

js onpartech.com collected 2026-10-03 19:59:15 UTC 5,025 bytes, 150 lines download raw bytes

1jQuery(document).ready(function ($) {
2	form_enter(3947747);
3	form_enter(3947795);
4	form_enter(3947831);
5	form_enter(3951001);
6
7	form_enter(23727252);
8	form_enter(23735302);
9	form_enter(23735605);
10
11	form_enter(3945071);
12	form_enter(3947967);
13	form_enter(3948166);
14	form_enter(3948232);
15	form_enter(3948251);
16	form_enter(3949661);
17
18	function form_enter(id) {
19		$('#fsForm' + id + ' input, #fsForm' + id + ' select').keypress(function (e) {
20			if (e.which == 13) {
21				$('#fsForm' + id + ' .fsSubmitButton').click();
22				return false;
23			}
24		});
25	}
26
27	var HREF = window.location.href;
28	$('#field95808347').val(HREF);
29	$('#field95809994').val(HREF);
30	$('#field95810148').val(HREF);
31	$('#field95810282').val(HREF);
32	$('#field95810282').val(HREF);
33	$('#field95810641').val(HREF);
34	$('#field95810878').val(HREF);
35	$('#field95810971').val(HREF);
36	$('#field95811020').val(HREF);
37	$('#field95811096').val(HREF);
38	$('#field95811144').val(HREF);
39
40	// let $single = $('.single');
41	// if($single.langth) {
42	//   $('.entry-meta').insertBefore(' .blog-single-content.entry-content.pull-up.expanded > p:first-of-type');
43	// }
44
45	//Smooth Scrolling
46	$("a.smooth-scroll").click(function () {
47		var elementClick = '#' + $(this).attr("href").split("#")[1]
48		var destination = $(elementClick).offset().top;
49		jQuery("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination }, 1000);
50		return false;
51	});
52
53
54});
55
56
57
58// document.addEventListener("DOMContentLoaded", () => {
59//     if (!!document.querySelector('.single.single-post.postid-8165')) {
60//         if (!!document.querySelector('.blog-single-content .entry-meta') && document.querySelectorAll('.blog-single-content h2')) {
61//
62//             let postMeta = document.querySelector('.blog-single-content .entry-meta'),
63//                 headers = document.querySelectorAll('.blog-single-content h2');
64//             postMeta.style.display = 'block';
65//             headers[0].after(postMeta);
66//             console.log(headers)
67//
68//         }
69//     }
70// });
71
72
73//<![CDATA All external links to load in a new tab
74jQuery(document).ready(function ($) {
75	$('#content .blog-single-content a , #primary-nav li a').each(function () {
76		var a = new RegExp('/' + window.location.host + '/');
77		if (!a.test(this.href)) {
78			$(this).click(function (event) {
79				event.preventDefault();
80				event.stopPropagation();
81				window.open(this.href, '_blank');
82			});
83		}
84	});
85});
86//]]>
87
88document.getElementsByClassName(".page-id-8684 .logo-default").src = "/wp-content/uploads/2022/03/onpar-logo-color.png";
89
90
91//jQuery(document).ready(function () {
92//let video_section = jQuery('video');
93//video_section.prop('preload', 'auto');
94//});
95
96//fix banner video
97jQuery(window).on("load", function () {
98	//jQuery('#mep_0 .lqd-vbg-video').removeAttr('autoplay').removeAttr('preload').removeAttr('loop');
99	//setTimeout(function(){
100	//jQuery('#mep_0 .lqd-vbg-video').attr('autoplay',' ').attr('loop', ' ');
101	//}, 5000);
102	jQuery('.main-inner #mep_0 .lqd-vbg-video').remove();
103	jQuery('.main-inner #mep_0 mediaelementwrapper').prepend('<video autoplay muted loop class="lqd-vbg-video"  data-video-bg="true" preload="auto" src="https://www.onpartech.com/wp-content/uploads/2022/03/OnPar-Website-Banner.mp4"><source src="https://www.onpartech.com/wp-content/uploads/2022/03/OnPar-Website-Banner.mp4" type="video/mp4"><source src="https://www.onpartech.com/wp-content/uploads/2022/03/OnPar-Website-Banner.webm" type="video/webm"></video>');
104});
105
106
107
108// animation (skroll)
109// =======================================================================================================================================
110
111
112window.onload = function () {
113	const animItems = document.querySelectorAll('.anim-items');
114
115	if (animItems.length > 0) {
116		window.addEventListener('scroll', animOnScroll);
117		function animOnScroll() {
118			for (let index = 0; index < animItems.length; index++) {
119				const animItem = animItems[index];
120				const animItemHeight = animItem.offsetHeight;
121				const animItemOffset = offset(animItem).top;
122				const animStart = 4;
123
124				let animItemPoint = window.innerHeight - animItemHeight / animStart;
125				if (animItemHeight > window.innerHeight) {
126					animItemPoint = window.innerHeight - window.innerHeight / animStart;
127				}
128
129				if ((pageYOffset > animItemOffset - animItemPoint) && pageYOffset < (animItemOffset + animItemHeight)) {
130					animItem.classList.add('active');
131				} else {
132					if (!animItem.classList.contains('_anim-no-hide')) {
133						animItem.classList.remove('active');
134					}
135				}
136			}
137		}
138		function offset(el) {
139			const rect = el.getBoundingClientRect(),
140				scrollLeft = window.pageXOffset || document.documentElement.scrollLeft,
141				scrollTop = window.pageYOffset || document.documentElement.scrollTop;
142			return { top: rect.top + scrollTop, left: rect.left + scrollLeft }
143		}
144
145		setTimeout(() => {
146			animOnScroll();
147		}, 300);
148	}
149};
150// =======================================================================================================================================

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.