-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (43 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Graphing Calculator</title>
</head>
<body>
<header>
<div class="container">
<a href="/index.html" class="logo">Graphing Calculator</a>
</div>
</header>
<div class="calculator">
<div class="input-container">
<input type="text" id="expressionInput1" placeholder="Enter Equation 1 (e.g., sin(x), x^2 + 2x - 1)">
<input type="text" id="expressionInput2" placeholder="Enter Equation 2 (e.g., cos(x), 2x)">
<button id="plotButton">Plot</button>
</div>
<div class="chart-container">
<canvas id="graph"></canvas>
</div>
<div class="options">
<label for="plotType">Plot Type:</label>
<select id="plotType">
<option value="curve">Curve</option>
<option value="area">Area</option>
</select>
<button id="calculateAreaButton">Calculate Area</button>
<span id="areaResult"></span>
</div>
</div>
<footer>
<div class="container">
<p>© 2023 Dyutiraditya Patri</p>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/11.7.0/math.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js"></script>
<script src="script.js"></script>
</body>
</html>