-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
71 lines (67 loc) · 1.95 KB
/
app.js
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
var jsonDataBody = [
{
"header":["h1", "h4", "img", "hr"]
},
//if there is a class on the attribute, make it an object
];
// var entryOne = [
// {
// "div": {
// "id": "first",
// "class": "content",
// [
// "h2",
// "b",
// "span",
// "div": {
// "class":"article",
// [
// "h3":{
// "class":"header";
// },
// "p"
// ]
// }
// "div": {
// "class" : "article",
// [
// "h3",
// "p",
// "span": {
// "class": "highlight"
// }
// ]
// }
// ]
// }
// }
// ];
var simplifiedJSON = [
{
"identification": {
"id": "first",
"class": "content"
},
"journalEntry": "1",
"date": "August 15, 2016",
"title": "My First Entry",
"article": {
"h3": [
{
"class": "header",
"content": "Why I took this class:"
},
{
"class": "header",
"content": "What I want to get out of this class:"
}
],
"p": [
"I took this class because I want to learn how to program. I have a couple of friends that know some programming languages like HTML and Java. They were my inspiration to take this class because I aspire to reach or possibly exceed them in programming. This class would certainly be a big help. I also wanted to be one of the first people to take the class since this is the first time it is being offered to a public school in Hawai'i.",
"By the end of this school year, I want to be able to program fluently in at least two programming languages. I also want to be able to program a robot for First Robotics Competition (FRC) using Javascript. Doing so would allow me to utilize what I learned and make a contribution to my robotics team."
]
}
"img": undefined
}
];
adf