-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
101 lines (90 loc) · 4.12 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
<!--
___ ____ _____ _ _ _ ___ ____ _ _ _____ _____ ____ _
/ _ \ / ___|_ _|/ \ | | | |/ _ \| __ )| | | |_ _| ____/ ___| |__
| | | | | | | / _ \ | |_| | | | | _ \| | | | | | | _|| | | '_ \
| |_| | |___ | |/ ___ \| _ | |_| | |_) | |_| | | | | |__| |___| |_) |
\___/ \____| |_/_/ \_\_| |_|\___/|____/ \___/ |_| |_____\____|_.__/
-->
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0">
<title>Остановитесь.рф</title>
<meta name="robots" content="index,follow">
<meta name="author" content="qbbr">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="apple-mobile-web-app-title" content="Остановитесь.рф">
<meta name="application-name" content="Остановитесь.рф">
<meta name="msapplication-TileColor" content="#b91d47">
<meta name="theme-color" content="#ffffff">
<meta property="og:title" content="Остановитесь.рф">
<meta property="og:type" content="website">
<meta property="og:url" content="https://остановитесь.рф/">
<meta property="og:image" content="https://остановитесь.рф/very-thief-face.png">
<link rel="stylesheet" href="/app.css">
</head>
<body>
<div id="app"></div>
<!--noindex-->
<div class="__footer">
<small><a href="javascript:;" id="theme-switcher-btn" class="theme-switcher-btn"></a></small>
</div>
<!--/noindex-->
<!--<script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js" integrity="sha256-ogKWlwEM30Qu6hELJMlzX9rPqSGYYK1u2IizINEC5gk=" crossorigin="anonymous" defer></script>-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.min.js" integrity="sha256-1gHyKSR7Jh0YGBmI9zN7P2UhZRh/PCKhCYIaUOqWoPk=" crossorigin="anonymous" defer></script>
<script src="/app.js" defer></script>
<script>
const QBBR = { // govnokod hardcopy from qbbr.io
MODE_KEY: 'theme',
DATA_THEME: 'data-theme',
setTheme(mode) {
document.documentElement.setAttribute(this.DATA_THEME, mode);
},
innvertMode(mode) {
return mode === 'dark' ? 'light' : 'dark';
},
getTheme() {
let theme = this.getFromLocalStorage();
if (!theme) {
theme = this.getFromPrefersColorSchema();
}
return theme;
},
getFromLocalStorage() {
return localStorage.getItem(this.MODE_KEY);
},
setToLocalStorage(mode) {
localStorage.setItem(this.MODE_KEY, mode);
},
getFromPrefersColorSchema() {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
},
initSwitcher() {
const _ = this;
document.getElementById('theme-switcher-btn').onclick = function() {
const mode = _.innvertMode(_.getTheme());
_.setToLocalStorage(mode);
_.setTheme(mode);
};
},
init() {
this.setTheme(this.getTheme());
this.initSwitcher();
}
}.init();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-92798428-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>