PageSourceSearch

https://www.cdad47.info/templates/cdad47/template.js?1791321281

js cdad47.info collected 2026-10-06 21:14:54 UTC 7,440 bytes, 259 lines download raw bytes

1menuState = false;
2$( "#show-menu" ).click(function() {
3if( $('#show-menu').is(':checked') ){
4	$('#menu').slideDown('normal'); menuState = true;
5   	$('#header').css('position','relative'); 
6} else {
7	$('#menu').slideUp('fast'); menuState = false;
8	$('#header').css('position','fixed');
9}
10});
11
12
13$(window).load(function(){  // diaporama 
14$("#gall img").each(function() {// alert($(this).attr('src'));
15//$(this).load(function() {
16$(this).fadeIn( "slow" );
17});});
18
19
20$(document).ready(function() {
21$('#header').css('position','fixed');
22$(".header_ministere").css("top", "-444px").animate({top: "0"}, 2000);
23//-------------------------------------- menu bas
24$(window).scroll(function(){
25	posScroll = $(document).scrollTop()/2000;//alert(posScroll);
26	$('.fond').css({ 'background-color': 'rgba(0, 0, 0, '+posScroll+')' });
27});
28});
29
30//  --------------- scroll
31if (typeof jQuery != 'undefined') {
32$(document).ready(function(){
33$('a.scrollToBottom').click(function(){ //a.scrollToBottom'
34$('html, body').animate({scrollTop: $(document).height()}, 'slow');
35return false; 
36});	     
37$('a.scrollToTop').click(function(){  //a.scrollToTop
38$('html, body').animate({scrollTop:0}, 'slow');            
39return false;      
40}); 
41})
42}
43// fonctions editeur 
44window.onload = function () {
45if (window.parent.endloadpage){ window.parent.endloadpage(id_page); }
46}
47
48function stopError() {
49return true;}
50window.onerror = stopError;
51
52function favoris(){
53browserName = navigator.appName;
54browserVer = parseInt(navigator.appVersion);
55if (browserName == "Microsoft Internet Explorer" & browserVer >= 4) {
56window.external.AddFavorite(location.href, document.title);
57}else {alert("Cette fonction n'est proposée que par Internet Explorer")}} 
58
59
60	// Contact Form Request
61	$(".validate").validate();
62	$(document).on('submit', '#contactform', function() { 
63		$.ajax({
64			url : 'cdad47/send_mail.php',
65			type : 'post',
66			dataType : 'json',
67			data : $(this).serialize(),
68			success : function(data) {
69				if (data == true) {
70					$('.form-respond').html("<div class='content-message'> <i class='fa fa-rocket fa-4x'></i> <h2>Votre message est en route</h2> </div>");
71				} else {
72					$('.form-respond').html("<div class='content-message'> <i class='fa fa-times fa-4x'></i> <h2>Error</h2> <p>Try later please.</p> </div>");
73				}
74			},
75			error : function(xhr, err) {
76				$('.form-respond').html("<div class='content-message'> <i class='fa fa-times fa-4x'></i> <h2>Error</h2> <p>Try later please.</p> </div>");
77			}
78		});
79		return false;
80	});
81	
82	
83	
84	//-------------------------------------------- Zoom.js
85function agrandissement_alt(nomimg) {
86curentimg = document.getElementById(nomimg);
87oldpos= posScroll;
88window.setTimeout("if(oldpos==posScroll){$(curentimg).get(0).click();}",50);
89return false;
90}
91
92function agrandissement(nomimg) {
93curentimg = document.getElementById(nomimg);
94$(curentimg).trigger('touchstart'); 
95$(curentimg).get(0).click();
96return false;
97}
98
99$(document).ready(function(){
100		$('.swipebox').swipebox();
101$('#TheEditeur1 img').each(function() { 
102$(this).css('cursor', 'pointer');
103obj_img_src = this.src; 
104var img_src = obj_img_src.split("/");
105original = img_src[6];
106obj_img_src = img_src[6].slice(4);
107if (img_src[6].substr(0,4)=="opt_"){
108$(document.body).append('<a class="swipebox liens" href="../abo/'+identifiant+'/images/'+obj_img_src+'" id="'+original+'" title="">lien '+original+'</a>');
109}
110});
111$(".liens").hide();
112
113// Fermeture player swipebox
114$(function(){
115$(document.body)
116.on('click touchend','#swipebox-slider .current img', function(e){
117return false;
118})
119.on('click touchend','#swipebox-slider .current', function(e){
120$('#swipebox-close').trigger('click');
121});
122});
123});
124
125$(window).bind('mousewheel DOMMouseScroll', function(event){ 
126if (event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) {
127if ( $.swipebox.isOpen ) { $('#swipebox-next').get(0).click();}
128}
129else {
130if ( $.swipebox.isOpen ) {$('#swipebox-prev').get(0).click();}
131}
132});
133
134$(document).ready(function(){
135$('.wrapperloading').fadeOut();
136scolldown();
137$(window).resize(function() { // height de nivo en responsive
138var sH = $(window).height(); 
139$('.nivoSlider').css('max-height', sH + 'px');
140}).resize()
141
142$('#menu').find('a').on('click touchend', function(event) {
143if (this.text == 'Contact') {
144	event.preventDefault();	
145	//alert();
146	$('html, body').stop().animate({
147scrollTop : $('#footerD').offset().top - 59
148}, 1000, '');
149}
150
151});
152
153});
154
155$(window).scroll(function() { // on change opacity des items header
156var scrolled = ($(window).scrollTop()/800); 
157$('.pulse-down').css({ 'opacity': 1 - scrolled });
158});
159
160function scolldown(){ 
161$('.pulse-down, #ecart').on('click touchend', function(e) { // clic sur scroll down
162$('html, body').stop().animate({
163scrollTop : $('#content').offset().top - 59
164}, 1000, '');
165});
166}
167
168$(document).ready(function() {
169  var duration = 500;
170  $(window).scroll(function() {
171    if (jQuery(this).scrollTop() > 100) {
172      // Si un défillement de 100 pixels ou plus.   // Ajoute le bouton
173      $('.cRetour').fadeIn(duration);
174    } else {  // Sinon enlève le bouton
175      $('.cRetour').fadeOut(duration);
176    }
177  });
178				
179  $('.cRetour').click(function(event) {  // Un clic provoque le retour en haut animé.
180    event.preventDefault();
181    $('html, body').animate({scrollTop: 0}, duration);
182    return false;
183  })
184  
185  $('#choix > li').click(function(event) {  //scroll des massages
186	cible= $(this).attr('id');
187	   window.location='cdad47.php?id_page=3#'+cible; 
188  });
189  
190	var hash = window.location.hash; 
191	if (hash) {
192	$('html, body').stop().animate({
193	scrollTop : $(hash).offset().top - 110
194	}, 1000, '');		
195	} else {}
196
197 $('.btx').click(function(event) {
198var choixmas = event.target.id; // alert (choixmas);
199});	 
200	 
201
202});
203
204
205$(document).ready(function() {
206/* Preload */
207$('#loader-wrapper').fadeOut('slow');
208
209
210wow = new WOW(
211{
212boxClass:     'wow',      // default
213animateClass: 'animated', // default
214offset:       0,          // default
215mobile:       true,       // default
216live:         true        // default
217}
218)
219wow.init();
220
221
222
223
224
225
226/* Transition */
227$('#suiv').attr('class', 'animsition-link') ;
228$('#suiv').attr('data-animsition-out', 'fade-out-left-lg') ;
229$('#prev').attr('class', 'animsition-link') ;
230$('#prev').attr('data-animsition-out', 'fade-out-right-lg') ;
231
232//$('#menu').find('a').each(function() { 
233//$(this).attr('class', 'animsition-link') ;   
234//});
235$(".animsition").animsition({
236    inClass               :   'fade-in-up-lg',
237    outClass              :   'fade-out-down-lg',
238    inDuration            :    500,
239    outDuration           :    500,
240    linkElement           :   '.animsition-link', 
241    // e.g. linkElement   :   'a:not([target="_blank"]):not([href^=#])'
242    loading               :    false,
243    loadingParentElement  :   'body', //animsition wrapper element
244    loadingClass          :   'animsition-loading',
245    unSupportCss          : [ 'animation-duration',
246                              '-webkit-animation-duration',
247                              '-o-animation-duration'
248                            ],
249    //"unSupportCss" option allows you to disable the "animsition" in case the css property in the array is not supported by your browser. 
250    //The default setting is to disable the "animsition" in a browser that does not support "animation-duration".
251    
252    overlay               :   false,
253    
254    overlayClass          :   'animsition-overlay-slide',
255    overlayParentElement  :   'body'
256  });
257});
258
259

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.