提交 7ac2ef36 编写于 作者: L love109

Site updated: 2019-01-24 01:27:26

上级 37959186
...@@ -334,140 +334,141 @@ ...@@ -334,140 +334,141 @@
<script src="https://cdn.jsdelivr.net/vue/latest/vue.min.js"></script> <script src="https://cdn.jsdelivr.net/vue/latest/vue.min.js"></script>
<script src="https://unpkg.com/botui/build/botui.min.js"></script> <script src="https://unpkg.com/botui/build/botui.min.js"></script>
<script> <script>
(function(){ function bot_ui_ini() {
var botui = new BotUI('hello-mashiro'); var botui = new BotUI("hello-mashiro");
botui.message.add({
delay: 800,
content: "来啦老弟?我是小屋的管家,等你好久了~👋"
}).then(function () {
botui.message.add({ botui.message.add({
delay: 1100, delay: 800,
content: "这里是LOVE109❤️纪实小屋" content: "来啦老弟?我是小屋的管家,等你好久了~👋"
}).then(function () { }).then(function () {
botui.message.add({
delay: 1100,
content: "一个记录爱情、记录生活、充满温馨的小屋~"
}).then(function () {
botui.action.button({
delay: 1600,
action: [{
text: "然后嘞? 😃",
value: "sure"
}, {
text: "少废话! 🙄",
value: "skip"
}]
}).then(function (a) {
"sure" == a.value && sure();
"skip" == a.value && end()
})
})
})
});
var sure = function () {
botui.message.add({
delay: 600,
content: "😘"
}).then(function () {
secondpart()
})
},
end = function () {
botui.message.add({
delay: 600,
content: "![...](https://view.moezx.cc/images/2018/05/06/a1c4cd0452528b572af37952489372b6.md.jpg)"
})
},
secondpart = function () {
botui.message.add({
delay: 1500,
content: "本小屋建立于 2019-1-17 20:00"
}).then(function () {
botui.message.add({ botui.message.add({
delay: 1500, delay: 1100,
content: "两人在2016年10月9日走到了一起❤️" content: "这里是LOVE109❤️纪实小屋"
}).then(function () { }).then(function () {
botui.message.add({
delay: 1200,
content: "男主人专业是软件工程,女主人专业是应用统计"
}).then(function () {
botui.message.add({ botui.message.add({
delay: 1500, delay: 1100,
content: "男主人酷爱单车运动,IT男,喜欢倒腾新鲜事物" content: "一个记录爱情、记录生活、充满温馨的小屋~"
}).then(function () { }).then(function () {
botui.message.add({ botui.action.button({
delay: 1600,
action: [{
text: "然后呢? 😃",
value: "sure"
}, {
text: "少废话! 🙄",
value: "skip"
}]
}).then(function (a) {
"sure" == a.value && sure();
"skip" == a.value && end()
})
})
})
});
var sure = function () {
botui.message.add({
delay: 600,
content: "😘"
}).then(function () {
secondpart()
})
},
end = function () {
botui.message.add({
delay: 600,
content: "![...](https://view.moezx.cc/images/2018/05/06/a1c4cd0452528b572af37952489372b6.md.jpg)"
})
},
secondpart = function () {
botui.message.add({
delay: 1500, delay: 1500,
content: "女主人善良可爱,思维敏捷,将来的数学界她肯定是大哥大" content: "本小屋建立于 2019-1-17 20:00"
}).then(function () { }).then(function () {
botui.message.add({ botui.message.add({
delay: 1800, delay: 1500,
content: "他们彼此恩爱,虽然偶尔吵吵闹闹,但都相信彼此是陪伴自己余生的人" content: "两人在2016年10月9日走到了一起❤️"
}).then(function () { }).then(function () {
botui.action.button({ botui.message.add({
delay: 1100, delay: 1200,
content: "男主人专业是软件工程,女主人专业是应用统计"
}).then(function () {
botui.message.add({
delay: 1500,
content: "男主人酷爱单车运动,IT男,喜欢倒腾新鲜事物"
}).then(function () {
botui.message.add({
delay: 1500,
content: "女主人善良可爱,思维敏捷,将来的数学界她肯定是大哥大"
}).then(function () {
botui.message.add({
delay: 1800,
content: "他们彼此恩爱,虽然偶尔吵吵闹闹,但都相信彼此是陪伴自己余生的人"
}).then(function () {
botui.action.button({
delay: 1100,
action: [{
text: "网站为什么叫“纪实小屋”呢? 🤔",
value: "why-mashiro"
}]
}).then(function (a) {
thirdpart()
})
})
})
})
})
})
})
},
thirdpart = function () {
botui.message.add({
delay: 1E3,
content: "主人们希望通过文字的形式记录我们的爱情,记录我们的生活,所以叫纪实小屋"
}).then(function () {
botui.action.button({
delay: 1500,
action: [{ action: [{
text: "网站为什么叫“纪实小屋”呢? 🤔", text: "域名有什么含义吗? 🤔",
value: "why-jishi" value: "why-cat"
}] }]
}).then(function (a) { }).then(function (a) {
thirdpart() fourthpart()
})
}) })
})
}) })
}) },
}) fourthpart = function () {
}) botui.message.add({
}, delay: 1E3,
thirdpart = function () { content: "域名对于主人们来说有着重要的含义"
botui.message.add({ }).then(function () {
delay: 1E3, botui.message.add({
content: "主人们希望通过文字的形式记录我们的爱情,记录我们的生活,所以叫纪实小屋" delay: 1100,
}).then(function () { content: "10月9日是两位主人在一起的日子,他们希望能够一起共度余生❤️"
botui.action.button({ }).then(function () {
delay: 1500, botui.action.button({
action: [{ delay: 1500,
text: "域名有什么含义吗? 🤔", action: [{
value: "why-love109" text: "原来如此",
}] value: "why-domain"
}).then(function (a) { }]
fourthpart() }).then(function (a) {
}) fifthpart()
}) })
}, })
fourthpart = function () { })
botui.message.add({ },
delay: 1E3, fifthpart = function () {
content: "域名对于主人们来说有着重要的含义 " botui.message.add({
}).then(function () { delay: 1E3,
botui.message.add({ content: "愿天下有情人终成眷属,如果你也有另一半,祝愿你们长长久久❤️,如果还没有,那就要加油咯!"
delay: 1100, }).then(function () {
content: "10月9日是两位主人在一起的日子,他们希望能够一起共度余生❤️" botui.message.add({
}).then(function () { delay: 1600,
botui.action.button({ content: "那么,请尽情参观LOVE109❤️纪实小屋吧! ^_^"
delay: 1500, })
action: [{ })
text: "原来如此", }
value: "why-domain" }
}] bot_ui_ini()
}).then(function (a) {
fifthpart()
})
})
})
},
fifthpart = function () {
botui.message.add({
delay: 1E3,
content: "愿天下有情人终成眷属,如果你也有另一半,祝愿你们长长久久❤️,如果还没有,那就要加油咯!"
}).then(function () {
botui.message.add({
delay: 1600,
content: "那么,请尽情参观LOVE109❤️纪实小屋吧! ^_^"
})
})
}
})
</script> </script>
<!-- .entry-content --> <!-- .entry-content -->
......
...@@ -509,7 +509,7 @@ function code_highlight_style() { ...@@ -509,7 +509,7 @@ function code_highlight_style() {
'autocapitalize': 'off', 'autocapitalize': 'off',
'spellcheck': 'false', 'spellcheck': 'false',
'contenteditable': 'false', 'contenteditable': 'false',
'design': 'by Mashiro' 'design': 'by hojun'
} }
var ele_name = $('pre:eq(' + i + ')')[0].children[0].className; var ele_name = $('pre:eq(' + i + ')')[0].children[0].className;
var lang = ele_name.substr(0, ele_name.indexOf(" ")).replace('language-', ''); var lang = ele_name.substr(0, ele_name.indexOf(" ")).replace('language-', '');
...@@ -526,20 +526,18 @@ function code_highlight_style() { ...@@ -526,20 +526,18 @@ function code_highlight_style() {
$('pre code').each(function (i, block) { $('pre code').each(function (i, block) {
hljs.highlightBlock(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); gen_top_bar(i);
} }
hljs.initLineNumbersOnLoad();
$('pre').on('click', function (e) { $('pre').on('click', function (e) {
if (e.target !== this) return;
$(this).toggleClass('code-block-fullscreen'); $(this).toggleClass('code-block-fullscreen');
$('html').toggleClass('code-block-fullscreen-html-scroll'); $('html').toggleClass('code-block-fullscreen-html-scroll');
}); });
hljs.initLineNumbersOnLoad();
} }
try { try {
code_highlight_style(); code_highlight_style();
} catch (e) {} } catch (e) {}
function attach_image() { function attach_image() {
$('#upload-img-file').change(function () { $('#upload-img-file').change(function () {
if (this.files.length > 10) { if (this.files.length > 10) {
...@@ -960,9 +958,9 @@ var pjaxInit = function () { ...@@ -960,9 +958,9 @@ var pjaxInit = function () {
if ($("div").hasClass("aplayer")) { if ($("div").hasClass("aplayer")) {
reloadHermit(); reloadHermit();
} }
if ($("div").hasClass("popcontainer")) { // if ($("div").hasClass("popcontainer")) {
loadBotui(); // loadBotui();
} // }
try { try {
reload_show_date_time(); reload_show_date_time();
} catch (e) {} } catch (e) {}
...@@ -1097,12 +1095,12 @@ function grin(tag, type, before, after) { ...@@ -1097,12 +1095,12 @@ function grin(tag, type, before, after) {
myField.focus(); myField.focus();
} }
} }
if ($("div").hasClass("popcontainer")) { // if ($("div").hasClass("popcontainer")) {
loadBotui(); // loadBotui();
} // }
$("bot-ui").click(function () { // $("bot-ui").click(function () {
loadBotui(); // loadBotui();
}); // });
function add_copyright() { function add_copyright() {
document.body.addEventListener("copy", function (e) { document.body.addEventListener("copy", function (e) {
...@@ -1276,18 +1274,18 @@ function get_poem(poem_ele, info_ele) { ...@@ -1276,18 +1274,18 @@ function get_poem(poem_ele, info_ele) {
xhr.send(); xhr.send();
} }
function loadBotui() { // function loadBotui() {
if ($('div').hasClass('popcontainer')) { // if ($('div').hasClass('popcontainer')) {
if (mashiro_global.variables.has_bot_ui) { // if (mashiro_global.variables.has_bot_ui) {
bot_ui_ini(); // bot_ui_ini();
} else { // } else {
$.getScript('https://cdn.jsdelivr.net/gh/moezx/cdn@latest/js/botui/botui.js', function () { // $.getScript('https://cdn.jsdelivr.net/gh/moezx/cdn@latest/js/botui/botui.js', function () {
bot_ui_ini(); // bot_ui_ini();
mashiro_global.variables.has_bot_ui = true; // mashiro_global.variables.has_bot_ui = true;
}); // });
} // }
} // }
} // }
function mail_me() { function mail_me() {
var mail = "mailto:" + mashiro_option.email_name + "@" + mashiro_option.email_domain; 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.
先完成此消息的编辑!
想要评论请 注册