Skip to content

Commit

Permalink
make debugging message a little more descriptive for the code at this…
Browse files Browse the repository at this point in the history
… point
  • Loading branch information
Brian Ressler committed Aug 6, 2024
1 parent 04188c4 commit 5444c06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _static/uicontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
document.addEventListener("DOMContentLoaded", function() {
function get_missing_images() {
let page_images = document.getElementsByTagName("img");
console.log("Locating ommited images...");

if(page_images != null) {
for(let i = 0; i < page_images.length; i++) {
Expand All @@ -12,7 +13,7 @@ document.addEventListener("DOMContentLoaded", function() {

if(split_image != null) {
if(split_image.length == 2) {
console.log("Current Image: " + split_image[1]);
console.log("Missing Image: " + split_image[1]);
}
}
}
Expand All @@ -26,7 +27,7 @@ document.addEventListener("DOMContentLoaded", function() {

function optimize_images() {
let page_images = document.getElementsByTagName("img");
console.log("Page Images:");
console.log("Optimizing Images...");

if(page_images != null) {
let image_arr = Array.prototype.slice.call(page_images);
Expand Down

0 comments on commit 5444c06

Please sign in to comment.