-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
41 lines (40 loc) · 1.47 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Científicas que nos inspiran*</title>
<link rel="stylesheet" href="./src/assets/fonts/fonts.css" />
<link
id="original-css"
rel="stylesheet"
href="./src/assets/styles/Background.css"
/>
<link
id="safari-css"
rel="stylesheet"
href="./src/assets/styles/BackgroundSafari.css"
/>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
let userAgentString = navigator.userAgent;
let chromeAgent = userAgentString.indexOf('Chrome') > -1;
let safariAgent = userAgentString.indexOf('Safari') > -1;
if (chromeAgent && safariAgent) {
safariAgent = false;
}
if (safariAgent) {
document.getElementById('original-css').disabled = true;
document.getElementById('safari-css').disabled = false;
} else {
document.getElementById('safari-css').disabled = true;
}
});
</script>
</body>
</html>