Skip to content

Commit 0b65836

Browse files
committed
Update projects.json fields
1 parent facd29f commit 0b65836

File tree

4 files changed

+33
-24
lines changed

4 files changed

+33
-24
lines changed

.DS_Store

0 Bytes
Binary file not shown.

js/resources.js

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -232,32 +232,45 @@ function create_showcase_tr(project) {
232232
.append(
233233
$("<br>")
234234
)
235+
// .append(
236+
// create_anchor(project.readmeLink, "README", "None", gtag_trackShowcaseLink)
237+
// )
238+
// .append(
239+
// $("<br>")
240+
// )
235241
.append(
236-
create_anchor(project.readmeLink, "README", "None", gtag_trackShowcaseLink)
242+
create_anchor(project.codeLink, project.codeSource, "None", gtag_trackShowcaseLink)
237243
)
238244
.append(
239245
$("<br>")
240246
)
241247
.append(
242-
create_anchor(project.codeLink, project.codeSource, "None", gtag_trackShowcaseLink)
248+
$("<span>")
249+
.append(project.ext)
243250
)
244251
);
245252

246-
247-
// Add images if they're applicable
248-
if (project.img.length > 0){
249-
$tr.append(
250-
$('<td>').append(
251-
'<img src="'.concat(project.img, width="200", height="100", '"">')
252-
));
253-
}
254-
else {
255-
// Occupy the right hand column with something.
256-
$tr.append(
257-
$('<td>').append(
258-
project.ext
259-
));
253+
if (project.rightColMedia.length > 0) {
254+
$tr = $tr.append(
255+
$("<td>").append(
256+
project.rightColMedia
257+
)
258+
)
260259
}
260+
// Add images if they're applicable
261+
// if (project.img.length > 0){
262+
// $tr.append(
263+
// $('<td>').append(
264+
// '<img src="'.concat(project.img, width="200", height="100", '"">')
265+
// ));
266+
// }
267+
// else {
268+
// // Occupy the right hand column with something.
269+
// $tr.append(
270+
// $('<td>').append(
271+
// project.ext
272+
// ));
273+
// }
261274

262275
return $tr;
263276
}

res/.DS_Store

0 Bytes
Binary file not shown.

res/projects.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,18 @@
33
"uid": "4d4fd06d-adf8-4161-8fb0-27a9590231c2",
44
"title": "TweetInsight",
55
"authors": "AJ Arnolie",
6-
"readmeLink": "https://www.github.com",
7-
"codeSource": "GitHub",
6+
"codeSource": "README and Code (GitHub)",
87
"codeLink": "https://www.github.com",
9-
"img": "",
10-
"imgAlt": "",
8+
"rightColMedia": "<a href='http://www.google.com'>Media (here is's a Google link)</a>",
119
"ext": ""
1210
},
1311
{
1412
"uid": "4d4fd06d-adf8-4161-8fb0-27a9590231c2",
1513
"title": "TweetInsight",
1614
"authors": "AJ Arnolie",
17-
"readmeLink": "https://www.github.com",
18-
"codeSource": "GitHub",
15+
"codeSource": "README and Code (GitHub)",
1916
"codeLink": "https://www.github.com",
20-
"img": "",
21-
"imgAlt": "",
17+
"rightColMedia": "<a href='http://www.google.com'>Media (here is's a Google link)</a>",
2218
"ext": ""
2319
}
2420
]

0 commit comments

Comments
 (0)