This commit is contained in:
haoouba 2021-02-05 22:00:10 +08:00
parent 1144a882e2
commit c36238dff6
5 changed files with 38 additions and 14 deletions

View File

@ -1 +1 @@
$(document).ready(function(){var e=0;$("html").click(function(t){var n=new Array("富强","民主","文明","和谐","自由","平等","公正","法治","爱国","敬业","诚信","友善"),o=$("<span/>").text(n[e]);e=(e+1)%n.length;var a=t.pageX,c=t.pageY;o.css({"z-index":5201314,top:c-20,left:a,position:"fixed","font-weight":"bold",color:"var(--theme)","user-select":"none"}),$("body").append(o),o.animate({top:c-180,opacity:0},1500,function(){o.remove()})})}); $(function(){var e=0;$(document).on("click",function(t){var n=new Array("富强","民主","文明","和谐","自由","平等","公正","法治","爱国","敬业","诚信","友善"),o=$("<span/>").text(n[e]);e=(e+1)%n.length;var a=t.pageX,c=t.pageY;o.css({"z-index":5201314,top:c-20,left:a,position:"absolute",color:"var(--theme)","user-select":"none"}),$("body").append(o),o.animate({top:c-180,opacity:0},1500,function(){o.remove();});});});

View File

@ -52,7 +52,7 @@ document.addEventListener('DOMContentLoaded', () => {
/* 激活图片预览功能 */ /* 激活图片预览功能 */
{ {
$('.joe_detail__article img:not(img.owo_image)').each(function () { $('.joe_detail__article img:not(img.owo_image)').each(function () {
$(this).wrap($(`<div data-fancybox="Joe" href="${$(this).attr('src')}"></div>`)); $(this).wrap($(`<span data-fancybox="Joe" href="${$(this).attr('src')}"></span>`));
}); });
} }

View File

@ -269,6 +269,26 @@ function themeConfig($form)
$JCursorEffects->setAttribute('class', 'joe_content joe_global'); $JCursorEffects->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCursorEffects->multiMode()); $form->addInput($JCursorEffects->multiMode());
$JCustomCSS = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomCSS',
NULL,
NULL,
'自定义CSS非必填',
'介绍请填写自定义CSS内容填写时无需填写style标签。'
);
$JCustomCSS->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomCSS);
$JCustomScript = new Typecho_Widget_Helper_Form_Element_Textarea(
'JCustomScript',
NULL,
NULL,
'自定义JS非必填',
'介绍请填写自定义JS内容例如网站统计等填写时无需填写script标签。'
);
$JCustomScript->setAttribute('class', 'joe_content joe_global');
$form->addInput($JCustomScript);
$JAside = new Typecho_Widget_Helper_Form_Element_Checkbox( $JAside = new Typecho_Widget_Helper_Form_Element_Checkbox(
'JAside', 'JAside',
array( array(
@ -633,17 +653,6 @@ function themeConfig($form)
$JFriends->setAttribute('class', 'joe_content joe_other'); $JFriends->setAttribute('class', 'joe_content joe_other');
$form->addInput($JFriends); $form->addInput($JFriends);
$JBaiduToken = new Typecho_Widget_Helper_Form_Element_Text(
'JBaiduToken',
NULL,
NULL,
'百度推送Token',
'介绍:填写此处,前台文章页如果未收录,则会自动将当前链接推送给百度加快收录
其他Token在百度收录平台注册账号获取'
);
$JBaiduToken->setAttribute('class', 'joe_content joe_other');
$form->addInput($JBaiduToken);
$JMaccmsAPI = new Typecho_Widget_Helper_Form_Element_Text( $JMaccmsAPI = new Typecho_Widget_Helper_Form_Element_Text(
'JMaccmsAPI', 'JMaccmsAPI',
NULL, NULL,
@ -668,4 +677,16 @@ function themeConfig($form)
); );
$JCustomPlayer->setAttribute('class', 'joe_content joe_other'); $JCustomPlayer->setAttribute('class', 'joe_content joe_other');
$form->addInput($JCustomPlayer); $form->addInput($JCustomPlayer);
$JBaiduToken = new Typecho_Widget_Helper_Form_Element_Text(
'JBaiduToken',
NULL,
NULL,
'百度推送Token',
'介绍:填写此处,前台文章页如果未收录,则会自动将当前链接推送给百度加快收录
其他Token在百度收录平台注册账号获取'
);
$JBaiduToken->setAttribute('class', 'joe_content joe_post');
$form->addInput($JBaiduToken);
} ?> } ?>

View File

@ -29,6 +29,7 @@
<script> <script>
console.log("PHP输出页面时长: <?php _endCountTime(); ?>") console.log("PHP输出页面时长: <?php _endCountTime(); ?>")
<?php $this->options->JCustomScript() ?>
</script> </script>
<?php $this->footer(); ?> <?php $this->footer(); ?>

View File

@ -41,6 +41,8 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover; background-size: cover;
} }
<?php $this->options->JCustomCSS() ?>
</style> </style>
<!-- <<<<<<<<<<<<<<<<<<<< 主题开始 >>>>>>>>>>>>>>>>>>>> --> <!-- <<<<<<<<<<<<<<<<<<<< 主题开始 >>>>>>>>>>>>>>>>>>>> -->
<meta charset="utf-8" /> <meta charset="utf-8" />
@ -75,5 +77,5 @@
<script async src="https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0"></script> <script async src="https://apip.weatherdt.com/standard/static/js/weather-standard.js?v=2.0"></script>
<script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/smooth/joe.smooth.js"></script> <script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/plugin/smooth/joe.smooth.js"></script>
<?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?> <?php if ($this->options->JCursorEffects && $this->options->JCursorEffects !== 'off') : ?>
<script async src="<?php $this->options->themeUrl('assets/cursor/' . $this->options->JCursorEffects); ?>"></script> <script async src="https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/cursor/<?php $this->options->JCursorEffects() ?>"></script>
<?php endif; ?> <?php endif; ?>