-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
25 lines (20 loc) · 733 Bytes
/
Copy pathscript.js
File metadata and controls
25 lines (20 loc) · 733 Bytes
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
// create a simple class with a
function redirect() {
var dropdown = document.getElementById('dropdown');
var selected = dropdown.options[dropdown.selectedIndex].text;
if (selected == "Homework 1") {
window.location.href = "./src/homework1/index.html";
}
if (selected == "Homework 2") {
window.location.href = "./src/homework2/index.html";
}
if (selected == "Homework 3") {
window.location.href = "./src/homework3/index.html";
}
if (selected == "Homework 4") {
window.location.href = "./src/homework4/index.html";
}
if (selected == "Project") {
window.location.href = "./Attraction-convexity-and-Normal-Visibility-project/index.html";
}
}