Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenDocCN
pythonguru-zh
提交
9c426f62
P
pythonguru-zh
项目概览
OpenDocCN
/
pythonguru-zh
大约 1 年 前同步成功
通知
0
Star
13
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pythonguru-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9c426f62
编写于
5月 09, 2021
作者:
W
wizardforcel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2021-05-09 17:24:51
上级
5e87be29
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
51 addition
and
0 deletion
+51
-0
asset/back-to-top.css
asset/back-to-top.css
+19
-0
asset/back-to-top.js
asset/back-to-top.js
+20
-0
asset/up.svg
asset/up.svg
+10
-0
index.html
index.html
+2
-0
未找到文件。
asset/back-to-top.css
0 → 100644
浏览文件 @
9c426f62
#scroll-btn
{
position
:
fixed
;
right
:
15px
;
bottom
:
10px
;
width
:
35px
;
height
:
35px
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
cursor
:
pointer
;
-webkit-user-select
:
none
;
-moz-user-select
:
none
;
-ms-user-select
:
none
;
user-select
:
none
;
background-image
:
url(up.svg)
;
background-position-y
:
-1px
;
display
:
none
;
border
:
2px
solid
;
border-radius
:
4px
;
}
\ No newline at end of file
asset/back-to-top.js
0 → 100644
浏览文件 @
9c426f62
document
.
addEventListener
(
'
DOMContentLoaded
'
,
function
()
{
var
scrollBtn
=
document
.
createElement
(
'
div
'
)
scrollBtn
.
id
=
'
scroll-btn
'
document
.
body
.
append
(
scrollBtn
)
window
.
addEventListener
(
'
scroll
'
,
function
()
{
var
offset
=
window
.
document
.
documentElement
.
scrollTop
;
scrollBtn
.
style
.
display
=
offset
>=
500
?
"
block
"
:
"
none
"
;
})
scrollBtn
.
addEventListener
(
'
click
'
,
function
(
e
)
{
e
.
stopPropagation
();
var
step
=
window
.
scrollY
/
15
;
var
hdl
=
setInterval
(
function
()
{
window
.
scrollTo
(
0
,
window
.
scrollY
-
step
);
if
(
window
.
scrollY
<=
0
)
{
clearInterval
(
hdl
)
}
},
15
)
})
})
\ No newline at end of file
asset/up.svg
0 → 100644
浏览文件 @
9c426f62
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?-->
<svg
viewBox=
"0 0 17 17"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
class=
"si-glyph si-glyph-arrow-thick-up"
>
<!-- Generator: Sketch 3.0.3 (7891) - http://www.bohemiancoding.com/sketch -->
<title>
1211
</title>
<defs></defs>
<g
stroke=
"none"
stroke-width=
"1"
fill=
"none"
fill-rule=
"evenodd"
>
<path
d=
"M8.65,1.158 L3.165,7.098 C2.954,7.332 2.956,7.712 3.167,7.947 L7.035,7.952 L7.035,15.976 C7.035,16.529 7.474,16.976 8.017,16.976 L9.982,16.976 C10.525,16.976 10.964,16.529 10.964,15.976 L10.964,7.956 L14.775,7.961 C14.984,7.73 14.982,7.349 14.771,7.113 L9.414,1.159 C9.201,0.927 8.861,0.925 8.65,1.158 L8.65,1.158 Z"
fill=
"#434343"
class=
"si-glyph-fill"
></path>
</g>
</svg>
\ No newline at end of file
index.html
浏览文件 @
9c426f62
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
<script
src=
"asset/share.js"
></script>
<script
src=
"asset/share.js"
></script>
<link
rel=
"stylesheet"
href=
"asset/edit.css"
>
<link
rel=
"stylesheet"
href=
"asset/edit.css"
>
<script
src=
"asset/edit.js"
></script>
<script
src=
"asset/edit.js"
></script>
<link
rel=
"stylesheet"
href=
"asset/back-to-top.css"
>
<script
src=
"asset/back-to-top.js"
></script>
</head>
</head>
<body>
<body>
<div
id=
"app"
>
now loading...
</div>
<div
id=
"app"
>
now loading...
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录