Skip to content

Commit 79d563f

Browse files
committed
Disable RedirectRussia
1 parent 9d9c141 commit 79d563f

File tree

2 files changed

+79
-2
lines changed

2 files changed

+79
-2
lines changed

docs/assets/css/ukraine-banner.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
body {
2+
margin-top: 35px;
3+
}
4+
.support-ukraine,
5+
.support-ukraine:visited {
6+
position: absolute;
7+
left: 0;
8+
top: 0;
9+
right: 0;
10+
background: rgb(0, 0, 0);
11+
display: flex;
12+
justify-content: center;
13+
padding-top: 5px;
14+
padding-bottom: 5px;
15+
z-index: 10000;
16+
text-decoration: none;
17+
font-family: arial;
18+
}
19+
.support-ukraine:hover,
20+
.support-ukraine:active {
21+
background: black;
22+
display: flex;
23+
background: rgb(80, 80, 80);
24+
text-decoration: none;
25+
}
26+
.support-ukraine__flag {
27+
height: 25px;
28+
margin-right: 10px;
29+
}
30+
.support-ukraine__flag__blue {
31+
width: 40px;
32+
height: 12.5px;
33+
background: #005bbb;
34+
}
35+
.support-ukraine__flag__yellow {
36+
width: 40px;
37+
height: 12.5px;
38+
background: #ffd500;
39+
}
40+
.support-ukraine__label {
41+
color: white;
42+
font-size: 12px;
43+
line-height: 25px;
44+
}
45+
46+
.support-ukraine__label--ru {
47+
display: none;
48+
}
49+
50+
body[lang="en"] .support-ukraine__label--en {
51+
display: block;
52+
}
53+
54+
body[lang="en"] .support-ukraine__label--ru {
55+
display: none;
56+
}
57+
58+
body[lang="ru"] .support-ukraine__label--ru {
59+
display: block;
60+
}
61+
62+
body[lang="ru"] .support-ukraine__label--en {
63+
display: none;
64+
}

docs/index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
gtag('config', 'G-TGSC9ZRNZV');
1313
</script>
14-
14+
<!-- Pro Ukraine welcome with explanation for Russian users (for now) -->
15+
<script src="https://cdn.nocodeflow.net/tools/geoblock.js"></script>
16+
1517
<title>Learn You a Haskell for Great Good! (up-to-date)</title>
1618
<meta name="description"
1719
content='An up-to-date community maintained version of the renowned "Learn You a Haskell" (LYAH) guide for Haskell.
@@ -24,6 +26,8 @@
2426
<meta name="google-site-verification" content="y6vQvWUh4gehD8383uVn0Tcyuro3N2aGeCtG5TEitLs" />
2527
<link rel="stylesheet" href="assets/css/reset.css">
2628
<link rel="stylesheet" href="assets/css/style.css">
29+
<!-- "Donato to Ukraine" top of the page banner -->
30+
<link rel="stylesheet" href="assets/css/ukraine-banner.css">
2731
<link rel="preload" as="image" href="assets/images/newsplash-new-short.webp">
2832
<link rel="preload" as="image" href="assets/images/newsplash-new-long.webp">
2933

@@ -43,6 +47,15 @@
4347
</head>
4448

4549
<body>
50+
<!-- "Donato to Ukraine" top of the page banner -->
51+
<a class="support-ukraine" href="https://help.unicef.org/ukraine-emergency" target="_blank" rel="nofollow noopener" title="Donate to support Ukraine's independence.">
52+
<div class="support-ukraine__flag" role="img" aria-label="Flag of Ukraine">
53+
<div class="support-ukraine__flag__blue"></div>
54+
<div class="support-ukraine__flag__yellow"></div>
55+
</div>
56+
<div class="support-ukraine__label support-ukraine__label--en">Donate to support Ukraine's children.</div>
57+
<div class="support-ukraine__label support-ukraine__label--ru">Пожертвовать на поддержку детей Украины.</div>
58+
</a>
4659
<div id="newsplash" class="newsplash"
4760
style="width:880px;height:800px;margin:0px auto 0 auto;background-repeat:no-repeat;background-image:url(assets/images/newsplash-new-short.webp);position:relative;font-size:16px;color:white;text-shadow:#24536F -1px 1px 1px">
4861
<div style="position:absolute;top:235px;height:235px;line-height:24px;">
@@ -105,7 +118,7 @@ <h1 style="display: none;">A guide to Haskell programming language</h1>
105118
<!-- custom JS -->
106119
<script src="assets/js/toggleShow.js" async></script>
107120
<!-- redirect Russia (for now) -->
108-
<script src="https://redirectrussia.org/v1.js" data-hide-domain="hide" async integrity="sha384-K4/XEYup4kNv/qt2ucIwIH2wLT9I+z3s17CHQNMBB2/E8/Kw2VYsXQKB/7kylubA" crossorigin="anonymous"></script>
121+
<!-- <script src="https://redirectrussia.org/v1.js" data-hide-domain="hide" async integrity="sha384-K4/XEYup4kNv/qt2ucIwIH2wLT9I+z3s17CHQNMBB2/E8/Kw2VYsXQKB/7kylubA" crossorigin="anonymous"></script> -->
109122
</body>
110123

111124
</html>

0 commit comments

Comments
 (0)