PageSourceSearch

https://aiimsnagpur.edu.in/assets/js/switcher.js

js aiimsnagpur.edu.in collected 2026-10-02 17:42:50 UTC 5,465 bytes, 204 lines download raw bytes

1	
2//=== Switcher panal slide function	=====================//
3
4	jQuery(window).load(function(){
5		jQuery('.styleswitcher').animate({
6					'left': '-240px'
7				});
8		jQuery('.switch-btn').addClass('closed');
9	});
10	
11	jQuery(document).ready(function () {		
12		jQuery('.switch-btn').on('click', function () {	
13			if (jQuery(this).hasClass('open')) {
14				jQuery(this).addClass('closed');
15				jQuery(this).removeClass('open');
16				jQuery('.styleswitcher').animate({
17					'left': '-240px'
18				});
19			} else {
20				if (jQuery(this).hasClass('closed')) {
21				jQuery(this).addClass('open');
22				jQuery(this).removeClass('closed');
23				jQuery('.styleswitcher').animate({
24					'left': '0px'
25				});
26				}
27			}	
28		});
29	});
30	
31//=== Switcher panal slide function END	=====================//
32
33
34//=== Color css change function	=====================//
35
36jQuery( document ).ready(function() {
37	
38    // Color changer
39    jQuery(".skin-1").on('click', function(){
40        jQuery(".skin").attr("href", "css/skin/skin-1.css");
41        return false;
42    });
43    
44    jQuery(".skin-2").on('click', function(){
45        jQuery(".skin").attr("href", "css/skin/skin-2.css");
46        return false;
47    });
48    
49    jQuery(".skin-3").on('click', function(){
50        jQuery(".skin").attr("href", "css/skin/skin-3.css");
51        return false;
52    });
53	
54    jQuery(".skin-4").on('click', function(){
55        jQuery(".skin").attr("href", "css/skin/skin-4.css");
56        return false;
57    });
58	
59    jQuery(".skin-5").on('click', function(){
60        jQuery(".skin").attr("href", "css/skin/skin-5.css");
61        return false;
62    });	
63	
64    jQuery(".skin-6").on('click', function(){
65        jQuery(".skin").attr("href", "css/skin/skin-6.css");
66        return false;
67    });		
68		
69    jQuery(".skin-7").on('click', function(){
70        jQuery(".skin").attr("href", "css/skin/skin-7.css");
71        return false;
72    });
73	
74    jQuery(".skin-8").on('click', function(){
75        jQuery(".skin").attr("href", "css/skin/skin-8.css");
76        return false;
77    });	
78	
79    jQuery(".skin-9").on('click', function(){
80        jQuery(".skin").attr("href", "css/skin/skin-9.css");
81        return false;
82    });	
83	
84    jQuery(".skin-10").on('click', function(){
85        jQuery(".skin").attr("href", "css/skin/skin-10.css");
86        return false;
87    });			
88		
89});
90
91
92//=== Background image change function	=====================//
93jQuery(document).ready(function(){
94	
95	jQuery('.background-switcher li img').on('click', function(){
96	 var imgbg = jQuery(this).attr('rel');
97	 
98	 //console.<span id="IL_AD2" class="IL_AD">log</span>(imgbg);
99	 
100	 jQuery('#bg').css({backgroundImage: "url("+imgbg+")"});
101	 });
102
103});
104
105
106
107//=== Background pattern change function	=====================//
108jQuery(document).ready(function(){
109	
110	jQuery('.pattern-switcher li img').on('click', function(){
111	 var imgbg = jQuery(this).attr('rel');
112	 
113	 //console.<span id="IL_AD2" class="IL_AD">log</span>(imgbg);
114
115	 jQuery('#bg').css({backgroundImage: "url("+imgbg+")"});
116	 jQuery("#bg").css( "background-size", "auto")
117	 
118	 });
119
120});
121
122
123//=== Layout boxed & fullscreen change function	END=====================//
124jQuery(document).ready(function(){
125	jQuery('.layout-view li ').on('click', function(){
126		jQuery('.layout-view li ').removeClass('active');
127		jQuery(this).addClass('active');	
128	});
129	
130	jQuery('.wide-layout').on('click', function() { 
131		jQuery("body").addClass('wide-layout')
132		jQuery("body").removeClass('boxed')
133	});
134	
135	jQuery('.boxed').on('click', function() { 
136		jQuery("body").addClass('boxed')
137		jQuery("body").removeClass('wide-layout')
138	});
139	
140});
141
142//=== Nav light & dark change function	END=====================//
143jQuery(document).ready(function(){
144	
145	jQuery('.nav-view li ').on('click', function(){
146		jQuery('.nav-view li ').removeClass('active');
147		jQuery(this).addClass('active');	
148	});
149	
150	jQuery('.nav-light').on('click', function() { 
151		jQuery(".header-nav").addClass('nav-light')
152		jQuery(".header-nav").removeClass('nav-dark')
153	});
154	
155	jQuery('.nav-dark').on('click', function() { 
156		jQuery(".header-nav").addClass('nav-dark')
157		jQuery(".header-nav").removeClass('nav-light')
158	});
159	
160});
161
162
163//=== Nav light & dark change function	END=====================//
164jQuery(document).ready(function(){
165	
166	jQuery('.nav-width li ').on('click', function(){
167		jQuery('.nav-width li ').removeClass('active');
168		jQuery(this).addClass('active');	
169	});
170	
171	jQuery('.nav-wide').on('click', function() { 
172		jQuery(".site-header").addClass('nav-wide')
173		jQuery(".site-header").removeClass('nav-boxed')
174	});
175	
176	jQuery('.nav-boxed').on('click', function() { 
177		jQuery(".site-header").addClass('nav-boxed')
178		jQuery(".site-header").removeClass('nav-wide')
179	});
180	
181});
182
183
184
185//=== Nav light & dark change function	END=====================//
186jQuery(document).ready(function(){
187	
188	jQuery('.header-view li ').on('click', function(){
189		jQuery('.header-view li ').removeClass('active');
190		jQuery(this).addClass('active');	
191	});
192	
193	jQuery('.header-fixed').on('click', function() { 
194		jQuery(".main-bar-wraper").addClass('sticky-header')
195		jQuery(".main-bar-wraper").removeClass('sticky-no')
196	});
197	
198	jQuery('.header-static').on('click', function() { 
199		jQuery(".main-bar-wraper").addClass('sticky-no')
200		jQuery(".main-bar-wraper").removeClass('sticky-header')
201	});
202
203});
204

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.