Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug bettle #61

Open
wants to merge 3 commits into
base: bug-beatles
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions bug-beatles/modern_chair/chair.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,29 @@ <h4>$254 <span>$530</span></h4>
<h5>Choose Color:</h5>
</div>
<input class="color-btn for-color-1" type="radio" id="color-1" name="color-btn" checked />
<label class="first-color" for="color-1"></label>
<input class="color-btn for-color-2" type="radio" id="color-2" name="color-btn" />
<label class="color-2" for="color-2"></label>
<input class="color-btn for-color-3" type="radio" id="color-3" name="color-btn" />
<label class="color-3" for="color-3"></label>
<input class="color-btn for-color-4" type="radio" id="color-4" name="color-btn" />
<label class="color-4" for="color-4"></label>
<input class="color-btn for-color-5" type="radio" id="color-5" name="color-btn" />
<label class="color-5" for="color-5"></label>
<input class="color-btn for-color-6" type="radio" id="color-6" name="color-btn" />
<label class="color-6" for="color-6"></label>
<div class="img-wrap chair-1"></div>
<label class="first-color" for="color-1"></label>

<input class="color-btn for-color-2" type="radio" id="color-2" name="color-btn" />
<div class="img-wrap chair-2"></div>
<label class="color-2" for="color-2"></label>

<input class="color-btn for-color-3" type="radio" id="color-3" name="color-btn" checked />
<div class="img-wrap chair-3"></div>
<label class="first-color" for="color-3"></label>

<input class="color-btn for-color-4" type="radio" id="color-4" name="color-btn" />
<div class="img-wrap chair-2"></div>
<label class="color-4" for="color-4"></label>

<input class="color-btn for-color-5" type="radio" id="color-5" name="color-btn" checked />
<div class="img-wrap chair-5"></div>
<label class="first-color" for="color-5"></label>

<input class="color-btn for-color-6" type="radio" id="color-6" name="color-btn" />
<div class="img-wrap chair-6"></div>
<label class="color-6" for="color-6"></label>

<div class="info-wrap">
<a href="#" class="btn"><i class="uil uil-shopping-cart icon"></i> Add To Cart</a>
</div>
Expand Down
7 changes: 5 additions & 2 deletions bug-beatles/score-keeper-project/score_keeper.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ playerOneBtn.addEventListener('click' , function(e){
winner = true ;
}
})

playerTwoBtn.addEventListener('click' , function(e){
console.log("btn 2 clicked");
if(playerTwoScore.value == input.value ){
Expand All @@ -78,7 +79,7 @@ resetBtn.addEventListener('click' , function(e){
console.log("btn reset clicked");
playerOneScore.value = "0";
playerTwoScore.value = "0";
input.value = "";
input.value = `${input.value}`;
playerOneScore.innerText = `${playerOneScore.value}`;
playerTwoScore.innerText = `${playerTwoScore.value}`;
playerOneScore.style.color = "black";
Expand All @@ -89,7 +90,9 @@ resetBtn.addEventListener('click' , function(e){

})


function matchPlayed() {
if(playerOneScore.value == input.value || playerTwoScore.value == input.value
}



Expand Down