-
Notifications
You must be signed in to change notification settings - Fork 1
/
guestbook.html
124 lines (81 loc) · 4.57 KB
/
guestbook.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
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
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Serverless Guest Book | Built by github.com/MarketingPipeline</title>
<link href="https://fonts.googleapis.com/css?family=Muli|Ovo" rel="stylesheet">
<link rel="stylesheet" href="assets/style.css">
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
<div id="GuestBook">
<h1 class="main-header"> Serverless Guestbook</h1>
<h3 id="t">Recent Entries</h3>
<!-- Homepage -->
<div class="container">
<div class="left-block">
<div id="json" class="guestbook">
</div>
</div>
<div class="right-block">
<h1>Sign my guestbook</h1>
<p> Thanks for checking this out. This is my guestbook. Feel free to sign it so I can see you were here.</p>
<div class="links">
<a href="#AllEntries">View All Entries</a>
<a href="#SignGuestBook">Sign the Guestbook</a>
<a onClick="window.location.reload();">Refresh Guestbook</a>
</div>
</div>
</div>
<div id="SignGuestBook" class="overlay">
<div id="SendForm" class="sign-guest-book-popup">
<h1>Sign The Guestbook</h1>
<a class="close" href="#">×</a>
<div class="content">
<label style="display: block;
text-align: center;" class="aterisk_before" for="gform"> indicates a required field</label>
<br>
<form name="gform" id="gform" enctype="text/plain" action="GOOGLE_FORM_URL" target="hidden_iframe" onsubmit="submitted=true;">
<label for="GOOGLE_ENTRY_ID_Name" class="aterisk_after">Name </label>
<input class="form-element short" type="text" name="GOOGLE_ENTRY_ID_Name" id="GOOGLE_ENTRY_ID_Name" placeholder="John Doe." style="background: #5EC6C8;" required>
<label for="GOOGLE_ENTRY_ID_Email">Email</label>
<input class="form-element short" type="text" name="GOOGLE_ENTRY_ID_Email" id="GOOGLE_ENTRY_ID_Email" placeholder="[email protected]" style="background: #5EC6C8;">
<label for="GOOGLE_ENTRY_ID_TextArea" class="max-length">Guestbook Entry</label>
<textarea class="form-element" name="GOOGLE_ENTRY_ID_TextArea" id="GOOGLE_ENTRY_ID_TextArea" rows="5" cols="30" oninvalid="this.setCustomValidity('You must sign the guestbook')"
oninput="this.setCustomValidity('')" maxlength="100" placeholder="Enter Your Message Here" required></textarea>
<label for="g-recaptcha" class="aterisk_after">Captcha</label>
<div class="g-recaptcha"
data-sitekey="GOOGLE_Captcha_Key"></div>
<input class="form-button" type="submit" value="Submit">
<input class="form-button" type="reset" value="Reset Form">
</form>
</div>
</div>
</div>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;"></iframe>
<div id="AllEntries" class="overlay">
<div class="popup">
<h2>All Entries</h2>
<a class="close" href="#">×</a>
<div id="AllEntries_Content" class="content" style="height: 25em;overflow-y: auto;">
</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
// Put your Google Entry Form ID(s) Here
var GOOGLE_ENTRY_ID_Name="entry.451722560"; // Name Entry ID
var GOOGLE_ENTRY_ID_Email="entry.2125855793"; // Email Entry ID
var GOOGLE_ENTRY_ID_Guestbook="entry.351198026"; // Guestbook Entry ID
// Put your Google Form Link Here (Make sure to use correct link as documented)
var Google_Form_Link="https://docs.google.com/forms/d/e/1FAIpQLSdR04_nn2gmBU0pP5Lt2xXh9rFF8PDxjwjKeP9ZPTTb35Xs3w/formResponse?"
var Google_Form_ID="1QnGj-fbAwyjAZBBynW8QGAB50ssaPLcbJZowR5H7MeQ"
var Google_Form_Name="Form+Responses+1"
// Google Recaptcha Key
var CaptchaKey = "6LcwejIqAAAAAPt21D5dEJx7ZNcidlH4G8gpTvva" // put your Google Captcha Key here
</script>
<script src="assets/replace-vars.js">
</script>
<script>
</script>
<script src="assets/guest-book-WIP.js"></script>