Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
Website
Commits
78ebe501
Commit
78ebe501
authored
3 years ago
by
Jonas Leder
Browse files
Options
Downloads
Patches
Plain Diff
show loading animation while page is loading
parent
6008549c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#787
failed
3 years ago
Stage: build
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
js/externalLinkHandler.js
+3
-1
3 additions, 1 deletion
js/externalLinkHandler.js
js/loader.js
+11
-0
11 additions, 0 deletions
js/loader.js
js/script.js
+1
-0
1 addition, 0 deletions
js/script.js
scss/_loader.scss
+61
-0
61 additions, 0 deletions
scss/_loader.scss
scss/style.scss
+1
-0
1 addition, 0 deletions
scss/style.scss
with
77 additions
and
1 deletion
js/externalLinkHandler.js
+
3
−
1
View file @
78ebe501
...
@@ -5,5 +5,7 @@ document.onreadystatechange = function () {
...
@@ -5,5 +5,7 @@ document.onreadystatechange = function () {
console
.
log
(
href
);
console
.
log
(
href
);
element
.
target
=
"
_blank
"
;
element
.
target
=
"
_blank
"
;
}
}
})
});
document
.
querySelector
(
"
.loader
"
).
style
.
display
=
"
none
"
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
js/loader.js
0 → 100644
+
11
−
0
View file @
78ebe501
let
div
=
document
.
createElement
(
"
div
"
);
div
.
className
=
"
loader
"
;
div
.
innerHTML
=
`<div class="loader-dots">
<div class="dots"></div>
<div class="dots"></div>
<div class="dots"></div>
<div class="dots"></div>
<div class="dots"></div>
</div>`
;
document
.
body
.
appendChild
(
div
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
js/script.js
+
1
−
0
View file @
78ebe501
require
(
"
./loader
"
);
require
(
"
./browserCheck
"
);
require
(
"
./browserCheck
"
);
require
(
"
./error
"
);
require
(
"
./error
"
);
...
...
This diff is collapsed.
Click to expand it.
scss/_loader.scss
0 → 100644
+
61
−
0
View file @
78ebe501
.loader
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
transition
:
visibility
0s
,
opacity
0
.5s
linear
;
background-color
:
$back-color
;
.loader-dots
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
.dots
{
position
:
absolute
;
padding
:
10px
;
border-radius
:
50%
;
background
:
$accent-color
;
-webkit-animation
:
loader
1s
ease-in-out
0s
infinite
;
animation
:
loader
1s
ease-in-out
0s
infinite
;
&
:nth-child
(
1
)
{
-webkit-animation-delay
:
0s
;
animation-delay
:
0s
;
}
&
:nth-child
(
2
)
{
-webkit-animation-delay
:
0
.15s
;
animation-delay
:
0
.15s
;
}
&
:nth-child
(
3
)
{
-webkit-animation-delay
:
0
.30s
;
animation-delay
:
0
.30s
;
}
&
:nth-child
(
4
)
{
-webkit-animation-delay
:
0
.45s
;
animation-delay
:
0
.45s
;
}
}
}
}
@keyframes
loader
{
0
%
{
-webkit-transform
:
translateX
(
-100px
);
transform
:
translateX
(
-100px
);
opacity
:
0
;
}
50
%
{
opacity
:
1
;
}
100
%
{
-webkit-transform
:
translateX
(
100px
);
transform
:
translateX
(
100px
);
opacity
:
0
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
scss/style.scss
+
1
−
0
View file @
78ebe501
@import
"var"
;
@import
"var"
;
@import
"colorMixer"
;
@import
"colorMixer"
;
@import
"loader"
;
@import
"general"
;
@import
"general"
;
@import
"menue"
;
@import
"menue"
;
@import
"normalize"
;
@import
"normalize"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment