Skip to content

Commit

Permalink
swap cheythu
Browse files Browse the repository at this point in the history
  • Loading branch information
vcgithub41210 authored Aug 5, 2024
1 parent ca83bca commit 03580e1
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
function getInputValue() {
// Get the input element by its ID
var inputElement = document.getElementById('myInput');
var documentImage = document.getElementById('myImage');
var displayElement = document.getElementById('display');
// Retrieve the value from the input element
var inputValue = inputElement.value;
if (inputValue == "sura"){
documentImage.src = 'images.jpeg';
documentImage.style.display = 'block';
displayElement.textContent = 'dont try to play the fool with me Niggesh'
}
else{
displayElement.textContent = 'Fuck off';
documentImage.style.display = 'none';
}
// Display the value in the <p> 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');
// Retrieve the value from the input element
var inputValue = inputElement.value;
if (inputValue == "sura"){
documentImage.src = 'images.jpeg';
documentImage.style.display = 'block';
displayElement.textContent = 'dont try to play the fool with me Niggesh'
}
else{
documentImage.style.display = 'none';
displayElement.textContent = 'Fuck off';
}
// Display the value in the <p> element with ID 'display'
// displayElement.textContent = 'Input value: ' + inputValue;
}

0 comments on commit 03580e1

Please sign in to comment.