forked from swcarpentry/DEPRECATED-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unsubscribe.html
31 lines (30 loc) · 992 Bytes
/
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
---
layout: base
root: .
title: Unsubscribe
---
<p>Unsubscribe from the announcement mailing list:</p>
<form class="form-inline" method="post" style="text-align:center"
action="http://scripts.dreamhost.com/add_list.cgi">
<fieldset>
<input type="hidden" name="list" value="software-carpentry" />
<input type="hidden" name="domain" value="software-carpentry.org" />
<input type="hidden" name="emailit" value="1" />
<input type="text" name="email" placeholder="Email"/>
<button type="submit" class="btn" name="unsub" value="Unsubscribe">
Unsubscribe</button>
</fieldset>
</form>
<script type="text/javascript">
window.onload = function (e){
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' +
'([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g,
'%20'))||null;
}
var email = getURLParameter('email');
if (email) {
$('input[name=email]').val(email);
}
};
</script>