Skip to content

Commit

Permalink
Size of typing panel
Browse files Browse the repository at this point in the history
  • Loading branch information
shahverd committed Feb 28, 2024
1 parent 98d6290 commit 977332f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
11 changes: 6 additions & 5 deletions assets/css/practice.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ figure{
}
#text{
padding-bottom: 0px;
padding-left: 40px;
text-indent: 40px;
color: #000000;
margin: auto;
max-width: 960px;
max-width: 1000px;
min-height: 160px;
}
#text span{
font-size: 35px;
font-size: 25px;
font-weight: bold;
}
#typed{
color: #bbb;
Expand All @@ -123,6 +123,7 @@ figure{
font-size: 30px;
}
#lesson_name{
font-family: "titrFont";
font-size: 18px !important;
}

Expand All @@ -140,8 +141,8 @@ figure{
font-size:30px;
}
#content{
padding-top: 30px;
margin-right: 50px;
/*padding-top: 30px;
margin-right: 50px; */
}
#dest{
padding-top: 90px;
Expand Down
4 changes: 2 additions & 2 deletions assets/js/practice.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const COLORED_KEY_MOST_MISTAKES = "#640a0a"
const CHAR_SPACE = '␣'

const CHAR_HISTORY_LENGHTH = 20;
const NUMBER_OF_WORDS_PER_PRACTICE = 30
const NUMBER_OF_WORDS_PER_PRACTICE = 35

const KEY_MAP = {
"-": "Minus",
Expand Down Expand Up @@ -415,4 +415,4 @@ class Practice {

const practice = new Practice();

document.onkeypress = (evt) => practice.processKeypress(evt);
document.onkeypress = (evt) => practice.processKeypress(evt);
15 changes: 9 additions & 6 deletions html/practice.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@
</ul>
</nav>
<hr>
<h2>(<span id="lesson_name"></span>)</h2>
<div>
<b><span id="lesson_name"></span></b> -
<span class="stat_line">
<i>سرعت تایپ</i>: <b style="font-family:titrFont; " id="result">0</b> واژه بر دقیقه؛
<i>میزان خطا</i>: <b style="font-family:titrFont; " id="mistakes">0</b>؛
<i> بهترین سرعت</i>: <b style="font-family:titrFont; " id="best"></b> واژه بر دقیقه
</span>
</div>

<span id="typed"></span><span id="overlay"></span><span id="to_type">در حال بارگذاری...</span>
</div>

</div>

<div id="res_div">
<p>
<i>سرعت تایپ</i>: <b style="font-family:titrFont; " id="result">0</b> واژه بر دقیقه؛
<i>میزان خطا</i>: <b style="font-family:titrFont; " id="mistakes">0</b>؛
<i> بهترین سرعت</i>: <b style="font-family:titrFont; " id="best"></b> واژه بر دقیقه
</p>

<div id="keyboard_practice">
<svg width="100%" class="KeyboardWrap Keyboard-frame" viewBox="0 0 630 210">

Expand Down

0 comments on commit 977332f

Please sign in to comment.