Spaces:
Running
Running
JAYASWAROOP
commited on
Commit
•
fad9455
1
Parent(s):
ecaf665
Update audio.js
Browse files
audio.js
CHANGED
@@ -1,3 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
document.addEventListener('DOMContentLoaded', function () {
|
2 |
const searchBar = document.getElementById('searchBar');
|
3 |
const movieContainers = document.querySelectorAll('.movie');
|
|
|
1 |
+
function validateLogin() {
|
2 |
+
var username = document.forms["loginForm"]["username"].value;
|
3 |
+
var password = document.forms["loginForm"]["password"].value;
|
4 |
+
|
5 |
+
if (username === "" || password === "") {
|
6 |
+
alert("Please enter both username and password");
|
7 |
+
return false;
|
8 |
+
}
|
9 |
+
|
10 |
+
// Your login validation logic goes here
|
11 |
+
// For example:
|
12 |
+
if (username !== "admin" || password !== "password") {
|
13 |
+
alert("Incorrect username or password");
|
14 |
+
return false;
|
15 |
+
}
|
16 |
+
|
17 |
+
return true;
|
18 |
+
}
|
19 |
+
|
20 |
+
|
21 |
+
|
22 |
document.addEventListener('DOMContentLoaded', function () {
|
23 |
const searchBar = document.getElementById('searchBar');
|
24 |
const movieContainers = document.querySelectorAll('.movie');
|