-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
67 lines (56 loc) · 2.62 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
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Advanced Math Problem Generator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<nav>
<div class="container">
<a href="https://github.com/sankeer28/Math-PDF-Generator-Web">GitHub</a>
</div>
</nav>
<main class="container">
<div class="content-box">
<h1>Random Math Problem Generator</h1>
<h3>Generate Customized Math PDFs</h3>
<form id="pdfForm">
<div>
<label for="problemType">Problem Type:</label>
<select id="problemType" name="problemType">
<option value="equations">Equations Only</option>
<option value="word">Word Problems Only</option>
<option value="mixed">Mixed (Alternating Pages)</option>
</select>
</div>
<div>
<label for="operation">Math Operation (for equations and standard word problems):</label>
<select id="operation" name="operation">
<option value="addition">Addition</option>
<option value="subtraction">Subtraction</option>
<option value="multiplication">Multiplication</option>
<option value="division">Division</option>
<option value="mixed">Mixed Operations</option>
</select>
</div>
<div>
<label for="numPDFs">Number of PDFs:</label>
<input type="number" id="numPDFs" name="numPDFs" min="1" value="20">
</div>
<div>
<label for="numPages">Pages per PDF:</label>
<input type="number" id="numPages" name="numPages" min="1" max="20" value="4">
</div>
<button type="submit">Generate PDFs</button>
</form>
<div id="progress-message"></div>
</div>
</main>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js"></script>
<script src="script.js"></script>
</body>
</html>