diff --git a/functions.php b/functions.php index 4e3e09c..82af053 100644 --- a/functions.php +++ b/functions.php @@ -175,9 +175,7 @@ function sakura_scripts() { wp_enqueue_script( 'js_lab', 'https://cdn.jsdelivr.net/gh/moezx/cdn@' . akina_option('jsdelivr_cdn_version', 'latest') . '/js/lib.min.js', array(), SAKURA_VERSION, true ); } wp_enqueue_style( 'saukra_css', get_stylesheet_uri(), array(), SAKURA_VERSION ); - // If you do not like the CDN, uncomment this line, and comment the next line - //wp_enqueue_script( 'app', get_template_directory_uri() . '/js/sakura-app.js', array(), SAKURA_VERSION, true ); - wp_enqueue_script( 'app', 'https://cdn.jsdelivr.net/gh/moezx/cdn@3.4.5/js/other/sakura-app.js', array(), SAKURA_VERSION, true ); + wp_enqueue_script( 'app', get_template_directory_uri() . '/js/sakura-app.js', array(), SAKURA_VERSION, true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } diff --git a/header.php b/header.php index 7a511fb..4255979 100644 --- a/header.php +++ b/header.php @@ -11,6 +11,20 @@ ?> + >
diff --git a/js/sakura-app.js b/js/sakura-app.js index bffb6ea..61d7caf 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -397,7 +397,7 @@ function nextBG() { function preBG() { bgn = bgn - 1; - $(".centerbg").css("background-image", "url(https://api.shino.cc/cover/?" + bgn + ")"); + $(".centerbg").css("background-image", "url(" + mashiro_option.cover_api + "?" + bgn + ")"); } $(document).ready(function () { $("#bg-next").click(function () {