Add the option to close the sidebar autopen

Fix the code font-size
Add the post view
fix runtimeshow bugs
This commit is contained in:
Jerry
2019-06-08 22:37:30 +08:00
Unverified
parent 1357f218e5
commit ee434f7dc4
16 changed files with 86 additions and 98 deletions

View File

@@ -34,6 +34,9 @@ h6
color: lighten($font-color, 15%)
font-weight: bold
code
font-size: inherit !important
#content-outer
flex: 1 auto

View File

@@ -26,9 +26,3 @@ footer
.footer-separator
margin: 0 0.2rem
#busuanzi
&_value
&_site_uv,
&_site_pv,
&_page_pv
margin-left: 0.2rem

View File

@@ -13,6 +13,7 @@
#post
overflow: hidden
text-align: justify
&-meta
text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.15)

View File

@@ -1,32 +1,37 @@
$(function () {
if ($(".sidebar-toc__content").children().length > 0 ) {
$(".layout_post").animate({}, function () {
{
setTimeout(function () {
$('#page-header').addClass('open-sidebar')
$("#toggle-sidebar").addClass('on')
$('body').animate({
paddingLeft: 300
}, 200)
$('#sidebar').animate({}, function () {
$('#sidebar').css({
'transform': 'translateX(300px)'
},200)
})
$('#toggle-sidebar').animate({}, function () {
$('#toggle-sidebar').css({
'transform': 'rotateZ(180deg)',
'color': '#99a9bf',
'opacity': "1"
if ($('#sidebar').hasClass('auto_open')) {
if ($(".sidebar-toc__content").children().length > 0) {
$(".layout_post").animate({}, function () {
{
setTimeout(function () {
$('#page-header').addClass('open-sidebar')
$("#toggle-sidebar").addClass('on')
$('body').animate({
paddingLeft: 300
}, 200)
$('#sidebar').animate({}, function () {
$('#sidebar').css({
'transform': 'translateX(300px)'
}, 200)
})
$('#toggle-sidebar').animate({}, function () {
$('#toggle-sidebar').css({
'transform': 'rotateZ(180deg)',
'color': '#99a9bf',
'opacity': "1"
})
})
})
}, 200);
}
})
}, 200);
}
})
}
else
$("#toggle-sidebar").css("display", "none")
}
else {
$('#toggle-sidebar').css('opacity', '1')
}
else
$("#toggle-sidebar").css("display", "none")
//-------------------------------------------------------------------------------------------------------

View File

@@ -1,6 +1,9 @@
function show_date_time(){
// get user config
var start_date = document.getElementById("runtionshow").getAttribute("start_date")
function show_date_time() {
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("6/7/2018 00:00:00");//這個日期是可以修改的
BirthDay=new Date(start_date);//這個日期是可以修改的
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());//其實僅僅改了這裏
// sectimeold=timeold/1000