-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolio.html
32 lines (29 loc) · 1.2 KB
/
portfolio.html
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
<!DOCTYPE HTML>
<html>
<head>
<title>Joshua's First Website</title>
<link rel="stylesheet" type="text/css" href="mystyle.css"> </link>
</head>
<body>
<div id="all-contents">
<nav>
<header>Joshua's First Website</header>
<ul>
<li><a href="index.html">Home</a>
</li>
<li><a href="portfolio.html">Portfolio</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>