-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
166 lines (145 loc) · 8.83 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en" translate="no">
<head>
<script type="text/javascript" src="/assets/js/redirect.js" fetchpriority="high"></script>
<title>Russian Grammar Practice</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Kyle Timmermans">
<meta name="description" content="A site for practicing Russian grammar with exercises. Поехали!">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="theme-color" content="#ffffff">
<meta property="og:title" content="Russian Grammar Practice">
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="https://www.russiangrammarpractice.com/">
<meta property="og:description" content="A site for practicing Russian grammar with exercises. Поехали!">
<meta property="og:image" content="https://www.russiangrammarpractice.com/assets/img/favicon/android-chrome-512x512.png">
<link rel="icon" type="image/svg+xml" href="/assets/img/favicon/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="mask-icon" href="/assets/img/favicon/safari-pinned-tab.svg" color="#dc2f44">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="/main.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script type="text/javascript" src="/app.js"></script>
<link rel="preconnect" href="https://cdn.jsdelivr.net" crossorigin>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<style>
body {
background-color: rgb(46, 56, 66); /* Putting this line in main.css breaks bootstrap color variables */
}
#centered-title { font-size: 3.10vw; }
#question, #result { font-size: 2.90vw; }
/* Big screens - Increase size of widgets, buttons, and modal */
@media screen and (min-width: 1600px) and (min-height: 900px) {
#alert, #dropdownMenu2, .btn-primary, .btn-success, .dropdown-menu { font-size: 1.00vw; }
#inputAnswer, #check-button { font-size: 1.10vw; }
.modal-title { font-size: 1.09vw; }
.modal-body { font-size: 1.02vw; }
.modal { --bs-modal-width: 27.34vw; }
svg { width: 0.85vw; height: 0.85vw; }
.spinner-border { --bs-spinner-width: 1.59vw; --bs-spinner-height: 1.59vw; }
}
</style>
<body>
<div class="alert-holder" style="display: none;">
<div id="alert" class="alert alert-warning position-absolute d-flex align-items-center top-0 start-50 translate-middle-x" role="alert" style="margin-top: 10px;">
<svg xmlns="http://www.w3.org/2000/svg" class="bi bi-exclamation-triangle-fill flex-shrink-0 me-2" width="18" height="18" viewBox="0 0 16 16" role="img" aria-label="Warning:">
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"/>
</svg>
<div class="d-flex align-items-center">
<strong role="status">Network Error! Retrying </strong>
<div class="spinner-border text-warning ms-auto" aria-hidden="true"></div>
</div>
</div>
</div>
<!-- Exercises Dropdown -->
<div class="dropdown position-fixed top-0 start-0 p-2">
<button class="btn btn-info dropdown-toggle" type="button" id="dropdownMenu2" data-bs-toggle="dropdown" aria-expanded="false">Exercise Type </button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu2">
<li><button class="dropdown-item" type="button" onclick="resetForm(false); verb();">Verb Conjugations</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); singNoun();">Singular Noun Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); plurNoun();">Plural Noun Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); singAdj();">Singular Adjective Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); plurAdj();">Plural Adjective Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); pronoun();">Pronoun Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); possessive();">Possessive Pronoun + Сам Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); demonstrative();">Demonstrative + Весь Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); questionWord();">Question Word Cases</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); comparative();">Comparative Creation</button></li>
<li><button class="dropdown-item" type="button" onclick="resetForm(false); shortFormAdj();">Short Form Adjectives</button></li>
</ul>
</div>
<!-- About Button -->
<div class="position-fixed top-0 end-0 p-2">
<button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#aboutModal">About</button>
</div>
<!-- Modal -->
<div class="modal fade" id="aboutModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="aboutModalLabel">About</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div>Made with 💚 by <a href="https://www.kyles.world/" target="_blank" rel="noopener noreferrer">Kyle</a></div>
<div> </div>
<div>Found a vocab / grammar issue or technical bug? Have an improvement in mind? Let me know on <a href="https://www.github.com/kyletimmermans/russian-grammar-practice" target="_blank" rel="noopener noreferrer">GitHub</a>!</div>
<div> </div>
<i>Russian Learning Resources:</i>
<ul>
<li><a href="http://russiandrills.byu.edu/" target="_blank" rel="noopener noreferrer">BYU Russian Drills</a></li>
<li><a href="https://raw.githubusercontent.com/kyletimmermans/russian-grammar-practice/master/resources/All%20Russian%20Case%20Declensions.jpeg" target="_blank" rel="noopener noreferrer">Russian Case Chart</a></li>
<li><a href="http://masterrussian.com/" target="_blank" rel="noopener noreferrer">General Russian Lessons & Grammar</a></li>
<li><a href="https://www.russianforfree.com/exercises.php" target="_blank" rel="noopener noreferrer">Russian Case Practice</a></li>
<li><a href="https://babadum.com/play/?lang=8&game=1" target="_blank" rel="noopener noreferrer">Russian Vocab Learning Game (BaBaDum)</a></li>
<li><a href="https://cooljugator.com" target="_blank" rel="noopener noreferrer">Cooljugator</a></li>
<li style="list-style: none;">
<ul>
<li><a href="https://cooljugator.com/ru" target="_blank" rel="noopener noreferrer">Conjugate Verbs</a></li>
<li><a href="https://cooljugator.com/run" target="_blank" rel="noopener noreferrer">Decline Nouns</a></li>
<li><a href="https://cooljugator.com/rua" target="_blank" rel="noopener noreferrer">Decline Adjectives</a></li>
</ul>
</li>
<li><a href="https://context.reverso.net/translation/russian-english/" target="_blank" rel="noopener noreferrer">Reverso Context (Translator w/ Examples)</a></li>
<li><a href="https://www.barcharts.com/subject/foreign-language-study/russian/" target="_blank" rel="noopener noreferrer">BarCharts© QuickStudy Russian Study Guides</a></li>
</ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-success" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="d-flex flex-column justify-content-center align-items-center vh-100">
<div class="row" style="margin-bottom: 7vh;">
<!-- Page loads w/ verbs first-->
<h1 class="col" id="centered-title"><b>Verb Conjugations</b></h1>
</div>
<div class="row" style="margin-top: 6vh; margin-bottom: 8vh;">
<div class="col" id="question"></div>
</div>
<div class="row">
<input class="form-control-lg" id="inputAnswer" type="text" placeholder="Answer" spellcheck="false">
<button type="button" id="check-button" class="btn btn-outline-info" onclick="checkAnswer();">Check</button>
</div>
<div class="row" style="margin-top: 8vh;">
<div class="col" id="result">Result: </div>
</div>
</div>
<script>
// On 'Enter' when in search bar, do check answer or skip
var input = document.getElementById("inputAnswer");
var checkButton = document.getElementById("check-button");
input.addEventListener("keypress", function(event) {
if (event.key === "Enter") {
event.preventDefault();
checkButton.click();
}
});
</script>
<script>console.log("%cNo Cheating :)", "background: rgba(13, 202, 240, 0.5);");</script>
</body>
</html>