Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1418 → Rev 1419

/trunk/modules/mobile/presentations/js/mobile.js
1,10 → 1,17
$(document).ready(function() {
// Activation du carousel d'images
$('#smartflore-illustrations-galerie-carousel').carousel();
$('#smartflore-illustrations-galerie-carousel').carousel()
// Pour que les sources s'affichent dans une nouvelle fenêtre
$('#smartflore-footer-button-sources').click(function() {
voirSources();
});
// Pour faire disparaître la barre d'url du navigateur sur le premier toucher de l'utilisateur
$('body').on('click', '*', function() {
screenfull.request();
});
function voirSources() {
var w = window.open();
var html = $("#smartflore-sources").html();
11,34 → 18,4
$(w.document.body).html(html);
}
toggleFullScreen();
//TODO gérer la fonction de swipe sur le téléphone
// Slider images : bootstrap
/*if (document.getElementById('slider-pictures')) {
$('#slider-pictures').hide();
$('#slider-pictures').swiperight(function() {
$('#slider-pictures').carousel('prev');
});
$('#slider-pictures').swipeleft(function() {
$('#slider-pictures').carousel('next');
});
}*/
});
 
// http://www.html5rocks.com/en/mobile/fullscreen/?redirect_from_locale=fr
function toggleFullScreen() {
var doc = window.document;
var docEl = doc.documentElement;
var requestFullScreen = docEl.requestFullscreen || docEl.mozRequestFullScreen || docEl.webkitRequestFullScreen || docEl.msRequestFullscreen;
var cancelFullScreen = doc.exitFullscreen || doc.mozCancelFullScreen || doc.webkitExitFullscreen || doc.msExitFullscreen;
if(!doc.fullscreenElement && !doc.mozFullScreenElement && !doc.webkitFullscreenElement && !doc.msFullscreenElement) {
requestFullScreen.call(docEl);
}
else {
cancelFullScreen.call(doc);
}
}
});
/trunk/modules/mobile/presentations/css/smartflore.css
1,5 → 1,7
#smartflore-fiche #smartflore-entete h1 {
font-size: 3.5em;
margin-top: 10px;
margin-bottom: -10px;
}
 
#smartflore-fiche .smartflore-titre-section {
39,7 → 41,7
}
 
#smartflore-fiche #smart-flore-logo-tela {
bottom: 15px;
bottom: 15px;
height: 80px;
position: relative;
}
138,6 → 140,18
#smartflore-illustrations .carousel-inner {
height: 40vh;
}
#smartflore-fiche #smart-flore-logo-tela {
bottom: 13px;
height: 7vh;
position: relative;
min-height: 40px;
}
#smartflore-fiche #smartflore-entete h1 {
margin-top: -3px;
margin-bottom: -6px;
}
}
 
@media all and (orientation:landscape) {
144,4 → 158,9
#smartflore-illustrations .carousel-inner {
height: 90vh;
}
#smartflore-fiche #smartflore-entete h1 {
margin-top: -10px;
margin-bottom: -10px;
}
}
/trunk/modules/mobile/squelettes/smartflore.tpl.html
32,6 → 32,7
<script src="http://www.tela-botanica.org/commun/jquery/photoswipe/3.0.5/klass.min.js"></script>
<script src="http://www.tela-botanica.org/commun/jquery/photoswipe/3.0.5/code.photoswipe.jquery-3.0.5.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<script src="https://raw.githubusercontent.com/sindresorhus/screenfull.js/gh-pages/dist/screenfull.js"></script>
<script src="modules/mobile/presentations/js/mobile.js"></script>
<style>