Photoswipe rollback, rimossa chiamata a font mancante su mobile

Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
Riccardo Di Dato
2017-07-28 13:53:54 +02:00
parent 6b86475a19
commit 3e6e2ecfe6
5 changed files with 32 additions and 39 deletions
+16
View File
@@ -391,6 +391,22 @@ GUIHandler::generateHtmlHeaders(array("additionalMetadata"=>$additionalHeaders,"
</div>
<script type="text/javascript">
function loadImage(pos){
var pswpElement = document.querySelectorAll('.pswp')[0];
//build items array
pos = parseInt(pos);
//define options (if needed)
var options = {
index: pos // start at slide
};
//Initializes and opens PhotoSwipe
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
gallery.init();
}
$(document).ready(function(event){
// $("video").on('loadstart',function (event){
// var wid = $(this).innerWidth();
-16
View File
@@ -97,19 +97,3 @@ function printNews(newsId){
openPagePost("printPage.php",[{name:'id',value:newsId}],true);
}
function loadImage(pos){
var pswpElement = document.querySelectorAll('.pswp')[0];
//build items array
pos = parseInt(pos);
//define options (if needed)
var options = {
index: pos // start at slide
};
//Initializes and opens PhotoSwipe
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
gallery.init();
}
+16
View File
@@ -328,6 +328,22 @@ GUIHandlerMobile::generateHtmlHeaders(array("additionalMetadata"=>$additionalHea
<!-- </div> -->
<script type="text/javascript">
function loadImage(pos){
var pswpElement = document.querySelectorAll('.pswp')[0];
//build items array
pos = parseInt(pos);
//define options (if needed)
var options = {
index: pos // start at slide
};
//Initializes and opens PhotoSwipe
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
gallery.init();
}
$(document).ready(function(event){
$("#submit").click(function (){
-17
View File
@@ -96,20 +96,3 @@ function openMenuWithRegistrationPage(){
openRegistration();
$(".loginContainer").trigger("open");
}
function loadImage(pos){
var pswpElement = document.querySelectorAll('.pswp')[0];
//build items array
pos = parseInt(pos);
//define options (if needed)
var options = {
index: pos // start at slide
};
//Initializes and opens PhotoSwipe
var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
gallery.init();
}
-6
View File
@@ -1,10 +1,4 @@
@CHARSET "UTF-8";
@font-face {
font-family: 'Bebas Neue';
font-style: normal;
font-weight: normal;
src: local('Bebas Neue'), url('BebasNeue.woff') format('woff');
}
a{text-decoration:none;}
body{font-family:lato, arial;}