Skip to content

Commit

Permalink
Performance improvements for filter comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
linfindel authored Oct 31, 2023
1 parent 4581a7e commit 94429d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions filters.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ <h1>Image Viewer</h1>
</button>
</div>
</div>

<img id="original" style="display: none; max-width: 60vw; max-height: 60vh;" crossorigin="anonymous">

<img id="img" style="max-width: 60vw; max-height: 60vh;" crossorigin="anonymous">

<div class="card column" id="filters" style="width: 50vw;">
Expand Down
2 changes: 0 additions & 2 deletions filters.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const urlParams = new URLSearchParams(queryString);
const url = urlParams.get('url');

const img = document.getElementById("img");
const originalImg = document.getElementById("original");

img.src = url;
originalImg.src = url;
document.getElementById("back-link").href = `index.html?url=${url}`;

var filters;
Expand Down

0 comments on commit 94429d2

Please sign in to comment.