Skip to content

Commit

Permalink
fixing minor things for deployment using GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankit-Matth authored Jan 1, 2024
1 parent c3a060e commit 9f8b9e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function checkOverflow() {

moreBtns.addEventListener('click', () => {

if (moreBtns.firstElementChild.getAttribute('src') === "/images/moreBtns.png") {
moreBtns.firstElementChild.setAttribute("src", "/images/simpleCalc.png")
if (moreBtns.firstElementChild.getAttribute('src') === "images/moreBtns.png") {
moreBtns.firstElementChild.setAttribute("src", "images/simpleCalc.png")
let arrTop = Array.from(document.getElementsByClassName('simpleCalcTopBtns'))
let arrBtns = Array.from(document.getElementsByClassName('simpleCalcBtns'))
arrTop.forEach(element => {
Expand All @@ -30,7 +30,7 @@ moreBtns.addEventListener('click', () => {
del.parentElement.style.lineHeight = "0.5rem"
ansDisplay.focus()
} else {
moreBtns.firstElementChild.setAttribute("src", "/images/moreBtns.png")
moreBtns.firstElementChild.setAttribute("src", "images/moreBtns.png")
let arrTop = Array.from(document.getElementsByClassName('topBtns'))
let arrBtns = Array.from(document.getElementsByClassName('smallBtns'))
arrBtns.forEach(element => {
Expand Down Expand Up @@ -397,4 +397,4 @@ function closeModal() {
const info = document.getElementById('info');
info.addEventListener('click', function () {
openModal();
});
});

0 comments on commit 9f8b9e3

Please sign in to comment.