diff --git a/web-app/django/VIM/apps/instruments/static/instruments/css/index.css b/web-app/django/VIM/apps/instruments/static/instruments/css/index.css index e25b5ce..ed5a800 100644 --- a/web-app/django/VIM/apps/instruments/static/instruments/css/index.css +++ b/web-app/django/VIM/apps/instruments/static/instruments/css/index.css @@ -57,6 +57,7 @@ hr { font-weight: bold; color: #435334; font-size: 20px; + width: 30px; } .display-btn:focus { diff --git a/web-app/django/VIM/apps/instruments/static/instruments/images/no-image.svg b/web-app/django/VIM/apps/instruments/static/instruments/images/no-image.svg new file mode 100644 index 0000000..adb893b --- /dev/null +++ b/web-app/django/VIM/apps/instruments/static/instruments/images/no-image.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/web-app/django/VIM/apps/instruments/static/instruments/js/DisplayMode.js b/web-app/django/VIM/apps/instruments/static/instruments/js/DisplayMode.js index 6b5566b..f3fe63a 100644 --- a/web-app/django/VIM/apps/instruments/static/instruments/js/DisplayMode.js +++ b/web-app/django/VIM/apps/instruments/static/instruments/js/DisplayMode.js @@ -68,20 +68,17 @@ stdBtn.addEventListener("click", () => { function setMasonryView() { - // Wait for the DOM to be fully loaded - document.addEventListener("DOMContentLoaded", function () { - // Initialize Masonry - var masonryGrid = document.getElementById("masonry-view"); - var masonry = new Masonry(masonryGrid, { - percentPosition: true, - }); - - // Initialize ImagesLoaded - var imgLoad = imagesLoaded(masonryGrid); - - // When all images are loaded, relayout Masonry - imgLoad.on("always", function () { - masonry.layout(); - }); + // Initialize Masonry + var masonryGrid = document.getElementById("masonry-view"); + var masonry = new Masonry(masonryGrid, { + percentPosition: true, + }); + + // Initialize ImagesLoaded + var imgLoad = imagesLoaded(masonryGrid); + + // When all images are loaded, relayout Masonry + imgLoad.on("always", function () { + masonry.layout(); }); } \ No newline at end of file diff --git a/web-app/django/VIM/apps/instruments/templates/instruments/listView.html b/web-app/django/VIM/apps/instruments/templates/instruments/includes/listView.html similarity index 91% rename from web-app/django/VIM/apps/instruments/templates/instruments/listView.html rename to web-app/django/VIM/apps/instruments/templates/instruments/includes/listView.html index 4ecad36..7b91460 100644 --- a/web-app/django/VIM/apps/instruments/templates/instruments/listView.html +++ b/web-app/django/VIM/apps/instruments/templates/instruments/includes/listView.html @@ -1,3 +1,5 @@ +{% load static %} +