Skip to content

Commit

Permalink
fixed structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hugh5 committed Apr 22, 2024
1 parent 3176bbe commit c38a302
Show file tree
Hide file tree
Showing 26 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion experience.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<body>
<header>
<nav>
<a href="/">Home</a>
<a href=".">Home</a>
<a href="experience.html">Experience</a>
<a href="projects.html">Projects</a>
<a href="blog.html">Blog</a>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed images/pathfinding/1.jpg
Binary file not shown.
Binary file removed images/pathfinding/2.jpg
Binary file not shown.
Binary file removed images/pathfinding/3.jpg
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<body>
<header>
<nav>
<a href="/">Home</a>
<a href=".">Home</a>
<a href="experience.html">Experience</a>
<a href="projects.html">Projects</a>
<a href="blog.html">Blog</a>
Expand Down
41 changes: 21 additions & 20 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ function loadNav() {
// Colour the active nav item
var path = window.location.pathname;
var page = path.split("/").pop();
console.log(page.length);
if (page == "" || page == "index.html") {
page = "/";
page = ".";
}
$("nav a").each(function () {
var href = $(this).attr("href");
Expand Down Expand Up @@ -38,33 +39,33 @@ let counter = {

const images = {
project1: [
"/images/timetable/1.png",
"/images/timetable/2.png",
"/images/timetable/3.png",
"/images/timetable/4.png",
"/images/timetable/5.png",
"/images/timetable/6.png",
"/images/timetable1.png",
"/images/timetable2.png",
"/images/timetable3.png",
"/images/timetable4.png",
"/images/timetable5.png",
"/images/timetable6.png",
],
project2: [
"/images/pathfinding/1.png",
"/images/pathfinding/2.png",
"/images/pathfinding/3.png",
"/images/pathfinding1.png",
"/images/pathfinding2.png",
"/images/pathfinding3.png",
],
project3: [
"/images/sorting/1.png",
"/images/sorting/2.png",
"/images/sorting/3.png",
"/images/sorting1.png",
"/images/sorting2.png",
"/images/sorting3.png",
],
project4: [
"/images/neuralnetwork/1.jpg",
"/images/neuralnetwork/2.jpg",
"/images/neuralnetwork/3.jpg",
"/images/neuralnetwork/4.jpg",
"/images/neuralnetwork1.jpg",
"/images/neuralnetwork2.jpg",
"/images/neuralnetwork3.jpg",
"/images/neuralnetwork4.jpg",
],
project5: [
"/images/snake/1.gif",
"/images/snake/2.jpg",
"/images/snake/3.jpg",
"/images/snake1.gif",
"/images/snake2.jpg",
"/images/snake3.jpg",
],
};

Expand Down
2 changes: 1 addition & 1 deletion projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<body>
<header>
<nav>
<a href="/">Home</a>
<a href=".">Home</a>
<a href="experience.html">Experience</a>
<a href="projects.html">Projects</a>
<a href="blog.html">Blog</a>
Expand Down

0 comments on commit c38a302

Please sign in to comment.