Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuzui
tiangou
提交
632dd94a
tiangou
项目概览
fuzui
/
tiangou
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
tiangou
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
632dd94a
编写于
3月 28, 2020
作者:
X
xiongbao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
支持QQ内分享摘要
上级
ece0a0c3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
2 deletion
+7
-2
assets/js/index.js
assets/js/index.js
+2
-1
index.html
index.html
+5
-1
未找到文件。
assets/js/index.js
浏览文件 @
632dd94a
...
...
@@ -59,7 +59,8 @@ let soul = [
];
function
randomSoul
(){
document
.
getElementsByTagName
(
'
article
'
)[
0
].
innerHTML
=
soul
[
Math
.
floor
(
Math
.
random
()
*
soul
.
length
)].
replace
(
/
\*\*(
.*
?)\*\*
/g
,
'
<mark>$1</mark>
'
);
content
=
soul
[
Math
.
floor
(
Math
.
random
()
*
soul
.
length
)];
document
.
getElementsByTagName
(
'
article
'
)[
0
].
innerHTML
=
content
.
replace
(
/
\*\*(
.*
?)\*\*
/g
,
'
<mark>$1</mark>
'
);
document
.
getElementsByTagName
(
'
section
'
)[
0
].
className
=
'
border-
'
+
randomNumBoth
(
1
,
6
);
}
index.html
浏览文件 @
632dd94a
...
...
@@ -3,8 +3,10 @@
<head>
<meta
charset=
"utf-8"
>
<title>
舔狗
</title>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
/>
<meta
itemprop=
"name"
content=
"舔狗日记"
>
<meta
name=
"description"
itemprop=
"description"
content=
"舔狗舔狗,舔到最后一无所有。"
>
<meta
itemprop=
"image"
content=
"assets/images/logo.jpg"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black"
>
<link
rel=
"icon"
type=
"image/png"
href=
"assets/images/logo.jpg"
>
...
...
@@ -268,7 +270,9 @@
<script
src=
"./assets/js/index.js"
></script>
<script
src=
"https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.min.js"
></script>
<script>
var
content
=
''
;
randomSoul
();
$
(
'
meta[name="description"]
'
).
attr
(
'
content
'
,
content
.
replace
(
/
\*\*(
.*
?)\*\*
/g
,
''
));
var
clipboard
=
new
ClipboardJS
(
'
a[data-btn="copy"]
'
);
clipboard
.
on
(
'
success
'
,
function
(
e
)
{
$
(
'
tips
'
).
show
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录