Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
名字太逗无法显示
love109-github-io
提交
7ac2ef36
L
love109-github-io
项目概览
名字太逗无法显示
/
love109-github-io
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
love109-github-io
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
7ac2ef36
编写于
1月 24, 2019
作者:
L
love109
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Site updated: 2019-01-24 01:27:26
上级
37959186
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
146 addition
and
147 deletion
+146
-147
about/index.html
about/index.html
+122
-121
js/sakura-app.js
js/sakura-app.js
+24
-26
未找到文件。
about/index.html
浏览文件 @
7ac2ef36
...
...
@@ -334,8 +334,8 @@
<script
src=
"https://cdn.jsdelivr.net/vue/latest/vue.min.js"
></script>
<script
src=
"https://unpkg.com/botui/build/botui.min.js"
></script>
<script>
(
function
()
{
var
botui
=
new
BotUI
(
'
hello-mashiro
'
);
function
bot_ui_ini
()
{
var
botui
=
new
BotUI
(
"
hello-mashiro
"
);
botui
.
message
.
add
({
delay
:
800
,
content
:
"
来啦老弟?我是小屋的管家,等你好久了~👋
"
...
...
@@ -351,7 +351,7 @@
botui
.
action
.
button
({
delay
:
1600
,
action
:
[{
text
:
"
然后嘞
? 😃
"
,
text
:
"
然后呢
? 😃
"
,
value
:
"
sure
"
},
{
text
:
"
少废话! 🙄
"
,
...
...
@@ -407,7 +407,7 @@
delay
:
1100
,
action
:
[{
text
:
"
网站为什么叫“纪实小屋”呢? 🤔
"
,
value
:
"
why-jishi
"
value
:
"
why-mashiro
"
}]
}).
then
(
function
(
a
)
{
thirdpart
()
...
...
@@ -428,7 +428,7 @@
delay
:
1500
,
action
:
[{
text
:
"
域名有什么含义吗? 🤔
"
,
value
:
"
why-love109
"
value
:
"
why-cat
"
}]
}).
then
(
function
(
a
)
{
fourthpart
()
...
...
@@ -438,7 +438,7 @@
fourthpart
=
function
()
{
botui
.
message
.
add
({
delay
:
1
E3
,
content
:
"
域名对于主人们来说有着重要的含义
"
content
:
"
域名对于主人们来说有着重要的含义
"
}).
then
(
function
()
{
botui
.
message
.
add
({
delay
:
1100
,
...
...
@@ -467,7 +467,8 @@
})
})
}
})
}
bot_ui_ini
()
</script>
<!-- .entry-content -->
...
...
js/sakura-app.js
浏览文件 @
7ac2ef36
...
...
@@ -509,7 +509,7 @@ function code_highlight_style() {
'
autocapitalize
'
:
'
off
'
,
'
spellcheck
'
:
'
false
'
,
'
contenteditable
'
:
'
false
'
,
'
design
'
:
'
by
Mashiro
'
'
design
'
:
'
by
hojun
'
}
var
ele_name
=
$
(
'
pre:eq(
'
+
i
+
'
)
'
)[
0
].
children
[
0
].
className
;
var
lang
=
ele_name
.
substr
(
0
,
ele_name
.
indexOf
(
"
"
)).
replace
(
'
language-
'
,
''
);
...
...
@@ -526,20 +526,18 @@ function code_highlight_style() {
$
(
'
pre code
'
).
each
(
function
(
i
,
block
)
{
hljs
.
highlightBlock
(
block
);
});
for
(
var
i
=
0
;
i
<
$
(
'
pre
'
).
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
$
(
'
article
pre
'
).
length
;
i
++
)
{
gen_top_bar
(
i
);
}
hljs
.
initLineNumbersOnLoad
();
$
(
'
pre
'
).
on
(
'
click
'
,
function
(
e
)
{
if
(
e
.
target
!==
this
)
return
;
$
(
this
).
toggleClass
(
'
code-block-fullscreen
'
);
$
(
'
html
'
).
toggleClass
(
'
code-block-fullscreen-html-scroll
'
);
});
hljs
.
initLineNumbersOnLoad
();
}
try
{
code_highlight_style
();
}
catch
(
e
)
{}
function
attach_image
()
{
$
(
'
#upload-img-file
'
).
change
(
function
()
{
if
(
this
.
files
.
length
>
10
)
{
...
...
@@ -960,9 +958,9 @@ var pjaxInit = function () {
if
(
$
(
"
div
"
).
hasClass
(
"
aplayer
"
))
{
reloadHermit
();
}
if
(
$
(
"
div
"
).
hasClass
(
"
popcontainer
"
))
{
loadBotui
();
}
//
if ($("div").hasClass("popcontainer")) {
//
loadBotui();
//
}
try
{
reload_show_date_time
();
}
catch
(
e
)
{}
...
...
@@ -1097,12 +1095,12 @@ function grin(tag, type, before, after) {
myField
.
focus
();
}
}
if
(
$
(
"
div
"
).
hasClass
(
"
popcontainer
"
))
{
loadBotui
();
}
$
(
"
bot-ui
"
).
click
(
function
()
{
loadBotui
();
});
//
if ($("div").hasClass("popcontainer")) {
//
loadBotui();
//
}
//
$("bot-ui").click(function () {
//
loadBotui();
//
});
function
add_copyright
()
{
document
.
body
.
addEventListener
(
"
copy
"
,
function
(
e
)
{
...
...
@@ -1276,18 +1274,18 @@ function get_poem(poem_ele, info_ele) {
xhr
.
send
();
}
function
loadBotui
()
{
if
(
$
(
'
div
'
).
hasClass
(
'
popcontainer
'
))
{
if
(
mashiro_global
.
variables
.
has_bot_ui
)
{
bot_ui_ini
();
}
else
{
$
.
getScript
(
'
https://cdn.jsdelivr.net/gh/moezx/cdn@latest/js/botui/botui.js
'
,
function
()
{
bot_ui_ini
();
mashiro_global
.
variables
.
has_bot_ui
=
true
;
});
}
}
}
//
function loadBotui() {
//
if ($('div').hasClass('popcontainer')) {
//
if (mashiro_global.variables.has_bot_ui) {
//
bot_ui_ini();
//
} else {
//
$.getScript('https://cdn.jsdelivr.net/gh/moezx/cdn@latest/js/botui/botui.js', function () {
//
bot_ui_ini();
//
mashiro_global.variables.has_bot_ui = true;
//
});
//
}
//
}
//
}
function
mail_me
()
{
var
mail
=
"
mailto:
"
+
mashiro_option
.
email_name
+
"
@
"
+
mashiro_option
.
email_domain
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录