Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1419 → Rev 1418

/trunk/modules/mobile/presentations/css/smartflore.css
1,7 → 1,5
#smartflore-fiche #smartflore-entete h1 {
font-size: 3.5em;
margin-top: 10px;
margin-bottom: -10px;
}
 
#smartflore-fiche .smartflore-titre-section {
41,7 → 39,7
}
 
#smartflore-fiche #smart-flore-logo-tela {
bottom: 15px;
bottom: 15px;
height: 80px;
position: relative;
}
140,18 → 138,6
#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) {
158,9 → 144,4
#smartflore-illustrations .carousel-inner {
height: 90vh;
}
#smartflore-fiche #smartflore-entete h1 {
margin-top: -10px;
margin-bottom: -10px;
}
}
/trunk/modules/mobile/presentations/js/mobile.js
1,17 → 1,10
$(document).ready(function() {
// Activation du carousel d'images
$('#smartflore-illustrations-galerie-carousel').carousel();
// Pour que les sources s'affichent dans une nouvelle fenêtre
$('#smartflore-illustrations-galerie-carousel').carousel()
$('#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();
18,4 → 11,34
$(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/squelettes/smartflore.tpl.html
32,7 → 32,6
<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>