-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfeedback.html
More file actions
126 lines (123 loc) · 3.29 KB
/
feedback.html
File metadata and controls
126 lines (123 loc) · 3.29 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel = "icon" href ="https://raw.githubusercontent.com/BTP-Project/Virtual-Interview/master/logo1.jpg" type = "image/x-icon">
<title>Login</title>
<!-- <link rel="stylesheet" type="text/css" href="css/background.css"/>-->
<style>
a:link, a:visited {
background-color: #4CAF50;
color: white;
width: 82%;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
transform: translateX(6%);
text-align: center;
text-decoration: none;
display: inline-block;
}
a:hover, a:active {
background-color: #45a049;
}
body{
background-image: url("https://raw.githubusercontent.com/BTP-Project/Virtual-Interview/master/login/background.jpg");
background-repeat: no-repeat;
background-size: 100% 100%;
}
input[type=submit] {
width: 90%;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
transform: translateX(5%);
}
input[type=submit]:hover {
background-color: #45a049;
}
.container{
width: 40%;
height: auto;
margin: 100px auto;
background: white;
position: relative;
border-color: #4CAF50;
}
input {
width: 84%;
padding: 12px 20px;
margin: 3px 0;
margin-left: 8%;
box-sizing: border-box;
border: 3px solid #ccc;
transition: 0.5s;
outline: none;
}
input:focus {
border: 3px solid #555;
}
.container label{
color: rgb(95, 84, 84);
font-size: large;
border-radius: 5px;
padding-left: 8%;
font-family:Comic Sans MS;
}
textarea {
width: 85%;
height: 150px;
padding: 12px 20px;
box-sizing: border-box;
border: 2px solid #ccc;
border-radius: 4px;
background-color: #fffefe;
font-size: 16px;
transform: translateX(9%);
resize: none;
font-family:Comic Sans MS;
}
</style>
</head>
<body>
<div class="container">
<form action="/feedback1" method="post" name="form1">
<br>
<label>MIS No.:</label><span style="color:#ff0000">*</span>
<input type="text" name="MISNo"><br>
<label>Subject:</label><span style="color:#ff0000">*</span>
<input type="text" name="Subject"><br>
<label>Feedback:</label><span style="color:#ff0000">*</span>
<textarea placeholder="Your valuable feedback." name="Feedback"></textarea><br><br>
<input type="submit" id="forget" value="Submit"><br><br>
<br><br>
</form>
</div>
<script src="https://smtpjs.com/v3/smtp.js">
</script>
<script>
const btn = document.querySelector('#forget');
// handle click button
btn.onclick = function () {
var sub= document.form1.MISNo.value + " - " + document.form1.Subject.value;
Email.send({
Host : "smtp.gmail.com",
Username : "123harshit321@gmail.com",
Password : "Rounak@795#",
To : "optimusprimecybertron999@gmail.com",
From : "123harshit321@gmail.com",
Subject : sub,
Body : document.form1.Feedback.value
});
alert('Thank You for your valueable feedback !!!')
window.open("/");
};
</script>
</body>
</html>