-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcrossword.html
More file actions
28 lines (27 loc) · 748 Bytes
/
crossword.html
File metadata and controls
28 lines (27 loc) · 748 Bytes
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
<html>
<head>
<style>
</style>
</head>
<body>
<input id="a" placeholder="text" />
<input id="b" placeholder="letters to remove" />
<input id="c" placeholder="more letters to remove" />
<button onclick="go()">Let's Go!</button>
<p id="p"></p>
</body>
<script>
function go(){
aa = a.value.toUpperCase()
bb = b.value.toUpperCase().split("")
cc = c.value.toUpperCase().split("")
for(bbb of bb){
aa = aa.replace(bbb, "")
}
for(ccc of cc){
aa = aa.replace(ccc,"")
}
p.textContent = aa
}
</script>
</html>