-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patharchive.html
56 lines (43 loc) · 1.73 KB
/
archive.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='nocache'>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MSU Coffee Papers</title>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<!-- <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/jvshields/coffeepapers/papers.js"></script> -->
<script type="text/javascript" src="old_papers.js"></script>
<script>
var obj = JSON.parse(data);
$(document).ready(function(){
obj.forEach((article, index) => {
var title = article.title;
var authors = article.authors;
var link = article.url;
var pdf = article.pdf;
var date = article.date;
var template = '<div class="article"><big><p><strong><li>' + title + '</strong></big><br> Author(s): '+ authors+ '<br>Link: <a target="_blank" href="'+link+'">'+link+'</a>  PDF: <a download target="_blank" href="'+pdf+'"> '+pdf+'</a> <br>Date Shared: ' + date + ' </p></div>';
var element = document.querySelector('.article-container');
element.insertAdjacentHTML( 'beforeend', template );
})
});
</script>
</head>
<body>
<p><center>
<h1>MSU Astro Coffee</h1>
<!-- <strong>Now at 10:30 am, MWF!</strong> <br> -->
<strong><big>Past Papers</big></strong> <br>
<big><a href ="https://docs.google.com/spreadsheets/d/1DmYRK39GvEcRS8M9j1d9eULotRglOFGE_c5twBYK8eM/edit#gid=0">Sign up to present here</a></big>
<hr>
</center>
<ul>
<div class="article-container">
</div>
</ul>
<hr>
<strong>Extra links</strong><br>
</body>
</html>