-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
113 lines (88 loc) · 4.66 KB
/
index.html
File metadata and controls
113 lines (88 loc) · 4.66 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<title>Number Generator</title>
<meta name="viewport" content="width=device-width", iniitial-scale="1.0">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<link rel="stylesheet" href="./styles/styles.css">
<script src="script.js"></script>
</head>
<body>
<div class="container" id="containerID">
<!-- Input form -->
<div class="numberGenerator">
<div class="titleArea">
<h1>Random Number Generator</h1>
<h4><a href="./php/history.php">Check History</a></h4>
</div>
<div class="form">
<form>
<p> <strong> Select 50 numbers within this range: </strong> </p>
<div class="range">
<div class="from">
<label class="fromLabel">From</label>
<div class="fromText">
<input id="numberFrom" type="text" autocomplete="off"> <br>
<label id="instructionTextFrom" class="fromReq">This field is required.</label>
</div>
</div>
<div class="to">
<label class="toLabel">To</label>
<div class="toText">
<input id="numberTo" type="text" autocomplete="off"> <br>
<label id="instructionTextTo" class="toReq">This field is required.</label>
</div>
</div>
</div>
<div class="doItButton">
<button id="buttonID" type="button" onclick="generateNumbers()">Do It!</button>
</div>
</form>
</div>
</div>
<hr class="rounded">
<p id="showResults"> Results will be shown here : </p>
<div class="doItResults" id="doItResultsID">
<!-- results table -->
<div class="results">
<div class="showResultsInstructions" id="showResultsInstructionsID">
<p id="showResults2">
* If you want to check these results later, please make sure to save the results before you leaving. </p>
<p id="showResults3">Play with the numbers! <br>
Select 10 numbers from the number box. <br>
Try <strong>Adding</strong> or <strong>Multiplying</strong> them. </p>
</div>
</div>
<div class="resultsTable">
<table id="resultsTableID">
<tbody>
</tbody>
</table>
<br><p id="a"></p>
</div>
<!-- calculation form -->
<div class="calculations" id="calculationSection">
<form class="calculationForm" id="calculationForm" action="./php/postData.php" method="post">
<div class="addition">
<button id="Add" type="button" onclick="addTheSelectedNumbers()">Add the numbers</button>
<input class="addOutput" id="addOutputID" name="addition" readonly>
</div>
<div class="multiplication">
<button id="Mul" type="button" onclick="multiplyTheSelectedNumbers()">Multiply the numbers</button>
<input class="mulOutput" id="mulOutputID" name="multiplication" readonly>
</div>
<div class="buttons">
<button class="clear" type="reset">Clear the results</button> <br>
<button id="save" class="save" type="submit" name="saveTheResults" onclick="saveTheResults()">Save the results</button>
</div>
</form>
</div>
</div>
</div>
<!-- alert box -->
<div class="alertBox" id="alertBoxID">
<span class="alertMessage" ID="alertMessageID"></span> <br>
<button class="close" id="closeButtonID">OK</button>
</div>
</body>
</html>