This repository has been archived by the owner on Jan 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
97 lines (77 loc) · 3.65 KB
/
index.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" href="css/font.css">
<link rel="stylesheet" href="css/reset.css"> <!-- CSS reset -->
<link rel="stylesheet" href="css/style.css"> <!-- Resource style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<script type="text/javascript" src="js/types.js"></script>
<script type="text/javascript" src="js/events.js"></script>
<title>Wentworth Diversity Timeline</title>
<link rel="apple-touch-icon" sizes="57x57" href="favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body>
<header>
<h1>
Wentworth Diversity Timeline<br />
</h1>
</header>
<section id="cd-timeline" class="cd-container">
<script>
function escapeHtml(str) {
var div = document.createElement('div');
div.appendChild(document.createTextNode(str));
return div.innerHTML;
}
function addEvent(item, index) {
document.write('<div class="cd-timeline-block">');
document.write('<div class="cd-timeline-img" style="background: ' + escapeHtml(types[item['type']]['bg']) + '">');
document.write('<img src="img/' + escapeHtml(types[item['type']]['pic']) + '" />');
document.write('</div>');
document.write('<div class="cd-timeline-content">');
if (item['title'] !== null) {
document.write('<h2>');
document.write(escapeHtml(item['title']));
if (item['history']) {
document.write('<span style="vertical-align: super">*</span>');
}
document.write('</h2>');
}
document.write('<p>' + escapeHtml(item['content']) + '</p>');
if (item['link'] !== null) {
document.write('<a href="' + escapeHtml( item['link'] ) + '" target="_blank" class="cd-read-more">Read more</a>');
}
document.write('<span class="cd-date">' + escapeHtml( item['date'] ) + '</span>');
document.write('</div>');
document.write('</div>');
}
events.forEach(addEvent);
</script>
</section> <!-- cd-timeline -->
<footer>
<span style="vertical-align: super">*</span><span style="font-style: italic">Events included for historical context.</span>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script> <!-- Resource jQuery -->
</body>
</html>