-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (54 loc) · 1.78 KB
/
index.html
File metadata and controls
55 lines (54 loc) · 1.78 KB
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
<!DOCTYPE html>
<html lang="english">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Consent Widget</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="widget-container">
<div class="header-language-wrapper-container ">
<div id="language-wrapper" style="display: none;">
<div class="dropdown">
<label for="langSelect">Language Preference <br></label>
<select id="langSelect"></select>
</div>
</div>
</div>
<div class="header-container">
<div class="logo-area" id="logo-area"></div>
</div>
<div class ="preview-statements">
<div id="consent-root">Loading consent form...</div>
<div id="error-message" class="error-message"></div>
<div id="toast"></div>
</div>
<div class="full-width-footer-border"></div>
<div class="button-group" id="button-group">
<button class="cancel" id="cancelBtn" style="display: none;">Cancel</button>
<button class="submit" id="submitBtn" style="display: none;">Submit</button>
</div>
</div>
<script>
// Configuration options for the consent widget
window.consentWidgetConfig = {
consentFormId: "08c7eddb-0431-4dd9-9c98-d628c635cd15",
apiUrl: "https://starhealth.pre-dataprivacy.com/cpm-api/consent/v1/getConsentFormById",
submitApiUrl: "https://starhealth.pre-dataprivacy.com/cpm-api/consent/v1/createOrUpdateConsent",
dataPrincipalId: [
{
key: "email",
value: "email"
}
],
showButtons: true,
showLanguageDropdown: true,
enableCheckboxes: true,
enableRadioButtons: true,
enableDropdowns: true
};
</script>
<script src="script.js"></script>
</body>
</html>