-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm.html
44 lines (44 loc) · 1.35 KB
/
Form.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
<!DOCTYPE html>
<html>
<head>
<title>form</title>
</head>
<style>
.casio-holder {
width: 60%;height: 65%;position: absolute;top: 50%;left: 50%;transform: translate(-50%,-50%);display: block;
align-items: center;align-content: center;
}
#text_area {
width: 100%;height: 95%;
}
</style>
<center>
<body>
<div class="casio-holder">
<form action="https://formspree.io/f/xleypyoy" method="POST" name="formeone">
<label name="emaillabel">Your email:<input type="email" name="email" value="E-User01@gmail.com"></label>
<label name="messagelabel">Your message:<textarea name="message" id="txtara"></textarea></label>
<button type="submit" id="subbtn">Send</button>
</form>
</div>
<script>
var working = 2,email,textara;
if (typeof(Storage) !== "undefined") {
working = 1;
}
else {
working = 0;
}
setInterval(function () {
var submit = window.localStorage.getItem("submit");
if (working == 1 && submit == "OKAY") {
var messg = window.localStorage.getItem("messg");
document.getElementById('txtara').value = messg;
document.getElementById('subbtn').click()
submit = "NOTOKAY";window.localStorage.setItem("submit", "NOTOKAY");
}
}, 200);
</script>
</body>
</center>
</html>