PageSourceSearch

https://www.mgawealth.com/j/index.js

js mgawealth.com collected 2026-10-10 00:54:19 UTC 2,955 bytes, 97 lines download raw bytes

1//Hero 
2function update_alignment() {
3	setTimeout(function() { css.set("style","alignment"); },20);
4}
5
6$(document).ready(function() {
7	$('.s1 span.temp').click(function() {
8		fx.sliders('#home_slider').prev();
9	});
10	$('.s1 span.end').click(function() {
11		fx.sliders('#home_slider').next();
12	});
13});
14
15
16//Scroll Down
17$(document).ready(function() {
18	$('.btn-down').click(function(e) {
19		e.stopImmediatePropagation()
20		let target = e.srcElement.dataset.id
21		let windowWidth = $(window).width();
22		if (windowWidth >= 767) {
23			$('body, html').animate({
24				scrollTop: $('#' + target).offset().top -90
25			}, 700);
26		} else {
27			$('body, html').animate({
28			  scrollTop: $('#' + target).offset().top -50
29		  }, 700);
30		}
31	})
32});
33
34
35
36// We Guide Our Clients
37// $(document).ready(function () {
38// 	$(".s4-new .box").inView({keep:1});
39// });
40
41
42// Fixed 
43// $(document).on('fx_ready', function(e, a){
44// 	if(a>0) return;
45// 	let scrollCount = 0;
46// 	let windowHeight = $(window).height();
47// 	let headerH = $('header .content').outerHeight(true);
48
49// 	$(window).scroll(function() {
50// 		if(css.vars.w()>=980) {
51// 			let s7Height = $('.s4-new').outerHeight(true);
52// 			let secHeight= s7Height / 12;
53// 			let sectionOffset = $('.s4-new').offset().top;
54// 			let sectionBot = sectionOffset + (s7Height * .75);
55// 			let t = $(window).scrollTop() + headerH;
56// 			let sectionScroll = Math.ceil((t - sectionOffset)/(s7Height/8));
57
58// 			$('.box[data-id="1"]').removeClass("animate");
59
60// 			if (t < sectionOffset){
61// 				$('.svg_wrapper').css({position: 'absolute', top: 0});
62// 			} else if (t >= sectionOffset && t < sectionBot){
63// 				$('.svg_wrapper').css({position: 'fixed', top: '0'});
64
65// 				if (sectionScroll > 0 && sectionScroll < 8){
66// 					$('.box').each(function(){
67// 						let dataVal = parseInt($(this).data('id'), 10);
68// 						if (sectionScroll >= dataVal) {
69// 							$(this).addClass("animate");
70// 							if($('.box[data-id="1"]').hasClass("animate") ){
71// 								$(this).css({'top' : '10px'});
72// 								$('.box[data-id="2"]').css({'top': '330px'})
73// 								$('.box[data-id="3"]').css({'top': '550px'})
74// 							} 
75// 							if($('.box[data-id="2"]').hasClass("animate") ){
76// 								$(this).css({'top' : '10px'});
77// 								$('.box[data-id="1"]').css({'top': '-100%'})
78// 								$('.box[data-id="3"]').css({'top': '330px'})
79// 							} 
80// 							if ($('.box[data-id="3"]').hasClass("animate") ) {
81// 								$(this).css({'top' : '10px'});
82// 								$('.box[data-id="2"]').css({'top': '-100%'})
83// 								$('.box[data-id="2"]').css({'opacity': '0'})
84// 							}
85// 						} else {
86// 							$(this).removeClass('animate');
87// 							$(this).css({'opacity' : '1'});
88// 						}
89// 					});
90// 				}
91// 			}
92// 			else if (t >= sectionBot){
93// 				$('.svg_wrapper').css({'position': 'absolute', 'top' : '195vh'});
94// 			}
95// 		}
96// 	})
97// })

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.