PageSourceSearch

https://www.cartegrise.com/skin/frontend/boilerplate/process2017/js/custom_noindex.js

js cartegrise.com collected 2026-10-04 13:28:26 UTC 1,884 bytes, 74 lines download raw bytes

1
2/* Obfuscation des liens */
3
4jQuery(document).ready(function($) {
5  
6	// Récupérer tous les faux-liens.	 
7	var link = $('[role="link"]');
8	/*
9	
10	// Fonction de transformation de l'attribut data-href en href. 	
11	function transformHref(theLink){
12		// Récupérer la valeur de l'attribut data-href. 
13		var linkHref = theLink.attr('data-href');
14		
15		// Transformer l'attribut data-href en href 
16		theLink.removeAttr('data-href').attr('href', linkHref);
17	}
18	
19	// Exécuter la fonction au survol du document. 
20	$(document).hover(function() {
21	  link.each(function(){
22		transformHref($(this));
23	  });
24	});
25	
26	// Exécuter la fonction au focus n'importe où dans le document.
27	$(document).focusin(function() {
28	  link.each(function(){
29		transformHref($(this));
30	  });
31	});*/
32	
33	
34	// Exécuter la fonction au clic pour que les personnes pilotant à la voix puissent accéder au lien sans survol ni focus. 
35	link.each(function(){
36	  $(this).click(function() {
37		var decodedUrl = $(this).attr("data-href");
38
39		if (decodedUrl !== undefined) {
40
41			if ($(this).attr("target")) {
42				window.open(decodedUrl, $(this).attr("target"));
43			}
44			else {
45				document.location.href = decodedUrl;
46			}
47		}
48		//transformHref($(this));
49	  });
50	});
51});
52
53
54/* Ancienne version avec span data-atc */
55// Note : sur les éléments qui sont amenés à être masqués/réaffichés il faut manuellement ajouter le onclick (certains navigateurs mobiles ou quand on resize la fenêtre)
56/*
57function followATCLink(elem) {
58	// console.log("decode link: "+elem.attr("data-atc"));
59	var decodedUrl = decodeURIComponent(window.atob(elem.attr("data-atc")));
60	if (elem.attr("data-target")) {
61		window.open(decodedUrl, elem.attr("data-target"));
62	}
63	else {
64		document.location.href = decodedUrl;
65	}
66}
67
68jQuery(document).ready(function($) {
69	$(".atc").not('.atc-manual').click(function() {
70		followATCLink($(this));
71	});
72});
73*/
74

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.