PageSourceSearch

https://irabois.fr/squelettes/js/script.js

js irabois.fr collected 2026-10-08 07:22:28 UTC 2,219 bytes, 77 lines download raw bytes

1
2	/* Document chargé */
3	$(document).ready(function() {
4		
5		/* apparitions des éléments animés */
6		apparitions();
7	
8		/* Formulaire d'inscription */
9		$("#formulaire_formidable-1 input[type='submit']").click(function() { 
10		
11			/* on récupère la valeur des 2 champs email */
12			email = $("#champ_input_7").val();
13			email2 = $("#champ_input_9").val();
14			
15			if(email==email2) { } else {
16				
17				/* on ajoute la classe erreur aux champs */
18				$("#champ_input_7").addClass("erreur"); 
19				$("#champ_input_9").addClass("erreur"); 
20				
21				/* pas de retour */
22				return false;
23				
24			}
25		
26		});
27		
28		/* préremplissage du formulaire de modification des coordonnées */
29		if($("body").data("id")=="23") {
30			
31			$("#champ_input_1").val($(".texte + ul li:nth-child(2) strong").html());
32			$("#champ_input_2").val($(".texte + ul li:nth-child(3) strong").html());
33			$("#champ_input_3").val($(".texte + ul li:nth-child(4) strong").html());
34			$("#champ_input_4").val($(".texte + ul li:nth-child(5) strong").html());
35			$("#champ_input_5").val($(".texte + ul li:nth-child(6) strong").html());
36			$("#champ_input_6").val($(".texte + ul li:nth-child(7) strong").html());
37			$("#champ_input_7").val($(".texte + ul li:nth-child(8) strong").html());
38		}
39	
40	});
41	
42	/* Scroll de la page */
43	$(window).scroll( function(){
44		
45		/* apparitions des éléments animés */
46		apparitions();
47    
48    });
49	
50	/* Changement de résolution */
51	$(window).resize(function() {
52	
53		
54	
55	});
56	
57	/* apparitions des éléments animés */
58	function apparitions() {
59		
60		/* Check the location of each desired element */
61        $('.apparition').each( function(i){
62            
63            var top_of_object = $(this).offset().top + ($(this).innerHeight()/2) ;
64			var top_of_object2 = $(this).offset().top + 100 ;
65			if(top_of_object2<top_of_object) { top_of_object=top_of_object2; }
66            var bottom_of_window = $(window).scrollTop() + $(window).height();
67            
68            /* If the object is completely visible in the window, fade it it */
69            if( bottom_of_window > top_of_object ){
70                
71                $(this).removeClass("apparition");
72                    
73            }
74             
75        }); 
76		
77	}

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.