-
Notifications
You must be signed in to change notification settings - Fork 4
/
unsubscribe.html
37 lines (36 loc) · 1.83 KB
/
unsubscribe.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
---
title: Unsubscribe
layout: default
permalink: "/unsubscribe"
redirect_from:
- "/unsub"
page_id: unsubscribe
---
<div class="lgx-inner">
<div class="container">
<div class="row">
<div class="col-xs-12 col-md-6 col-md-offset-3">
<h3>We already miss you</h3>
<div class="form-group">
<form action='https://crm.zoho.com/crm/Unsubscribe?encoding=UTF-8' method='POST' name='unsubForm' onSubmit='return emailValidate()' >
<input type='hidden' name='xnQsjsdp' value='c871ae0722ead1244df94d1b3a4878386566663dc2d3de012c2a68b0fa43efda'/>
<input type='hidden' name='actionType' value='dW5zdWJzY3JpYmU='/>
<input type='hidden' name='returnURL' value='https://www.awesomeinc.org/' />
<input class="form-control" placeholder="Email Address" type='text' name='email' maxlength='120' style="margin-bottom: 1rem"/>
<button type="submit" class="btn btn-danger btn-large lgx-btn">Unsubscribe</button>
<script>
function emailValidate(){
var email=document.forms['unsubForm']['email'].value;
document.forms['unsubForm']['email'].value= email.trim();
var atpos=email.indexOf('@');
var dotpos=email.lastIndexOf('.');
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=email.length){
alert('Please enter a valid email address.');return false;}
}
</script>
</form>
</div><!-- form group-->
</div><!-- col-->
</div><!-- row -->
</div>
</div>