diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/js/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js index 0d540ce..d26d3e8 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -43,6 +43,17 @@ self.addEventListener('DOMContentLoaded', function() { localStorage['pager'] = JSON.stringify(pager); })(); + (function() { + var imageAnchors = document.querySelectorAll("a"); + for(var i = 0; i < imageAnchors.length; i++){ + if (imageAnchors[i].firstElementChild) { + if (imageAnchors[i].firstElementChild.tagName === "IMG") { + imageAnchors[i].removeAttribute("href"); + } + } + } + })(); + /** * Scroll events */ |