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

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

上级 37959186
......@@ -334,140 +334,141 @@
<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');
botui.message.add({
delay: 800,
content: "来啦老弟?我是小屋的管家,等你好久了~👋"
}).then(function () {
function bot_ui_ini() {
var botui = new BotUI("hello-mashiro");
botui.message.add({
delay: 1100,
content: "这里是LOVE109❤️纪实小屋"
delay: 800,
content: "来啦老弟?我是小屋的管家,等你好久了~👋"
}).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({
delay: 1500,
content: "两人在2016年10月9日走到了一起❤️"
delay: 1100,
content: "这里是LOVE109❤️纪实小屋"
}).then(function () {
botui.message.add({
delay: 1200,
content: "男主人专业是软件工程,女主人专业是应用统计"
}).then(function () {
botui.message.add({
delay: 1500,
content: "男主人酷爱单车运动,IT男,喜欢倒腾新鲜事物"
delay: 1100,
content: "一个记录爱情、记录生活、充满温馨的小屋~"
}).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,
content: "女主人善良可爱,思维敏捷,将来的数学界她肯定是大哥大"
}).then(function () {
content: "本小屋建立于 2019-1-17 20:00"
}).then(function () {
botui.message.add({
delay: 1800,
content: "他们彼此恩爱,虽然偶尔吵吵闹闹,但都相信彼此是陪伴自己余生的人"
delay: 1500,
content: "两人在2016年10月9日走到了一起❤️"
}).then(function () {
botui.action.button({
delay: 1100,
botui.message.add({
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: [{
text: "网站为什么叫“纪实小屋”呢? 🤔",
value: "why-jishi"
text: "域名有什么含义吗? 🤔",
value: "why-cat"
}]
}).then(function (a) {
thirdpart()
})
}).then(function (a) {
fourthpart()
})
})
})
})
})
})
},
thirdpart = function () {
botui.message.add({
delay: 1E3,
content: "主人们希望通过文字的形式记录我们的爱情,记录我们的生活,所以叫纪实小屋"
}).then(function () {
botui.action.button({
delay: 1500,
action: [{
text: "域名有什么含义吗? 🤔",
value: "why-love109"
}]
}).then(function (a) {
fourthpart()
})
})
},
fourthpart = function () {
botui.message.add({
delay: 1E3,
content: "域名对于主人们来说有着重要的含义 "
}).then(function () {
botui.message.add({
delay: 1100,
content: "10月9日是两位主人在一起的日子,他们希望能够一起共度余生❤️"
}).then(function () {
botui.action.button({
delay: 1500,
action: [{
text: "原来如此",
value: "why-domain"
}]
}).then(function (a) {
fifthpart()
})
})
})
},
fifthpart = function () {
botui.message.add({
delay: 1E3,
content: "愿天下有情人终成眷属,如果你也有另一半,祝愿你们长长久久❤️,如果还没有,那就要加油咯!"
}).then(function () {
botui.message.add({
delay: 1600,
content: "那么,请尽情参观LOVE109❤️纪实小屋吧! ^_^"
})
})
}
})
},
fourthpart = function () {
botui.message.add({
delay: 1E3,
content: "域名对于主人们来说有着重要的含义"
}).then(function () {
botui.message.add({
delay: 1100,
content: "10月9日是两位主人在一起的日子,他们希望能够一起共度余生❤️"
}).then(function () {
botui.action.button({
delay: 1500,
action: [{
text: "原来如此",
value: "why-domain"
}]
}).then(function (a) {
fifthpart()
})
})
})
},
fifthpart = function () {
botui.message.add({
delay: 1E3,
content: "愿天下有情人终成眷属,如果你也有另一半,祝愿你们长长久久❤️,如果还没有,那就要加油咯!"
}).then(function () {
botui.message.add({
delay: 1600,
content: "那么,请尽情参观LOVE109❤️纪实小屋吧! ^_^"
})
})
}
}
bot_ui_ini()
</script>
<!-- .entry-content -->
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册