generated from cal-cs184/hw-webpage-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (37 loc) · 1.02 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
<html>
<head>
</head>
<body>
<h3>CS184/284A Homework Webpages</h3>
<br><br>
<a href="/hw1/index.html">CS184 Project 1</a>
<br><br>
<a href="/hw2/index.html">CS184 Project 2</a>
<br><br>
<a href="/hw3/index.html">CS184 Project 3</a>
<br><br>
<a href="/hw4/index.html">CS184 Project 4</a>
<br><br>
<a href="/proj1/index.html">CS180 Project 1</a>
<br><br>
<a href="/proj2/index.html">CS180 Project 2</a>
<br><br>
<a href="/proj3/index.html">CS180 Project 3</a>
<br><br>
<a href="/proj4/index.html">CS180 Project 4</a>
<br><br>
<a href="/proj5/index.html">CS180 Project 5</a>
<br><br>
<a href="/proj6/index.html">CS180 Final Project</a>
</body>
<script>
var links = document.body.getElementsByTagName("a")
var a = window.location.href.indexOf(".io")
var repo_name = window.location.href.substring(a+3)
for(var i = 0; i < links.length; i++){
var link = links[i]
var actual_name = link.href.substring(link.href.indexOf(".io")+4)
link.href = repo_name + actual_name
}
</script>
</html>