diff --git a/index.html b/index.html index 8ff2084..0657787 100644 --- a/index.html +++ b/index.html @@ -122,9 +122,10 @@

Get in touch

  • - - - + + \ No newline at end of file diff --git a/redirect.js b/redirect.js new file mode 100644 index 0000000..2bebdbf --- /dev/null +++ b/redirect.js @@ -0,0 +1,13 @@ +// Get the current URL path +var path = window.location.pathname; + +// Redirect the user based on the URL path +if (path === "/site1") { + window.location.href = "site1/index.html"; +} else if (path === "/site2") { + window.location.href = "site2/index.html"; +} else { + // If the path does not match any of the above, redirect the user to the main site + window.location.href = "index.html"; +} + diff --git a/site1/index.html b/site1/index.html new file mode 100644 index 0000000..e30bf15 --- /dev/null +++ b/site1/index.html @@ -0,0 +1,15 @@ + + + + + + Site 1 + + + +

    Welcome to Site 1

    +

    This is the first static site hosted in this repository.

    + + + + diff --git a/site1/script.js b/site1/script.js new file mode 100644 index 0000000..8b18c0b --- /dev/null +++ b/site1/script.js @@ -0,0 +1,8 @@ +// Import any necessary modules or libraries + +// Define any variables or constants + +// Implement any functions or event handlers + +// Add any additional code specific to the "site1" static site + diff --git a/site2/index.html b/site2/index.html new file mode 100644 index 0000000..0d403d5 --- /dev/null +++ b/site2/index.html @@ -0,0 +1,15 @@ + + + + + + Site 2 + + + +

    Welcome to Site 2

    +

    This is the second static site hosted in this repository.

    + + + + diff --git a/site2/script.js b/site2/script.js new file mode 100644 index 0000000..3a4dd3d --- /dev/null +++ b/site2/script.js @@ -0,0 +1,8 @@ +// Import any necessary modules or libraries + +// Define any variables or constants + +// Implement any functions or event handlers + +// Add any ad +