-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
executable file
·107 lines (94 loc) · 3.68 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Patronage Donate</title>
<meta name="viewport" content="width=device-width">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<link rel="stylesheet" href="stylesheets/screen.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-########-#', 'auto');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-6">
<div id="rsd-donate"></div>
</div>
</div>
</div>
<script src="/assets/js/es5-shim.min.js"></script>
<script src="/assets/js/es5-sham.min.js"></script>
<script src="app.js"></script>
<script>
var ga = ga || function() {};
var dataLayer = dataLayer || [];
PatronageDonate( document.getElementById("rsd-donate"), {
debug: true,
sequential: true,
slug: 'nmss',
formid: 54044,
apikey: '###',
processor: 'convio',
// Amounts should be tied to a form field ID
amounts: {
30: 123,
75: 234,
150: 345,
250: 456,
500: 567
},
// Content
introContent: '<p>Choose an amount to donate to [ Your Cause ] today.</p>',
thanksContent: '<p>Thank you for your donation.</p>',
onEnteredData: function( label ) {
/*
* Data entered into a field with `label`
* Example:
* ga('send', 'event', 'Donation', 'Entered Data', label);
*/
},
onFieldError: function( error ) {
/*
* Error in a field
* Example:
* ga('send', 'event', 'Donation', 'Field Error', error);
*/
},
onSwitchStep: function( step ) {
/*
* `step` switched to successfully
* Example:
* ga('send', 'event', 'Donation', 'Switched Step', step);
*/
},
onSubmit: function() {
/*
* Form submitted
* Example:
* ga('send', 'event', 'Donation', 'Submitted donation');
*/
},
onSuccessfulDonation: function( amount, transaction ) {
/*
* `transaction` (if received) is an integer
* `amount` is a floating point integer of the amount donated
* /
},
onFailedDonation: function( error ) {
/*
* `error` is a message of type string explaing what went wrong
* Example:
* ga('send', 'event', 'Donation', 'Donation failed', error);
*/
}
});
</script>
</body>
</html>