Commit 55ab8f69 by wanggang

提交工程

parent 7c004301
*.classpath
*.project
*.settings/
*.idea/
*.sonar/
*target/
bin/
*bin/
bin/
*.iml
*.bak
*test-output/
sublime-project
sublime-project.sublime-workspace
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mjitechaudit</groupId>
<artifactId>audit</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>audit Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.9</version>
</dependency>
</dependencies>
<build>
<finalName>audit</finalName>
</build>
</project>
package bean;
/**
* 仓库实体表
* */
public class InventoryListBean {
private String sku_id ;
}
package bean;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import util.TransformationMoney;
/**
* 采购订单实体Bean
* @date 2019-7-30
* @author android
* */
public class OrderListBean {
TransformationMoney transformationMoney = new TransformationMoney();
private int id ; // 采购订单ID
private String ordernumber ; //采购订单编号
private String payName; //供应商名称
private int supplierid; //供应商ID
private float payamt = 0.0f ; //合同总金额
private int orderstate ; //订单状态
private String orderdate ; //订单生效时间
//采购明细
private float expected = 0.0f; //期望金额
private int orderamt ; //采购数量
private float specprice = 0.0f; //采购单价
private float amount = 0.0f; //该商品总价
private boolean flag_skuAmount ; //判断实际钱数和其期望钱数是否一致
private boolean flag_total; //判断该采购单商品总额与合同金额是否一致
public boolean isFlag_skuAmount() {
return flag_skuAmount;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getOrdernumber() {
return ordernumber;
}
public void setOrdernumber(String ordernumber) {
this.ordernumber = ordernumber;
}
public String getPayName() {
return payName;
}
public void setPayName(String payName) {
this.payName = payName;
}
public int getSupplierid() {
return supplierid;
}
public void setSupplierid(int supplierid) {
this.supplierid = supplierid;
}
public float getPayamt() {
return payamt;
}
public void setPayamt(float payamt) {
this.payamt = payamt;
}
public int getOrderstate() {
return orderstate;
}
public void setOrderstate(int orderstate) {
this.orderstate = orderstate;
}
public String getOrderdate() {
return orderdate;
}
public void setOrderdate(String orderdate) {
this.orderdate = orderdate;
}
public float getExpected() {
return expected;
}
public void setExpected(float expected) {
this.expected = expected;
}
public int getOrderamt() {
return orderamt;
}
public void setOrderamt(int orderamt) {
this.orderamt = orderamt;
}
public float getSpecprice() {
return specprice;
}
public void setSpecprice(float specprice) {
this.specprice = specprice;
}
public float getAmount() {
return amount;
}
public void setAmount(float amount) {
this.amount = amount;
}
public void setFlag_skuAmount(boolean flag_skuAmount) {
this.flag_skuAmount = flag_skuAmount;
}
public boolean getFlag_total() {
return flag_total;
}
public void setFlag_total(boolean flag_total) {
this.flag_total = flag_total;
}
/**
* 判断该单中某个品 单价*数量=该品金额
* */
public boolean isFlagAmount() {
float expected = orderamt * specprice ;
expected = transformationMoney.transformationMoney(expected);//调用保留两位小数并且后两位进行四舍五入。
if(this.amount==expected) {
flag_skuAmount = true ;
} else {
flag_skuAmount = false ;
}
return flag_skuAmount;
}
/**
* 判断某单采购单中中商品总价
* */
public boolean isFlag_total() {
if(expected==payamt) {
flag_total =true ;
} else {
flag_total = false ;
}
return flag_total ;
}
}
package controll;
import java.io.IOException;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import bean.OrderListBean;
import dbutil.DBConnection;
import util.TransformationMoney;
/**
* Servlet implementation class OrderListControll
*/
public class OrderListControll extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public OrderListControll() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.getWriter().append("Served at: ").append(request.getContextPath());
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html;charset=UTF-8");
String request_uri = request.getRequestURI().trim();
System.out.println("request_uri:"+request_uri);
String path = request_uri.substring(request_uri.indexOf("/", 1), request_uri.indexOf("."));
OrderListBean orderListBean ;
List<OrderListBean> orderList = new ArrayList<OrderListBean>();
String sql = "select * from mt_order where orderstate = 2 order by id DESC" ;
// String sql = "select * from mt_order where orderstate = 2 and ordernumber='P19070310263401'" ;
if("/OrderListControll".equals(path)) {
Connection con = new DBConnection().getConnection();
ResultSet rs ;
try {
Statement stmt = con.createStatement();
rs = stmt.executeQuery(sql);
if(rs!=null) {
while(rs.next()) {
orderListBean = new OrderListBean();
int id = rs.getInt("id");
String orderNumber = rs.getString("ordernumber");
String payName = rs.getString("payname");
int supplierId = rs.getInt("supplierid");
float payAmt = rs.getFloat("payamt");
int orderstate = rs.getInt("orderstate");
String orderdate = rs.getString("orderdate");
orderListBean.setId(id);
orderListBean.setOrdernumber(orderNumber);
orderListBean.setPayName(payName);
orderListBean.setSupplierid(supplierId);
orderListBean.setPayamt(payAmt);
orderListBean.setOrderstate(orderstate);
orderListBean.setOrderdate(orderdate);
//查询采购订单明细
String sql_mt_order_sku = "select * from mt_order_sku where orderid="+orderListBean.getId();
// String sql_mt_order_sku = "select * from mt_order_sku where orderid=731";
Statement stmt1= con.createStatement();
ResultSet rs1 = stmt1.executeQuery(sql_mt_order_sku);
float totalMoney = 0.0f ; //定义一个采购订单有N条采购商品。
TransformationMoney transformationMoeny = new TransformationMoney(); //声明钱转换格式实例
if(rs1!=null) {
int count = 0 ;
while(rs1.next()) {
count = ++count; //N条采购订单标记位
int orderamt = rs1.getInt("orderamt"); //采购数量
float specprice = rs1.getFloat("specprice"); //单个商品规格报价
float amount = rs1.getFloat("amount"); //单个商品商品总价
orderListBean.setOrderamt(orderamt);
orderListBean.setSpecprice(specprice);
orderListBean.setAmount(amount);
boolean flag_skuAmount = orderListBean.isFlagAmount() ; //判断该采购单单笔明细是否与实际钱数一致。
orderListBean.setFlag_skuAmount(flag_skuAmount);
if(flag_skuAmount==true && count>1) {
totalMoney +=orderListBean.getAmount(); //有个采购订单有N条采购商品,计算其总价。
} else {
totalMoney += orderListBean.getAmount(); //否则采购订单总额就等于单个商品的总额
if(orderListBean.isFlag_total()==false){
orderListBean.setFlag_total(false); //设置总的钱数为false
}
}
}
}
totalMoney = transformationMoeny.transformationMoney(totalMoney);
orderListBean.setExpected(totalMoney);
boolean isFlag_total = orderListBean.isFlag_total(); //判断合同金额与实际金额是否一致
if(isFlag_total==true) {
orderListBean.setFlag_total(true);
} else {
orderListBean.setFlag_total(false);
}
orderList.add(orderListBean);
}
}
request.setAttribute("orderList", orderList);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
try {
con.close();
} catch (SQLException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
} finally {
try {
con.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
//判断跳转
if(orderList.isEmpty()) {
//跳转至错误页
gotoPage("./views/errorPage.jsp", request, response);
} else {
//跳转至列表页
gotoPage("./list_order.jsp", request, response);
}
}
}
/**
* 通用跳转页面
* @throws IOException
* @throws ServletException
* */
public void gotoPage(String targetURL,HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
RequestDispatcher rd ;
rd = request.getRequestDispatcher(targetURL);
rd.forward(request, response);
}
}
package dbutil;
import java.sql.DriverManager;
import java.sql.SQLException;
import com.mysql.jdbc.Connection;
public class DBConnection {
String driver = "com.mysql.jdbc.Driver";// 加载数据库驱动
// // 获取本地测试(调试)环境mysql连接地址;本地调试的时候注释放开,便于调试,提交代码的时候需要注释掉将发布环境的放开
// String test_url = "jdbc:mysql://localhost:3306/report?useunicode=true&characterEncoding=utf8";
// // 测试环境本地调试数据库用户名
// String test_user = "root";
// // 测试环境本地调试数据库密码
// String test_password = "mjitech";
//发布环境数据库访问地址,代码开发完成,发布的时候需要放开以下注释再提交。
String test_url = "jdbc:mysql://139.129.108.180:3306/maxbox_test?useunicode=true&characterEncoding=utf8";
// 发布环境用户名
String test_user = "root";
// 发布环境密码
String test_password = "Mjitech20!6";
//
// //线上
// String test_url = "jdbc:mysql://10.29.176.67:3306/maxbox?useunicode=true&characterEncoding=utf8";
// // 发布环境用户名
// String test_user = "root";
// // 发布环境密码
// String test_password = "Mjitech20!6";
public Connection conn;
public Connection getConnection() {
try {
Class.forName(driver);
conn = (Connection) DriverManager.getConnection(test_url, test_user, test_password); // getConnection()方法,连接MySQL数据库!
if (!conn.isClosed()) {
System.out.println("Testenv report db Succeeded connecting to the Database!");
}
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return conn;
}
public void close() {
try {
this.conn.close();
} catch (Exception e) {
e.printStackTrace();
}
}
public static void main(String[] args) {
DBConnection con = new DBConnection();
System.out.println("Connection Successful" + con);
}
}
package util;
import java.math.BigDecimal;
/**
* 钱数转换:钱数float类型保留小数点后两位,后两位进行四舍五入
* 例如:float money = 34.0934f;
* 那么转换后保留小数点后两位,后两位进行四舍五入结果为:34.10
* */
public class TransformationMoney {
/**
* 第一种方法实现保留小数点后两位,并且后两位后面>=5进1;
* */
public float transformationMoney(float money) {
//2.23 四舍五入(若舍弃部分>=.5,就进位)
BigDecimal d = new BigDecimal(money).setScale(2, BigDecimal.ROUND_HALF_UP);
money = d.floatValue() ;
return money;
}
/**
* 第二种方法实现保留小数点后两位,并且后两位后面>=5进1;
* */
public float transformationMoneyMethod(float money) {
int scale = 2; //设置位数
int roundingMode = 4;//表示四舍五入,可以选择其他舍值方式,例如去尾,等等.
BigDecimal bd = new BigDecimal((double)money);
bd = bd.setScale(scale,roundingMode);
money = bd.floatValue();
return money;
}
}
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<display-name>Archetype Created Web Application</display-name>
<servlet>
<description>采购订单控制器</description>
<display-name>OrderListControll</display-name>
<servlet-name>OrderListControll</servlet-name>
<servlet-class>controll.OrderListControll</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>OrderListControll</servlet-name>
<url-pattern>/OrderListControll.do</url-pattern>
</servlet-mapping>
</web-app>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
@charset "utf-8";/*清风抚雪2014年12月7日 11:21:18 zfengyu@foxmail.com*/
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, th, td{margin:0;padding:0}
body, button, input{font-family:微软雅黑, tahoma, arial, sans-serif;font-size:14px;line-height:1.5;color:#525252}
address, cite, dfn, em, var{font-style:normal}
ul, ol{list-style:none}
a{text-decoration:none;color:#414141}
a:hover{color:#804e15;text-decoration:underline}
img{border:none}
h1, h2, h3, h4, h5, h6, button, input{font-size:100%}
div{margin:0 auto}
.m{margin:0 auto}
.right{float:right}
.left{float:left}
.t10{margin-top:10px}
.o{overflow:hidden}
.clearfix{*zoom:1}
.clearfix:after{display:block;overflow:hidden;clear:both;height:0;visibility:hidden;content:"."}
.yc dl dt dd{white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}
.yc ul li{white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden}
#top{width:100%;height:106px;background:url(../i/h_top.png) repeat-x left top; z-index: 100;}
.dingbu{height:31px;line-height:31px;font-size:12px;width:1100px;color:#fff; margin:0 auto; overflow: hidden;}
.dingbu ul{float:left; text-indent: 10px;}
.dingbu dl{float:right;}
.dingbu dt{float:left;padding-left:15px;font-weight:normal !important}
.dingbu dt a{ color: #fff;}
.mp ,.mp ul ,.mp dl{ margin: 0px; padding: 0px;}
.logo{ float: left;}
.logo h1 a{background:url(../i/logo.png) no-repeat 50% 50%;display:block;font-size:0px;width:210px;height:50px;overflow:hidden;text-indent:-2180px;float:left;margin-top:10px}
.menu{ width: 1110px; height: 70px line-height: 40px; margin: 0 auto;}
.menu ul{float: right; padding: 0px; margin:21px 0 0 0;}
.menu li{ float: left; list-style-type: none; border-radius: 5px; margin-left: 15px; overflow: hidden; }
.menu li a { padding: 0 30px; color: #66666e;}
.menu li a:hover{ background-color: #f5890c; display: block; padding: 0 30px; color: #fff;}
.menu .on{ background-color: #f5890c; display: block; color: #fff}
.menu .on a{color: #fff !important;}
#hdp{ width: 100%; height: 300px;background-color: #0084C7; overflow: hidden; margin-top: -7px; z-index: 10;}
.hdpo{ width: 1100px; margin: 40px auto 0 auto;}
#hdp dl{ border: solid 5px #fff; overflow: hidden; border-radius: 213px; width: 213px; height: 213px; float: left;}
#hdp dl img{ height: 100%; text-align: center;}
#hdp ul{ float: left; margin-left: 15px; color: #fff;}
#hdp li{ list-style-type: none;}
#hdp h2{ float: left; font-weight: bold; font-size: 26px;}
#hdp span{ float: left; margin-top: 12px; margin-left: 10px; font-size: 16px;}
#hdp .hdptu{ width: 120px; float: left;}
#hdp .hdptu em{ line-height: 25px; }
/*会员中心核心*/
#user-wrapper{margin:15px auto;width:1100px;color:#333;}
#user-wrapper .nav_right{width:900px;float:right}
#user-wrapper .nav_left{width:188px;float:left}
.nav_left .mt{height:36px;line-height:33px;padding:0;width:100%;text-indent:5px;text-align:left}
.nav_left .mt a{color:#FFF}
.nav_left .mc {width:188px;border:1px solid #c4e8c9;width:100%;}
.nav_left .mc dl{ margin-bottom:5px; font-size: 14px;}
.nav_left .mc dt {font-weight:bold;height:35px;line-height:33px;text-indent:5px;background:#ebfaee;border-bottom:solid 1px #d6efda;border-top:solid 1px #d6efda;margin-bottom:3px}
.nav_left .mc dd{padding:2px 0;position:relative;padding-left:26px}
.ls{color:#5eb95e}
.top8{margin-top:-2px}
.ziti p{ line-height:17px;}
.zitipic{ width:55px; height:31px; float:left; margin-right:10px}
.zitipic img{ width:55px; height:31px;}
.m3{background:#fff;border:1px solid #EDD28B;margin-bottom:15px;border-radius:2px;padding:10px}
.user{float:left;margin:10px;background:#FFFFFF;height:100px;width:100px}
.user img{ width:100px;height:100px}
.user .hide{ background:#ded3c9;text-align:center;line-height:25px;position:relative;bottom:0px;}
.user .hide a{color:#998f85}
.biaoge{ font-size: 14px;}
.foods{background:#FAFAFA;width:100%}
.foods .foods-list{width:1100px; margin: 0 auto;}
.foods .foods-list ul{padding:20px 0;float:left;width:255px}
.foods .foods-list h2{font-size:16px;line-height:26px;height:26px;width:100%; margin: 0px;}
.foods .foods-list li{font-size:12px;line-height:26px;text-indent:21px; list-style-type: none;}
.zfoods{background:#eb413d;width:100%;height:35px;line-height:35px;text-align:center;color:#fff; font-size:12px}
.zfoods a{color:#fff}
/*表格 重构建妹子*/
.pding{padding:3px;font-size:12px;margin-left:10px}
.common-w1{padding:30px 50px 0 0}
.common-w1 input{padding:6px !important}
.common-w1 select{padding:6px !important}
.common-w1 .am-u-sm-10{padding:0 6px;font-size:14px}
.common-w1 .am-u-sm-2{padding:6px;line-height:20px}
.common-w1 #doc-ipt-3{font-size:14px}
.common-w1 #doc-select-1{font-size:14px}
.common-w1 .am-form-group{margin-bottom:15px}
.common-w1 .am-form{width:90%;margin:0 auto;background:#CCC;background:#F8FEF9 !important;border:1px solid #E7F4E8;padding:25px 150px 0 50px}
/*表单 重构建妹子ui*/
.gstyle{background:#F8FEF9 !important;border:1px solid #E7F4E8;width:650px;margin:0 auto;padding:25px 150px 0 50px}
.gstyle .am-u-sm-2{width:100px;padding:0px 0 0 10px;line-height:35px;margin:0px}
.gstyle .am-u-sm-10{width:340px;float:left}
.gstyle .am-u-sm-offset-2{float:right}
.gstyle .am-btn{height:33px;line-height:16px;padding:0 20px}
/*我的积分*/
.des_border_b{border:1px solid #e7e7e7;border-top:1px solid #fdd475;padding:0}
.total{background-color:#fefaf4;padding:30px 40px}
.num{font-size:16px;font-weight:700}
.num strong{font-size:24px;font-weight:700;color:#f60}
.num button{display:inline-block;width:121px;height:34px;margin-left:50px;color:#FFF;font-size:14px;font-weight:700;text-align:center;border:none;cursor:pointer}
.ins_title{margin:15px 20px 0 20px;font-size:12px;font-weight:700;color:#7e7e7e}
.instruction{margin:0 15px 5px 20px;color:#999}
.detail_list{margin-bottom:15px;margin-top:20px}
.detail_list .tab{float:left;border:1px solid #CCC;padding:5px 10px;margin-right:8px;border-bottom:none;cursor:pointer;width:100px;text-align:center}
.detail_list .on{font-weight:bold;color:#F60;background:#f1faf1}
/*导航名字*/
h2.common_h2{font-size:18px;line-height:35px;border-bottom:1px #b8d6b8 solid;margin-bottom:10px; font-weight:bold}
/*头像右边*/
#remind{background:none repeat scroll 0 0 #FFF;border:1px solid #FFEED6;overflow:hidden;padding:10px;_height:60px}
#remind .oinfo{float:left;width:355px}
#remind .ainfo{border-left:1px solid #FFEED6;float:left;margin-left:10px;padding-left:10px;width:220px}
#remind .fore{border-top:medium none}
#remind dl{border-top:1px solid #FFEED6;height:30px;line-height:30px;overflow:hidden}
#remind dl dt, #remind dl dd{float:left}
#remind .oinfo dd{padding-right:10px;width:104px}
#remind dl dt, #remind dl dd{float:left}
#remind .oinfo dl dt{width:70px;text-align:right}
#remind .ainfo dl{padding-left:60px}
#remind .ainfo{border-left:1px solid #FFEED6;float:left;margin-left:10px;padding-left:10px;width:220px}
#remind .ask_link{padding:10px;width:250px;float:right;background:#c0e9c7;font-size:12px}
#i-userinfo{border-left:1px solid #FFEED6;margin-left:125px;padding-left:10px}
#userinfodisp{height:30px;line-height:25px;margin-bottom:3px;overflow:hidden}
#userinfodisp strong{color:#333;font-size:20px;font-weight:normal}
.member{height:23px;margin-right:10px;overflow:hidden}
* { font-family: "Microsoft YaHei"; }
.CodeMirror * { font-family: sans-serif; }
html { background-color: rgb(6, 19, 37); }
body { padding-top: 50px; padding-bottom: 0; background-color: rgb(247, 247, 247); }
body p { line-height: 2; }
.navbar { margin-bottom: 0; }
.navbar > .container .navbar-brand { margin-left: 0; }
.navbar a.navbar-brand { background: url('../img/echarts-logo.png') no-repeat 0 10px; padding-left: 48px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 25px; }
.navbar-default { background-color: rgb(247, 247, 247); border-color: rgb(218, 218, 218); }
.navbar-default .navbar-nav > li.active > a { background-color: transparent; color: #3E98C5; font-weight: bolder; border-bottom: 3px solid rgb(62,152, 197); }
.navbar-default .navbar-nav > li > a:hover { background-color: #eee; }
.carousel-caption.ecx-link { bottom: 20px; }
.carousel-caption.ecx-link a { font-size: 14px; height: 30px; display: block; color: #999; }
.carousel-caption.ecx-link a:hover { color: #eee; text-decoration: none; }
blockquote { border-width: 0; margin-bottom: 10px; }
.marketing .feature .col-lg-4 img { margin-bottom: 10px; }
.marketing .thx .col-lg-4 { margin-bottom: 0; text-align: left; }
.thx blockquote p { text-align: left; margin-bottom: 0; }
.thx blockquote small { text-align: right; }
.thx div { padding: 0; }
div.user { margin-top: 30px; }
.user img { height: 50px; padding: 5px; margin: 15px 3px; border: 1px solid #ddd; opacity: .75; }
.user a:hover img { opacity: 1; border: 1px solid #ccc; }
.featurette { padding: 50px 0; border-top: 1px solid #ddd; }
.featurette-heading { margin-top: 0px }
img { max-width: 100%; }
hr { border-color: #ddd; }
.row { margin-right: 0; margin-left: 0; }
.jumbotron { margin: 0; text-align: center; background-color: transparent; }
.jumbotron h1 { font-size: 100px; line-height: 1; }
.jumbotron .lead { font-size: 24px; line-height: 1.25; }
.jumbotron .btn { font-size: 21px; padding: 14px 24px; }
.team { padding-bottom: 0; }
.team .row { margin-bottom: 40px; }
.team i { font-size: 12px; }
.e-list dt { float: left; clear: left; width: 60px; }
.e-list dd { float: left; clear: right; color: #666; }
#footer { clear: both; background-color: rgb(6, 19, 37); padding: 30px 0; }
#footer p { color: #fff; font-size: 14px; }
#footer li a { color: rgb(190, 205, 223); font-size: 12px; }
#footer ul { list-style-type: none; padding: 0; }
#footer i { color: rgb(190, 205, 223); }
#footer div.flogo { position: relative; }
#footer div.flogo img { width: 220px; position: absolute; left: 30px; top: -120px; }
#footer div.flogo a:hover img { top: -130px; }
.dropdown i { color: #555; }
.nav ul.dropdown-menu { min-width : 0; }
.dropdown-menu > li > a { padding: 3px 10px; }
/*example*/
.CodeMirror pre { color: #f8f8f2; }
.CodeMirror-scrollbar-filler { background-color: rgb(247,247,247); }
.container-fluid .example { padding: 25px 0; }
.sidebar-nav { padding: 9px 0; margin-bottom: 0; }
.nav-header { display: block; padding: 3px 15px; font-size: 11px; font-weight: bold; line-height: 20px; color: #999999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.col-md-4.ani { transition: width 1s; -moz-transition: width 1s; -webkit-transition: width 1s; -o-transition: width 1s; }
.col-md-8.ani { transition: width 1s; -moz-transition: width 1s; -webkit-transition: width 1s; -o-transition: width 1s; }
.main { height: 400px; /*width: 778px !important;*/
overflow: hidden; padding : 10px; margin-bottom: 10px; border: 1px solid #e3e3e3; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); }
#graphic .btn { width: 80px; }
#graphic .text-primary { margin: 0 5px 0 20px }
#icon-resize { color: #000; float: right; opacity: .4; filter: alpha(opacity=30); }
a#icon-resize:hover { opacity: .8; filter: alpha(opacity=60); text-decoration: blink; }
/*doc*/
.panel { background-color: transparent; margin-left: -15px; margin-top: 10px; -webkit-box-shadow: none; box-shadow: none; }
.panel-body { padding: 0 0 0 10px; }
#toc, #config { padding: 9px 0; overflow-y : auto; }
.tree ul, .tree li { list-style: none; font-size : 14px; line-height : 20px; }
.tree ul { margin: 0; padding: 0 0 0 2em; }
.tree { white-space: nowrap; }
.tree strong { color: purple; font-weight: normal; }
.tree li { position: relative; }
.tree strong:hover, #content .value:hover, #content .summary:hover { background-color: silver; -webkit-transition: all .5s ease-in; }
.tree .operator { position: absolute; left: -1em; top: 0; display: none; cursor: pointer; }
.tree ul .operator { display: block; }
.tree ul .value, .tree ul .group, .tree ul .summary { margin-left: .5em; }
.tree .group { display: inline; }
.tree .summary { display: none; color: black; font-weight: bold; }
.tree .tree-close .group { display: none; }
.tree .tree-close .summary { display: inline; }
.tree .string { color: maroon; }
.tree .number { color: blue; }
.tree .boolean { color: black; }
#doc h3 a, #doc h4 a, #doc h5 a { display: inline-block; padding-top: 80px; }
table.full { width: 100%; }
.ADoc_table { border-collapse: collapse; margin-bottom: 15px; }
.ADoc_table th, .ADoc_table td { border: 1px solid rgb(23,53,81); padding: 3px; color: #222; }
.ADoc_table th { border-bottom: 2px solid rgb(23,53,81); background: rgb(37,78,117); color: #fff; text-align: center; }
.bgRed { background: rgb(255,230,230); }
.bgGreen { background: rgb(230,255,230); }
.bgBlue { background: rgb(210,230,255); }
.prettyprint { margin-top: 8px; }
.prettyprint xmp { margin: 0px; padding: 10px; }
.prettyprint .pln { line-height: 0px; }
.ec-icon { display: inline-block; width: 35px; height: 25px; *margin-right: .3em;
line-height: 25px; vertical-align: middle; background-image: url("../img/icon-bar.png"); background-repeat: no-repeat; }
.ec-icon-line { background-position: 0 -1px; }
.ec-icon-bar { background-position: 0 -26px; }
.ec-icon-scatter { background-position: 0 -51px; }
.ec-icon-k { background-position: 0 -76px; }
.ec-icon-pie { background-position: 0 -101px; }
.ec-icon-radar { background-position: 0 -126px; }
.ec-icon-chord { background-position: 0 -151px; }
.ec-icon-force { background-position: 0 -176px; }
.ec-icon-map { background-position: 0 -201px; }
.ec-icon-gauge { background-position: 0 -226px; }
.ec-icon-funnel { background-position: 0 -251px; }
.ec-icon-mix { background-position: 0 -276px; }
.ec-icon-component { background-position: 0 -301px; }
.ec-icon-other { background-position: 0 -326px; }
.ec-icon-theme { background-position: 0 -351px; }
.ec-icon-topic { background-position: 0 -376px; }
.ec-icon-eventRiver { background-position: 0 -401px; }
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
var myChart;
var domCode = document.getElementById('sidebar-code');
var domGraphic = document.getElementById('graphic');
var domMain = document.getElementById('main');
var domMessage = document.getElementById('wrong-message');
var iconResize = document.getElementById('icon-resize');
var needRefresh = false;
var enVersion = location.hash.indexOf('-en') != -1;
var hash = location.hash.replace('-en','');
hash = hash.replace('#','') || (needMap() ? 'default' : 'macarons');
hash += enVersion ? '-en' : '';
var curTheme;
function requireCallback (ec, defaultTheme) {
curTheme = themeSelector ? defaultTheme : {};
echarts = ec;
refresh();
window.onresize = myChart.resize;
}
var themeSelector = $('#theme-select');
if (themeSelector) {
themeSelector.html(
'<option selected="true" name="macarons">macarons</option>'
+ '<option name="infographic">infographic</option>'
+ '<option name="shine">shine</option>'
+ '<option name="dark">dark</option>'
+ '<option name="blue">blue</option>'
+ '<option name="green">green</option>'
+ '<option name="red">red</option>'
+ '<option name="gray">gray</option>'
+ '<option name="helianthus">helianthus</option>'
+ '<option name="default">default</option>'
);
$(themeSelector).on('change', function(){
selectChange($(this).val());
});
function selectChange(value){
var theme = value;
myChart.showLoading();
$(themeSelector).val(theme);
if (theme != 'default') {
window.location.hash = value + (enVersion ? '-en' : '');
require(['theme/' + theme], function(tarTheme){
curTheme = tarTheme;
setTimeout(refreshTheme, 500);
})
}
else {
window.location.hash = enVersion ? '-en' : '';
curTheme = {};
setTimeout(refreshTheme, 500);
}
}
function refreshTheme(){
myChart.hideLoading();
myChart.setTheme(curTheme);
}
if ($(themeSelector).val(hash.replace('-en', '')).val() != hash.replace('-en', '')) {
$(themeSelector).val('macarons');
hash = 'macarons' + enVersion ? '-en' : '';
window.location.hash = hash;
}
}
function autoResize() {
if ($(iconResize).hasClass('glyphicon-resize-full')) {
focusCode();
iconResize.className = 'glyphicon glyphicon-resize-small';
}
else {
focusGraphic();
iconResize.className = 'glyphicon glyphicon-resize-full';
}
}
function focusCode() {
domCode.className = 'col-md-8 ani';
domGraphic.className = 'col-md-4 ani';
}
function focusGraphic() {
domCode.className = 'col-md-4 ani';
domGraphic.className = 'col-md-8 ani';
if (needRefresh) {
myChart.showLoading();
setTimeout(refresh, 1000);
}
}
var editor = CodeMirror.fromTextArea(
document.getElementById("code"),
{ lineNumbers: true }
);
editor.setOption("theme", 'monokai');
editor.on('change', function(){needRefresh = true;});
function refresh(isBtnRefresh){
if (isBtnRefresh) {
needRefresh = true;
focusGraphic();
return;
}
needRefresh = false;
if (myChart && myChart.dispose) {
myChart.dispose();
}
myChart = echarts.init(domMain, curTheme);
window.onresize = myChart.resize;
(new Function(editor.doc.getValue()))();
myChart.setOption(option, true)
domMessage.innerHTML = '';
}
function needMap() {
var href = location.href;
return href.indexOf('map') != -1
|| href.indexOf('mix3') != -1
|| href.indexOf('mix5') != -1
|| href.indexOf('dataRange') != -1;
}
var echarts;
var developMode = false;
if (developMode) {
window.esl = null;
window.define = null;
window.require = null;
(function () {
var script = document.createElement('script');
script.async = true;
var pathname = location.pathname;
var pathSegs = pathname.slice(pathname.indexOf('doc')).split('/');
var pathLevelArr = new Array(pathSegs.length - 1);
script.src = pathLevelArr.join('../') + 'asset/js/esl/esl.js';
if (script.readyState) {
script.onreadystatechange = fireLoad;
}
else {
script.onload = fireLoad;
}
(document.getElementsByTagName('head')[0] || document.body).appendChild(script);
function fireLoad() {
script.onload = script.onreadystatechange = null;
setTimeout(loadedListener,100);
}
function loadedListener() {
// for develop
require.config({
packages: [
{
name: 'echarts',
location: '../../src',
main: 'echarts'
},
{
name: 'zrender',
//location: 'http://ecomfe.github.io/zrender/src',
location: '../../../zrender/src',
main: 'zrender'
}
]
});
launchExample();
}
})();
}
else {
// for echarts online home page
require.config({
paths: {
echarts: './www/js'
}
});
launchExample();
}
var isExampleLaunched;
function launchExample() {
if (isExampleLaunched) {
return;
}
// 按需加载
isExampleLaunched = 1;
require(
[
'echarts',
'theme/' + hash.replace('-en', ''),
'echarts/chart/line',
'echarts/chart/bar',
'echarts/chart/scatter',
'echarts/chart/k',
'echarts/chart/pie',
'echarts/chart/radar',
'echarts/chart/force',
'echarts/chart/chord',
'echarts/chart/gauge',
'echarts/chart/funnel',
'echarts/chart/eventRiver',
needMap() ? 'echarts/chart/map' : 'echarts'
],
requireCallback
);
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('$.1X($.3,{3c:4(2m){9 u=$.3.1X({1w:I,1p:I,1m:[],2y:0,2u:{\'1U\':\'3b\'},1v:K,d:3e,1q:\'Y\'},2m);4 2r(){8(u.1w==I){2h(\'1Z 1Y 28 23 \\\'1w\\\' 25\\r\\t--24\');k}8(u.1p==I){2h(\'1Z 1Y 28 23 \\\'1p\\\' 25\\r\\t--24\');k}8($(\'#\'+u.1p).m>0){2h(\'1Z 1Y 28 23 \\\'1p\\\' 25 3a 39\\r\\t--24\');k}9 1a=$(\'<j g="3f"><j g="1C" ><j g="1m"><2z /></j></j><j g="2w"><j A="V" g="2v" /></j></j>\').17($(u.1w));$(\'.2w>.2v\',1a).o(u.2u);$.3.6={1N:1a,d:u.d,B:$(\'.1C\',1a).v(),1q:u.1q,1v:u.1v,l:$(\'.1C>.1m>2z\',1a),2s:4(2x){9 y=$.3.1X({S:I,1e:\'3m 3h\',1n:{L:\'\',G:\'\'},21:\'\',2j:K,2o:I},2x);1H=(1j 1H==\'19\'?0:1H+1);9 P=1H;8(y.S!=I){9 W=y.S.f(\'W\');8(1j W!=\'19\'&&$(\'#15\'+W).m>0)k $.3.1M(W).1J().1u();y.S.f(\'W\',P)}9 2t=$(\'<12 g="1A H" 1G="v:2R" A="15\'+P+\'" L="\'+y.1n.L+\'" G="\'+y.1n.G+\'">\'+\'<j g="3j" 1G="v:\'+(u.d-5)+\'2p" >\'+\'<j g="3i" 1G="\'+(y.21==\'\'?\'35:18\':\'2X-2Y:2l(\'+y.21+\')\')+\'">&2b;</j>\'+\'<j g="34" 1e="\'+y.1e+\'" 1G="v:\'+(u.d-31)+\'2p" >\'+y.1e.2D(u.d/ 10 - 1) + \'</j>\'+\'<j g="2E">\'+(y.2j?\'<a 30="32:33(0)" 1e="2Z">&2b;</a>\':\'\')+\'</j>\'+\'</j>\'+\'<j g="2W">&2b;</j>\'+\'</12>\').17($.3.6.l).o(\'2d\',\'0\').2S().2F().E({\'2d\':\'1\',v:u.d},4(){$.3.1M(P)});b=(1j b==\'19\'?[]:b);b.26({N:P,S:y.S,O:\'15\'+P,11:\'2f\'+P,2q:\'3H\'+P,1Q:y.2o});k 2t.1I()}};$.C(u.1m,4(i,n){$.3.6.2s(n)});8(b.m==0)1a.o({\'U\':\'18\'})}2r();$.3.1M(u.2y).1u();$(3I).3J(4(){$.3.6.B=$(\'.1C\',$.3.6.1N).v()-(($(\'.1b\').m>0)?38:0);$(\'.1m\',$.3.6.1N).v($.3.6.B).1I().1J()})},3O:4(1D){9 D=$.3.6.l.1d(\'12\').1t(\'.H\');8(D.m>0)D.13();k $(\'#1A\').1t(\':3P-3G(\'+1D+\')\').13()},1M:4(1D){9 D=$.3.6.l.1d(\'12\').1t(\'.H\');8(D.m>0)D.13();k $(\'#15\'+1D).13()},2k:4(1S){k 7.C(4(){9 Q=I,1i=\'\';1r(9 M 1K b){8(b[M].11==$(7).f(\'A\')){Q=b[M].1Q;1i=b[M].2q;x}}9 1T=$(\'<1T A="\'+1i+\'" 3u="\'+1i+\'" 1S="\'+1S+\'" 3w="0" 3v="3s" />\').o({v:$(7).16().v(),1U:$(7).16().1U(),3p:0}).17($(7));3o.3r(1i).3D=4(){!!Q?Q(3C[1]):K;$.3.22()}})},1u:4(){k 7.C(4(){$(\'#V\').2M();9 Q=I,11=\'\',O=\'\';1r(9 M 1K b){8(b[M].O==$(7).f(\'A\')){Q=b[M].1Q;11=\'#\'+b[M].11;O=\'#\'+b[M].O;x}}9 L=$(7).f(\'L\');9 G=$(7).f(\'G\');8(1j L==\'19\'||L==\'\'||L==\'19\'){Z();k}$(\'#V\').1d(\'j[g=1P]\').f(\'g\',\'q\').o({\'U\':\'18\'});9 q=$(11);8(q.m==0){q=$(\'<j g="1P" A="\'+11.20(\'#\',\'\')+\'" />\').17($(\'#V\'));1o(q)}J{q.f(\'g\',\'1P\').o({\'U\':\'2c\'});8($.3.6.1v)Z();J{q.1E(\'\');1o(q)}}4 1o(c){1L(L){F\'3y\':$(G).o(\'U\',\'18\');9 2n=$(G).2n(K).17(c).o(\'U\',\'2c\');Z(q);x;F\'1E\':q.1o(G+\'?t=\'+1x.2i(1x.2P()),4(){Z(q)});x;F\'1T\':q.2k(G,q);x;F\'1V\':$.1V({2l:G,1n:{t:1x.2i(1x.2P())},2O:4(r){q.1E(\'2O! 3z\\\'t 1o 1n 3A 1V\');Z(q)},3x:4(r){q.1E(r);Z(q)}});x}}4 Z(h){!!Q?Q(h):K;$.3.22()}})},2I:4(){k 7.C(4(){9 s=7;$(s).2N(4(){$(s).1k(\'1b\'+$(s).f(\'z\')+\'2U\',\'1b\'+$(s).f(\'z\')+\'2T\')},4(){$(s).1k(\'1b\'+$(s).f(\'z\')+\'2T\',\'1b\'+$(s).f(\'z\')+\'2U\')}).2g(4(){8($(s).3B(\'[T=1y]\'))k;9 R=1R($.3.6.l.o(\'p\'));9 1O=b.m*$.3.6.d-$.3.6.B+38;1L($(s).f(\'z\')){F\'p\':8(R+$.3.6.d<0)$.3.6.l.E({p:R+$.3.6.d});J $.3.6.l.E({p:0},4(){$(s).f({\'T\':\'1y\',\'g\':\'w 3E\'})});$(\'.w[z=1f]\').f({\'T\':\'1g\',\'g\':\'w 3F\'});x;F\'1f\':8(R-$.3.6.d>-1O)$.3.6.l.E({p:R-$.3.6.d});J $.3.6.l.E({p:-1O},4(){$(s).f({\'T\':\'1y\',\'g\':\'w 2H\'})});$(\'.w[z=p]\').f({\'T\':\'1g\',\'g\':\'w 2C\'});x}})})},1I:4(){k 7.C(4(){8(1j b==\'19\'||b.m==0)k;9 14=b.m*$.3.6.d-$.3.6.B+38;8(b.m>0&&14>0){$.3.6.l.16().o({v:$.3.6.B-38});$.3.6.l.o({v:14+$.3.6.B-38}).E({p:-14},4(){8($(\'.w\').m<=0){$.3.6.l.16().3q($(\'<j g="w 2C" T="1g" z="p" />\'));$.3.6.l.16().3t($(\'<j g="w 2H" z="1f" T="1g" />\'));$(\'.w\').2I()}})}J 8(b.m>0&&14<=0){$(\'.w\').29();$.3.6.l.16().o({v:$.3.6.B});$.3.6.l.o({v:-14+$.3.6.B}).E({p:0})}})},1J:4(){k 7.C(4(){8($(\'.w\').m>0){9 R=1R($.3.6.l.o(\'p\'));9 2J=\'#\',N=0;1r(9 t 1K b){8(b[t].O==$(7).f(\'A\')){2J+=b[t].O;N=1R(t);x}}9 d=$.3.6.B-38;9 1c=$.3.6.d*N+R;9 1h=$.3.6.d*(N+1)+R;4 X(z,1z){$(\'.w[z=\'+z+\']\').f({\'T\':(1z?\'1g\':\'1y\'),\'g\':\'w 1b\'+z+\'3R\'+(1z?\'1z\':\'3Q\')})}8((1c<0&&1c>-$.3.6.d)&&(1h>0&&1h<$.3.6.d)){$.3.6.l.E({p:-$.3.6.d*N},4(){8(N==0)X(\'p\',2G);J X(\'p\',K);X(\'1f\',K)})}8((1c<d&&1c>d-$.3.6.d)&&(1h>d&&1h<d+$.3.6.d)){$.3.6.l.E({p:-$.3.6.d*(N+1)+d},4(){8(N==b.m-1)X(\'1f\',2G);J X(\'p\',K);X(\'p\',K)})}}})},2F:4(){k 7.C(4(){9 s=7;$(\'.2E>a\',7).2g(4(e){e.3M();8($(7).m==0)k;$(s).E({\'2d\':\'0\',v:\'2R\'},4(){9 D=$.3.6.l.1d(\'12\').1t(\'.H\');8(D.f(\'A\')==$(7).f(\'A\')){$(7).3L().13().1u()}1r(9 t 1K b){8(b[t].O==$(s).f(\'A\')){8(b[t].S!=I)b[t].S.3K(\'W\');b.3N(t,1)}}$(s).1I().29();$(\'#2f\'+$(s).f(\'A\').20(\'15\',\'\')).29()})})})},2S:4(){k 7.C(4(){$(7).2N(4(){8($(7).1s(\'1l\'))$(7).1W(\'2e\')},4(){8($(7).1s(\'2e\'))$(7).27(\'2e\')}).2g(4(){8($(7).1s(\'H\'))k;9 D=$.3.6.l.1d(\'12\').1t(\'.H\');D.f(\'g\',\'1A 1l\');$(\'#2f\'+D.f(\'A\').20(\'15\',\'\')).o({\'U\':\'18\'});$(7).f(\'g\',\'1A H\').1u().1J()})})},13:4(){k 7.C(4(){8($(7).1s(\'H\'))$(7).1k(\'H\',\'1l\');J 8($(7).1s(\'1l\'))$(7).1k(\'1l\',\'H\')})},1k:4(2K,2L){k 7.C(4(){$(7).27(2K).1W(2L)})},2M:4(){k 7.C(4(){1L($.3.6.1q){F\'2B\':$(7).1W(\'2A\');x;F\'Y\':8($(\'#V>.Y\').m==0)$(\'<j g="Y">3g...</j>\').o({p:$.3.6.B-3n}).17($(7));J $(\'#V>.Y\').o({U:\'2c\'});x}})},22:4(){1L($.3.6.1q){F\'2B\':$(\'#V\').27(\'2A\');x;F\'Y\':$(\'#V>.Y\').o({U:\'18\'});x}}});3k.3l.2D=4(2V){9 1F=0;9 1B=[];9 2a=\'\';1r(9 i=0;i<7.m;i++){8(1F>=2V){2a=\'...\';x}8(7.36(i)>37){1F+=2;1B.26(7.2Q(i,1))}J{1F++;1B.26(7.2Q(i,1))}}k 1B.3d("")+2a}',62,240,'|||fn|function||jerichoTab|this|if|var||tabHash||tabWidth||attr|class|||div|return|tabpage|length||css|left|holder||me||opts|width|jericho_sliders|break|ps|pos|id|tabPageWidth|each|lastTab|animate|case|dataLink|tab_selected|null|else|true|dataType|tab|index|tabId|curIndex|onComleted|offLeft|tabFirer|slide|display|jerichotab_contentholder|jerichotabindex|setSlider|righttag|removeLoading||holderId|li|swapTabEnable|offWidth|jerichotab_|parent|appendTo|none|undefined|jerichotab|jericho_slider|space_l|children|title|right|yes|space_r|jerichotabiframe|typeof|swapClass|tab_unselect|tabs|data|load|uniqueId|loader|for|hasClass|filter|loadData|loadOnce|renderTo|Math|no|enable|jericho_tabs|result|tab_pages|orderKey|html|position|style|tagGuid|applySlider|adaptSlider|in|switch|setTabActive|master|maxLeft|curholder|onCompleted|parseInt|src|iframe|height|ajax|addClass|extend|must|you|replace|iconImg|removeLoader|the|JeirchoTab|property|push|removeClass|set|remove|tale|nbsp|block|opacity|tab_unselect_h|jerichotabholder_|mouseup|alert|floor|closeable|buildIFrame|url|setting|clone|onLoadCompleted|px|iframeId|createJerichoTab|addTab|newTab|contentCss|content|tab_content|tabsetting|activeTabIndex|ul|loading|usebg|jericho_sliderleft_enable|cut|tab_close|applyCloseEvent|false|jericho_sliderright_disable|attachSliderEvent|curtag|css1|css2|showLoader|hover|error|random|substr|0px|applyHover|_hover|_enable|len|tab_right|background|image|Close|href|50|javascript|void|tab_text|backrground|charCodeAt|255||unique|as|500px|initJerichoTab|join|150|jericho_tab|Loading|Tab|tab_icon|tab_left|String|prototype|Jericho|130|document|border|before|getElementById|auto|after|name|scrolling|frameborder|success|formtag|can|by|is|arguments|onload|jericho_sliderleft_disable|jericho_sliderright_enable|child|jerichotabiframe_|window|resize|removeAttr|prev|stopPropagation|splice|setTabActiveByOrder|nth|disable|_'.split('|'),0,{}))
/**
* Module: rem - v1.3.2
* Description: A polyfill to parse CSS links and rewrite pixel equivalents into head for non supporting browsers
* Date Built: 2014-07-02
* Copyright (c) 2014 | Chuck Carpenter <chuck.carpenter@me.com>,Lucas Serven <lserven@gmail.com>;
**/
!function(a){"use strict";var b=function(){var a=document.createElement("div");return a.style.cssText="font-size: 1rem;",/rem/.test(a.style.fontSize)},c=function(){for(var a=document.getElementsByTagName("link"),b=[],c=0;c<a.length;c++)"stylesheet"===a[c].rel.toLowerCase()&&null===a[c].getAttribute("data-norem")&&b.push(a[c].href);return b},d=function(){for(var a=0;a<m.length;a++)j(m[a],e)},e=function(a,b){if(q.push(a.responseText),r.push(b),r.length===m.length){for(var c=0;c<r.length;c++)f(q[c],r[c]);(m=n.slice(0)).length>0?(r=[],q=[],n=[],d()):g()}},f=function(a,b){for(var c,d=k(a).replace(/\/\*[\s\S]*?\*\//g,""),e=/[\w\d\s\-\/\\\[\]:,.'"*()<>+~%#^$_=|@]+\{[\w\d\s\-\/\\%#:!;,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!;,.'"*()]*\}/g,f=d.match(e),g=/\d*\.?\d+rem/g,h=d.match(g),i=/(.*\/)/,j=i.exec(b)[0],l=/@import (?:url\()?['"]?([^'\)"]*)['"]?\)?[^;]*/gm;null!==(c=l.exec(a));)n.push(j+c[1]);null!==f&&0!==f.length&&(o=o.concat(f),p=p.concat(h))},g=function(){for(var a=/[\w\d\s\-\/\\%#:,.'"*()]+\d*\.?\d+rem[\w\d\s\-\/\\%#:!,.'"*()]*[;}]/g,b=0;b<o.length;b++){l+=o[b].substr(0,o[b].indexOf("{")+1);for(var c=o[b].match(a),d=0;d<c.length;d++)l+=c[d],d===c.length-1&&"}"!==l[l.length-1]&&(l+="\n}")}h()},h=function(){for(var a=0;a<p.length;a++)s[a]=Math.round(parseFloat(p[a].substr(0,p[a].length-3)*t))+"px";i()},i=function(){for(var a=0;a<s.length;a++)s[a]&&(l=l.replace(p[a],s[a]));var b=document.createElement("style");b.setAttribute("type","text/css"),b.id="remReplace",document.getElementsByTagName("head")[0].appendChild(b),b.styleSheet?b.styleSheet.cssText=l:b.appendChild(document.createTextNode(l))},j=function(b,c){try{var d=a.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP")||new ActiveXObject("Msxml2.XMLHTTP"):new XMLHttpRequest;d.open("GET",b,!0),d.onreadystatechange=function(){4===d.readyState&&c(d,b)},d.send(null)}catch(e){if(a.XDomainRequest){var f=new XDomainRequest;f.open("get",b),f.onload=function(){c(f,b)},f.onerror=function(){return!1},f.send()}}},k=function(b){return a.matchMedia||a.msMatchMedia||(b=b.replace(/@media[\s\S]*?\}\s*\}/g,"")),b};if(!b()){var l="",m=c(),n=[],o=[],p=[],q=[],r=[],s=[],t="";t=function(){var a,b=document,c=b.documentElement,d=b.body||b.createElement("body"),e=!b.body,f=b.createElement("div"),g=d.style.fontSize;return e&&c.appendChild(d),f.style.cssText="width:1em; position:absolute; visibility:hidden; padding: 0;",d.style.fontSize="1em",d.appendChild(f),a=f.offsetWidth,e?c.removeChild(d):(d.removeChild(f),d.style.fontSize=g),a}(),d()}}(window);
\ No newline at end of file
/*! Respond.js v1.4.2: min/max-width media query polyfill
* Copyright 2014 Scott Jehl
* Licensed under MIT
* http://j.mp/respondjs */
!function(a){"use strict";a.matchMedia=a.matchMedia||function(a){var b,c=a.documentElement,d=c.firstElementChild||c.firstChild,e=a.createElement("body"),f=a.createElement("div");return f.id="mq-test-1",f.style.cssText="position:absolute;top:-100em",e.style.background="none",e.appendChild(f),function(a){return f.innerHTML='&shy;<style media="'+a+'"> #mq-test-1 { width: 42px; }</style>',c.insertBefore(e,d),b=42===f.offsetWidth,c.removeChild(e),{matches:b,media:a}}}(a.document)}(this),function(a){"use strict";function b(){v(!0)}var c={};a.respond=c,c.update=function(){};var d=[],e=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}(),f=function(a,b){var c=e();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},g=function(a){return a.replace(c.regex.minmaxwh,"").match(c.regex.other)};if(c.ajax=f,c.queue=d,c.unsupportedmq=g,c.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,comments:/\/\*[^*]*\*+([^/][^*]*\*+)*\//gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,maxw:/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/,minmaxwh:/\(\s*m(in|ax)\-(height|width)\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/gi,other:/\([^\)]*\)/g},c.mediaQueriesSupported=a.matchMedia&&null!==a.matchMedia("only all")&&a.matchMedia("only all").matches,!c.mediaQueriesSupported){var h,i,j,k=a.document,l=k.documentElement,m=[],n=[],o=[],p={},q=30,r=k.getElementsByTagName("head")[0]||l,s=k.getElementsByTagName("base")[0],t=r.getElementsByTagName("link"),u=function(){var a,b=k.createElement("div"),c=k.body,d=l.style.fontSize,e=c&&c.style.fontSize,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",c||(c=f=k.createElement("body"),c.style.background="none"),l.style.fontSize="100%",c.style.fontSize="100%",c.appendChild(b),f&&l.insertBefore(c,l.firstChild),a=b.offsetWidth,f?l.removeChild(c):c.removeChild(b),l.style.fontSize=d,e&&(c.style.fontSize=e),a=j=parseFloat(a)},v=function(b){var c="clientWidth",d=l[c],e="CSS1Compat"===k.compatMode&&d||k.body[c]||d,f={},g=t[t.length-1],p=(new Date).getTime();if(b&&h&&q>p-h)return a.clearTimeout(i),i=a.setTimeout(v,q),void 0;h=p;for(var s in m)if(m.hasOwnProperty(s)){var w=m[s],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?j||u():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?j||u():1)),w.hasquery&&(z&&A||!(z||e>=x)||!(A||y>=e))||(f[w.media]||(f[w.media]=[]),f[w.media].push(n[w.rules]))}for(var C in o)o.hasOwnProperty(C)&&o[C]&&o[C].parentNode===r&&r.removeChild(o[C]);o.length=0;for(var D in f)if(f.hasOwnProperty(D)){var E=k.createElement("style"),F=f[D].join("\n");E.type="text/css",E.media=D,r.insertBefore(E,g.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(k.createTextNode(F)),o.push(E)}},w=function(a,b,d){var e=a.replace(c.regex.comments,"").replace(c.regex.keyframes,"").match(c.regex.media),f=e&&e.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(c.regex.urls,"$1"+b+"$2$3")},i=!f&&d;b.length&&(b+="/"),i&&(f=1);for(var j=0;f>j;j++){var k,l,o,p;i?(k=d,n.push(h(a))):(k=e[j].match(c.regex.findStyles)&&RegExp.$1,n.push(RegExp.$2&&h(RegExp.$2))),o=k.split(","),p=o.length;for(var q=0;p>q;q++)l=o[q],g(l)||m.push({media:l.split("(")[0].match(c.regex.only)&&RegExp.$2||"all",rules:n.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(c.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(c.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}v()},x=function(){if(d.length){var b=d.shift();f(b.href,function(c){w(c,b.href,b.media),p[b.href]=!0,a.setTimeout(function(){x()},0)})}},y=function(){for(var b=0;b<t.length;b++){var c=t[b],e=c.href,f=c.media,g=c.rel&&"stylesheet"===c.rel.toLowerCase();e&&g&&!p[e]&&(c.styleSheet&&c.styleSheet.rawCssText?(w(c.styleSheet.rawCssText,e,f),p[e]=!0):(!/^([a-zA-Z:]*\/\/)/.test(e)&&!s||e.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&("//"===e.substring(0,2)&&(e=a.location.protocol+e),d.push({href:e,media:f})))}x()};y(),c.update=y,c.getEmValue=u,a.addEventListener?a.addEventListener("resize",b,!1):a.attachEvent&&a.attachEvent("onresize",b)}}(this);
\ No newline at end of file
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<html>
<body>
<h2>这是错误页面</h2>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment