forked from chanlan1105/dawhacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublic.html
97 lines (80 loc) · 3.96 KB
/
public.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE HTML>
<html>
<head>
<!-- Bootstrap and jQuery -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!-- External styles -->
<link rel="stylesheet" href="public.css" />
<!-- External scripts -->
<script src="main.js" defer></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Plotly 3D Function Plot</title>
<!-- Include Plotly.js -->
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<style>
/* Center the graph horizontally */
#plot {
margin: 0 auto;
text-align: center;
}
</style>
</head>
<body>
<div class="container py-4">
<div class="row justify-content-center">
<div class="col-md-6">
<button class="btn btn-block mb-3" onclick="addTaskModal()" id="new-task-btn" >
<i class="fas fa-plus-circle"></i> Add New Task
</button>
<div id="task-list">
<div class="card task-card">
<h3 class="task-title">Test task</h3>
<div class="task-description">Test description</div>
<div class="task-progress">
<div class="progress">
<div class="progress-bar bg-dark" role="progressbar" style="width: 0%;" aria-valuenow="0"
aria-valuemin="0" aria-valuemax="100">0% completed</div>
</div>
</div>
<input type="range" class="task-progress custom-range" min="0" max="100" step="5" />
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="new-task-modal" data-backdrop="static">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Create a new task</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="new-task-title">Task title:</label>
<input class="form-control" type="text" id="new-task-title" />
</div>
<div class="form-group">
<label for="new-task-description">Description:</label>
<textarea class="form-control" type="text" id="new-task-description"></textarea>
</div>
<div class="form-group">
<label for="new-task-time">Estimated time to complete (hours):</label>
<input class="form-control" type="number" id="new-task-time" min="0" />
</div>
</div>
<div class="modal-footer">
<button class="btn btn-success" id="confirm-add-task-btn">Confirm</button>
<button class="btn btn-outline-danger" onclick="cancelAddTask()">Cancel</button>
</div>
</div>
</div>
</div>
<div id="plot" style="width: 750px; height: 600px;"></div>
<!-- Include the JavaScript file -->
<script src="graph.js"></script>
</body>
</html>