Skip to content

refractored the code #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 50 additions & 51 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,61 +1,60 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<link rel="icon" href="./images/favicon.jpg" type="image/x-icon">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="icon" href="./images/favicon.jpg" type="image/x-icon" />
<title>TypeTwister</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"
integrity="sha256-+N4/V/SbAFiW1MPBCXnfnP9QSN3+Keu+NlB+0ev/YKQ="
crossorigin="anonymous"
/>

</head>
<body>
</head>
<body>
<body>
<button id="settings-btn" class="settings-btn">
<i class="fas fa-angle-double-up"></i>
</button>
<div id="settings" class="settings">
<form id="settings-form">
<div>
<label for="difficulty"><b>Difficulty : </b></label>
<select id="difficulty">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
</form>
</div>
<div class="container">
<h2>👩‍💻 Speed Typer 👨‍💻</h2>
<small>Type the following:</small>
<h1 id="word"></h1>
<input
type="text"
id="text"
autocomplete="off"
placeholder="Type the word here..."
autofocus
/>
<p class="time-container">Time left: <span id="time">10s</span></p>
<p class="score-container">Score: <span id="score">0</span></p>
<div id="end-game-container" class="end-game-container"></div>
</div>

<script src='main.js'></script>
</body>
</body>
</html>
<button id="settings-btn" class="settings-btn">
<i class="fas fa-angle-double-up"></i>
</button>

<div id="settings" class="settings">
<form id="settings-form">
<div>
<label for="difficulty"><b>Difficulty : </b></label>
<select id="difficulty">
<option value="easy">Easy</option>
<option value="medium">Medium</option>
<option value="hard">Hard</option>
</select>
</div>
</form>
</div>

<div class="container">
<h2>👩‍💻 Speed Typer 👨‍💻</h2>
<small>Type the following:</small>

<h1 id="word"></h1>

<input
type="text"
id="text"
autocomplete="off"
placeholder="Type the word here..."
autofocus
/>

<p class="time-container">Time left: <span id="time">10s</span></p>

<p class="score-container">Score: <span id="score">0</span></p>

<div id="end-game-container" class="end-game-container"></div>
</div>

<script src="main.js"></script>
</body>
</body>
</html>