Merge pull request #22 from mashirozx/master

Update
pull/316/head
Himehane 2019-10-17 22:51:08 +08:00 committed by GitHub
commit 76a4905d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
* @package Sakura
*/
define( 'SAKURA_VERSION', '3.2.5' );
define( 'SAKURA_VERSION', '3.2.6' );
define( 'BUILD_VERSION', '3' );
define( 'JSDELIVR_VERSION', '3.6.7' );
@ -1515,7 +1515,7 @@ function html_tag_parser($content) {
if(!is_feed()) {
$content=preg_replace(
'/<img(.+)src=[\'"]([^\'"]+)[\'"](.*)>/i',
"<img\$1class=\"lazyload\" data-src=\"\$2\" src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"\$3 >\n<noscript>\$0</noscript>",
"<img $1 class=\"lazyload\" data-src=\"$2\" src=\"https://cdn.jsdelivr.net/gh/moezx/cdn@3.0.2/img/svg/loader/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\" $3 >\n<noscript>$0</noscript>",
$content
);

View File

@ -8,7 +8,7 @@ mashiro_global.variables = new function () {
this.skinSecter = true;
}
mashiro_global.ini = new function () {
this.normalize = function () {
this.normalize = function () { // initial functions when page first load (首次加载页面时的初始化函数)
lazyload();
social_share();
post_list_show_animation();
@ -17,7 +17,7 @@ mashiro_global.ini = new function () {
checkskinSecter();
scrollBar();
}
this.pjax = function () {
this.pjax = function () { // pjax reload functions (pjax 重载函数)
pjaxInit();
social_share();
post_list_show_animation();