-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
55 lines (52 loc) · 2.15 KB
/
script.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
"use strict";
(() => {
window.portfolio = {
init: () => {
$(() => {
insertProjects(projects);
});
}
};
let projects = [
{
name: "olive",
description: "A high-level, high-performance language for numerical computing which compiles down to Javascript.",
image: "resources/olive-cover.png",
url: "https://eileenchoe.github.io/olive/website/index.html"
},
{
name: "Interaction Design API Project",
description: "For my Interaction Design class, we were asked to put together a front end for a pre-existing web service API. I chose the New York Times API and this was the front end that I developed using it.",
image: "resources/thenewyorktimes-cover.png",
url: "https://ebachoura.github.io/newyorktimes"
},
{
name: "GRNsight",
description: "Part of development team which researches and renders data visualizations of gene regulatory networks (GRNs) using this web application that we have developed.",
image: "resources/grnsight-cover.png",
url: "https://dondi.github.io/GRNsight"
},
{
name: "trailze",
description: "On the front-end development team for this application which aims to create an autonomous community of hikers who solve problems and provide information as they adventure.",
image: "resources/trailze-cover.png",
url: "https://github.com/cpetrosi/trailze"
},
];
let insertProjects = (projects) => {
let toAppend = '';
projects.forEach((project, index) => {
toAppend += '<div class="col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12"' +
'style="text-align:' + ((index % 2 !== 0) ? 'left;">' : 'right;">') +
'<a style="display:inline-block; width: 69%;" href="' + project.url + '">' +
'<div class="project">' +
'<img class="project-image" src="' + project.image +'"/>' +
'<div class="overlay">' +
'<h1 class="text-center project-header">' + project.name + "</h1>" +
'<p class="lead text-center project-body">' + project.description +
'</p></div></div></a></div>';
});
console.log(toAppend);
return $("#project-container").append($(toAppend));
};
})();