PageSourceSearch

https://michaellavoice.com/rw_common/themes/shape/js/theme.js

js michaellavoice.com collected 2026-09-29 04:43:23 UTC 4,500 bytes, 149 lines download raw bytes

1jQuery.noConflict();
2jQuery(function (MT$) {
3    var $drop_var = parseInt(MT$('#drop_var').css("top"));
4    var $fade_body = parseInt(MT$('#fade_body').css("top"));
5    var $fade_page = parseInt(MT$('#fade_page').css("top"));    
6    var $menuOpened = parseInt(MT$('#menuOpened').css('top'));
7    var $boxOpened = parseInt(MT$('#boxOpened').css('top'));     
8    var $parallax_titles = parseInt(MT$('#parallax_titles').css('top'));   
9
10//-------------
11
12
13    if ($fade_body) { 
14         MT$(document).ready(function (){         
15         MT$('body').css('opacity', '0').delay(600).fadeTo(800, 1,'swing');  
16         });           
17};   
18
19  if ($fade_page) { 
20           MT$(document).ready(function (){         
21           MT$('#container').css('opacity', '0').delay(900).fadeTo(600, 1,'swing');  
22           });           
23  };  
24//---------------------------------------------------------------------
25    if ($drop_var) { 
26 //------
27MT$(window).scroll(function(e){
28  drop();
29});
30function drop(){
31  var scrolled = MT$(window).scrollTop();
32   MT$('#drop').css('left',-(scrolled*1.2)+'px');   
33}
34//------
35}; 
36//------------------------------------------------
37  if ($parallax_titles) { 
38 //------
39MT$(window).scroll(function(e){
40  title();
41});
42function title(){
43  var scrolled = MT$(window).scrollTop();
44  MT$('.titles').css('top',+(scrolled*.35)+'px');   
45}
46//------
47};  
48//------------------------------------------------
49
50	
51
52
53// Fluid images
54       MT$('img[alt~="image"]')
55           .not('.lt-ie9 .image-left img, .lt-ie9 .image-right img')
56           .css({
57               'max-width': '100%',
58               'height': 'auto',
59               'width': '100%'
60           })
61           .each(function () {
62               this.alt = this.alt.replace (/(^image\s*)(.*)?/, "$2");
63           });
64// Fluid images
65//  Animated top
66       	MT$("#up").hide();    	
67      	MT$(function () {
68       		MT$(window).scroll(function () {
69       		if (MT$(this).scrollTop() > 400) { 
70       		MT$('#up').slideDown(300);
71   				
72       			} else {
73       			MT$('#up').slideUp(220);
74	
75       			}
76       		});    		    
77       		// scroll body to 0px on click
78       		MT$('#up a').click(function () {
79       		MT$('body,html').animate({
80       				scrollTop: 0, }, 240);
81       			return false;
82       		});
83       	});
84//  Animated top 
85//	accordion Animation Navigation
86	MT$('#nav_button').click(function toggleResponsiveMenu() {
87		if ($menuOpened) {
88			MT$(this).toggleClass('opened');
89			MT$("#pulse").removeClass("pulse");
90			MT$('#navcontainer2').stop(true, true).slideUp(300);
91			MT$('#navcontainer2 > ul').stop(true, true).animate({
92				opacity: 0
93			},
94			350);			
95//			MT$('body,html').animate({ scrollTop: 0, }, 700);			
96			$menuOpened = 0;
97		} else {
98			MT$(this).toggleClass('opened');
99			MT$("#pulse").addClass("pulse");   
100			MT$('#navcontainer2').stop(true, true).slideDown(300);
101			MT$('#navcontainer2 > ul').stop(true, true).animate({
102				opacity: 1
103			},
104			350);
105			
106			MT$('body,html').animate({ scrollTop: 0, }, 700);
107			$menuOpened = 1;
108		}
109	});
110//	accordion Animation Navigation 
111// Responsive menu
112        if ($menuOpened) {
113            MT$('#drop').toggleClass('opened');
114        };
115// Responsive menu       
116//box accordion  EX3 Animation   
117   MT$('#drop').click(
118       function toggleBox () {
119           if ($boxOpened) {
120               MT$(this).toggleClass('boxopened');   
121               MT$('#extraContainer3box, #extraContainer3box_bottom').stop(true, true).delay(50).slideUp(300);        
122               
123               MT$("#pulse2").removeClass("pulse");
124               $boxOpened = 0;               
125           } else {        
126               MT$(this).toggleClass('boxopened'); 
127               MT$('#extraContainer3box, #extraContainer3box_bottom').stop(true, true).delay(100).slideDown(550);   
128                   
129               MT$("#pulse2").addClass("pulse");                                           
130               $boxOpened = 1;
131           }
132       }
133   );
134//box accordion Animation
135   MT$('#navcontainer ul ul').css('display', 'none'); 
136         function animateMenu() {
137             MT$(this)
138                 .toggleClass("open") 
139                 .find(">ul")
140                 .stop(true, true)
141                 .animate({
142//                     opacity: 'toggle',
143                     height: 'toggle'
144                 }, 75);
145         }
146                  
147  MT$("#navcontainer li").has("ul").addClass("parent").hoverIntent(animateMenu,animateMenu);  
148   
149});

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.