mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
Sri (#35)
* added django-sri and updated templates. * updated requirements.txt * datatables with integrity * fixed recent comics not showing when related comicstatus doesnt exist. * fixed classifications on recent comcis. * fixed classifications on recent comcis. * fixed classifications on recent comcis. * fixed classifications on recent comcis. * fixed classifications on recent comcis. * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fixes for pymupdy 1.18.13 * fix for pdf's not switching properly * fix for comics's not switching properly * fix for comics's not switching properly
This commit is contained in:
@@ -32,30 +32,30 @@ Reveal.on( 'slidechanged', event => {
|
||||
|
||||
const hammertime = new Hammer(document.getElementById('comic_box'), {});
|
||||
hammertime.on('swipeleft', function (ev) {
|
||||
if (Reveal.isLastSlide()){
|
||||
window.location = "/comic/read/"+ nav.next_path +"/"
|
||||
} else {
|
||||
Reveal.next()
|
||||
}
|
||||
nextPage()
|
||||
});
|
||||
hammertime.on('swiperight', function (ev) {
|
||||
if (Reveal.isFirstSlide()){
|
||||
window.location = "/comic/read/"+ nav.prev_path +"/"
|
||||
} else {
|
||||
Reveal.prev();
|
||||
}
|
||||
prevPage()
|
||||
});
|
||||
|
||||
function prevPage() {
|
||||
if (Reveal.isFirstSlide()){
|
||||
window.location = "/comic/read/"+ nav.prev_path +"/"
|
||||
if (nav.prev_type === 'ComicBook'){
|
||||
window.location = "/comic/read/"+ nav.prev_path +"/"
|
||||
} else {
|
||||
window.location = "/comic/"+ nav.prev_path +"/"
|
||||
}
|
||||
} else {
|
||||
Reveal.prev();
|
||||
}
|
||||
}
|
||||
function nextPage() {
|
||||
if (Reveal.isLastSlide()){
|
||||
window.location = "/comic/read/"+ nav.next_path +"/"
|
||||
if (nav.next_type === 'ComicBook'){
|
||||
window.location = "/comic/read/"+ nav.next_path +"/"
|
||||
} else {
|
||||
window.location = "/comic/"+ nav.next_path +"/"
|
||||
}
|
||||
} else {
|
||||
Reveal.next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user