-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ProgressBarElement { | ||
border-top: 4px var(--bs-danger) solid; | ||
position: fixed; | ||
left: 0; | ||
top: 0; | ||
transition: width .4s, left 1s; | ||
z-index: 5; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Application: | ||
Title: "Gravity" | ||
Title: "gravity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
document.addEventListener("DOMContentLoaded", (async () => { | ||
// Register global variables | ||
App = document.getElementById("App") | ||
AppTitle = document.getElementById("AppTitle") | ||
var App = document.getElementById("App") | ||
var AppTitle = document.getElementById("AppTitle") | ||
var ProgressBarElement = document.getElementById("ProgressBarElement") | ||
|
||
// Import components | ||
await ImportConfigurations() | ||
await ImportElements() | ||
|
||
// Navigate home | ||
// Navigate | ||
var interval = setInterval(function() { | ||
if (typeof window.Configuration == 'undefined') return; | ||
clearInterval(interval); | ||
|
||
Route("") | ||
Route(window.location.hash) | ||
}, 10); | ||
})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
function BlogSection() { | ||
ProgressBar(100) | ||
return ` | ||
${NavigationBarElement()} | ||
<p> blog section </p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
var IsAnimating = false | ||
|
||
function ProgressBar(length) { | ||
if(IsAnimating) return; | ||
|
||
ProgressBarElement.style.opacity = 1 | ||
IsAnimating = true | ||
|
||
if(length == 100) { | ||
ProgressBarElement.style.width = length+"%" | ||
ProgressBarElement.style.left = length+"%" | ||
setTimeout(() => { | ||
ProgressBarElement.style.opacity = 0 | ||
ProgressBarElement.style.width = 0 | ||
ProgressBarElement.style.left = 0 | ||
}, 1000); | ||
setTimeout(() => { | ||
IsAnimating = false | ||
}, 2000) | ||
return; | ||
} | ||
|
||
ProgressBarElement.style.width = length+"%" | ||
IsAnimating = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters