From ce31befb4eecf585bddbdf23250b310ed7c54a28 Mon Sep 17 00:00:00 2001 From: spirit Date: Thu, 18 Jul 2019 15:27:48 +0800 Subject: [PATCH 1/3] bug fix --- functions.php | 2 ++ js/sakura-app.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 8887051..462c883 100644 --- a/functions.php +++ b/functions.php @@ -952,6 +952,8 @@ function rt_add_link_target( $content ){ foreach( $bits as $key=>$bit ){ // fix the target="_blank" bug after the link if ( strpos( $bit, 'href' ) === false ) continue; + // fix the target="_blank" bug in the codeblock + if ( strpos( preg_replace('/code([\s\S]*?)\/code[\s]*/m','temp',$content), $bit ) === false ) continue; // find the end of each link $pos = strpos( $bit, '>' ); // check if there is an end (only fails with malformed markup) diff --git a/js/sakura-app.js b/js/sakura-app.js index 5cf578c..293e7cf 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -1321,7 +1321,7 @@ var home = location.href, AH: function () { if (Poi.windowheight == 'auto') { if ($('h1.main-title').length > 0) { - var _height = $(window).height(); + var _height = $(window).height()+"px"; $('#centerbg').css({ 'height': _height }); From 7918e830a21307ff27e0954441d371a7dd34903c Mon Sep 17 00:00:00 2001 From: Spirit Date: Sun, 4 Aug 2019 13:43:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 1 + js/sakura-app.js | 33 ++++++++++++++++++++++++++++++--- options.php | 21 +++++++++++++++++++++ 3 files changed, 52 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index bd8b996..fe01946 100644 --- a/index.php +++ b/index.php @@ -65,6 +65,7 @@ get_header(); +