blob: 8106799602f3fc88b49ba4ddbfd75d3136b18c86 [file] [log] [blame]
doctype html
html
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible', content='IE=edge')
meta(name='viewport', content='width=device-width, initial-scale=1')
link(rel='stylesheet', type='text/css', href='#{host}/vendors/bootstrap/css/bootstrap.css')
link(rel='shortcut icon', href='#{host}/images/favicon.png')
// HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
<!--[if lt IE 9]>
script(src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js')
script(src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js')
<![endif]-->
link(rel='stylesheet', type='text/css', href='#{host}/stylesheets/main.css?_v_=#{buildVersion}')
title Examples - Apache ECharts (incubating)
script(type="text/javascript").
window.EC_DEMO_LANG = '#{lang}';
body
#apache-banner
.txt
if lang == 'en'
p Apache ECharts is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator.
p We are working on redirecting this Website to <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a>. You may visit our new official Website now for the latest information.
else
p Apache ECharts 是一个正在由 Apache 孵化器赞助的 Apache 开源基金会孵化的项目。
p 我们正在处理将本站跳转到 <a href="https://echarts.apache.org" target="_blank">https://echarts.apache.org</a> 的迁移工作。您可以现在就前往我们的 Apache 官网以获取最新版的网站信息。
a.btn(href="https://echarts.apache.org", target="_blank", onclick="logApache()")
if lang == 'en'
div Visit Official Website
else
div 访问官网
a.close-btn(href="javascript:;", onclick="closeApacheBanner(true)") x
block content
script(type='text/javascript', src='#{host}/vendors/jquery/jquery.js')
script(type='text/javascript', src='#{host}/vendors/bootstrap/js/bootstrap.js')
script(type='text/javascript', src='#{host}/vendors/lodash.js')
script(type='text/javascript', src='#{host}/javascripts/common.js')
script(type='text/javascript').
function changeLang(lang) {
if (lang === 'en') {
if (location.hostname !== 'echarts.apache.org') {
var re = new RegExp('/zh/', 'g');
var pathname = location.pathname.replace(re, '/en/');
var url = 'https://echarts.apache.org' + pathname
+ location.search + location.hash;
location.href = url;
return;
}
}
location.href = location.href.replace(
new RegExp('/(zh|en)/', 'g'), '/' + lang + '/'
);
}
window.ROOT_PATH = '#{host}/';
block extra_js
include ../../../echarts-www/_jade/components/analytics