-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsendForm.html
54 lines (51 loc) · 1.62 KB
/
sendForm.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="https://avatars.githubusercontent.com/u/140610717?s=200&v=4" type="image/x-icon">
<style>
html, body {
position: absolute;
height: 100%;
max-height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
iframe {
position: absolute;
height: 100%;
width: 100%;
border: none;
}
</style>
</head>
<body class="dark">
<iframe id="frm" src="" width="100%" height="100%">
<b>Eğer bu yazıyı görüyorsanız tarayıcınız istemcimizi desteklemiyor demektir.</b>
</iframe>
<script>
function getParam(name) {
var url = window.location.href;
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
let url = "https://script.google.com/macros/s/AKfycbze7pLcNej_9BoH4TvNRzlhz0j-CWWHULWykZu5A3jN1QqeJoHuCOSYIONUtkdgkZBw/exec";
document.querySelector("#frm").src = url +
"?name=" + getParam("name") +
"&email=" + getParam("email") +
"&subject=" + getParam("subject") +
"&body=" + getParam("body");
document.querySelector("#frm").onload = function () {
window.location.href = "index.html";
}
</script>
</body>
</html>