-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojectLoad.js
More file actions
57 lines (51 loc) · 2.22 KB
/
projectLoad.js
File metadata and controls
57 lines (51 loc) · 2.22 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
//For when I move on to the Google sheets api:
//My access token is ya29.Il-vB0IRiAppkVpR9LejCdHbXfZHMZL1Y-qbLSqAy9zWtAf_BXphegQVaUfhlv7M8ecPdsWAKLBCZqo6iOGcKBf0kDOi_pbYqjqKrWaaadjqpXS4AhVenNud7yLphCt0TQ
//============================================================//
// //
// These are the actual projects //
// They are stored in the format: //
//[[name, [descriptions], link], [name, [descriptions], link]]//
// //
//============================================================//
const projects = [
[
"Vector Translate",
[
"a program I created that allows you to transform equations and polygons automatically."
],
"vec.html"
],
[
"The Texting Robot",
[
"a robot we are working on that allows you to send a text to the robot, and it will print it out on a peice of paper.",
"If you want to help with the Robot, here are the github repositories for the code and 3D models"
],
"https://github.com/66945/TextingRobot"
],
[
"Renshaw",
[
"a quick script you can put in a chrome bookmark to re-enable styling on <a href=\"https://jrenshaw.com\" class=\"link\">Jonathon Renshaws website.</a>",
"To download just paste the code given into a bookmark and click it whenever the website becomes ugly"
],
"renshaw.html"
]
];
let projectDiv = document.getElementById("projects");
function addProject(project) {
projectDiv.innerHTML += "<h2>" + project[0] + "</h2>";
projectDiv.innerHTML += "<i>" + project[0] + "</i> is ";
for(let i = 0; i < project[1].length; i++) {
projectDiv.innerHTML += project[1][i];
projectDiv.innerHTML += "<br>";
}
projectDiv.innerHTML += "<br>";
projectDiv.innerHTML += "<a href=\"" + project[2] + "\" class=\"link\">" + project[0] + "</a>";
projectDiv.innerHTML += "<br><br>";
}
function loadProjects() {
for(let i = 0; i < projects.length; i++) {
addProject(projects[i]);
}
}