Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1416 | Rev 1418 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1416 Rev 1417
1
$(document).ready(function() {	
1
$(document).ready(function() {	
2
	
2
	
3
	$('#smartflore-illustrations-galerie-carousel').carousel()
3
	$('#smartflore-illustrations-galerie-carousel').carousel()
4
	$('#smartflore-footer-button-sources').click(function() {
4
	$('#smartflore-footer-button-sources').click(function() {
5
		voirSources();
5
		voirSources();
6
	});
6
	});
7
	
7
	
8
	function voirSources() {
8
	function voirSources() {
9
		var w = window.open();
9
		var w = window.open();
10
		var html = $("#smartflore-sources").html();
10
		var html = $("#smartflore-sources").html();
11
	
11
	
12
	    $(w.document.body).html(html);
12
	    $(w.document.body).html(html);
13
	}
13
	}
14
	
14
	
15
	if(navigator.userAgent.match(/Android/i)){
15
	if(navigator.userAgent.match(/Android/i)){
16
	    window.scrollTo(0,1);
16
	    window.scrollTo(0,1);
17
	    window.alert("ergeg");
-
 
18
	}
17
	}
19
	
18
	
20
	//TODO gérer la fonction de swipe sur le téléphone
19
	//TODO gérer la fonction de swipe sur le téléphone
21
	// Slider images : bootstrap
20
	// Slider images : bootstrap
22
	/*if (document.getElementById('slider-pictures')) {
21
	/*if (document.getElementById('slider-pictures')) {
23
		$('#slider-pictures').hide(); 
22
		$('#slider-pictures').hide(); 
24
		$('#slider-pictures').swiperight(function() {  
23
		$('#slider-pictures').swiperight(function() {  
25
			$('#slider-pictures').carousel('prev');  
24
			$('#slider-pictures').carousel('prev');  
26
		});  
25
		});  
27
		$('#slider-pictures').swipeleft(function() {  
26
		$('#slider-pictures').swipeleft(function() {  
28
			$('#slider-pictures').carousel('next');  
27
			$('#slider-pictures').carousel('next');  
29
		});
28
		});
30
	}*/
29
	}*/
31
});
30
});