Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 1417 | Rev 1419 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1417 Rev 1418
Line 10... Line 10...
10
		var html = $("#smartflore-sources").html();
10
		var html = $("#smartflore-sources").html();
Line 11... Line 11...
11
	
11
	
12
	    $(w.document.body).html(html);
12
	    $(w.document.body).html(html);
Line 13... Line -...
13
	}
-
 
14
	
13
	}
15
	if(navigator.userAgent.match(/Android/i)){
-
 
Line 16... Line 14...
16
	    window.scrollTo(0,1);
14
	
17
	}
15
	toggleFullScreen();
18
	
16
	
19
	//TODO gérer la fonction de swipe sur le téléphone
17
	//TODO gérer la fonction de swipe sur le téléphone
Line 25... Line 23...
25
		});  
23
		});  
26
		$('#slider-pictures').swipeleft(function() {  
24
		$('#slider-pictures').swipeleft(function() {  
27
			$('#slider-pictures').carousel('next');  
25
			$('#slider-pictures').carousel('next');  
28
		});
26
		});
29
	}*/
27
	}*/
30
});
-
 
31
28
});
-
 
29
 
-
 
30
// http://www.html5rocks.com/en/mobile/fullscreen/?redirect_from_locale=fr
-
 
31
function toggleFullScreen() {
-
 
32
	var doc = window.document;
-
 
33
	var docEl = doc.documentElement;
-
 
34
	
-
 
35
	var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
-
 
36
	var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen;
-
 
37
	
-
 
38
	if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
-
 
39
		requestFullScreen.call(docEl);
-
 
40
	}
-
 
41
	else {
-
 
42
		cancelFullScreen.call(doc);
-
 
43
	}
-
 
44
}
-
 
45
32
46