Besking主题完美支持代码高亮显示
CSS代码
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
HTML代码
这是HTMl代码
这是内容
JavaScript代码
layui.use(['jquery', 'util'], function () {
var $ = layui.jquery,
util = layui.util;
$(window).load(function () {
$("#loading").fadeOut(500);
new WOW().init();
})
util.fixbar();;
$('.next').click(function () {
$('html,body').animate({
scrollTop: $('#section1').outerHeight() + 1
}, 600);
});
$('#menu').on('click', function () {
var mark = $(this).attr('data-mark');
if (mark === 'false') {
$(this).removeClass('menu_open').addClass('menu_close');
//open
$('#navgation').removeClass('navgation_close').addClass('navgation_open');
$(this).attr({ 'data-mark': "true" });
} else {
$(this).removeClass('menu_close').addClass('menu_open');
//close
$('#navgation').removeClass('navgation_open').addClass('navgation_close');
$(this).attr({ 'data-mark': "false" });
}
});
});
PHP代码
_t('显示最新文章'),
'ShowRecentComments' => _t('显示最近回复'),
'ShowArchive' => _t('显示归档'),
'ShowTag' => _t('显示标签')),
array('ShowRecentPosts', 'ShowRecentComments', 'ShowArchive', 'ShowTag'), _t('侧边栏显示'));
$form->addInput($sidebarBlock->multiMode());
$GoogleAnalytics = new Typecho_Widget_Helper_Form_Element_Textarea('GoogleAnalytics', NULL, NULL, _t('统计代码'), _t('填写你的各种跟踪统计代码,相当于页尾代码'));
$form->addInput($GoogleAnalytics);
}
:cry: :cry: :cry: :cry: :cry:
:eek: :eek: :eek:
:oops: :oops: :oops: