Fix support for relative urls, general cleanup

This commit is contained in:
2015-12-20 09:38:22 +00:00
parent 1484d0417f
commit 89f2ca8f31
16 changed files with 46 additions and 645 deletions

View File

@@ -3,7 +3,7 @@
<head>
<title>{{ page.title }}</title>
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.5.1/mootools-yui-compressed.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/mootools/1.5.1/mootools-yui-compressed.js"></script>
<!-- Core CSS file -->
<link rel="stylesheet" href="{{ site.static_prefix }}/photo-swipe/photoswipe.css">
@@ -139,34 +139,33 @@
PhotoSwipeUI_Default,
slides,
{
index : index,
mainClass : 'pswp--minimal--dark',
barsSize : {
top: 0,
bottom: 0
},
captionEl : false,
shareEl : false,
bgOpacity : 0.85,
tapToClose : true,
tapToToggleControls : false,
history : false,
getThumbBoundsFn : function (index) {
var imgsize = slides[index].mdom.getAttribute('data-size').split('x');
var coord = slides[index].mdom.getCoordinates(true);
return {
x : coord.left,
y : coord.top,
w : coord.width
};
},
showHideOpacity: true
index : index,
mainClass : 'pswp--minimal--dark',
barsSize : {
top: 0,
bottom: 0
},
captionEl : false,
shareEl : false,
bgOpacity : 0.85,
tapToClose : true,
tapToToggleControls : false,
history : false,
getThumbBoundsFn : function (index) {
var imgsize = slides[index].mdom.getAttribute('data-size').split('x');
var coord = slides[index].mdom.getCoordinates(true);
return {
x : coord.left,
y : coord.top,
w : coord.width
};
},
showHideOpacity: true
}
);
pswp.init();
pswp.init();
} else {
pswp.goTo(index);
pswp.goTo(index);
}
}