-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.jsp
138 lines (102 loc) · 3.81 KB
/
index.jsp
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
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Acme Web Design</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.css" />
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<center> <h1>APPLICATION</h1></center>
</div>
<div class="toggle-container">
<input type="checkbox" id="switch" name="theme" /><label for="switch"></label>
<style>
body {
padding: 25px;
background-color: white;
color: red;
font-size: 25px;
}
.dark-mode {
background-color: yellow;
color: blacK;
}
</style>
<button onclick="myFunction()"></button>
<script>
function myFunction() {
var element = document.body;
element.classList.toggle("dark-mode");
}
</script>
</div>
<div class="container">
<h1 class="brand"><span>Home</span> Money Design</h1>
<div class="container">
<div class="wrapper">
<div class="company-info">
<h3></h3>
<ul>
</ul>
</div>
<div class="contact">
<h3>Email Us</h3>
<div class="alert">Your message has been sent</div>
<form id="contactForm" method="post" autocomplete="off" name="google-sheet">
<p>
<label>First name</label>
<input type="text" name="First name" id="name" required>
</p>
<p>
<label>last name</label>
<input type="text" name="Last name" id="secondname" required>
</p>
<input type="datetime-local" id="birthdaytime" name="birthdaytime">
<br>
<br>
<div class="form-check mb-3">
<input class="form-check-input" type="radio" id="radio1" name="cmethod" value="phone" checked>
<label class="form-check-label" for="radio1">Phone</label>
</div>
<br>
<div class="form-check mb-3">
<input class="form-check-input" type="radio" id="radio2" name="cmethod" value="mail">
<label class="form-check-label" for="radio2">Email</label>
</div>
<br>
<div class="form-check mb-3">
<input class="form-check-input" type="radio" id="radio3" name="cmethod" value="post">
<label class="form-check-label" for="radio3">Post</label>
</div>
<p class="full">
<label>Message</label>
<textarea name="message" rows="5" id="message"></textarea>
</p>
<p class="full">
<button type="submit">Submit</button>
</p>
</form>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/8.6.8/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.8/firebase-database.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.8/firebase-analytics.js"></script>
<script src="main.js"></script>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbzKvTbQkigC1ZFFz7M08cT7GQ2iG9uYvqoq80HO-IccK2wjTBHkWiL2JOgjcOkNLozIBg/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => alert("Thanks for Contacting us..! We Will Contact You Soon..."))
.catch(error => console.error('Error!', error.message))
})
</script>
</body>
</html>