PageSourceSearch

https://www.montreux.ch/typo3temp/assets/compressed/wng.ajax-74270ec7fb6e19413734053a112a647f.js?1707487158

js montreux.ch collected 2026-10-02 09:57:41 UTC 1,110 bytes, 68 lines download raw bytes

1/**
2 * @version 1.0
3 *
4 * @copyright Copyright 2012 WnG Solutions Sarl, all rights reserved
5 * @package WnG Solutions
6 */
7 
8// Initialisation de l'objet general "WnG"
9if (typeof WnG != 'object')
10	WnG = {};
11	
12
13WnG.ajax = {
14	
15	getJSON: function(params, callback) {
16		
17		// Url des requêtes
18		var ajaxUrl = WnG.ajax.createAJAXurl();
19		
20		// Execution
21		jQuery.ajax({
22			url: ajaxUrl,
23			dataType: 'jsonp',
24			data: params,
25			success: callback
26		});
27		
28	},
29	
30	
31	
32	/**
33	 * Genere l'URL a utiliser pour les requetes AJAX
34	 *
35	 * @return string
36	 */
37	createAJAXurl: function() {
38		
39		// URL de base
40		url = WnG.config_ajax.base_url;
41
42		// Ajout du typenum
43		url += (url.indexOf("?") != -1) ? '&' : '?';
44		url += 'type=' + WnG.config_ajax.ajaxTypenum;
45		
46		// Ajout du paramètre de langue
47		url += '&L=' + WnG.config_ajax.sys_language_uid;
48	
49		// Ajout d'un paramètre variable pour éviter la mise en cache
50		url += '&timestamp=' + WnG.ajax.time();
51		
52		return url;
53	},
54	
55	
56	
57	/**
58	 * Retourne le timestamp actuel
59	 *
60	 * @param void
61	 * @return int
62	 */
63	time: function() {
64		return new Date().getTime();
65	}
66
67	
68};

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.