This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/echarts-www.git
The following commit(s) were added to refs/heads/master by this push: new 72cd9d37 use China CDN for Chinese website (WIP) 72cd9d37 is described below commit 72cd9d375be552c4073924b161e39553648da650 Author: plainheart <y...@all-my-life.cn> AuthorDate: Mon Dec 4 01:13:41 2023 +0800 use China CDN for Chinese website (WIP) --- _jade/en/index.jade | 1 - _jade/zh/download-theme.jade | 2 +- _jade/zh/index.jade | 11 ++++------- js/index.js | 6 ++++-- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/_jade/en/index.jade b/_jade/en/index.jade index 06ab9bc4..ae20e0da 100644 --- a/_jade/en/index.jade +++ b/_jade/en/index.jade @@ -166,4 +166,3 @@ block extra_js }; script(src='https://fastly.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js') script(src='#{cdnPayRoot}/#{ecWWWLang}/js/index.js?_v_=#{homeVersion}') - //- <script async defer src="https://buttons.github.io/buttons.js"></script> diff --git a/_jade/zh/download-theme.jade b/_jade/zh/download-theme.jade index dd324f96..5753e6ea 100644 --- a/_jade/zh/download-theme.jade +++ b/_jade/zh/download-theme.jade @@ -19,7 +19,7 @@ block content .row each themeName, idx in theme .col-sm-4.theme - a(class="download-theme" href="https://fastly.jsdelivr.net/npm/echarts/theme/#{themeName}.js?_v_=#{cdnPayVersion}" download="#{themeName}.js" target="_blank") + a(class="download-theme" href="https://registry.npmmirror.com/echarts/latest/files/theme/#{themeName}.js?_v_=#{cdnPayVersion}" download="#{themeName}.js" target="_blank") img(src="#{cdnPayRoot}/#{ecWWWLang}/asset/theme/thumb/#{themeName}.png?_v_=#{cdnPayVersion}" alt="") p #{themeName} diff --git a/_jade/zh/index.jade b/_jade/zh/index.jade index 72d705cf..1b41fc4a 100644 --- a/_jade/zh/index.jade +++ b/_jade/zh/index.jade @@ -4,8 +4,8 @@ extends ../layouts/basic block extra_head title Apache ECharts - script(src="https://fastly.jsdelivr.net/npm/scrollreveal@4.0.7/dist/scrollreveal.min.js") - script(src="https://fastly.jsdelivr.net/npm/lottie-web@5.7.6/build/player/lottie.min.js") + script(src="https://lib.baomitu.com/scrollReveal.js/4.0.7/scrollreveal.min.js") + script(src="https://lib.baomitu.com/lottie-web/5.7.6/lottie.min.js") block content nav(class='navbar navbar-default navbar-fixed-top', role="navigation") @@ -159,12 +159,9 @@ block content include ../components/footer block extra_js - script(src='https://fastly.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js') - script(src='#{cdnPayRoot}/#{ecWWWLang}/js/index.js?_v_=#{homeVersion}') - //- <script async defer src="https://buttons.github.io/buttons.js"></script> - script. window.lazyLoadOptions = { elements_selector: ".lazy" }; - script(src='https://fastly.jsdelivr.net/npm/vanilla-lazyload@12.0.0/dist/lazyload.min.js') + script(src='https://lib.baomitu.com/vanilla-lazyload/12.0.0/lazyload.min.js') + script(src='#{cdnPayRoot}/#{ecWWWLang}/js/index.js?_v_=#{homeVersion}') diff --git a/js/index.js b/js/index.js index a18b7b96..c2785f87 100644 --- a/js/index.js +++ b/js/index.js @@ -122,8 +122,10 @@ window.lazyLoadOptions = { function loadLandingAnimationScripts() { return new Promise((resolve) => { - // var landingAnimationURL = 'http://localhost/echarts-www-landing-animation/' - var landingAnimationURL = 'https://fastly.jsdelivr.net/npm/echarts-www-landing-animation/'; + var landingAnimationURL = + window.EC_WWW_LANG === 'zh' + ? 'https://registry.npmmirror.com/echarts-www-landing-animation/latest/files/' + : 'https://cdn.jsdelivr.net/npm/echarts-www-landing-animation/'; // Load script. var link = document.createElement('link'); var script = document.createElement('script'); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org