-
Notifications
You must be signed in to change notification settings - Fork 0
/
journal.html
85 lines (79 loc) · 3.27 KB
/
journal.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Journal</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="css/journal.css">
<link rel="stylesheet" href="css/navbar.css" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css"
rel="stylesheet"
/>
</head>
<body>
<!-- Container for Content -->
<div class="container p-2">
<div class="row">
<div class="col-3 col-lg-4 p-0 m-0">
<button class="btn btn-info text-white m-2 btn-sm" id="addNoteBtn" onclick="showAddNoteForm()">Add Note</button>
</div>
<div class="col-5 col-lg-4 p-0 text-center">
<h1 class>Journal</h1>
</div>
<div class="col-3 col-lg-4 m-0">
<button class="btn btn-success m-2 btn-sm" id="consultCropBtn">Consult</button>
</div>
<div class="container">
<div class="row">
<!-- Hidden container -->
<div class="d-none col-12" id="noteFormContainer" >
<div class="row">
<div class="col-12">
<textarea class="form-control" id="noteTextarea" rows="1" style="resize: vertical; overflow: hidden;" placeholder="Enter your note" oninput="autoResizeTextarea(this)"></textarea>
</div>
<div class="col-3 offset-2">
<button class="btn btn-success m-2" id="saveNoteBtn">Save</button>
</div>
<div class="col-3 offset-2">
<button class="btn btn-danger m-2" id="cancelNoteBtn">Cancel</button>
</div>
</div>
</div>
</div>
</div>
<!-- Journal Entries -->
<div id="journal-entries" class="col-12">
</div>
</div>
</div>
</div>
<!--Footer-->
<nav class="navbar fixed-bottom navbar-expand-lg navbar-dark">
<div class="container">
<a class="navbar-brand" href="community.html">
<i class="bi bi-people"></i>
</a>
<a class="navbar-brand" href="journal.html">
<i class="bi bi-list-task"></i>
</a>
<a class="navbar-brand" href="newcrop.html">
<i class="bi bi-house-door"></i>
</a>
<a class="navbar-brand" href="weather.html">
<i class="bi bi-cloud-sun"></i>
</a>
</div>
</nav>
<!-- Bootstrap -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- Firebase JavaScript SDK -->
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.0.3/firebase-firestore.js"></script>
<script src="js/firebase.js"></script>
<script src="js/journal.js"></script>
</body>
</html>