-
Notifications
You must be signed in to change notification settings - Fork 0
/
feedback.html
61 lines (58 loc) · 3.05 KB
/
feedback.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coderone Survey</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous" />
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<link rel="stylesheet" href="feedback.css">
<script>
function checkError(submitMe) {
const loc = window.location.href;
if(loc.indexOf("pass")!==-1) {
document.getElementById("password_error").innerHTML="Incorrect password!";
console.log(loc)
}
else if(loc.indexOf("uname")!==-1){
document.getElementById("username_error").innerHTML="Incorrect username!"
}else{
if(submitMe){
document.getElementById("login").submit();
}
}
}
</script>
</head>
<body onload="checkError()">
<div class="back">
<div class="container-fluid">
<div class="row">
<div class="col-12 col-md=3 text-center">
<div class="image">
<img src="https://res.cloudinary.com/dhxpuuv18/image/upload/v1722690107/aravind/gy4v9edskdrvtxearzug.webp">
</div>
<br>
<h1 class="title">CUSTOMER FEEDBACK COLLECTION SURVEY</h1>
<p>Please rate us for our service. Your feedback will greatly pave a way to improve our service</p>
<form action="/login" target="_blank" method="post" id="login">
<label for="username">Username:</label>
<input type="text" name="username" required onchange="checkError(false)">
<br><span id="username_error" style="color:red"></span>
<br>
<label for="password">Password:</label>
<input type="password" name="password" required onchange="checkError(false)">
<br>
<span id="password_error" style="color:red"></span>
<br>
<button class="link text-center" type="submit" onclick=checkError(true)>Login</button>
</form><br>
<button class="link text-center" onclick="sign_up.html">Sign Up</button>
</div>
</div>
</div>
</div>
</body>
</html>