Skip to content

Commit

Permalink
change variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
SarabjitS committed Nov 10, 2023
1 parent 7784240 commit b1765e6
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@ const bar2 = document.querySelector(".bar2");
const bar3 = document.querySelector(".bar3");
const darkModeToggle = document.querySelector(".dark-mode-toggle");
const tooltipTriggerList = document.querySelector('[data-bs-toggle="tooltip"]');
let tooltipList = new bootstrap.Tooltip(tooltipTriggerList, {
trigger: "hover",
});

// const tooltip = bootstrap.Tooltip.getInstance("toolTiplist"); // Returns a Bootstrap tooltip instance

// setContent example
// tooltipList.setContent({ ".tooltip-inner": "another title" });
//Variables defined

let opening = [];
let moveIndex = -1;
Expand All @@ -59,6 +50,9 @@ let isPlay = false;
let speed = 750;
let isSpeed = false;
let isDropdownOpen = false;
let toolTip = new bootstrap.Tooltip(tooltipTriggerList, {
trigger: "hover",
});
let clickEvent = (function () {
if ("ontouchstart" in document.documentElement === true) return "touchstart";
else return "click";
Expand Down Expand Up @@ -145,9 +139,6 @@ darkModeToggle.addEventListener("click", () => {
});

hamburger.addEventListener("click", () => {
// tooltipList = new bootstrap.Tooltip(tooltipTriggerList, {
// trigger: "hover",
// });
isDropdownOpen = !isDropdownOpen;
if (isDropdownOpen) {
addAnimateBars();
Expand Down Expand Up @@ -340,7 +331,6 @@ testBtn.addEventListener("click", function () {
testStart();
buttonsOnTestMode();
testBtn.classList.add("add-color");
console.log(testBtn.classList);
} else {
disableButton(hintBtn);
isTestMode = false;
Expand Down Expand Up @@ -397,7 +387,7 @@ function removeDropdownMenuArrow() {
document.getElementById("nav-menu").classList.remove("show-menu");
// tooltipList.hide();
// document.querySelector(".tt").classList.add("hidden");
tooltipList.hide();
toolTip.hide();
}

// Shows the modal to select opening
Expand Down

0 comments on commit b1765e6

Please sign in to comment.