You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/01/20 14:15:33 UTC
[echarts-examples] branch v4 updated: add alert
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch v4
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/v4 by this push:
new 62cb162 add alert
62cb162 is described below
commit 62cb162cfdda37967dffd6fa67c2c28dcc0de320
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Jan 20 22:15:07 2021 +0800
add alert
---
public/stylesheets/scss/main.scss | 10 ++++++++++
views/layouts/basic.jade | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/public/stylesheets/scss/main.scss b/public/stylesheets/scss/main.scss
index 826e1b0..ae780a8 100644
--- a/public/stylesheets/scss/main.scss
+++ b/public/stylesheets/scss/main.scss
@@ -13,3 +13,13 @@
@import "page.view";
@import "page.explore";
+
+#v5-link {
+ position: fixed;
+ bottom: 20px;
+ left: 50%;
+ width: 300px;
+ margin-left: -150px;
+ text-align: center;
+ z-index: 1000;
+}
diff --git a/views/layouts/basic.jade b/views/layouts/basic.jade
index b22b4fd..ec6dbc4 100644
--- a/views/layouts/basic.jade
+++ b/views/layouts/basic.jade
@@ -36,6 +36,16 @@ html
div 访问官网
a.close-btn(href="javascript:;", onclick="closeApacheBanner(true)") x
+ #v5-link.alert.alert-warning.alert-dismissible
+ if ecWWWLang == 'en'
+ span Back to the #[a(id="a2", href="https://echarts.apache.org/zh/index.html") latest website.]
+ else
+ span 返回 #[a(id="a1", href="https://echarts.apache.org/zh/index.html") 最新的官网]
+
+ button.close(type="button", data-dismiss="alert", aria-label="Close")
+ span(aria-hidden="true") ×
+
+
block content
script(type='text/javascript', src='#{cdnThirdParty.jquery_1_11_3}')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org