-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
212 lines (194 loc) · 6.83 KB
/
index.html
File metadata and controls
212 lines (194 loc) · 6.83 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE HTML>
<!--
########################################################################
# #
# VICELAB.NET, Research Lab of Professor Joshua H. Viers #
# Hosted via Github Pages (github.com/vicelab) #
# #
# This site is built using HTML, with jQuery as a light-weight CMS. #
# #
# Are you a web developer maintaining this site? Have any questions? #
# Email brianhungerman@gmail.com with any questions! #
# #
########################################################################
-->
<html>
<head>
<title>VICE Lab</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="is-preload">
<div id="wrapper">
<!-- HEADER [top menu] -->
<!-- <div style="position:fixed;width:540px;height:40px;left:-100px; transform: rotate(-45deg);z-index:1000000;background-color:lightcoral;">
<h2 style="font-size:1em; color:white;"> Site under construction!</h2>
</div> -->
<header id="header">
<h1>
<a href="../#">VICE Lab</a>
</h1>
<nav class="links">
<ul id="navigation_top">
</ul>
</nav>
<nav class="main">
<ul>
<!-- <li class="search">
<a class="fa-search" href="#search">Search</a>
<form id="search" method="get" action="#">
<input type="text" name="query" placeholder="Search" />
</form>
</li> -->
<li class="menu">
<a class="fa-bars" href="#menu">Menu</a>
</li>
</ul>
</nav>
</header>
<!-- MENU [right-side pull-out menu] -->
<section id="menu">
<!-- <section>
<form class="search" method="get" action="#">
<input type="text" name="query" placeholder="Search" />
</form>
</section> -->
<section>
<ul class="links" id="navigation_side">
</ul>
</section>
<!-- <section>
<ul class="actions stacked">
<li>
<a href="#" class="button large fit">Log In</a>
</li>
</ul>
</section> -->
</section>
<!-- MAIN COLUMN -->
<div id="main">
<!-- INTRO TILE -->
<article class="post">
<header>
<div class="title">
<h2>
<a href="about">Welcome to the VICE Lab</a>
</h2>
</div>
</header>
<a href="about" class="image featured" style="box-shadow: 5px 5px 25px -5px rgba(0, 0, 0, 0.45);">
<img src="images/pic01.jpg" alt="" />
</a>
<div id="about"></div>
<footer>
<ul class="actions">
<li>
<a href="about" class="button large">Learn More</a>
</li>
</ul>
</footer>
</article>
<div id="news"></div>
<!-- WHERE WE ARE -->
<article class="post" id="where-we-are">
</article>
</div>
<!-- SIDE COLUMN -->
<section id="sidebar">
<section id="intro">
<center>
<img src="images/logo.png" style="height:7.6em" alt="" />
<pre><code style="padding: .75em .5em; font-size: .85em;">vicelab <- lab(viers ~ (info + cons + env))</code></pre>
</center>
</section>
<section style="border-top: 0px; margin: 0em; padding: 0em">
<div class="mini-posts" id="projects">
</div>
</section>
<!-- About -->
<!-- <section class="blurb" id="blurb">
</section> -->
<!-- Footer -->
<section id="footer">
<a rel="me" href="https://vmst.io/@Vicelab">Mastodon Acct</a>
</section>
</section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.csv.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
<script>
const NUMBER_FRONT_PAGE_NEWS = 5;
function showSlides() {
var i;
var slides = document.getElementsByClassName("mySlides");
for (i = 0; i < slides.length; i++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex > slides.length) { slideIndex = 1 }
slides[slideIndex - 1].style.display = "block";
setTimeout(showSlides, 2000); // Change image every 2 seconds
}
$(function () {
jQuery.get("../snippets/navigation.html").then(function (text, status, xhr) {
$("#navigation_top").append($.parseHTML(text)); /*Navigation: Controlled by HTML snippet in snippets/navigation.html*/
$("#navigation_side").append($.parseHTML(text));
});
$("#where-we-are").load("snippets/where-we-are.html"); /*where-we-are: Controlled by HTML snippet in snippets/where-we-are.html*/
$("#about").load("snippets/who-we-are.html"); /*About: Controlled by HTML snippet in snippets/who-we-are.html*/
// $("#blurb").load("snippets/blurb.html"); /*Blurb: Controlled by HTML snippet in snippets/blurb.html*/
$("#footer").load("snippets/footer.html"); /*Footer: Controlled by HTML snippet in snippets/footer.html*/
$.get("/news.csv").then(function (text, status, xhr) {
var data = $.csv.toObjects(text);
for (var i = 0; i < NUMBER_FRONT_PAGE_NEWS; i++) {
switch (data[i].ID) {
default:
$("#news").append(
$.parseHTML(
'<article class="post">' +
'<header>' +
'<div class="title">' +
'<h2><a href="/news">' + data[i].NAME + '</a></h2>' +
'</div>' +
'<div class="meta">' +
'<time class="published" datetime="2015-11-01">' + data[i].DATE + '</time>' +
'<a href="/people" class="author"><span class="name">' + data[i].AUTHOR.replace("-", " ") + '</span><img src="/images/people/' + data[i].AUTHOR + '.jpg" alt="" /></a>' +
'</div>'+
'</header>' +
'<div style="display: block; overflow: auto">' +
'<img style= "margin: 0 1em 1em 0; float:left; width: 35%;" class="image featured" src="/images/news/' + data[i].ID + '.jpg" alt="" />' +
'<p style="margin:0;">' + data[i].TEXT + '</p>' +
'</div>' +
'</article>'
));
break;
}
}
});
$.get("/projects.csv").then(function (text, status, xhr) {
var data = $.csv.toObjects(text);
for (var i = 0; i < data.length; i++) {
switch (data[i].ID) {
case "READ MORE":
$("#projects").append(
$.parseHTML('<ul class="actions"><li><a href="/projects" class="button large">See Projects</a></li></ul>'
));
break;
default:
$("#projects").append(
$.parseHTML('<article class="mini-post"><header><h3><a href="/projects">' + data[i].NAME + '</a></h3><time class="published" datetime="2015-10-18">' + data[i].DATE + '</time><a href="/people" class="author"><img src="/images/people/' + data[i].AUTHOR.split(";")[0] + '.jpg" alt="" /></a></header><a href="/projects" class="image"><img src="images/projects/' + data[i].ID + '.jpg" alt="" /></a></article>'
));
break;
}
}
});
});
</script>
</body>
</html>