You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
headerText.innerHTML=`I will find your picked number, between ${allNumbersLength} numbers in the lowest guesses`
22
-
23
-
guessTextElem.innerHTML="choose a number between "+allNumbers[0]+" and "+allNumbers.length+" (keep this number in mind)"
24
-
25
-
guessTextElem2.innerHTML="and Click on \" OK \" Button to Continue"
20
+
holder_container.insertAdjacentHTML('beforeend',`<p class="header-text">I will find your chosen number, between ${numbers_len} numbers in the lowest estimates</p>`)
21
+
text_element.innerHTML=`choose a number between ${allNumbers[0]} and ${allNumbers.length} (keep this number in mind)`
22
+
second_text_element.innerHTML=`Click on " OK " Button to Continue \n <p class="text-guess3"><span class="Bold">Attention!</span> If you answer even one of the questions <br />incorrectly, the number will not be found.</p>`
guessTextElem2.innerHTML="I found your number with only one estimate 😎 your number is "+mid
46
-
yesBtn.style.display='none'
47
-
noBtn.style.display='none'
48
-
againBtn.style.display='inline'
49
-
againBtn.addEventListener('click',AgainFunction)
40
+
text_element.style.display='none'
41
+
second_text_element.style.display='flex'
42
+
second_text_element.innerHTML="I found your number with only one estimate 😎 your number is "+mid
43
+
yes_button.style.display='none'
44
+
no_button.style.display='none'
45
+
again_button.style.display='inline'
46
+
again_button.addEventListener('click',reload_fn)
50
47
}elseif(event.target.innerHTML==="No"){
51
-
yesBtn.style.display='none'
52
-
noBtn.style.display='none'
53
-
lowerBtn.style.display='inline'
54
-
higherBtn.style.display='inline'
48
+
yes_button.style.display='none'
49
+
no_button.style.display='none'
50
+
lower_button.style.display='inline'
51
+
higher_button.style.display='inline'
55
52
arrayChecker(shownNumbers,mid)
56
53
}
57
54
}
58
55
letarrayChecker=(array,mid)=>{
59
56
array.push(mid)
60
-
yesBtn.innerHTML="Yes, it's my number 👍"
57
+
yes_button.innerHTML="Yes, it's my number 👍"
61
58
if(mid==allNumbers.length/2){
62
-
guessTextElem.innerHTML=`is your number lower than <span class="Bold">${mid}</span> or higher?`
59
+
text_element.innerHTML=`is your number lower than <span class="Bold">${mid}</span> or higher?`
63
60
}else{
64
-
guessTextElem.innerHTML=`is <span class="Bold">${mid}</span> your number? If no, is your number lower than <span class="Bold">${mid}</span> or higher?`
61
+
text_element.innerHTML=`is <span class="Bold">${mid}</span> your number? If no, is your number lower than <span class="Bold">${mid}</span> or higher?`
0 commit comments