Skip to content

Commit 95d588b

Browse files
Merge pull request #124 from NanditaPatil-dotcom/main
fix: Bug in typing test
2 parents 2ba0798 + 39056d4 commit 95d588b

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

projects/typing-test/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ <h1>Typing Test</h1>
2222

2323
<div id="text" class="text" aria-live="polite"></div>
2424
<div id="caret" class="caret"></div>
25+
<div id="caret" class="caret"></div>
2526

2627
<div class="stats">
2728
WPM: <span id="wpm">0</span> • Accuracy: <span id="acc">100</span>% • Time: <span id="time">60</span>s

projects/typing-test/styles.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,7 @@ button:hover {
7676
}
7777

7878
.caret {
79-
position: absolute;
80-
width: 3px;
81-
height: 2.5rem;
82-
background: #00d0ff;
83-
animation: blink 1s infinite;
84-
display: none; /* hidden until typing starts */
79+
display: none;
8580
}
8681

8782
@keyframes blink {

0 commit comments

Comments
 (0)