PageSourceSearch

https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/infoTagco.js

js bouyguestelecom.fr collected 2026-09-24 08:38:24 UTC 5,380 bytes, 147 lines download raw bytes

1/////////////////////////////////////////////////////////
2// MECANIQUE AVEC AFFICHAGE DE POP IN (VIA JQUERY)
3////////////////////////////////////////////////////////
4//
5// Mecanique des erreurs
6// Erreurs si pas appel au fichier TagCo (car utilisation de weba_toolbox)
7try{
8  //
9	// Titre de la popin
10	var titre_avec_version = 'INFOS TRANSMISES A TAGCO (v202510_1)';
11	//
12	// Appel de la librairie pour visualiser les json
13	weba_toolbox.addScript_light('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/json_andypf-json-viewer-index.js');
14	//
15	/////////////////////////////////////////////
16	// Preparation des infos 
17	////////////////////////////////////////////
18	//
19	// Verifie si weba_toolbox de tagco existe 
20	if( typeof weba_toolbox !== "undefined" ){
21		// Preparation de l'id pour identifier la popin (si plusieurs popin affichees et/ou fermees)
22		var	id_popin = (typeof id_popin === 'number' ? id_popin + 1 : 0);  
23		//
24		///////////////////////////////
25		// Information a afficher
26		///////////////////////////////
27		//
28		var a = '';
29		if(typeof tC === 'undefined'){
30		  a += 'Pas de fichier TagCo appele'
31		}  else {
32		  a += '****************************************************************************************************************';
33		  a += '<br/>'; 
34		  a += 'Environnement = ';
35		  a += (typeof window.tc_vars !== 'undefined' ? window.tc_vars.env : '');
36		  a += '<br/>'; 
37		  a += 'Version du fichier TagCo = '; 
38		  a += tC.containersLaunched["3550"]["2"]["v"];
39		  a += '<br/>'; 
40		  a += '****************************************************************************************************************';
41		  a += '<br/>';
42		  a += 'Ci-dessous la liste des evenements transmis à TagCo :';
43		  a += '<br/>';
44		  a += '(derouler la liste pour voir les infos de chaque evenement)';
45		  a += '<br/>';
46		  a += '(pour voir les nouveaux evenements, re-afficher cette popin) ';
47		  a += '<br/>';
48		  a += '<br/>';
49		  a += '<div id="liste_evt_tagco_' + id_popin.toString() + '"> Chargement en cours ...</div>';
50		  a += '<script> affichage_info_json_tagco() </script>';
51		}
52	  //
53		//
54		////////////////////////////////////////////////
55		// Fonction appelee par le code de la popin
56		////////////////////////////////////////////////
57		//
58		//
59		// Fonction pour afficher la visualisation des infos du JSON
60		function affichage_info_json_tagco(){
61			setTimeout( function(){
62				// Cibler la balise ou les infos seront chargees
63				el = document.getElementById("liste_evt_tagco_" + id_popin.toString() );
64				// Enlever le texte
65				el.innerHTML = '';
66				// Recuperation des infos TagCo
67				json_content = JSON.parse(sessionStorage.getItem("weba_hits"));
68				// Ajout des infos TagCo avec la mise en forme
69				jsonviewer = document.createElement("andypf-json-viewer");
70				el.append(jsonviewer);
71				jsonviewer.indent = 2;
72				jsonviewer.theme = "default-light";
73				jsonviewer.data = json_content;
74			}, 3000);
75		}
76		//
77		////////////////////////////////////////////////
78		// Affichage de la popin avec les informations
79		////////////////////////////////////////////////
80		//
81		//
82		// Fonction pour l'appel des fichiers JS avec callback
83		//
84		function loadFile_dtlc(file, type, callback){
85			if(type === 'js'){
86				var dialog_jquery = document.createElement("script");
87				dialog_jquery.src = file;
88				dialog_jquery.onload =() => callback(file);
89				document.body.appendChild(dialog_jquery);
90			} else if (type === 'css'){
91				var dialog_jquery = document.createElement("link");
92				dialog_jquery.setAttribute("rel", "stylesheet");
93				dialog_jquery.href = file;
94				dialog_jquery.onload =() => callback(file);
95				document.body.appendChild(dialog_jquery);
96			}
97		}
98		//
99		// Fonction pour declencher l'affichage de la pop-in
100		//
101		function createDialog(title, text) {
102		  return $("<div class='dialog' title='" + title + "'><p>" + text + "</p></div>").dialog(
103		  {
104			width: 800,
105			height: 500,
106			});
107		}
108		//
109		///////////////////////////
110		// Affichage de la pop-in
111		///////////////////////////
112		// 
113		//
114		// Prealable : supprimer la fonction define qui peut exister sur certaines pages (conflits avec la fonction define de jquery-ui)
115		delete define;
116		// Chargement des fichiers
117		loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-1.12.4.js', 'js',function(){
118			loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-ui.js','js', function(){
119				loadFile_dtlc('https://www.stats.bouyguestelecom.fr/js/extension_bytel_weba/librairies/jquery-ui.css','css',function(){
120					createDialog(titre_avec_version, a);
121				})
122			})
123		})
124		//
125		// Gestion de la mise en avant de la pop-in
126		//
127		miseAvantPopin = function(){
128			x = document.querySelectorAll(".ui-front");
129			for(var i=0; i<x.length ; i++){
130			x[i].style.zIndex = 6000000000;
131			}
132		};
133		//
134		// Appel de la mise en avant de la pop-in pendant plus de 5 secondes
135		//
136		if(typeof weba_toolbox !== 'undefined'){
137			weba_toolbox.repetition_limite(miseAvantPopin,1000,6)
138		}
139	}
140} // Suite mecanique si erreur
141catch(err){
142	// affichage de la pop-in avec message information
143	a = 'Erreur : Pas de fichier TagCo';
144	a += '   ';
145	a += err
146	alert(a);
147}

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.