PageSourceSearch

https://www.svg.org/wp-content/plugins/svg-directory/assets/js/dashboard.js

js svg.org collected 2026-10-02 04:03:51 UTC 3,936 bytes, 98 lines download raw bytes

1var ajaxUrl = "https://www.svg.org/wp-admin/admin-ajax.php";
2( function( $ ) {
3	setInterval(function()
4	{
5	    $.ajax({
6	        url:ajaxUrl,       
7          	dataType : "json",
8      		type: "post",
9	      	data:{action: 'svg_user_login_data_fetch'},
10			success:function(response)
11	        {
12	            //console.log the response
13	            //console.log(response);
14	            //console.log(response.data.total_mantralekhan);
15	            $('.total_mantralekhan').text(response.data.total_mantralekhan);
16			    $('.total_user').text(response.data.total_user);
17	        }
18	    });
19	}, 10000); //10000 milliseconds = 10 seconds
20
21	$(document).ready(function() {
22		if(firebase.apps && firebase.apps.length > 0) { 
23			this.firebaseApp = firebase.apps[0]; 
24		} else { 
25			this.firebaseApp = firebase.initializeApp(this.firebaseConfig); 
26		} 
27		/*console.log(firebase);
28		console.log(firebase.apps.length);*/
29
30		if (firebase.apps.length !== 0) {
31			//console.log('User is signed in.');
32		   	data = {
33	          	action: 'svg_user_login_data_fetch'
34	        }
35		}
36		else{
37			//console.log('No User is signed in.');
38			data = {
39	          	action: 'svg_user_login_data_fetch'
40	       	}
41		}
42		$.ajax({
43	   		url:ajaxUrl,       
44          	dataType : "json",
45      		type: "post",
46	      	data: data,
47		    success:function(response)
48		    {	
49		    	if(response.success = true){
50		    		$('.total_mantralekhan').text(response.data.total_mantralekhan);
51			    	$('.total_user').text(response.data.total_user);
52
53		    		/*topuserList = '';
54		    		var i =1;
55        		  	$.each(response.data.top_mantralekhan_user, function (item, e) {
56        		  		var mantralekhan = e.mantralekhan;
57			            
58			            if(e.photoURL != ''){ var photoURL = '<img src="'+e.photoURL+'">'; }
59			            else{ var photoURL = '<i class="fa fa-user"></i>';}
60
61			            if(e.displayName != ''){ var displayName = e.displayName; }
62			            else{ var displayName = 'Devote';}
63
64		            	topuserList += '<div class="col-md-12 col-sm-12 col-xs-12"><div class="card card-stats"><div class="card-body"><div class="row"><div class="col-md-2 col-sm-2 col-xs-2"><div class="icon-big text-center" style="background-color: #cfd4d3;">'+photoURL+'</div></div><div class="col-md-10 col-sm-10 col-xs-10 d-flex align-items-center"><div class="numbers"><div class="user-rank">'+i+'</div><h4 class="card-title">'+displayName+'</h4><p class="card-category">'+mantralekhan+' Total  Mantralekhan</p></div></div></div></div></div></div>';
65		            	i++;
66		            });
67		            $("#top-mantralekhan-user").append(topuserList);*/
68		           /* top_10_week_user = '';
69		            var w =1;
70		            $.each(response.data.top_week_user, function (item, e) {
71        		  		var weekly_count = e.weekly_count;
72        		  		if(weekly_count != ''){
73			            	if(e.photoURL != ''){ var photoURL = '<img src="'+e.photoURL+'">'; }
74					        else{ var photoURL = '<i class="fa fa-user"></i>';}
75
76				            if(e.displayName != ''){ var displayName = e.displayName; }
77				            else{ var displayName = 'Devote';}
78
79			            	top_10_week_user += '<div class="col-md-12 col-sm-12 col-xs-12"><div class="card card-stats"><div class="card-body"><div class="row"><div class="col-md-2 col-sm-2 col-xs-2"><div class="icon-big text-center" style="background-color: #cfd4d3;">'+photoURL+'</div></div><div class="col-md-10 col-sm-10 col-xs-10 d-flex align-items-center"><div class="numbers"><div class="user-rank">'+w+'</div><h4 class="card-title">'+displayName+'</h4><p class="card-category">'+weekly_count+' This Week Mantralekhan</p></div></div></div></div></div></div>';
80			            	w++;
81			            }
82				           
83		            });
84		            $("#top-10-week-user").append(top_10_week_user);*/
85		    	}
86		    	else{
87		    		$('.error').show();
88		    	}
89		    	
90		    }
91		});
92	}); 
93
94	
95} )( jQuery );
96
97
98        	

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.