Subversion Repositories Applications.reseau

Rev

Rev 35 | Rev 38 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 35 Rev 36
Line 1... Line 1...
1
$(document).ready(function() {
1
$(document).ready(function() {
-
 
2
 
2
	//alert('doc chargé!');
3
	//alert('doc chargé!');
-
 
4
	var nbObs = $('.nb-obs'),
-
 
5
		nbImg = $('.nb-img'),
-
 
6
		nbUtil = $('.nb-util');
-
 
7
 
-
 
8
	var urlServiceNbInscrits = urlServiceAnnuaire + 'NbInscrits',
-
 
9
		urlServiceNbImg = urlServiceCel + 'CelStatistiqueTxt/NbImagesPubliques',
-
 
10
		urlServiceNbObs = urlServiceCel + 'CelStatistiqueTxt/NbObsPubliques';
-
 
11
 
-
 
12
	// appels services
-
 
13
	$.ajax(urlServiceNbInscrits, {
-
 
14
		success: function(data) {
-
 
15
			nbUtil.html(data);
-
 
16
		}
-
 
17
	});
-
 
18
	$.ajax(urlServiceNbObs, {
-
 
19
		success: function(data) {
-
 
20
			nbObs.html(('' + data).replace(/\B(?=(\d{3})+(?!\d))/g, " "));
-
 
21
		}
-
 
22
	});
-
 
23
	$.ajax(urlServiceNbImg, {
-
 
24
		success: function(data) {
-
 
25
			nbImg.html(('' + data).replace(/\B(?=(\d{3})+(?!\d))/g, " "));
-
 
26
		}
-
 
27
	});
3
});
28
});
4
29