forked from GardenSnake/GardenSnake.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtextanalyzer.html
44 lines (32 loc) · 1.51 KB
/
textanalyzer.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
<!DOCTYPE html>
<html>
<head>
<title>Text Analyzer </title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="https://pingendo.com/assets/bootstrap/bootstrap-4.0.0-beta.1.css">
</head>
<body>
<div id="navMenu"></div>
<!-- this div is filled by the nav.js script, maybe there's a better way to reuse navbar code -->
<!-- Implement an additional action to this program by adding a method in textanalyzer.js and linking it back to a button in this file.-->
<p id="output">Insert text in textbox below and analyze it.</p>
<textarea id="textarea" rows="4" cols="60"></textarea>
<div class="buttons">
<button class="button" onclick="characterCount()">Character Count</button>
<button class="button" onclick="spaceCount()">Space Count</button>
<button class="button" onclick="upperCase()">Uppercase</button>
<button class="button" onclick="lowerCase()">Lowercase</button>
<button class="button">?</button>
<button class="button">?</button>
<br>
<button class="button" onclick="reverseString()">Reverse Text</button>
<button class="button" onclick="numberCount()">Total Numbers</button>
<button class="button">?</button>
<button class="button">?</button>
<button class="button">?</button>
<button class="button">?</button>
</div>
<script type="text/javascript" src="js/nav.js"></script>
<script type="text/javascript" src="js/textAnalyzer.js"></script>
</body>
</html>