Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小马网络
dr_py
提交
977011a1
dr_py
项目概览
小马网络
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
1
Star
1
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,发现更多精彩内容 >>
提交
977011a1
编写于
12月 04, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新灰度
上级
998dfe99
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
39 addition
and
14 deletion
+39
-14
static/js/grey.js
static/js/grey.js
+26
-0
templates/admin.html
templates/admin.html
+1
-1
templates/index.html
templates/index.html
+2
-9
templates/layui_jxs.html
templates/layui_jxs.html
+2
-1
templates/layui_list.html
templates/layui_list.html
+3
-2
templates/login.html
templates/login.html
+1
-0
templates/logtail.html
templates/logtail.html
+1
-0
templates/rules_to_clear.html
templates/rules_to_clear.html
+1
-0
templates/rules_to_view.html
templates/rules_to_view.html
+1
-0
templates/settings.html
templates/settings.html
+1
-1
未找到文件。
static/js/grey.js
0 → 100644
浏览文件 @
977011a1
var
global_grey
=
{
'
-webkit-filter
'
:
'
grayscale(1)
'
,
'
-moz-filter
'
:
'
grayscale(1)
'
,
'
-ms-filter
'
:
'
grayscale(1)
'
,
'
-o-filter
'
:
'
grayscale(1)
'
,
'
filter
'
:
'
grayscale(1)
'
,
};
function
autoGreyByTime
(){
let
now
=
new
Date
();
let
now_hours
=
now
.
getHours
();
// console.log(now_hours,typeof now_hours);
if
(
now_hours
>=
23
||
now_hours
<
8
){
$
(
'
html
'
).
css
(
global_grey
);
}
}
autoGreyByTime
();
function
darkModeHandler
()
{
const
mediaQuery
=
window
.
matchMedia
(
'
(prefers-color-scheme: dark)
'
);
if
(
mediaQuery
.
matches
)
{
let
color
=
'
#1b1b1b
'
;
$
(
'
body
'
).
css
({
"
background
"
:
color
});
}
}
darkModeHandler
();
\ No newline at end of file
templates/admin.html
浏览文件 @
977011a1
...
...
@@ -8,10 +8,10 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
>
<!-- <link rel="stylesheet" media="screen" href="/static/css/admin.css">-->
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/admin.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/grey.css"
>
<link
rel=
"icon"
href=
"/static/img/logo.png"
type=
"image/x-icon"
>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/common.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
</head>
<body>
<script>
...
...
templates/index.html
浏览文件 @
977011a1
...
...
@@ -10,7 +10,8 @@
<title>
dr_py首页
</title>
<script
src=
"/static/js/jquery.min.js"
></script>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/home.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/grey.css"
>
<script
src=
"/static/js/grey.js"
></script>
<!-- <link rel="stylesheet" media="screen" href="/static/css/grey.css">-->
</head>
...
...
@@ -19,14 +20,6 @@
<div
class=
"image"
>
<script>
function
darkModeHandler
()
{
const
mediaQuery
=
window
.
matchMedia
(
'
(prefers-color-scheme: dark)
'
);
if
(
mediaQuery
.
matches
)
{
let
color
=
'
#1b1b1b
'
;
$
(
'
body
'
).
css
({
"
background
"
:
color
});
}
}
darkModeHandler
();
$
(
document
).
ready
(
function
()
{
$
(
"
#gen_config
"
).
click
(
function
()
{
// let rule = this.innerText.trim();
...
...
templates/layui_jxs.html
浏览文件 @
977011a1
...
...
@@ -5,8 +5,9 @@
<title>
解析管理
</title>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
>
<link
rel=
"stylesheet"
href=
"/static/plugin/layui/css/layui.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/grey.css"
>
<link
rel=
"stylesheet"
href=
"/static/plugin/layui/ext/soulTable/soulTable.css"
media=
"all"
/>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
</head>
<body>
<table
id=
"myTable"
lay-filter=
"myTable"
></table>
...
...
templates/layui_list.html
浏览文件 @
977011a1
...
...
@@ -9,9 +9,10 @@
<meta
name=
"author"
content=
"道长"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
>
<link
rel=
"icon"
href=
"/static/img/logo.png"
type=
"image/x-icon"
>
<script
src=
"/static/plugin/layui/layui.js"
></script>
<link
rel=
"stylesheet"
href=
"/static/plugin/layui/css/layui.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/grey.css"
>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
<script
src=
"/static/plugin/layui/layui.js"
></script>
</head>
<body>
...
...
templates/login.html
浏览文件 @
977011a1
...
...
@@ -43,6 +43,7 @@
<script
src=
"/static/js/particles.js"
></script>
<script
src=
"/static/js/app.js"
></script>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/static/sweetalert/sweetalert.css"
>
<script
type=
"text/javascript"
src=
"/static/sweetalert/sweetalert-dev.js"
></script>
...
...
templates/logtail.html
浏览文件 @
977011a1
...
...
@@ -9,6 +9,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
>
<title>
tvbox实时日志
</title>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
<link
href=
"/static/css/jquery-confirm.min.css"
rel=
"stylesheet"
>
<script
src=
"/static/js/jquery-confirm.min.js"
></script>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>-->
...
...
templates/rules_to_clear.html
浏览文件 @
977011a1
...
...
@@ -9,6 +9,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
>
<title>
删除已缓存规则列表-{{rules.count}}
</title>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
</head>
<style>
.red
{
...
...
templates/rules_to_view.html
浏览文件 @
977011a1
...
...
@@ -9,6 +9,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html;charset=utf-8"
>
<title>
查看已缓存规则列表-{{rules.count}}
</title>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
</head>
<style>
.red
{
...
...
templates/settings.html
浏览文件 @
977011a1
...
...
@@ -11,8 +11,8 @@
<link
rel=
"icon"
href=
"/static/img/logo.png"
type=
"image/x-icon"
>
<script
src=
"/static/js/jquery.min.js"
></script>
<script
src=
"/static/js/common.js"
></script>
<script
src=
"/static/js/grey.js"
></script>
<link
rel=
"stylesheet"
href=
"/static/plugin/layui/css/layui.css"
>
<link
rel=
"stylesheet"
media=
"screen"
href=
"/static/css/grey.css"
>
<script
src=
"/static/plugin/layui/layui.js"
></script>
</head>
<body>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录