-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (59 loc) · 3.25 KB
/
Copy pathindex.html
File metadata and controls
71 lines (59 loc) · 3.25 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>FreeCodeCamp JavaScript</title>
<!-- PureCSS -->
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/pure-min.css" integrity="sha384-nn4HPE8lTHyVtfCBi5yW9d20FjT8BJwUXyWZT9InLYax14RDjBj46LmSztkmNP9w" crossorigin="anonymous">
<!-- Font Awesome-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href=stylesheet.css>
</head>
<body>
<div class="pure-g">
<div class="pure-u-1-2" id="container">
<div id="mainWrap">
<form class="pure-form pure-form-aligned" id="form" onsubmit="mainInput(); return false">
<label for="textbox">Input:</label>
<input name="input" type="text" id="textbox">
<select name="task" id="dropdown" onchange="dropdownChange(); return false">
<option value="palindrome">Palindrome checker</option>
<option value="roman">Roman number converter</option>
<option value="caesar">Caesars cipher</option>
<option value="telephone">Telephone number validator</option>
</select>
<button class="pure-button pure-button-primary" type="submit"><i class="fa fa-chevron-right"></i></button>
</form>
<div id="outputWrap" class="code code-wrap">
<p id="output"></p>
</div>
</div>
</div>
<div class="pure-u-1-2" id="description">
<div id="rightSide">
<h4 id="descTitle">Palindrome checker</h4>
<p id="descText">
Return true if the given string is a palindrome. Otherwise, return false.
A <i>palindrome</i> is a word or sentence that's spelled the same way both forward and backward, ignoring punctuation, case, and spacing.
</p>
<h4>Test cases</h4>
<ul id="descTests">
<li>eye should return true.</li>
<li>_eye should return true.</li>
<li>_eye should return true.</li>
<li>not a palindrome should return false.</li>
<li>A man, a plan, a canal. Panama should return true.</li>
<li>never odd or even should return true.</li>
<li>nope should return false.</li>
<li>almostomla should return false.</li>
<li>My age is 0, 0 si ega ym. should return true.</li>
<li>1 eye for of 1 eye. should return false.</li>
<li>0_0 (: /-\ :) 0-0 should return true.</li>
<li>five|\_/|four should return false.</li>
</ul>
</div>
</div>
</div>
<script src="functions.js"></script>
</body>
</html>