/*Initial Variables*/
var mashiro_option = new Object();
var mashiro_global = new Object();
mashiro_option.NProgressON = true;
/*
* 邮箱信息之类的东西可以填在这里,这些js变量基本都作用于sakura-app.js
* 这样的设置仅是为了方便在基于PHP开发的主题中设置js变量,既然移植到了Node上,我想或许可以精简这一逻辑吧
*/
mashiro_option.email_domain = "";
mashiro_option.email_name = "";
mashiro_option.cookie_version_control = "";
mashiro_option.qzone_autocomplete = false;
mashiro_option.site_name = "さくら荘そのcolatis";
mashiro_option.author_name = "colatis";
mashiro_option.site_url = "https://colatis.github.io";
mashiro_option.v_appId = "GyC3NzMvd0hT9Yyd2hYIC0MN-gzGzoHsz";
mashiro_option.v_appKey = "mgOpfzbkHYqU92CV4IDlAUHQ";
mashiro_option.mathjax = "0";
mashiro_option.qq_api_url = "https://api.mashiro.top/qqinfo/";
mashiro_option.qq_avatar_api_url = "https://api.mashiro.top/qqinfo/";
// mashiro_option.jsdelivr_css_src = "https://cdn.jsdelivr.net/gh/moezx/cdn@3.4.5/css/lib.min.css";
// mashiro_option.float_player_on = true;
/*End of Initial Variables*/
var bg = "images/cover/(1).jpg.webp,images/cover/(2).jpg.webp,images/cover/(3).jpg.webp,images/cover/(4).jpg.webp,images/cover/(5).jpg.webp,images/cover/(6).jpg.webp,images/cover/(7).jpg.webp,images/cover/(8).jpg.webp,images/cover/(9).jpg.webp".split(",");
var bgindex = Math.floor(Math.random()*bg.length);
if (!!window.ActiveXObject || "ActiveXObject" in window) { //is IE?
alert('朋友,IE浏览器未适配哦~');
}
.hljs-ln{border-collapse:collapse}.hljs-ln td{padding:0}.hljs-ln-n:before{content:attr(data-line-number)}
(function (window) {
var INSIGHT_CONFIG = {
TRANSLATION: {
POSTS: '文章',
// PAGES: '页面',
CATEGORIES: '分类',
TAGS: '标签',
},
ROOT_URL: '/',
CONTENT_URL: '/content.json',
};
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
/*
if (/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
var Poi = {"pjax":"1","movies":{"url": "https://cdn.jsdelivr.net/gh/honjun/hojun@1.2","name":"Unbroken.mp4","live":"close"},"windowheight":"fixed","codelamp":"close","ajaxurl":"","order":"asc","formpostion":"bottom"};
} else {
var Poi = {"pjax":"1","movies":{"url": "https://cdn.jsdelivr.net/gh/honjun/hojun@1.2","name":"Unbroken.mp4","live":"open"},"windowheight":"auto","codelamp":"close","ajaxurl":"","order":"asc","formpostion":"bottom"};
}
/* ]]> */
$(document).ready(function() {
if ($(".toc").length > 0 && document.body.clientWidth > 1200) {
if ($(".pattern-center").length > 0) { //有图的情况
tocbot.init({
// Where to render the table of contents.
tocSelector: '.toc', // 放置目录的容器
// Where to grab the headings to build the table of contents.
contentSelector: '.entry-content', // 正文内容所在
// Which headings to grab inside of the contentSelector element.
scrollSmooth: true,
headingSelector: 'h1, h2, h3, h4, h5', // 需要索引的标题级别
headingsOffset: -400,
scrollSmoothOffset: -85
});
} else {
tocbot.init({
// Where to render the table of contents.
tocSelector: '.toc', // 放置目录的容器
// Where to grab the headings to build the table of contents.
contentSelector: '.entry-content', // 正文内容所在
// Which headings to grab inside of the contentSelector element.
scrollSmooth: true,
headingSelector: 'h1, h2, h3, h4, h5', // 需要索引的标题级别
headingsOffset: -85,
scrollSmoothOffset: -85
});
}
var offsetTop = $('.toc').offset().top - 95;
window.onscroll = function() {
var scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop >= offsetTop) {
$('.toc').addClass('toc-fixed');
} else {
$('.toc').removeClass('toc-fixed');
}
}
}
});
.aplayer .aplayer-lrc {
height: 35px;
}
.aplayer .aplayer-lrc p{
font-size: 16px;
font-weight: 700;
line-height: 18px !important;
}
.aplayer .aplayer-lrc p.aplayer-lrc-current{
color: #FF1493;
}
.aplayer.aplayer-narrow .aplayer-body{
left: -66px !important;
}
.aplayer.aplayer-fixed .aplayer-lrc {
display: none;
}
.aplayer .aplayer-lrc.aplayer-lrc-hide {
display:none !important;
}
.aplayer.aplayer-fixed .lrc-show {
display: block;
background: rgba(255, 255, 255, 0.8);
}
data-id="2660651585"
data-server="netease"
data-type="playlist"
data-fixed="true"
data-autoplay="false"
data-loop="all"
data-order="random"
data-preload="auto"
data-volume="0.7"
data-mutex="true"
$(function(){
$('body').on('click', '.aplayer', function(){
if($('.aplayer-button').hasClass('aplayer-play')) {
$('.aplayer-lrc').removeClass('lrc-show');
} else {
$('.aplayer-lrc').addClass('lrc-show');
}
})
});