Skip to content

Commit

Permalink
Remove tooltips constant since is only used once
Browse files Browse the repository at this point in the history
  • Loading branch information
agatemosu committed Mar 8, 2024
1 parent 1e6807e commit 99ee3fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const hash = location.hash.substring(1);
const tooltips = document.querySelectorAll(".tooltip");
const defaultColors = ["#ff7f7e", "#ffbf7f", "#feff7f", "#7eff80", "#7fffff", "#807fff", "#ff7ffe"];

let scrollable = true;
Expand All @@ -11,7 +10,7 @@ if (hash.length <= 0) {
load();
}

tooltips.forEach((tooltip, index) => {
document.querySelectorAll(".tooltip").forEach((tooltip, index) => {
const defaultColor = defaultColors[index];
const colorPicker = tooltip.querySelector(".color-picker");

Expand Down

0 comments on commit 99ee3fa

Please sign in to comment.