-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (43 loc) · 1.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="logo.png" type="image/png">
<title>Is This a Word? | Blogger Nepal</title>
<script src="words.js"></script>
<link rel="stylesheet" href="style.css">
</head>
<body style="display: flex; flex-flow: column; min-height: calc(100vh - 40px);">
<h1>Is This a Word?</h1>
<input id="inputToCheck" type="text"> <br>
<button type="button" onclick="check()">Check</button>
<h1 id="word"></h1>
<h1 id="result"></h1>
<div style="flex: 2;">
</div>
<div>
<a href="use.html">How to use?</a> <br>
<br>
<a href="https://www.bloggernepal.com/">Blogger Nepal</a>
</div>
</body>
<script>
wordEdit = document.getElementById("inputToCheck")
wordView = document.getElementById("word");
resultView = document.getElementById("result");
function check() {
resultView.innerText = ""
resultView.innerText = ""
let word = wordEdit.value;
console.log(word);
let response = isThisAWord(word);
wordView.innerText = word;
if (response) {
resultView.innerText = "is a Word. :)"
} else {
resultView.innerText = "is not a Word. :("
}
}
</script>
</html>