-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
80 lines (74 loc) · 3.54 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
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IntrepidBird | IntrepidGraph</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<!-- Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- CSS Stylesheet -->
<link rel="stylesheet" href="styles.css">
<!-- Favicon -->
<link rel="shortcut icon" href="images/graph_fav.png" type="image/x-icon">
</head>
<body >
<!-- Header Section -->
<header class="bg-dark text-white text-center p-4">
<img src="images/graph_fav.png" width="50" height="50">
<h1>Graphing Calculator</h1>
<div class="theme-container shadow-dark">
<img id="theme-icon"
src="https://www.uplooder.net/img/image/2/addf703a24a12d030968858e0879b11e/moon.svg" alt="ERR">
</div>
</header>
<!-- Calculator Section -->
<section id="calculator" class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<h2 class="text-center mb-3">Graph Your Equations</h2>
<form id="calculatorForm">
<div class="form-group">
<label for="equations">Enter Equations (comma-separated):</label>
<input type="text" class="form-control" id="equations" placeholder="e.g., y = x^2, y = sin(x)" required>
<small class="form-text text-muted">Supported Functions: sin, cos, tan, sqrt, log, exp, pi, e, and more.</small>
</div>
<div class="form-group">
<label for="minX">Min X:</label>
<input type="number" class="form-control" id="minX" value="-10">
</div>
<div class="form-group">
<label for="maxX">Max X:</label>
<input type="number" class="form-control" id="maxX" value="10">
</div>
<div class="form-group">
<label for="graphType">Graph Type:</label>
<select class="form-control" id="graphType">
<option value="line">Line Chart</option>
<option value="scatter">Scatter Plot</option>
<option value="bar">Bar Chart</option>
<option value="pie">Pie Chart</option>
</select>
</div>
<button type="submit" class="btn btn-primary btn-block">Graph</button>
<div class="reset-container">
<button type="reset" class="btn btn-outline-secondary">Reset Equation</button>
<button type="button" class="btn btn-info" id="resetBtn">Reset Graph</button>
</div>
</form>
</div>
</div>
<div class="row mt-4 graphic-container">
<div class="col-md-12">
<canvas id="graph" class="w-100"></canvas>
</div>
</div>
</section>
<!-- Bootstrap & jQuery JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<!-- Calculator JS -->
<script src="calculator.js"></script>
</body>
</html>