Skip to content

Commit

Permalink
Update:一些小细节
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigZagK committed Jun 19, 2020
1 parent 182c53d commit 892ec92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
define('Version','1.4.6');
function asseturl($url,$type=false){
$debug=true;if ($debug) return Helper::options()->themeUrl.'/'.$url;
$debug=false;if ($debug) return Helper::options()->themeUrl.'/'.$url;
$pos=strpos($url,'.');$name=substr($url,$pos);if ($name=='.js' || $name=='.css') $url=str_replace($name,'.min'.$name,$url);
$origin=false;if ($type && !$origin) return Helper::options()->themeUrl.'/'.$url;
return 'https://cdn.jsdelivr.net/gh/ZigZagK/typecho-theme-MDUI2333@'.Version.'/'.$url;
Expand Down
5 changes: 1 addition & 4 deletions js/MDUI2333.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ const animatecss=(element,animation,speed,prefix='animate__') => //Animate.css
}
node.addEventListener('animationend',handleAnimationEnd);
});
function mduisnackbar(data){ //MDUI-Snackbar(覆盖公告)
if (announcement!=null) announcement.close();mdui.snackbar(data);
}

/*---------- 初始化 ----------*/
function globallistener(){ //全局监听
Expand Down Expand Up @@ -198,7 +195,7 @@ function ajaxcomment(options){ //AJAX评论
highlightreload(highlightmode,'#commentcontent');smoothscroll('.haveat a');mdui.mutation();
$('html,body').animate({scrollTop:$(target).offset().top},'fast');
animatecss(target,'fadeInRight','0.5s');
mduisnackbar({message:commentsuccess,position:'right-bottom',timeout:2000});
mdui.snackbar({message:commentsuccess,position:'right-bottom',timeout:2000});
}
}
});
Expand Down

0 comments on commit 892ec92

Please sign in to comment.