-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscript.js
More file actions
15 lines (13 loc) · 754 Bytes
/
Copy pathscript.js
File metadata and controls
15 lines (13 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Add JavaScript/jQuery code to show/hide the waiting message when the button is clicked
document.getElementById('search-button').addEventListener('click', function() {
var waitingMessage = document.getElementById('waiting-message');
// hide the button when the loading button is shown
let btn = document.getElementById('search-button');
btn.style.display = 'none';
// visible the waiting message while the button is clicked on
waitingMessage.style.display = 'block'; // Show the waiting message
// Simulate a delay to mimic network request
setTimeout(function() {
waitingMessage.style.display = 'none'; // Hide the waiting message
}, 3000 * 3000 * 3000 * 3000); // 3 seconds delay (adjust as needed)
});