PageSourceSearch

https://www.graine-bourgogne-franche-comte.fr/wp-content/themes/avante-child/js/main.js

js graine-bourgogne-franche-comte.fr collected 2026-09-26 10:20:42 UTC 1,322 bytes, 45 lines download raw bytes

1jQuery(document).ready(function($){
2	
3	// Liste déroulante pour les étiquettes dans les moteurs de recherche
4	// des pages ressources (Advanced Custom Search)
5	$('#acsearch select.etiquettes').select2({
6		theme: 'bootstrap4',
7		placeholder: 'Rechercher par étiquette',
8		allowClear: true
9	});
10
11	// Liste déroulante pour les étiquettes dans les moteurs de recherche
12	// des pages ressources (Advanced Custom Search)
13	$('#acsearch select.structure').select2({
14		theme: 'bootstrap4',
15		placeholder: 'Rechercher par structure',
16		allowClear: true
17	});
18
19	let ecoleDehorsGformRequiredLegend = document.querySelector('#gform_wrapper_2 .gform_required_legend');
20	if(ecoleDehorsGformRequiredLegend){
21		ecoleDehorsGformRequiredLegend.textContent = "* Indique une question obligatoire";
22	}
23
24	function clickToCopy() {
25		let buttonLink = document.getElementById('copy-to-clipboard'); 
26		let buttonOriginalLabel = buttonLink?.dataset.label;
27
28		if(!buttonLink || !buttonOriginalLabel){
29			return;
30		}
31	
32		buttonLink.addEventListener('click', () => {
33			copyText = window.location.href;
34
35			navigator.clipboard.writeText(copyText);
36			buttonLink.innerText = "URL copiée !";
37
38			setTimeout(() => {
39				buttonLink.innerText = buttonOriginalLabel;
40			}, 3000);
41		});
42	}
43	clickToCopy();
44	
45});

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.