Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Terraform modules
Analyze
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
Zhefu Li
Tsinghua
Commits
b5eaa681
Commit
b5eaa681
authored
8 months ago
by
HouTeng Chan
Browse files
Options
Downloads
Patches
Plain Diff
Update file attributions.html
parent
1c6d5073
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wiki/pages/attributions.html
+13
-46
13 additions, 46 deletions
wiki/pages/attributions.html
with
13 additions
and
46 deletions
wiki/pages/attributions.html
+
13
−
46
View file @
b5eaa681
...
...
@@ -49,50 +49,31 @@
}
.progress-container
{
position
:
fixed
;
left
:
20px
;
bottom
:
80px
;
width
:
8
0px
;
height
:
8
0px
;
z-index
:
1000
;
position
:
fixed
;
left
:
20px
;
bottom
:
80px
;
width
:
6
0px
;
height
:
6
0px
;
z-index
:
1000
;
}
.progress-bar-circle
{
transform
:
rotate
(
-90deg
);
filter
:
drop-shadow
(
0
0
5px
rgba
(
250
,
128
,
114
,
0.5
));
}
.progress-circle-bg
{
fill
:
none
;
stroke
:
rgba
(
250
,
128
,
114
,
0.2
);
stroke-width
:
8
;
}
.progress-circle
{
fill
:
none
;
stroke
:
url(#gradient)
;
stroke
:
hsl
(
17
,
100%
,
50%
);
stroke-linecap
:
round
;
stroke-width
:
8
;
transition
:
stroke-dashoffset
0.3s
ease
;
transition
:
stroke-dashoffset
0.3s
;
}
.progress-text
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
font-size
:
1
6
px
;
font-size
:
1
2
px
;
font-weight
:
bold
;
color
:
#fa8072
;
text-shadow
:
1px
1px
2px
rgba
(
0
,
0
,
0
,
0.1
);
}
@keyframes
pulse
{
0
%
{
transform
:
scale
(
1
);
}
50
%
{
transform
:
scale
(
1.05
);
}
100
%
{
transform
:
scale
(
1
);
}
color
:
hsl
(
17
,
100%
,
50%
);
}
</style>
</head>
<body>
...
...
@@ -113,20 +94,12 @@
</div>
<div
class=
"progress-container"
>
<svg
class=
"progress-bar-circle"
width=
"80"
height=
"80"
>
<defs>
<linearGradient
id=
"gradient"
x1=
"0%"
y1=
"0%"
x2=
"100%"
y2=
"0%"
>
<stop
offset=
"0%"
stop-color=
"#ff9a9e"
/>
<stop
offset=
"100%"
stop-color=
"#fa8072"
/>
</linearGradient>
</defs>
<circle
class=
"progress-circle-bg"
cx=
"40"
cy=
"40"
r=
"34"
/>
<circle
class=
"progress-circle"
cx=
"40"
cy=
"40"
r=
"34"
/>
<svg
class=
"progress-bar-circle"
width=
"60"
height=
"60"
>
<circle
class=
"progress-circle"
cx=
"30"
cy=
"30"
r=
"25"
stroke-width=
"5"
fill=
"transparent"
></circle>
</svg>
<div
class=
"progress-text"
>
0%
</div>
</div>
<div
class=
"row mt-4"
>
<div
class=
"col-lg-12"
>
<h2
id=
"description"
>
...
...
@@ -188,7 +161,6 @@
<script>
document
.
addEventListener
(
'
DOMContentLoaded
'
,
function
()
{
var
circle
=
document
.
querySelector
(
'
.progress-circle
'
);
var
text
=
document
.
querySelector
(
'
.progress-text
'
);
var
radius
=
circle
.
r
.
baseVal
.
value
;
var
circumference
=
radius
*
2
*
Math
.
PI
;
...
...
@@ -198,12 +170,7 @@
function
setProgress
(
percent
)
{
const
offset
=
circumference
-
(
percent
/
100
)
*
circumference
;
circle
.
style
.
strokeDashoffset
=
offset
;
text
.
textContent
=
Math
.
round
(
percent
)
+
'
%
'
;
// Add pulse animation when progress changes
text
.
style
.
animation
=
'
none
'
;
text
.
offsetHeight
;
// Trigger reflow
text
.
style
.
animation
=
'
pulse 0.5s ease
'
;
document
.
querySelector
(
'
.progress-text
'
).
textContent
=
Math
.
round
(
percent
)
+
'
%
'
;
}
function
handleScroll
()
{
...
...
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