-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
62 lines (61 loc) · 1.85 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
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>All strings Tracker</title>
<link rel="stylesheet" href="style.css" />
<script src="main.js" defer></script>
</head>
<body>
<header>
<div class="heading">
<h1>All Strings Tracker revised</h1>
<p>Choose a function to begin with.... then input a string</p>
</div>
<div class="buttons">
<button class="capital">capitalFirst words</button>
<button class="padstart">padstart words</button>
<button class="addup">padEnd words</button>
<button class="camelcase">camelCase words</button>
<button class="reverse">reverse words</button>
<button class="trim">trim words</button>
<button class="repeat">repeat words</button>
</div>
<div class="inputs">
<input
type="text"
name=""
id=""
placeholder="input a string"
class="input-filed"
/>
<button type="submit" class="check">Check!</button>
</div>
</header>
<main class="main">
<div class="left">
<h3>Code Example...</h3>
<code class="code">
<p>
//this will padstart the input<br />
<br />
function padAtStart(string) {<br />
<br />
const len = string.length + 7;<br />
return string.padStart(len, 'x');<br />
<br />
}
</p>
</code>
</div>
<div class="right">
<h3>Answer for the code...</h3>
<div class="answer">xxxxxxx288</div>
</div>
</main>
<footer class="footer">
jac wida © 2023 coding practise: Strings section
</footer>
</body>
</html>