PageSourceSearch

https://nsbgwalior.bank.in/js/new_component.js

js nsbgwalior.bank.in collected 2026-10-09 18:31:05 UTC 16,913 bytes, 429 lines download raw bytes

1/*DYNAMIC-JS-Tydq-uDrH-VbzH-fHts*/
2if($('#Tydq-uDrH-VbzH-fHts').length > 0)
3{
4//Hide Overlay
5$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .overlay').click(function(){
6	$(this).fadeOut();
7	$(this).find('iframe').remove();
8	$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .search_box').hide();
9	$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .subscribe_box').hide();
10});
11$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 a').each(function(){
12	$(this).click(function(e){
13		//Youtube
14		if($(this).attr('data-type') == 'youtube'){
15			e.preventDefault();
16			var URL     = $(this).attr('href');
17			var videoID = URL.split('v=')[1];
18			var pos     = videoID.indexOf('&');
19			if(pos != -1) {
20			  videoID   = videoID.substring(0, pos);
21			}
22			var iframe  = '<iframe src="https://www.youtube.com/embed/'+videoID+'?autoplay=1" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>';
23			$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .overlay').html(iframe);
24			$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .overlay').fadeIn();
25		}else{
26			//Search Box
27			if($(this).attr('data-type') == 'search'){
28				$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .search_box').fadeIn();
29				$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .overlay').fadeIn();
30				$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .search_box input[type=text]').val('').focus();
31				$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .search_box input[type=text]').keydown(function(e){
32					if(e.which == '13'){
33						var val    = $(this).val().trim();
34						var site   = window.location.origin;
35						if(val != ''){
36							location.href = 'https://nsbgwalior.bank.in//Search.html?SearchText='+val;
37						}
38					}
39				});
40			}else{
41				//Subscribe
42				if($(this).attr('data-type') == 'subscribe'){
43					$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .subscribe_box').fadeIn();
44					$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .overlay').fadeIn();
45					$('#Tydq-uDrH-VbzH-fHts .Custom-Buttons-1-v1 .subscribe_box input[type=text]').val('').focus();
46				}
47			}
48		}
49	});
50});
51function onLoadTydquDrHVbzHfHts()
52{
53}
54onLoadTydquDrHVbzHfHts();};	
55/*DYNAMIC-JS-iCpc-vUZz-WmOu-cBEc*/
56if($('#iCpc-vUZz-WmOu-cBEc').length > 0)
57{
58	//Get Current Logo
59	var current_logo = $('.logo_image_container img').attr('src');
60	var current_logo_alt = $('.logo_image_container img').attr('alt');
61	if(typeof current_logo_alt === 'undefined' || current_logo_alt === null )
62	{
63	   current_logo_alt = '';
64	}
65	if(current_logo != ''){
66		$('#iCpc-vUZz-WmOu-cBEc .logo_container').html('<img src="'+current_logo+'"  alt="'+current_logo_alt+'">');
67	}
68	setInterval(function(){
69		var scrollheight = $(window).scrollTop();
70		if(scrollheight > 350){
71			$('#iCpc-vUZz-WmOu-cBEc .desktop_fixed').css('display','grid');
72		}else{
73			$('#iCpc-vUZz-WmOu-cBEc .desktop_fixed').fadeOut();
74		}
75	},200);
76	//Hide Show Mobile Menu
77	$('#iCpc-vUZz-WmOu-cBEc .mobile_menu_icon').click(function(){
78		var right = $('#iCpc-vUZz-WmOu-cBEc .mobile_menu').css('right');
79		if(right == '-300px'){
80			$('#iCpc-vUZz-WmOu-cBEc .mobile_menu').css('right','0px');
81		}else{
82			$('#iCpc-vUZz-WmOu-cBEc .mobile_menu').css('right','-300px');
83		}
84	});
85	//Hide Mobile Menu
86	$('#iCpc-vUZz-WmOu-cBEc .mobile_menu .close_icon').click(function(){
87		$('#iCpc-vUZz-WmOu-cBEc .mobile_menu').css('right','-300px');
88	});
89	//Hide Social Icons (Normal)
90	$('#iCpc-vUZz-WmOu-cBEc .social_accounts a').each(function(){
91		var href = $(this).attr('href');
92		if(href == '' || href == '#'){
93			$(this).hide();
94		}else{
95			$(this).css('display','inline-block');
96		}
97	});
98	//Hide Social Icons (Fixed)
99	$('#iCpc-vUZz-WmOu-cBEc .desktop_fixed .social_accounts a').each(function(){
100		var href = $(this).attr('href');
101		if(href == '' || href == '#'){
102			$(this).hide();
103		}else{
104			$(this).css('display','inline-block');
105		}
106	});
107   //New Popup Search Show
108   $('#iCpc-vUZz-WmOu-cBEc .search_icon a').unbind('click').click(function(){
109     if($('#iCpc-vUZz-WmOu-cBEc .popup_search').css('display') == 'none'){
110         $('#iCpc-vUZz-WmOu-cBEc .popup_search').fadeIn();
111         $('#iCpc-vUZz-WmOu-cBEc .popup_search .grid').css('bottom','0px');
112         $('#iCpc-vUZz-WmOu-cBEc .popup_search input[type="text"]').focus();
113     }
114   });
115   //New Popup Search Hide
116   $('#iCpc-vUZz-WmOu-cBEc .popup_search i.fa-times').unbind('click').click(function(){
117     if($('#iCpc-vUZz-WmOu-cBEc .popup_search').css('display') != 'none'){
118         $('#iCpc-vUZz-WmOu-cBEc .popup_search .grid').css('bottom','100px');
119         $('#iCpc-vUZz-WmOu-cBEc .popup_search').fadeOut();
120     }
121   });
122function onLoadiCpcvUZzWmOucBEc()
123{
124}
125onLoadiCpcvUZzWmOucBEc();};	
126/*DYNAMIC-JS-LeLi-kjij-Tifj-hXDA */
127
128    $(document).ready(function(){
129        $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1 .image').each(function(){
130            var src = $(this).find('img').attr('src');
131			
132			//Remove Image Optimization
133            var optimize = $('#LeLi-kjij-Tifj-hXDA').attr('data-optimize');
134            if(optimize == 'false'){
135                src     = src.replace('Web_','');
136            }
137			
138            $(this).css('background-image','url('+src+')');
139            $(this).css('background-repeat','no-repeat');
140            $(this).css('background-size','cover');
141        });
142
143        //Load More
144        if($('#LeLi-kjij-Tifj-hXDA').attr('data-load') == 'true'){
145            var count1 = $('#LeLi-kjij-Tifj-hXDA').attr('data-count1');
146            var count2 = $('#LeLi-kjij-Tifj-hXDA').attr('data-count2');
147            var count3 = 0;
148
149            //Check if items are available to load
150            $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1').each(function(){ count3++; });
151            if(count3 <= count1){
152                $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1_load_more').hide();
153            }else{
154                //Hide items
155                $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1').each(function(count){ 
156                     if(count >= count1){
157                        $(this).hide();
158                     }
159                });
160
161                //Load more items on click
162                $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1_load_more').click(function(e){
163                    e.preventDefault();
164                    $(this).addClass('Img-Title-Intro-UI-1-v1_load_more_active').text('');
165
166                    setTimeout(function(){
167                        for (var i = 1; i <= count2; i++) {
168                            $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1').each(function(count){ 
169                                 if($(this).css('display') == 'none'){
170                                    $(this).fadeIn();
171                                    return false;
172                                 }
173                            });
174                        }
175
176                        //check if any hidden item left
177                        var hidden_item = false;
178                        $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1').each(function(){ 
179                             if($(this).css('display') == 'none'){
180                                hidden_item = true;
181                                return false;
182                             }
183                        });
184                        if(hidden_item == false){
185                            $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1_load_more').hide();
186                        }else{
187                            $('#LeLi-kjij-Tifj-hXDA .Img-Title-Intro-UI-1-v1_load_more').removeClass('Img-Title-Intro-UI-1-v1_load_more_active').text('load more');
188                        }
189                    },1000);
190                });
191            }
192        }
193    });
194
195/*DYNAMIC-JS-OhxL-nKVO-UAVU-VxTx */
196
197	$(document).ready(function(){
198		$(document).on('mouseover', '#OhxL-nKVO-UAVU-VxTx .side_fixed_main .side_fixed_component .side_fixed_header', function(e){
199			$('.side_fixed_main .side_fixed_component .side_fixed_header').css("right", "0px");
200		});
201
202	
203		$(document).on('mouseout', '#OhxL-nKVO-UAVU-VxTx .side_fixed_main .side_fixed_component .side_fixed_header', function(e){
204			$('.side_fixed_main .side_fixed_component .side_fixed_header').css("right", "-255px");
205		});
206	
207	});
208
209/*DYNAMIC-JS-yJxr-XoiB-Dqwu-YkNw */
210
211	$(document).ready(function(){
212		Special_Emi_Calculator_1_v1();
213		$('.Special-Emi-Calculator-1-v1 .emi_form_container input[type="text"]').each(function(){
214			$(document).on('keyup change', '.Special-Emi-Calculator-1-v1 .emi_form_container input[type="text"]', function(){
215				Special_Emi_Calculator_1_v1();
216			});
217		});
218	});
219	function Special_Emi_Calculator_1_v1(){
220		var principal 	= $('.Special-Emi-Calculator-1-v1 #amount').val(); 
221		var interest  	= parseFloat($('.Special-Emi-Calculator-1-v1 #interest').val())/100/12; 
222		var payments  	= parseInt($('.Special-Emi-Calculator-1-v1 #installments').val()); 
223		var y 		  	= parseFloat(Math.pow(1+ interest, payments));
224		var emi  	  	= parseFloat((principal*y*interest)/(y-1));
225
226		var final_emi	= Math.round(emi);
227		var final_amt	= Math.round(parseFloat(emi) * parseFloat(payments));
228		var final_int	= Math.round(parseFloat(final_amt) - parseFloat(principal));
229		$('.Special-Emi-Calculator-1-v1 .emi_details_container p').each(function(count){
230			if(count == 0 || count == 3){
231				if(!isNaN(final_emi)){
232					$(this).text('₹ '+final_emi);
233				}else{
234					$(this).text('₹ 0');
235				}
236			}
237			if(count == 1 || count == 4){
238				if(!isNaN(final_int)){
239					$(this).text('₹ '+final_int);
240				}else{
241					$(this).text('₹ 0');
242				}
243			}
244			if(count == 2 || count == 5){
245				if(!isNaN(final_amt)){
246					$(this).text('₹ '+final_amt);
247				}else{
248					$(this).text('₹ 0');
249				}
250			}
251		});
252	}
253
254/*DYNAMIC-JS-JLVU-WqGw-yFuH-KrNF */
255
256    $(document).ready(function(){
257        $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1 .image').each(function(){
258            var src = $(this).find('img').attr('src');
259			
260			//Remove Image Optimization
261            var optimize = $('#JLVU-WqGw-yFuH-KrNF').attr('data-optimize');
262            if(optimize == 'false'){
263                src     = src.replace('Web_','');
264            }
265			
266            $(this).css('background-image','url('+src+')');
267            $(this).css('background-repeat','no-repeat');
268            $(this).css('background-size','cover');
269        });
270
271        //Load More
272        if($('#JLVU-WqGw-yFuH-KrNF').attr('data-load') == 'true'){
273            var count1 = $('#JLVU-WqGw-yFuH-KrNF').attr('data-count1');
274            var count2 = $('#JLVU-WqGw-yFuH-KrNF').attr('data-count2');
275            var count3 = 0;
276
277            //Check if items are available to load
278            $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1').each(function(){ count3++; });
279            if(count3 <= count1){
280                $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1_load_more').hide();
281            }else{
282                //Hide items
283                $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1').each(function(count){ 
284                     if(count >= count1){
285                        $(this).hide();
286                     }
287                });
288
289                //Load more items on click
290                $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1_load_more').click(function(e){
291                    e.preventDefault();
292                    $(this).addClass('Img-Title-Intro-UI-1-v1_load_more_active').text('');
293
294                    setTimeout(function(){
295                        for (var i = 1; i <= count2; i++) {
296                            $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1').each(function(count){ 
297                                 if($(this).css('display') == 'none'){
298                                    $(this).fadeIn();
299                                    return false;
300                                 }
301                            });
302                        }
303
304                        //check if any hidden item left
305                        var hidden_item = false;
306                        $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1').each(function(){ 
307                             if($(this).css('display') == 'none'){
308                                hidden_item = true;
309                                return false;
310                             }
311                        });
312                        if(hidden_item == false){
313                            $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1_load_more').hide();
314                        }else{
315                            $('#JLVU-WqGw-yFuH-KrNF .Img-Title-Intro-UI-1-v1_load_more').removeClass('Img-Title-Intro-UI-1-v1_load_more_active').text('load more');
316                        }
317                    },1000);
318                });
319            }
320        }
321    });
322
323/*DYNAMIC-JS-zvpm-lhNo-AKtR-DUWk */
324
325    $(document).ready(function(){
326        $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1 .image').each(function(){
327            var src = $(this).find('img').attr('src');
328			
329			//Remove Image Optimization
330            var optimize = $('#zvpm-lhNo-AKtR-DUWk').attr('data-optimize');
331            if(optimize == 'false'){
332                src     = src.replace('Web_','');
333            }
334			
335            $(this).css('background-image','url('+src+')');
336            $(this).css('background-repeat','no-repeat');
337            $(this).css('background-size','cover');
338        });
339
340        //Load More
341        if($('#zvpm-lhNo-AKtR-DUWk').attr('data-load') == 'true'){
342            var count1 = $('#zvpm-lhNo-AKtR-DUWk').attr('data-count1');
343            var count2 = $('#zvpm-lhNo-AKtR-DUWk').attr('data-count2');
344            var count3 = 0;
345
346            //Check if items are available to load
347            $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1').each(function(){ count3++; });
348            if(count3 <= count1){
349                $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1_load_more').hide();
350            }else{
351                //Hide items
352                $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1').each(function(count){ 
353                     if(count >= count1){
354                        $(this).hide();
355                     }
356                });
357
358                //Load more items on click
359                $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1_load_more').click(function(e){
360                    e.preventDefault();
361                    $(this).addClass('Img-Title-Intro-UI-1-v1_load_more_active').text('');
362
363                    setTimeout(function(){
364                        for (var i = 1; i <= count2; i++) {
365                            $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1').each(function(count){ 
366                                 if($(this).css('display') == 'none'){
367                                    $(this).fadeIn();
368                                    return false;
369                                 }
370                            });
371                        }
372
373                        //check if any hidden item left
374                        var hidden_item = false;
375                        $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1').each(function(){ 
376                             if($(this).css('display') == 'none'){
377                                hidden_item = true;
378                                return false;
379                             }
380                        });
381                        if(hidden_item == false){
382                            $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1_load_more').hide();
383                        }else{
384                            $('#zvpm-lhNo-AKtR-DUWk .Img-Title-Intro-UI-1-v1_load_more').removeClass('Img-Title-Intro-UI-1-v1_load_more_active').text('load more');
385                        }
386                    },1000);
387                });
388            }
389        }
390    });
391
392/*DYNAMIC-JS-vcez-ggaT-AQpR-jUsj */
393
394	$(document).ready(function(){
395		
396	});
397
398/*DYNAMIC-JS-OrTd-eJiM-KvMx-wrGN */
399
400	$(document).ready(function(){
401		
402	});
403
404
405
406$.getScript("https://cdnjs.cloudflare.com/ajax/libs/simplebar/2.6.1/simplebar.
406js")
407  .done(function( script, textStatus )
408  {
409	    /*DYNAMIC-JS-wQPw-mpby-oMyQ-bsxL */
410	   if($('#wQPw-mpby-oMyQ-bsxL').length > 0)      {		$('#wQPw-mpby-oMyQ-bsxL .video').each(function(){
411			var videoID 	= $(this).attr('data-video');
412			var imageURL 	= 'https://img.youtube.com/vi/'+videoID+'/mqdefault.jpg'; 
413			$(this).find('.thumbnail').css('background-image','url('+imageURL+')');
414			$(this).find('.thumbnail').css('background-size','cover');
415		});
416		$('#wQPw-mpby-oMyQ-bsxL .video').each(function(){
417			$(this).click(function(){
418				var videoID = $(this).attr('data-video');
419				var newsrc = 'https://www.youtube.com/embed/'+videoID;
420				$('#wQPw-mpby-oMyQ-bsxL .player iframe').attr('src',newsrc);
421			});
422		});
423      }
424/*@@@SIMPLE_BAR_JS@@@*/
425  })
426  .fail(function( jqxhr, settings, exception ) {
427	console.log("Error occured In loading simplebar js code");
428});
429

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.