{{bookmarkTime(item)}}
{{item.title}}
{{getDomainURL(item.url)}}
@@ -135,6 +138,7 @@ loading: true, bookmarks: [], checkedBookmarks: [], + showImage: true, inputBookmark: { index: -1, id: -1, @@ -387,7 +391,13 @@ return finalBookmarkTime; }, + toggleImage: function () { + this.showImage = !this.showImage; + if (this.showImage) localStorage.setItem('show-image', ''); + else localStorage.removeItem('show-image'); + }, bookmarkImage: function (book) { + if (!this.showImage) return ""; if (book.imageURL === "") return ""; return "background-image: url(" + book.imageURL + ")"; }, @@ -450,7 +460,9 @@ } }, mounted: function () { + this.showImage = localStorage.getItem('show-image') !== null; this.windowWidth = window.innerWidth; + window.addEventListener('resize', function () { app.windowWidth = window.innerWidth; })