-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
206 lines (194 loc) · 6.41 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html lang="pt-BR" translate="no">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0"
/>
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="NoHarm.ai - Triagem de Prescrições com Inteligência Artificial - Foco na Segurança dos Pacientes - Prescrições Hospitalares"
/>
<meta
http-equiv="cache-control"
content="no-cache, no-store, must-revalidate"
/>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<meta name="robots" content="noindex,nofollow" />
<meta name="google" content="notranslate" />
<link rel="apple-touch-icon" href="logo192.png" />
<link rel="manifest" href="/manifest.json" />
<script src="/ua-parser.min.js"></script>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-MF5HG22");
</script>
<!-- End Google Tag Manager -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-209713-24"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "UA-209713-24");
</script>
<!-- End Global site tag (gtag.js) - Google Analytics -->
<title>%VITE_APP_SITE_TITLE%</title>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-MF5HG22"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<script>
(function (n, i, v, r, s, c, u, x, z) {
x = window.AwsRumClient = { q: [], n: n, i: i, v: v, r: r, c: c, u: u };
window[n] = function (c, p) {
x.q.push({ c: c, p: p });
};
z = document.createElement("script");
z.async = true;
z.src = s;
document.head.insertBefore(
z,
document.getElementsByTagName("script")[0]
);
})(
"cwr",
"76733ed1-1445-4f80-8e41-2f824a752c39",
"1.0.0",
"sa-east-1",
"https://client.rum.us-east-1.amazonaws.com/1.18.0/cwr.js",
{
sessionSampleRate: 1,
identityPoolId: "sa-east-1:45bad581-042d-4680-91e2-972f4074372d",
endpoint: "https://dataplane.rum.sa-east-1.amazonaws.com",
telemetries: [
[
"errors",
{
ignore: (errorEvent) => {
if (
errorEvent &&
errorEvent.reason &&
(/^Request failed with status code 401/.test(
errorEvent.reason.message
) ||
/^Network Error/.test(errorEvent.reason.message))
) {
return true;
}
return (
errorEvent &&
errorEvent.message &&
(/^Request failed with status code 401/.test(
errorEvent.message
) ||
/^Network Error/.test(errorEvent.message))
);
},
},
],
"http",
],
allowCookies: true,
enableXRay: false,
sessionAttributes: {
applicationVersion: "%VITE_APP_VERSION%",
},
}
);
</script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="update-browser" style="display: none"></div>
<button id="update-browser-close" style="display: none">Fechar</button>
<div id="root"></div>
<script type="module" src="/src/index.jsx"></script>
<script>
window.addEventListener("load", function () {
if (!UAParser) {
return;
}
var uap = new UAParser();
var uapResult = uap.getResult();
console.info(uapResult);
var elm = document.getElementById("update-browser");
var close = document.getElementById("update-browser-close");
if (!close || !elm) {
return;
}
close.addEventListener("click", function () {
elm.style.display = "none";
close.style.display = "none";
});
switch (uapResult.browser.name) {
case "Chrome":
if (uapResult.browser.major <= 88) {
elm.innerHTML =
"<div><strong>Por favor, atualize a versão do seu navegador.</strong> </div><div>A versão que você está utilizando está desatualizada e não é compatível com a NoHarm.</div>";
elm.style.display = "flex";
close.style.display = "block";
}
break;
case "IE":
elm.innerHTML =
"<div>O navegador <strong>Internet Explorer</strong> não é suportado.</div> <div>Por favor, utilize um dos seguintes navegadores: Chrome, Firefox, Edge ou Safari.</div>";
elm.style.display = "flex";
close.style.display = "block";
break;
}
});
</script>
<style>
#update-browser {
position: absolute;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
top: 0;
left: 0;
width: 100%;
height: 100px;
background: #fff2f0;
border-bottom: 1px solid #ffccc7;
z-index: 99;
font-size: 18px;
}
#update-browser-close {
position: absolute;
right: 10px;
top: 10px;
z-index: 100;
background: transparent;
color: #ff4d4f;
border: 1px solid #ff4d4f;
border-radius: 4px;
}
</style>
</body>
</html>