generated from cal-cs184/proj-webpage-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
29 lines (29 loc) · 781 Bytes
/
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
<html>
<head>
</head>
<body>
<h3>CS184/284A Project Webpages</h3>
<br><br>
<a href="/proj1/index.html">Project 1</a>
<br><br>
<a href="/proj2/index.html">Project 2</a>
<br><br>
<a href="/proj3-1/index.html">Project 3-1</a>
<br><br>
<a href="/proj4/index.html">Project 4</a>
<br><br>
<a href="/milestone/index.html">Project 4</a>
<br><br>
<a href="/final_proj/index.html">Project 4</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>