@@ -40,13 +40,6 @@ var all_projects = [
40
40
}
41
41
]
42
42
43
- //Source: https://stackoverflow.com/questions/10123953/how-to-sort-an-object-array-by-date-property
44
- all_projects . sort ( function ( a , b ) {
45
- // Turn your strings into dates, and then subtract them
46
- // to get a value that is either negative, positive, or zero.
47
- return new Date ( b . date ) - new Date ( a . date ) ;
48
- } ) ;
49
-
50
43
function displayLatestProject ( ) {
51
44
//Source: https://stackoverflow.com/questions/10123953/how-to-sort-an-object-array-by-date-property
52
45
all_projects . sort ( function ( a , b ) {
@@ -98,4 +91,59 @@ function displayLatestProject(){
98
91
` ;
99
92
}
100
93
94
+ function remainingProjects ( ) {
95
+ //Source: https://stackoverflow.com/questions/10123953/how-to-sort-an-object-array-by-date-property
96
+ all_projects . sort ( function ( a , b ) {
97
+ // Turn your strings into dates, and then subtract them
98
+ // to get a value that is either negative, positive, or zero.
99
+ return new Date ( b . date ) - new Date ( a . date ) ;
100
+ } ) ;
101
+
102
+
103
+ for ( let i = 1 ; i < all_projects . length ; i ++ ) {
104
+ project_to_add = all_projects [ i ]
105
+ document . getElementById ( "previous-projects" ) . innerHTML += `
106
+ <div class="row">
107
+ <div class="col s12 m6 l4">
108
+ <div class="card medium">
109
+ <div class="card-image waves-effect waves-block waves-light">
110
+ <img alt="` + project_to_add . img_alt + `" src="` + project_to_add . img_src + `" style="height: 100%; width: 100%" class="activator" />
111
+ </div>
112
+ <div class="card-content">
113
+ <span class="card-title activator red-text hoverline">` + project_to_add . title + `<i
114
+ class="mdi-navigation-more-vert right"></i></span>
115
+ <p>
116
+ ` + project_to_add . description + `
117
+ </p>
118
+ </div>
119
+ <div class="card-reveal">
120
+ <span class="card-title grey-text"><small>Accomplishments</small><i
121
+ class="mdi-navigation-close right"></i></span>
122
+ <ul>
123
+ <li><b>Tools:</b> ` + project_to_add . tools + `</li>
124
+ <li>` + project_to_add . accomplishments [ 0 ] + `.</li>
125
+ <li>` + project_to_add . accomplishments [ 1 ] + `</li>
126
+ <li>` + project_to_add . accomplishments [ 2 ] + `</li>
127
+ <li>` + project_to_add . date + `</li>
128
+
129
+ </ul>
130
+ <div class="card-action">
131
+ <a aria-label="Visit " href="` + project_to_add . online_src + `" target="_blank" data-position="top"
132
+ data-tooltip="View Presentation Online"
133
+ class="btn-floating btn-large waves-effect waves-light blue-grey tooltipped"><i
134
+ class="fa fa-external-link"></i></a>
135
+ <a aria-label="Visit the GitHub repo for project" href="` + project_to_add . github_src + `"
136
+ target="_blank" data-position="top" data-tooltip="View Source"
137
+ class="btn-floating btn-large waves-effect waves-light blue-grey tooltipped"><i
138
+ class="fa fa-github"></i></a>
139
+ </div>
140
+ </div>
141
+ </div>
142
+ </div>
143
+ ` ;
144
+
145
+ }
146
+
147
+ }
148
+
101
149
displayLatestProject ( )
0 commit comments