-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
174 lines (164 loc) · 10.3 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!DOCTYPE html>
<html lang="en">
<head>
<script>
const host = location.host;
let measurementID = '';
if(host === 'myconnect.cancer.gov') measurementID = 'G-3DN8NJWTFW'
else if(host === 'myconnect-stage.cancer.gov') measurementID = 'G-C2YTQG1N5W'
else measurementID = 'G-XCS5HGRS4L'
const gtagSrc = `https://www.googletagmanager.com/gtag/js?id=${measurementID}`
const gtagScript = document.createElement('script');
gtagScript.src = gtagSrc;
document.head.appendChild(gtagScript);
</script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', measurementID);
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>My Connect - Home</title>
<link rel="stylesheet" href="./css/style.css">
<link rel="manifest" href="./manifest.json">
<meta name="theme-color" content="#2a72a5"/>
<link rel="shortcut icon" href="images/icons/Connect-Favicon-96x96.png" type="image/x-icon">
<link rel="apple-touch-icon" href="images/icons/Connect-Favicon-96x96.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css">
<link rel="stylesheet" href="./lib/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/6.1.0/firebase-ui-auth.css" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Noto+Sans&display=swap" rel="stylesheet">
<script
src="https://www.datadoghq-browser-agent.com/datadog-rum-v4.js"
type="text/javascript">
</script>
<script>
const userAgent = navigator.userAgent;
let browserName;
if(userAgent.match(/chrome|chromium|crios/i)){
browserName = "chrome";
} else if (userAgent.match(/firefox/i)){
browserName = "firefox";
} else if(userAgent.match(/safari/i)){
browserName = "safari";
} else if(userAgent.match(/edg/i)){
browserName = "edge";
} else browserName = 'Not supported'
const isValidBrowser = /Chrome/i.test(browserName) || /Firefox/i.test(browserName) || /Safari/i.test(browserName) || /Edge/i.test(browserName);
if(!isValidBrowser){
alert('MyConnect is not supported on your browser. Please use Chrome, Edge, Safari or Firefox.');
}
</script>
</head>
<body>
<main>
<div class="connect-container">
<div class="nci-gov">
National Cancer Institute - Cancer.gov
</div>
<div class="row nci-logo-div d-none d-sm-flex">
<div class="col-lg-4 nci-connect-logo">
<a href="#">
<img src="./images/ConnectDCEGLogo.svg" class="nci-connect-logo-width" alt="" data-i18n="home.connectHeaderLogo">
</a>
</div>
</div>
<div class="row nci-logo-div d-sm-none">
<div class="col-lg-4 nci-connect-logo">
<a href="#">
<img src="./images/ConnectDCEGLogo.svg" class="nci-connect-logo-width-small" alt="" data-i18n="home.connectHeaderLogo">
</a>
</div>
</div>
<nav class="navbar navbar-dark navbar-expand-lg custom-menu-color fixed-top pt-0">
<div class="col" style="padding-left:0px">
<button class="navbar-toggler collapsed mt-1 mb-1" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div id="languageSelectorContainer"></div>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup"></div>
</div>
</nav>
<div style="position: relative;">
<div style="position: absolute; top: 0; right: -5rem; min-width: 300px;" id="showNotification"></div>
</div>
<div id="root"></div>
<div class="modal fade" id="connectMainModal" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content sub-div-shadow">
<div class="modal-header allow-overflow" id="connectModalHeader"></div>
<div class="modal-body allow-overflow" id="connectModalBody"></div>
<div class="modal-footer" id="connectModalFooter">
<button type="button" title="Close" class="btn btn-dark" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="connectWarningModal" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content sub-div-shadow">
<div class="modal-header allow-overflow" id="connectWarningModalHeader"></div>
<div class="modal-body allow-overflow" id="connectWarningModalBody"></div>
<div class="modal-footer" id="connectWarningModalFooter">
<button type="button" id="warningCloseBtn" title="Close" class="btn btn-dark" data-dismiss="modal" disabled>Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="notificationsModal" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="notificationHeader" aria-hidden="true">
<div class="modal-dialog modal-dialog-slideout modal-sm notification-modal" role="document">
<div class="modal-content sub-div-shadow">
<div class="modal-header">
<h5 class="modal-title" id="notificationHeader">Notifications</h5>
<button type="button" class="close close-modal" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body notification-modal-body" id="notificationBody"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal" id="ssnSoftModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" data-i18n="ssn.responseRequested">Response Requested</h5>
</div>
<div id="ssnSoftModalBody" class="modal-body">
<p id="ssnSoftModalBodyText" data-i18n="ssn.ssnSoftModalBodyText">There is 1 unanswered question on this page. Would you like to continue?</p>
</div>
<div id="ssnSoftModalFooter" class="modal-footer">
<button type="button" id=ssnSoftModalContinueButton data-i18n="ssn.ssnSoftModalContinueButton" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal">Continue Without Answering</button>
<button type="button" id=ssnSoftModalCloseButton data-i18n="ssn.ssnSoftModalCloseButton" class="btn btn-light" data-dismiss="modal" data-bs-dismiss="modal">Answer the Question</button>
</div>
</div>
</div>
</div>
<div id="loadingAnimation" role="status" style="display: none;"></div>
</div>
</main>
<footer role="contentinfo">
<div id="footer"></div>
</footer>
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script type="module" src="./app.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/localforage/1.7.3/localforage.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="./lib/bootstrap.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.1/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.22.1/firebase-auth-compat.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.0.943/pdf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pdf-lib/dist/pdf-lib.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pdf-lib/dist/pdf-lib.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/downloadjs/1.4.8/download.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/downloadjs/1.4.8/download.js"></script>
</body>
</html>