-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathportfolio.html
More file actions
45 lines (43 loc) · 1.22 KB
/
portfolio.html
File metadata and controls
45 lines (43 loc) · 1.22 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Daniel Kogler's Frogsite</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="all-contents">
<nav>
<h1>Daniel's Toadhouse</h1>
<ul id="nav-ul">
<li class="nav-li"><a href="index.html">Home</a></li>
<li class="nav-li"><a href="portfolio.html">Portfolio</a></li>
<li class="nav-li"><a href="studies.html">Studies</a></li>
</ul>
</nav>
<main>
<div class="content">
<h1>Portfolio</h1>
<ul id="portfolio"></ul>
</div>
</main>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script id="portfolioScript">
$(document).ready(function () {
$.getJSON("projects/projects.json").then(function (data) {
data.projects.forEach(function (project) {
$("#portfolio").append(
'<li><a href="projects/' +
project.name +
'/">' +
project.title +
" : " +
project.description +
"</a></li>"
);
});
});
});
</script>
</body>
</html>