Skip to content

Commit

Permalink
minor fixes and code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
prathmesh-ka-github committed Apr 7, 2024
1 parent 77dfe61 commit 4eaa582
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
function coloring() {
const color = document.querySelectorAll('.box')

color.forEach(color => {

getId = color.id
Expand All @@ -21,7 +20,6 @@ function coloring() {
}
coloring()


function insertImage() {
document.querySelectorAll('.box').forEach(image => {
if (image.innerText.length !== 0) {
Expand All @@ -42,7 +40,6 @@ insertImage()


//function to not remove the same team element

function reddish() {
document.querySelectorAll('.box').forEach(i1 => {
if (i1.style.backgroundColor == 'cadetblue') {
Expand Down Expand Up @@ -151,20 +148,19 @@ document.querySelectorAll('.box').forEach(item => {
insertImage()
checkchecks()
}

})
}
getId = item.id
arr = Array.from(getId)
arr.shift()
current = eval(arr.join(''))
aside = eval(arr.pop())
console.log('aside = ' + aside)
// console.log('aside = ' + aside)
arr.push('0')
aup = eval(arr.join(''))
console.log('aup = ' + aup)
// console.log('aup = ' + aup)
a = aside + aup
console.log('a = ' + a)
// console.log('a = ' + a)


// Function to display the available paths for all pieces
Expand Down

0 comments on commit 4eaa582

Please # to comment.