-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
47 lines (44 loc) · 1.48 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
<!DOCTYPE html>
<html lang="en" data-theme="">
<head>
<link rel="manifest" href="./manifest.json" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- api.xeggex.com is used to fetch EVR price -->
<!-- api1.binance.com is used to fetch RVN price -->
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self' 'unsafe-inline' api.xeggex.com rvn-rpc-testnet.ting.finance rvn-rpc-mainnet.ting.finance evr-rpc-mainnet.ting.finance api1.binance.com;
img-src https://* 'self' data:;
child-src 'none';"
/>
<link rel="stylesheet" href="./pico.min.css" />
<title>Rebel wallet - Ravencoin</title>
<link rel="stylesheet" href="./style.css" />
<script>
// Check if the user prefers dark mode
function isDarkModePreferred() {
if (
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches
) {
return true;
} else {
return false;
}
}
//Set data-theme attribute of HTML element, for PICO CSS
if (isDarkModePreferred()) {
document.querySelector("html").setAttribute("data-theme", "dark");
} else {
document.querySelector("html").setAttribute("data-theme", "light");
}
</script>
</head>
<body>
<main class="container">
<div id="app"></div>
</main>
<script type="module" src="./src/index.tsx"></script>
</body>
</html>