@flarehr/apollo-super-campaign 0.1.716 → 0.1.717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apollo-super-campaign.js +4 -4
- package/dist/index.html +23 -4
- package/package.json +1 -1
package/dist/index.html
CHANGED
|
@@ -37,11 +37,16 @@
|
|
|
37
37
|
<div>
|
|
38
38
|
<input type="radio" id="campaign-radio" name="app" value="campaign" checked />
|
|
39
39
|
<label for="campaign-radio">apollo-super-campaign</label>
|
|
40
|
-
</div>
|
|
41
|
-
<div>
|
|
42
40
|
<input type="radio" id="byof-radio" name="app" value="byof" />
|
|
43
41
|
<label for="byof-radio">apollo-super-byof-engagement</label>
|
|
44
42
|
</div>
|
|
43
|
+
<div style="padding-top: 1rem;">
|
|
44
|
+
<label for="fund-usi-dropdown">Choose a Fund USI (for byof-engagement only):</label>
|
|
45
|
+
<select id="fund-usi-dropdown" name="fundUsis">
|
|
46
|
+
<option value="53226460365001">Aware Super</option>
|
|
47
|
+
<option value="MTA0100AU">Spirit Super</option>
|
|
48
|
+
</select>
|
|
49
|
+
</div>
|
|
45
50
|
</fieldset>
|
|
46
51
|
|
|
47
52
|
<div style="padding-top: 3rem;">
|
|
@@ -54,9 +59,10 @@
|
|
|
54
59
|
</div>
|
|
55
60
|
<div id="super-byof-engagement" style="display: none">
|
|
56
61
|
<apollo-super-byof-engagement
|
|
62
|
+
id="super-byof-engagement-element"
|
|
57
63
|
backend-url="%VITE_BACKEND_URL%"
|
|
58
64
|
access-token="%VITE_ACCESS_TOKEN%"
|
|
59
|
-
fund-usi="
|
|
65
|
+
fund-usi="53226460365001"
|
|
60
66
|
/>
|
|
61
67
|
</div>
|
|
62
68
|
</div>
|
|
@@ -64,12 +70,13 @@
|
|
|
64
70
|
<script>
|
|
65
71
|
// Wait till DOM loaded before attempting to hook up listeners
|
|
66
72
|
document.addEventListener('DOMContentLoaded', () => {
|
|
73
|
+
// Handle the picking of apps
|
|
67
74
|
const campaignOption = document.getElementById('campaign-radio');
|
|
68
75
|
const byofOption = document.getElementById('byof-radio');
|
|
69
76
|
const campaignDiv = document.getElementById('super-campaign');
|
|
70
77
|
const byofDiv = document.getElementById('super-byof-engagement');
|
|
71
78
|
|
|
72
|
-
|
|
79
|
+
const handleDisplay = () => {
|
|
73
80
|
if (campaignOption.checked) {
|
|
74
81
|
campaignDiv.style.display = 'block';
|
|
75
82
|
byofDiv.style.display = 'none';
|
|
@@ -81,6 +88,18 @@
|
|
|
81
88
|
|
|
82
89
|
campaignOption.addEventListener('change', handleDisplay);
|
|
83
90
|
byofOption.addEventListener('change', handleDisplay);
|
|
91
|
+
|
|
92
|
+
// Handle the fund USI dropdown for byof-engagement
|
|
93
|
+
const byofEl = document.getElementById('super-byof-engagement-element');
|
|
94
|
+
const fundUsiDropdown = document.getElementById('fund-usi-dropdown');
|
|
95
|
+
|
|
96
|
+
const handleUsiDropdown = () => {
|
|
97
|
+
const fundUsi = fundUsiDropdown.value;
|
|
98
|
+
|
|
99
|
+
byofEl.setAttribute('fund-usi', fundUsi);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
fundUsiDropdown.addEventListener('change', handleUsiDropdown);
|
|
84
103
|
});
|
|
85
104
|
</script>
|
|
86
105
|
<script>
|