Skip to content

Commit d419e41

Browse files
committed
Bug that will be fixed soon
1 parent b46d46b commit d419e41

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ <h3 class="text-muted">the <span class="text-primary">python</span> programming
101101
<div role="tabpanel" class="tab-pane fade in active" id="overview">
102102

103103
<!-- Start of the Final Project Showcase -->
104-
<!--
104+
105105
<div class="row">
106106
<div>
107107
<div class="projects">
@@ -117,13 +117,13 @@ <h4 class="text-primary">Final Project Showcase</h4>
117117
<tbody>
118118
<!-- Showcase inserted here by resources.js TODO - add closing
119119
comment to this when uncommenting the final project showcase
120-
since HTML comments don't nest
120+
since HTML comments don't nest -->
121121
</tbody>
122122
</table>
123123
</div>
124124
<div>
125125
</div>
126-
-->
126+
127127
<!-- End of the Final Project Showcase -->
128128

129129
<div class="row">

js/resources.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,27 +220,29 @@ function create_showcase_tr(project) {
220220
$('<td>').append(
221221
// $('<center>').attr('scope', 'row').append(
222222
$('<b>').append(
223-
project.Title.concat("<br>"))).append(
224-
project.Authors.concat("<br>")).append(
225-
create_anchor(project.href, project.DemoType, "None", gtag_trackShowcaseLink)
226-
// )
223+
project.title.concat("<br>"))).append(
224+
project.authors.concat("<br>")).append(
225+
create_anchor(project.readmeLink, "README", "None", gtag_trackShowcaseLink)
226+
));
227+
$tr.append($("<br>").append(
228+
create_anchor(project.codeLink, project.codeSource, "None", gtag_trackShowcaseLink)
227229
));
228230

229231
// Add images if they're applicable
230232
if (project.img.length > 0){
231233
$tr.append(
232234
$('<td>').append(
233-
'<img src="'.concat(project.img, '"">')
235+
'<img src="'.concat(project.img, width="200", height="100", '"">')
234236
));
235237
}
236238
else {
237239
// Occupy the right hand column with something.
238240
$tr.append(
239241
$('<td>').append(
240-
""
242+
project.ext
241243
));
242244
}
243-
245+
console.log($tr)
244246
return $tr;
245247
}
246248

res/.DS_Store

2 KB
Binary file not shown.

res/projectimages/erickha.png

210 KB
Loading

res/projects.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
[
22
{
33
"uid": "4d4fd06d-adf8-4161-8fb0-27a9590231c2",
4-
"Title": "Project Title",
5-
"Authors": "Author1, Author2",
6-
"DemoType": "GitHub",
7-
"href": "https://google.com",
4+
"title": "TweetInsight",
5+
"authors": "AJ Arnolie",
6+
"readmeLink": "https://www.github.com",
7+
"codeSource": "GitHub",
8+
"codeLink": "https://www.github.com",
89
"img": "",
9-
"imgAlt": "altText",
10+
"imgAlt": "",
1011
"ext": ""
1112
},
1213
{
1314
"uid": "4d4fd06d-adf8-4161-8fb0-27a9590231c2",
14-
"Title": "Project Title2",
15-
"Authors": "Author1, Author2",
16-
"DemoType": "GitHub",
17-
"href": "https://google.com",
18-
"img": "https://www.python.org/static/community_logos/python-logo.png",
19-
"imgAlt": "altText",
15+
"title": "TweetInsight",
16+
"authors": "AJ Arnolie",
17+
"readmeLink": "https://www.github.com",
18+
"codeSource": "GitHub",
19+
"codeLink": "https://www.github.com",
20+
"img": "",
21+
"imgAlt": "",
2022
"ext": ""
21-
2223
}
2324
]

0 commit comments

Comments
 (0)