This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
81 lines (75 loc) · 2.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Spacemesh Product</title>
<link rel="shortcut icon" href="/images/favicon.png" type="image/png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Testnet" />
<meta
name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/>
<link
rel="stylesheet"
href="https://unpkg.com/docsify-themeable/dist/css/theme-simple.css"
/>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="style-dark.css" name="dark-theme" disabled />
<script>
if (localStorage.getItem('dark-theme')) {
var darkStylesElem = document.querySelector('[rel="stylesheet"][name="dark-theme"]');
darkStylesElem.disabled = false;
}
</script>
</head>
<body>
<div class="theme-switcher">
<input type="checkbox" id="theme-switcher" class="theme-switcher__input">
<label for="theme-switcher" class="theme-switcher__label"></label>
</div>
<div id="app">Loading, please wait...</div>
<script>
var darkStylesElem = document.querySelector('[rel="stylesheet"][name="dark-theme"]');
var switcherElem = document.querySelector('.theme-switcher__input');
var isDarkThemeActive = localStorage.getItem('dark-theme');
switcherElem.addEventListener('change', function() {
if (localStorage.getItem('dark-theme')) {
localStorage.removeItem('dark-theme');
darkStylesElem.disabled = true;
} else {
localStorage.setItem('dark-theme', 'active');
darkStylesElem.disabled = false;
}
});
switcherElem.checked = !isDarkThemeActive;
</script>
<script>
window.$docsify = {
name: 'Product',
repo: 'https://github.com/spacemeshos/product',
homepage: 'revisions.md',
//logo: '/images/logo.svg',
loadNavbar: false,
loadSidebar: false,
// ga: 'UA-111612428-5',
notFoundPage: '404.md',
coverpage: false,
executeScript: true,
auto2top: true,
themeable: {
// readyTransition : false,
// responsiveTables: false
},
plugins: [
]
};
</script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
<script src="//unpkg.com/docsify/lib/plugins/ga.min.js"></script>
<script src="//unpkg.com/docsify-themeable"></script>
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
<script src="//unpkg.com/docsify-copy-code@2"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-c.min.js"></script>
</body>
</html>