Skip to content

Commit 5186d70

Browse files
updated
1 parent 3460698 commit 5186d70

File tree

6 files changed

+658
-313
lines changed

6 files changed

+658
-313
lines changed

README.md

+15-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ See the live site here:
44

55
http://wallythewebdev.com/Notables/
66

7-
This is a note apliaction built out using Pure JS -
7+
This is a note apliaction built out using Vanilla JS -
88

99
I intend to have several versions of this aplcation:
1010

@@ -18,15 +18,15 @@ v2 - aplcation uses local storage of the device to keep a record of the notes ta
1818

1919
V2.1 REWORKING
2020

21-
1) re work the moudle layout of the JS -
21+
1) re work the moudle layout of the JS - :: completed
2222

23-
controller: controlls buttons of app
23+
controller: controlls buttons of app :: completed
2424

25-
UIControlls: controlls inputs
25+
UIControlls: controlls inputs :: completed
2626

27-
NoteApp: controlls maths
27+
NoteApp: controlls maths
2828

29-
2) add DOMstrings to prevent unwanted bugs from change in classNames down the track
29+
2) add DOMstrings to prevent unwanted bugs from change in classNames down the track :: completed
3030

3131
3) re-work the functions to be private - use of IIFE and return i.e.
3232

@@ -39,6 +39,15 @@ V2.1 REWORKING
3939
}
4040
})()
4141

42+
:: completd
43+
44+
3) storing data - create a function constructor for the data being stored: this will allow functions to be assigned to that data VIA
45+
the prototype chain
46+
47+
4) update the created notes > to be inputted via inputAdjacentHTML rather than appending multiple child elements
48+
49+
5) restructure the data of how the note details are being held
50+
4251
v3 - additional reporting to be added, so, user may better understand there ability to fulfill tasks
4352

4453
v4 - log on system to be implimented so data can be accsessed from multiple platforms

index.html

+17-15
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,24 @@ <h1>Notables</h1>
1414
<!-- need a input -->
1515
<!-- this will be a form and a submit for the form -->
1616

17-
<form>
18-
<input type="text" name="noteTitle" placeholder="note title" required>
19-
<input type="text" name="noteDescription" placeholder="description" required>
17+
18+
2019

21-
<input type="submit" onClick="uiControlls.getNote()">
22-
</form>
23-
<div class="option_holder">
24-
<button class="option" onclick="pushData.saveNotes()">Save Notes</button>
25-
<button class="option" onclick="#">Note History</button>
26-
<button class="option" onclick="pushData.pullLocal()">Load Notes</button>
27-
<button class="option" onclick="generalCommands.clearNotes()">Clear All</button>
20+
<div class="input_fields">
21+
<input class="noteTitle" type="text" name="noteTitle" placeholder="note title">
22+
<input class="noteDescription" type="text" name="noteDescription" placeholder="description">
23+
<button class="noteSubmit">SUBMIT</button>
2824
</div>
29-
<div class="warningBox">
30-
<p class="warningMessage">This will delete all notes that have not been saved yet</p>
31-
<button class="YES">Yes</button>
32-
<button class="NO">No</button>
25+
26+
<div class="option_holder">
27+
<button class="option save_Note" >Save Notes</button>
28+
<button class="option note_history" >Note History</button>
29+
<button class="option load_note" >Load Notes</button>
30+
<button class="option clear_all" >Clear All</button>
3331
</div>
32+
3433
<section>
35-
<!-- <div class="note">
34+
<!--<div class="note">
3635
<div class="details">
3736
<h2 class="title">Meditate</h2>
3837
<p class="description">Today it would be great to mediation for a little bit and keep my headspace score alive</p>
@@ -43,6 +42,8 @@ <h2 class="title">Meditate</h2>
4342
</div>
4443
</div> -->
4544

45+
46+
4647
</section>
4748

4849
<!-- need somewhere to display the notes that currently I have -->
@@ -56,5 +57,6 @@ <h2 class="title">Meditate</h2>
5657

5758

5859
<script src="script.js"></script>
60+
<script src="script2.js"></script>
5961
</body>
6062
</html>

main.css

+2-47
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ h1 {
1818
}
1919

2020

21-
form {
21+
.input_fields {
2222

2323
height: 50vh;
2424
display: flex;
@@ -87,7 +87,7 @@ button {
8787
background: lightcoral;
8888
width: 40%;
8989
height: 30px;
90-
margin: 5%;
90+
margin: 25px auto;
9191
border: none;
9292
color: white;
9393
font-size: 1rem;
@@ -185,50 +185,5 @@ footer {
185185
}
186186

187187

188-
/* *******************
189-
MESSAGES / WARNINGS
190-
******************** */
191-
192-
.warningBox {
193-
display: flex;
194-
flex-direction: row;
195-
flex-wrap: wrap;
196-
width: 90%;
197-
margin: 25px auto;
198-
padding: 25px 10px;
199-
text-align: center;
200-
background-color: rgb(0,0,0,0.6);
201-
border-radius: 25px;
202-
203-
max-height: 500px;
204-
205-
transition: 0.5s ease-in-out;
206-
207-
height: 0px;
208-
z-index: 0;
209-
opacity: 0;
210-
}
211188

212-
.warningBox_show {
213-
height: 100%;
214-
z-index: 10;
215-
opacity: 1;
216-
}
217-
218-
219-
.warningBox p {
220-
color: white;
221-
}
222-
223-
.warningBox button {
224-
height: 50px;
225-
}
226-
227-
.warningBox button.YES {
228-
background-color: lightgreen;
229-
}
230-
231-
.warningBox button.YES {
232-
background-color: lightskyblue;
233-
}
234189

0 commit comments

Comments
 (0)