forked from gusfune/fax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (70 loc) · 3.54 KB
/
index.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<title>OFF SCRIPT | FAX SIGN MAKER 3001</title>
</head>
<body>
<pre style="font-family:monospace">
██████╗ ███████╗███████╗ ███████╗ ██████╗██████╗ ██╗██████╗ ████████╗
██╔═══██╗██╔════╝██╔════╝ ██╔════╝██╔════╝██╔══██╗██║██╔══██╗╚══██╔══╝
██║ ██║█████╗ █████╗ ███████╗██║ ██████╔╝██║██████╔╝ ██║
██║ ██║██╔══╝ ██╔══╝ ╚════██║██║ ██╔══██╗██║██╔═══╝ ██║
╚██████╔╝██║ ██║ ███████║╚██████╗██║ ██║██║██║ ██║
╚═════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝
FAX SIGN MAKER ! 3001 !
</pre>
<p style="font-family:monospace">Enter your information for paperwork:</p>
<form method="GET" style="font-family:monospace">
<p>
<label>name:</label>
<input type="text" name="name" placeholder="Name McNamey" />
</p>
<p>
<label>e-post: </label>
<input type="email" name="email" placeholder="mail@offscript.io" />
</p>
<p>
<label>fax nummer:</label>
<input type="text" name="phone" placeholder="+46 00 666 55 44" />
</p>
<p>
<button type="submit">PRINT AND MAKE READY TO MAIL!</button>
</p>
</form>
<hr style="border:1px dotted black" />
<p style="font-family:monospace">CUT BELOW AND MAIL</p>
<hr style="border:1px dotted black" />
<div style="margin-top:25px">
<p
style="font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen,
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; font-size: 16px; line-height: 20px;"
>
<strong id="name">Namey McNamey</strong><br />
<a href="mailto:mail@offscript.io" style="color: inherit" id="mail"
>mail@offscript.io</a
><br />
<span id="phone">+46 00 666 55 44</span>
</p>
<img
style="max-width: 120px; width: 120px; height: auto;"
src="logo.png"
/>
</div>
<script>
var url_string = window.location.href;
var capturedName = /name=([^&]+)/.exec(url_string)[1];
var capturedEmail = /email=([^&]+)/.exec(url_string)[1];
var capturedPhone = /phone=([^&]+)/.exec(url_string)[1];
var elemName = document.getElementById("name");
var elemEmail = document.getElementById("mail");
var elemPhone = document.getElementById("phone");
elemName.innerHTML = capturedName.replace("+", " ");
elemEmail.innerHTML = capturedEmail.replace("%40", "@");
elemEmail.href = "mailto:" + capturedEmail.replace("%40", "@");
elemPhone.innerHTML = capturedPhone
.replace("+", " ")
.replace("%2B", "+")
.replace("%20", " ");
</script>
</body>
</html>