forked from harishshan/blogger-theme
-
Notifications
You must be signed in to change notification settings - Fork 3
/
ContactMePage.html
156 lines (156 loc) · 4.62 KB
/
ContactMePage.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<div dir="ltr" style="text-align: left;" trbidi="on">
<script>
var blogId = '';
var contactFormMessageSendingMsg ='Sending...';
var contactFormMessageSentMsg = 'Your message has been sent.';
var contactFormMessageNotSentMsg = 'Message could not be sent. Please try again later.';
var contactFormInvalidEmailMsg = 'A valid email is required.'
var contactFormEmptyMessageMsg ='Message field cannot be empty.';
var widgetLoaded=false;
function sendEmailMsg() {
if(widgetLoaded== false) {
_WidgetManager._RegisterWidget('_ContactFormView',
new _WidgetInfo('ContactForm1', 'sidebar', null,
document.getElementById('ContactForm1'),
{'contactFormMessageSendingMsg': contactFormMessageSendingMsg , 'contactFormMessageSentMsg': contactFormMessageSentMsg ,
'contactFormMessageNotSentMsg': contactFormMessageNotSentMsg , 'contactFormInvalidEmailMsg': contactFormInvalidEmailMsg ,
'contactFormEmptyMessageMsg': contactFormEmptyMessageMsg , 'title': 'Contact Form', 'blogId': blogId,
'contactFormNameMsg': 'Name',
'contactFormEmailMsg': 'Email', 'contactFormMessageMsg': 'Message', 'contactFormSendMsg': 'Send',
'submitUrl': 'https://www.blogger.com/contact-form.do'}, 'displayModeFull'));
widgetLoaded=true;
document.getElementById('ContactForm1_contact-form-submit').click();
}
return true;
}
</script>
<style>
input {
margin-bottom:10px;
}
h2 {
padding:18px 0 18px 0;
font-size: 1.4em;
}
.head {
-webkit-border-radius:6px 6px 0px 0px;
-moz-border-radius:6px 6px 0px 0px;
border-radius:6px 6px 0px 0px;
background-color:#2ABCA7;
color:#FAFAFA;
}
textarea {
height:100px;
margin-bottom:10px;
}
input:first-of-type {
margin-top:35px;
}
input, textarea {
font-size: 1em;
padding: 15px 10px 10px;
font-family: 'Source Sans Pro',arial,sans-serif;
border: 1px solid #cecece;
background: #d7d7d7;
color:#FAFAFA;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-moz-background-clip: padding;
-webkit-background-clip: padding-box;
background-clip: padding-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
width: 100%;
}
::-webkit-input-placeholder {
color: #FAFAFA;
}
:-moz-placeholder {
color: #FAFAFA;
}
::-moz-placeholder {
color: #FAFAFA;
}
:-ms-input-placeholder {
color: #FAFAFA;
}
.contact-form-button-submit {
margin-top:15px;
margin-bottom:25px;
background-color:#2ABCA7;
padding: 12px 45px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
border: 1px solid #2ABCA7;
-webkit-transition: .5s;
transition: .5s;
display: inline-block;
cursor: pointer;
width:30%;
color:#fff;
}
.contact-form-button-submit:hover, .contact-form-button-submit:hover {
background:#19a08c;
}
label.error {
font-family:'Source Sans Pro',arial,sans-serif;
font-size:1em;
display:block;
padding-top:10px;
padding-bottom:10px;
background-color:#d89c9c;
width: 80%;
margin:auto;
color: #FAFAFA;
-webkit-border-radius:6px;
-moz-border-radius:6px;
border-radius:6px;
}
/* media queries */
@media (max-width: 700px) {
label.error {
width: 90%;
}
input, textarea {
width: 90%;
}
.contact-form-button-submit {
width:90%;
}
body {
padding-top:10px;
}
}
.message {
font-family:'Source Sans Pro',arial,sans-serif;
font-size:1.1em;
display:none;
padding-top:10px;
padding-bottom:10px;
background-color:#2ABCA7;
width: 80%;
margin:auto;
color: #FAFAFA;
-webkit-border-radius:6px;
-moz-border-radius:6px;
border-radius:6px;
}
</style>
<form name="contact-form">
<div class="container">
<div class="head">
<h2>✉ Say Hello</h2>
</div>
<input class="contact-form-name" id="ContactForm1_contact-form-name" name="name" placeholder="Name" type="text" /><br />
<input class="contact-form-email" id="ContactForm1_contact-form-email" name="email" placeholder="Email" type="email" /><br />
<textarea class="contact-form-email-message" id="ContactForm1_contact-form-email-message" name="email-message" placeholder="Message" type="text"></textarea><br />
<div class="message">Message Sent</div>
<button class="contact-form-button contact-form-button-submit" id="ContactForm1_contact-form-submit" onclick="sendEmailMsg()" type="submit">Send!</button><br />
<div class="contact-form-error-message" id="ContactForm1_contact-form-error-message"></div>
<div class="contact-form-success-message" id="ContactForm1_contact-form-success-message"></div>
</div>
</form>
</div>