diff --git a/index.html b/index.html index db3cb71..bc01982 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,14 @@ -
- - - - - - - - -element with ID 'display' - // displayElement.textContent = 'Input value: ' + inputValue; + // Get the input element by its ID + var inputElement = document.getElementById('myInput'); + var documentImage = document.getElementById('myImage'); + var displayElement = document.getElementById('display'); + var audio = document.getElementById("myAudio"); + var inputValue = inputElement.value; + if (inputValue == "sura"){ + documentImage.src = 'images.jpeg'; + audio.muted = false; + audio.play(); + documentImage.style.display = 'block'; + displayElement.textContent = 'dont try to play the fool with me Niggesh' + } + else{ + audio.pause(); + audio.currentTime = 0; + documentImage.style.display = 'none'; + displayElement.textContent = 'Fuck off'; + } + // Display the value in the
element with ID 'display' + // displayElement.textContent = 'Input value: ' + inputValue; } diff --git a/style.css b/style.css index fe46357..06aa661 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,12 @@ body{ background-color: green; } +#myInput{ + width:25rem; + height:2rem; + background-color:white; + border:none; +} #myImage{ display: none; animation: App-logo-spin infinite 5s linear;