-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapply.html
45 lines (40 loc) · 1.23 KB
/
apply.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
---
layout: default
title: Merchant Application
weight: 4
---
<script src="https://www.pdup.allplayers.com/sites/all/libraries/allplayers.js/bin/allplayers.embed.client.min.js" type="text/javascript"></script>
<script type="text/javascript">
// Get a parameter by name.
var getParameterByName = function(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null) {
return "";
}
else {
return decodeURIComponent(results[1].replace(/\+/g, " "));
}
};
$(function() {
// Get the options for this widget.
var options = {
base : 'https://platform.pdup.allplayers.com',
group: 'twosix_financial',
loading: 'Loading Application...',
complete: function() {
window.location = '/complete.html';
}
};
// Set the price option.
var price_option = getParameterByName('price-option');
if (price_option) {
options.query = {'price-option': price_option};
}
// Create the client.
$('#group_registration').allplayers_client(options);
});
</script>
<div id="group_registration"></div>