Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
muziyicn
dr_py
提交
884b2a37
dr_py
项目概览
muziyicn
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
884b2a37
编写于
9月 06, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加复制快捷命令
上级
aa8d0538
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
0 deletion
+16
-0
templates/admin.html
templates/admin.html
+16
-0
未找到文件。
templates/admin.html
浏览文件 @
884b2a37
...
...
@@ -74,6 +74,9 @@
a
.funcbtn
{
margin-left
:
10px
;
}
.wrapper
{
position
:
relative
;}
#input
{
position
:
absolute
;
top
:
0
;
left
:
0
;
opacity
:
0
;
z-index
:
-10
;}
</style>
<body>
<script>
...
...
@@ -181,14 +184,27 @@
{
$
(
'
#file_size
'
).
text
(
'
文件大小为:
'
+
fileObj
.
files
[
0
].
size
/
1024
+
'
kb
'
);
}
function
copyText
(
id
)
{
console
.
log
(
id
);
var
text
=
document
.
getElementById
(
id
).
innerText
;
var
input
=
document
.
getElementById
(
"
input
"
);
input
.
value
=
text
;
// 修改文本框的内容
console
.
log
(
text
);
input
.
select
();
// 选中文本
document
.
execCommand
(
"
copy
"
);
// 执行浏览器复制命令
alert
(
"
复制成功
"
);
}
</script>
<h2
class=
"title"
>
欢迎使用drpy管理员界面
<span
class=
"ver_title"
>
当前版本:
</span><span
class=
"ver"
>
{{ ver }}
</span></h2>
<h4>
<a
href=
"/index"
class=
"funcbtn"
>
返回首页
</a>
<a
href=
"javascript:void(0);"
class=
"funcbtn"
id=
"checkUpdate"
>
检测升级
</a>
<a
href=
"javascript:copyText('update_by_self');"
class=
"funcbtn"
id=
"update_by_self"
>
cp ./tmp/dr_py-master/app.py ./app.py
</a>
</h4>
<p>
你可以在此页面在线上传规则文件到js目录或者删除js目录的文件
</p>
<input
id=
"input"
/>
<form
action =
"/upload"
method =
"POST"
enctype =
"multipart/form-data"
>
<!-- <input type = "file" name = "file" class="btn" accept=".js" onchange="getFileSize(this)"/>-->
<input
type =
"file"
name =
"file"
class=
"btn"
onchange=
"getFileSize(this)"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录