mirror of
https://github.com/KevinMidboe/leifsopplevelser.git
synced 2025-10-29 01:30:22 +00:00
Created a temporary function that will replace thumb to lg in the url, giving us raw image in fullscreen mode.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div class="popover">
|
||||
<div class="popover-content" @click="hidePopover" v-touch:swipe.left="backwards" v-touch:swipe.right="forwards">
|
||||
<div class="image-container">
|
||||
<img :src="album[index].url" />
|
||||
<img :src="tempUrl" />
|
||||
|
||||
<div class="other-elements">
|
||||
<p>There is something here</p>
|
||||
@@ -26,16 +26,18 @@ export default {
|
||||
computed: {
|
||||
album: () => store.getters.popoverAlbum,
|
||||
index: () => store.getters.popoverAlbumIndex,
|
||||
|
||||
tempUrl: () => album[index].url.replace('thumb', 'lg')
|
||||
},
|
||||
created() {
|
||||
window.addEventListener('keyup', this.arrowNavigation)
|
||||
},
|
||||
mounted() {
|
||||
beforeMount() {
|
||||
document.ontouchmove = function (e) {
|
||||
e.preventDefault();
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
destroyed() {
|
||||
window.removeEventListener('keyup')
|
||||
document.ontouchmove = function (e) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user