Commit b720eb3c authored by jackfrued's avatar jackfrued

添加了Tornado相关的文档和代码

parent 1f67d39f
...@@ -7,30 +7,108 @@ ...@@ -7,30 +7,108 @@
由于之前已经详细的讲解了如何创建Django项目以及项目的相关配置,因此我们略过这部分内容,唯一需要说明的是,从上面对投票应用需求的描述中我们可以分析出三个业务实体:学科、老师和用户。学科和老师之间通常是一对多关联关系(一个学科有多个老师,一个老师通常只属于一个学科),用户因为要给老师投票,所以跟老师之间是多对多关联关系(一个用户可以给多个老师投票,一个老师也可以收到多个用户的投票)。首先修改应用下的models.py文件来定义数据模型,先给出学科和老师的模型。 由于之前已经详细的讲解了如何创建Django项目以及项目的相关配置,因此我们略过这部分内容,唯一需要说明的是,从上面对投票应用需求的描述中我们可以分析出三个业务实体:学科、老师和用户。学科和老师之间通常是一对多关联关系(一个学科有多个老师,一个老师通常只属于一个学科),用户因为要给老师投票,所以跟老师之间是多对多关联关系(一个用户可以给多个老师投票,一个老师也可以收到多个用户的投票)。首先修改应用下的models.py文件来定义数据模型,先给出学科和老师的模型。
```Python ```Python
from django.db import models
class Subject(models.Model):
"""学科"""
no = models.AutoField(primary_key=True, verbose_name='编号')
name = models.CharField(max_length=31, verbose_name='名称')
intro = models.CharField(max_length=511, verbose_name='介绍')
def __str__(self):
return self.name
class Meta:
db_table = 'tb_subject'
verbose_name_plural = '学科'
class Teacher(models.Model):
"""老师"""
no = models.AutoField(primary_key=True, verbose_name='编号')
name = models.CharField(max_length=15, verbose_name='姓名')
gender = models.BooleanField(default=True, choices=((True, '男'), (False, '女')), verbose_name='性别')
birth = models.DateField(null=True, verbose_name='出生日期')
intro = models.CharField(max_length=511, default='', verbose_name='')
good_count = models.IntegerField(default=0, verbose_name='好评数')
bad_count = models.IntegerField(default=0, verbose_name='差评数')
photo = models.CharField(max_length=255, verbose_name='照片')
subject = models.ForeignKey(to=Subject, on_delete=models.PROTECT, db_column='sno', verbose_name='所属学科')
def __str__(self):
return self.name
class Meta:
db_table = 'tb_teacher'
verbose_name_plural = '老师'
``` ```
模型定义完成后,可以通过“生成迁移”和“执行迁移”来完成关系型数据库中二维表的创建,当然这需要提前启动数据库服务器并创建好对应的数据库,同时我们在项目中已经安装了PyMySQL而且完成了相应的配置,这些内容此处不再赘述。 模型定义完成后,可以通过“生成迁移”和“执行迁移”来完成关系型数据库中二维表的创建,当然这需要提前启动数据库服务器并创建好对应的数据库,同时我们在项目中已经安装了PyMySQL而且完成了相应的配置,这些内容此处不再赘述。
```Shell ```Shell
(venv)$ python manage.py makemigrations demo (venv)$ python manage.py makemigrations vote
... ...
(venv)$ python manage.py migrate (venv)$ python manage.py migrate
... ...
``` ```
完成模型迁移之后,我们可以通过下面的SQL语句来添加学科和老师的数据。 > 注意:为了给vote应用生成迁移,需要先修改Django项目的配置文件settings.py,在INSTALLED_APPS中添加vote应用。
完成模型迁移之后,我们可以通过下面的SQL语句来添加学科和老师测试的数据。
```SQL
INSERT INTO `tb_subject` (`no`,`name`,`intro`)
VALUES
(1, 'Python全栈+人工智能', 'Python是一种面向对象的解释型计算机程序设计语言,由荷兰人Guido van Rossum于1989年发明,第一个公开发行版发行于1991年。'),
(2, 'JavaEE+分布式服务', 'Java是一门面向对象编程语言,不仅吸收了C++语言的各种优点,还摒弃了C++里难以理解的多继承、指针等概念,因此Java语言具有功能强大和简单易用两个特征。'),
(3, 'HTML5大前端', 'HTML5 将成为 HTML、XHTML 以及 HTML DOM 的新标准。'),
(4, '全栈软件测试', '在规定的条件下对程序进行操作,以发现程序错误,衡量软件质量,并对其是否能满足设计要求进行评估的过程'),
(5, '全链路UI/UE', '全链路要求设计师关注整个业务链中的每一个环节,将设计的价值融入每一个和用户的接触点中,让整个业务的用户体验质量得到几何级数的增长。');
INSERT INTO `tb_teacher` (`no`,`name`,`gender`,`birth`,`intro`,`good_count`,`bad_count`,`photo`,`sno`)
VALUES
(1, '骆昊', 1, '1980-11-28', '10年以上软硬件产品设计、研发、架构和管理经验,2003年毕业于四川大学,四川大学Java技术俱乐部创始人,四川省优秀大学毕业生,在四川省网络通信技术重点实验室工作期间,参与了2项国家自然科学基金项目、1项中国科学院中长期研究项目和多项四川省科技攻关项目,在国际会议和国内顶级期刊上发表多篇论文(1篇被SCI收录,3篇被EI收录),大规模网络性能测量系统DMC-TS的设计者和开发者,perf-TTCN语言的发明者。国内最大程序员社区CSDN的博客专家,在Github上参与和维护了多个高质量开源项目,精通C/C++、Java、Python、R、Swift、JavaScript等编程语言,擅长OOAD、系统架构、算法设计、协议分析和网络测量,主持和参与过电子政务系统、KPI考核系统、P2P借贷平台等产品的研发,一直践行“用知识创造快乐”的教学理念,善于总结,乐于分享。', 0, 0, 'images/luohao.png', 1),
(2, '王海飞', 1, '1993-05-24', '5年以上Python开发经验,先后参与了O2O商城、CRM系统、CMS平台、ERP系统等项目的设计与研发,曾在全国最大最专业的汽车领域相关服务网站担任Python高级研发工程师、项目经理等职务,擅长基于Python、Java、PHP等开发语言的企业级应用开发,全程参与了多个企业级应用从需求到上线所涉及的各种工作,精通Django、Flask等框架,熟悉基于微服务的企业级项目开发,拥有丰富的项目实战经验。善于用浅显易懂的方式在课堂上传授知识点,在授课过程中经常穿插企业开发的实际案例并分析其中的重点和难点,通过这种互动性极强的教学模式帮助学员找到解决问题的办法并提升学员的综合素质。', 0, 0, 'images/wangdachui.png', 1),
(3, '余婷', 0, '1992-03-12', '5年以上移动互联网项目开发经验和教学经验,曾担任上市游戏公司高级软件研发工程师和移动端(iOS)技术负责人,参了多个企业级应用和游戏类应用的移动端开发和后台服务器开发,拥有丰富的开发经验和项目管理经验,以个人开发者和协作开发者的身份在苹果的AppStore上发布过多款App。精通Python、C、Objective-C、Swift等开发语言,熟悉iOS原生App开发、RESTful接口设计以及基于Cocos2d-x的游戏开发。授课条理清晰、细致入微,性格活泼开朗、有较强的亲和力,教学过程注重理论和实践的结合,在学员中有良好的口碑。', 0, 0, 'images/yuting.png', 1),
(4, '肖世荣', 1, '1977-07-02', '10年以上互联网和移动互联网产品设计、研发、技术架构和项目管理经验,曾在中国移动、symbio、ajinga.com、万达信息等公司担任架构师、项目经理、技术总监等职务,长期为苹果、保时捷、耐克、沃尔玛等国际客户以及国内的政府机构提供信息化服务,主导的项目曾获得“世界科技先锋”称号,个人作品“许愿吧”曾在腾讯应用市场生活类App排名前3,拥有百万级用户群体,运营的公众号“卵石坊”是国内知名的智能穿戴设备平台。精通Python、C++、Java、Ruby、JavaScript等开发语言,主导和参与了20多个企业级项目(含国家级重大项目和互联网创新项目),涉及的领域包括政务、社交、电信、卫生和金融,有极为丰富的项目实战经验。授课深入浅出、条理清晰,善于调动学员的学习热情并帮助学员理清思路和方法。', 0, 0, 'images/xiaoshirong.png', 1),
(5, '张无忌', 1, '1987-07-07', '出生起便在冰火岛过着原始生活,踏入中土后因中玄冥神掌命危而带病习医,忍受寒毒煎熬七年最后因福缘际会练成“九阳神功”更在之后又练成了“乾坤大挪移”等盖世武功,几乎无敌于天下。 生性随和,宅心仁厚,精通医术和药理。20岁时便凭着盖世神功当上明教教主,率领百万教众及武林群雄反抗蒙古政权元朝的高压统治,最后推翻了元朝。由于擅长乾坤大挪移神功,上课遇到问题就转移话题,属于拉不出屎怪地球没有引力的类型。', 0, 0, 'images/zhangwuji.png', 5),
(6, '韦一笑', 1, '1975-12-15', '外号“青翼蝠王”,为明教四大护教法王之一。 身披青条子白色长袍,轻功十分了得。由于在修炼至阴至寒的“寒冰绵掌”时出了差错,经脉中郁积了至寒阴毒,只要运上内力,寒毒就会发作,如果不吸人血解毒,全身血脉就会凝结成冰,后得张无忌相助,以其高明医术配以“九阳神功”,终将寒毒驱去,摆脱了吸吮人血这一命运。由于轻功绝顶,学生一问问题就跑了。', 0, 0, 'images/weiyixiao.png', 3);
```
当然也可以直接使用Django提供的后台管理应用来添加学科和老师信息,这需要先注册模型类和模型管理类。
```SQL ```SQL
from django.contrib import admin
from django.contrib.admin import ModelAdmin
from vote.models import Teacher, Subject
class SubjectModelAdmin(ModelAdmin):
"""学科模型管理"""
list_display = ('no', 'name')
ordering = ('no', )
class TeacherModelAdmin(ModelAdmin):
"""老师模型管理"""
list_display = ('no', 'name', 'gender', 'birth', 'good_count', 'bad_count', 'subject')
ordering = ('no', )
search_fields = ('name', )
admin.site.register(Subject, SubjectModelAdmin)
admin.site.register(Teacher, TeacherModelAdmin)
``` ```
接下来,我们就可以修改views.py文件,通过编写视图函数先实现“学科介绍”页面。 接下来,我们就可以修改views.py文件,通过编写视图函数先实现“学科介绍”页面。
```Python ```Python
def show_subjects(request): def show_subjects(request):
ctx = {'subjects_list': Subject.objects.all()} """查看所有学科"""
return render(request, 'subject.html', ctx) subjects = Subject.objects.all()
return render(request, 'subject.html', {'subjects': subjects})
``` ```
至此,我们还需要一个模板页,模板的配置以及模板页中模板语言的用法在之前已经进行过简要的介绍,如果不熟悉可以看看下面的代码,相信这并不是一件困难的事情。 至此,我们还需要一个模板页,模板的配置以及模板页中模板语言的用法在之前已经进行过简要的介绍,如果不熟悉可以看看下面的代码,相信这并不是一件困难的事情。
...@@ -41,131 +119,91 @@ def show_subjects(request): ...@@ -41,131 +119,91 @@ def show_subjects(request):
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>学科信息</title> <title>学科信息</title>
<style> <style>/* 此处略去了层叠样式表的选择器 */</style>
body {
width: 960px;
margin: 0 auto;
}
.sub {
margin: 20px 10px;
}
</style>
</head> </head>
<body> <body>
<h1>学科信息</h1> <h1>所有学科</h1>
<hr> <hr>
{% for subject in subjects_list %} <div id="container">
<dl class="sub"> {% for subject in subjects %}
<dt><a href="/subjects/{{ subject.no }}">{{ subject.name }}</a></dt> <dl>
<dd>{{ subject.intro }}</dd> <dt>
</dl> <a href="/teachers?sno={{ subject.no }}">
{% endfor %} {{ subject.name }}
</a>
</dt>
<dd>{{ subject.intro }}</dd>
</dl>
{% endfor %}
</div>
</body> </body>
</html> </html>
``` ```
启动服务器,运行效果如下图所示。 在上面的模板中,我们为每个学科添加了一个超链接,点击超链接可以查看该学科的讲师信息,为此需要再编写一个视图函数来处理查看指定学科老师信息。
![](./res/runserver02.png)
### 加载静态资源
在上面的模板中,我们为每个学科添加了一个超链接,点击超链接可以查看该学科的讲师信息,为此我们得修改项目的urls.py文件配置一个新的URL。
```Python ```Python
from django.contrib import admin def show_teachers(request):
from django.urls import path """查看指定学科的老师"""
try:
from demo import views sno = int(request.GET['sno'])
subject = Subject.objects.get(no=sno)
urlpatterns = [ teachers = Teacher.objects.filter(subject__no=sno)
path('', views.show_subjects), context = {'subject': subject, 'teachers': teachers}
path('subjects/<int:no>', views.show_teachers), return render(request, 'teacher.html', context)
path('admin/', admin.site.urls), except (KeyError, ValueError, Subject.DoesNotExist):
] return redirect('/')
```
Django 2.x在配置URL时可以使用如上面所示的占位符语法,而且可以指定占位符的类型,因为在查询学科讲师信息时,需要传入该学科的编号作为条件,而学科编号在定义模型时设定为`AutoField`,其本质就是`int`类型。相较于Django 1.x中使用正则表达式的命名捕获组来从URL中获取数据(如果对Django 1.x并没有什么概念,这句话可以暂时忽略不计),这种更加优雅的写法可以让我们在视图函数中直接获得学科编号,代码如下所示。
```Python
def show_teachers(request, no):
teachers = Teacher.objects.filter(subject__no=no)
ctx = {'teachers_list': teachers}
return render(request, 'demo/teacher.html', ctx)
``` ```
接下来我们可以定制“老师详情”的模板页。 显示老师信息的模板页。
```HTML ```HTML
<!DOCTYPE html> <!DOCTYPE html>
{% load staticfiles %} {% load static %}
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>讲师信息</title> <title>老师信息</title>
<style> <style>/* 此处略去了层叠样式表的选择器 */</style>
.container {
width: 960px;
margin: 0 auto;
}
.basic {
width: 60%;
float: left;
}
.potrait {
width: 40%;
float: left;
text-align: right;
}
hr {
clear: both;
}
.button {
display: inline-block;
width: 80px;
height: 30px;
background-color: red;
color: white;
font: 16px/30px Arial;
text-decoration: none;
text-align: center;
margin-bottom: 10px;
}
</style>
</head> </head>
<body> <body>
{% for x in teachers_list %} <h1>{{ subject.name }}的老师信息</h1>
<div class="container"> <hr>
<div class="basic"> {% if teachers %}
<h1>{{ x.name }}老师</h1> <div id="container">
<p><strong>讲师简介</strong></p> {% for teacher in teachers %}
<p>{{ x.intro }}</p> <div class="teacher">
<p><strong>教学理念</strong></p> <div class="photo">
<p>{{ x.motto }}</p> <img src="{% static teacher.photo %}" height="140" alt="">
<a href="/good/{{ x.no }}" class="button">好评({{ x.gcount }})</a> </div>
<a href="/bad/{{ x.no }}" class="button">差评({{ x.bcount }})</a> <div class="info">
</div> <div>
<div class="potrait"> <span><strong>姓名:{{ teacher.name }}</strong></span>
{% if x.photo %} <span>性别:{{ teacher.gender | yesno:'男,女' }}</span>
<img src="{% static x.photo %}"> <span>出生日期:{{ teacher.birth }}</span>
{% endif %} </div>
<div class="intro">{{ teacher.intro }}</div>
<div class="comment">
<a href="">好评({{ teacher.good_count }})</a>
<a href="">差评({{ teacher.bad_count }})</a>
</div>
</div>
</div> </div>
<hr> {% endfor %}
</div>
{% else %}
<h2>暂时没有该学科的老师信息</h2>
{% endif %}
<div class="back">
<a href="/">&lt;&lt;&nbsp;返回学科</a>
</div> </div>
{% endfor %}
</body> </body>
</html> </html>
``` ```
请注意上面的模板页面,我们在第2行和`<img>`标签中使用了加载静态资源的模板指令,通过加载静态资源的指令我们可以显示老师的头像。当然,我们还得创建放置静态资源的文件夹并在项目的配置文件中指明静态资源文件夹的所在以及静态资源的URL。 ### 加载静态资源
```Shell
(venv)$ mkdir static
(venv)$ cd static
(venv)$ mkdir css js images
```
首先在项目根目录下创建static文件,再进入static目录,创建css、js和images三个文件夹,分别用来放置层叠样式表、JavaScript文件和图片资源。 在上面的模板页面中,我们使用了`<img>`标签来加载老师的照片,其中使用了引用静态资源的模板指令`{% static %}`,要使用该指令,首先要使用`{% load static %}`指令来加载静态资源,我们将这段代码放在了页码开始的位置。在上面的项目中,我们将静态资源置于名为static的文件夹中,在该文件夹下又创建了三个文件夹:css、js和images,分别用来保存外部层叠样式表、外部JavaScript文件和图片资源。为了能够找到保存静态资源的文件夹,我们还需要修改Django项目的配置文件settings.py,如下所示:
```Python ```Python
# 此处省略上面的代码 # 此处省略上面的代码
...@@ -176,135 +214,89 @@ STATIC_URL = '/static/' ...@@ -176,135 +214,89 @@ STATIC_URL = '/static/'
# 此处省略下面的代码 # 此处省略下面的代码
``` ```
接下来运行项目查看结果。 接下来修改urls.py文件,配置用户请求的URL和视图函数的对应关系。
```Python
from django.contrib import admin
from django.urls import path
from vote import views
urlpatterns = [
path('', views.show_subjects),
path('teachers/', views.show_teachers),
path('admin/', admin.site.urls),
]
```
启动服务器运行项目,效果如下图所示。
![](/Users/Hao/Desktop/Python-100-Days/Day41-55/res/show-subjects.png)
![](./res/runserver03.png) ![](./res/show-teachers.png)
### Ajax请求 ### Ajax请求
接下来就可以实现“好评”和“差评”的功能了,很明显如果能够在不刷新页面的情况下实现这两个功能会带来更好的用户体验,因此我们考虑使用[Ajax](https://zh.wikipedia.org/wiki/AJAX)来实现“好评”和“差评” 接下来就可以实现“好评”和“差评”的功能了,很明显如果能够在不刷新页面的情况下实现这两个功能会带来更好的用户体验,因此我们考虑使用[Ajax](https://zh.wikipedia.org/wiki/AJAX)技术来实现“好评”和“差评”,Ajax技术我们在之前的章节中已经介绍过了,此处不再赘述
首先修改项目的urls.py文件,为“好评”和“差评”功能映射对应的URL,跟上面一样我们在URL中使用了占位符语法来绑定老师的编号 首先修改项目的urls.py文件,为“好评”和“差评”功能映射对应的URL。
```Python ```Python
from django.contrib import admin from django.contrib import admin
from django.urls import path from django.urls import path
from demo import views from vote import views
urlpatterns = [ urlpatterns = [
path('', views.login), path('', views.show_subjects),
path('subjects/', views.show_subjects), path('teachers/', views.show_teachers),
path('subjects/<int:no>/', views.show_teachers), path('praise/', views.prise_or_criticize),
path('good/<int:no>/', views.make_comment), path('criticize/', views.prise_or_criticize),
path('bad/<int:no>/', views.make_comment),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
] ]
``` ```
设计视图函数`make_comment`来支持“好评”和“差评”功能,可以通过`json`模块的`dumps`函数实现将字典转成JSON字符串并作为`HttpResponse`返回给浏览器的内容。在创建`HttpResponse`对象时,可以通过`content_type`参数来指定响应的[MIME类型](http://www.w3school.com.cn/media/media_mimeref.asp)为JSON且使用UTF-8编码(避免JSON字符串中的中文出现乱码) 设计视图函数`praise_or_criticize`来支持“好评”和“差评”功能,该视图函数通过Django封装的JsonResponse类将字典序列化成JSON字符串作为返回给浏览器的响应内容
```Python ```Python
def make_comment(request, no): def praise_or_criticize(request):
ctx = {'code': 200} """好评"""
try: try:
teacher = Teacher.objects.get(pk=no) tno = int(request.GET['tno'])
if request.path.startswith('/good'): teacher = Teacher.objects.get(no=tno)
if request.path.startswith('/prise'):
teacher.good_count += 1 teacher.good_count += 1
ctx['result'] = f'好评({teacher.gcount})'
else: else:
teacher.bad_count += 1 teacher.bad_count += 1
ctx['result'] = f'差评({teacher.bcount})'
teacher.save() teacher.save()
except Teacher.DoesNotExist: data = {'code': 200, 'hint': '操作成功'}
ctx['code'] = 404 except (KeyError, ValueError, Teacher.DoseNotExist):
return HttpResponse(json.dumps(ctx), data = {'code': 404, 'hint': '操作失败'}
content_type='application/json; charset=utf-8') return JsonResponse(data)
``` ```
修改模板页引入jQuery库来实现事件处理、Ajax请求和DOM操作。 修改显示老师信息的模板页,引入jQuery库来实现事件处理、Ajax请求和DOM操作。
```HTML ```HTML
<!DOCTYPE html> <script src="{% static 'js/jquery.min.js' %}"></script>
{% load staticfiles %} <script>
<html lang="en"> $(() => {
<head> $('.comment>a').on('click', (evt) => {
<meta charset="UTF-8"> evt.preventDefault();
<title>讲师信息</title> let a = $(evt.target)
<style> let span = a.next()
.container { $.getJSON(a.attr('href'), (json) => {
width: 960px; if (json.code == 200) {
margin: 0 auto; span.text(parseInt(span.text()) + 1)
} } else {
.basic { alert(json.hint)
width: 60%; }
float: left; })
} })
.potrait { })
width: 40%; </script>
float: left;
text-align: right;
}
hr {
clear: both;
}
.button {
display: inline-block;
width: 80px;
height: 30px;
background-color: red;
color: white;
font: 16px/30px Arial;
text-decoration: none;
text-align: center;
margin-bottom: 10px;
}
</style>
</head>
<body>
{% for x in teachers_list %}
<div class="container">
<div class="basic">
<h1>{{ x.name }}老师</h1>
<p><strong>讲师简介</strong></p>
<p>{{ x.intro }}</p>
<p><strong>教学理念</strong></p>
<p>{{ x.motto }}</p>
<a href="/good/{{ x.no }}" class="button">好评({{ x.gcount }})</a>
<a href="/bad/{{ x.no }}" class="button">差评({{ x.bcount }})</a>
</div>
<div class="potrait">
{% if x.photo %}
<img src="{% static x.photo %}">
{% endif %}
</div>
<hr>
</div>
{% endfor %}
<script src="{% static 'js/jquery.min.js' %}"></script>
<script>
$(function() {
$('.basic .button').on('click', function(evt) {
evt.preventDefault();
var $a = $(evt.target);
var url = $a.attr('href');
$.ajax({
'url': url,
'type': 'get',
'dataType': 'json',
'success': function(json) {
if (json.code == 200) {
$a.text(json.result);
}
}
});
});
});
</script>
</body>
</html>
``` ```
### 小结 ### 小结
到此,这个小项目的核心功能已然完成,在下一个章节中我们会增加用户登录和注册的功能,稍后我们还会限定登录后的用户才能进行投票操作,而且每个用户只能投出3票。 到此为止,这个投票项目的核心功能已然完成,在下一个章节中我们要求用户必须登录才能投票,没有账号的用户可以通过注册功能注册一个账号。
\ No newline at end of file \ No newline at end of file
## Django实战(04) - 表单的应用 ## Django实战(04) - 表单的应用
我们继续来完成上一章节中的项目,实现“用户注册”和“用户登录”的功能。Django框架中提供了对表单的封装,而且提供了多种不同的使用方式。 我们继续来完成上一章节中的项目,实现“用户注册”和“用户登录”的功能,并限制只有登录的用户才能为老师投票。Django框架中提供了对表单的封装,而且提供了多种不同的使用方式。
首先添加用户模型。
```Python
```
## 预备知识
### 并发编程
所谓并发编程就是让程序中有多个部分能够并发或同时执行,并发编程带来的好处不言而喻,其中最为关键的两点是提升了执行效率和改善了用户体验。下面简单阐述一下Python中实现并发编程的三种方式:
1. 多线程:Python中通过`threading`模块的`Thread`类并辅以`Lock``Condition``Event``Semaphore``Barrier`等类来支持多线程编程。Python解释器通过GIL(全局解释器锁)来防止多个线程同时执行本地字节码,这个锁对于CPython(Python解释器的官方实现)是必须的,因为CPython的内存管理并不是线程安全的。因为GIL的存在,Python的多线程并不能利用CPU的多核特性。
2. 多进程:使用多进程可以有效的解决GIL的问题,Python中的`multiprocessing`模块提供了`Process`类来实现多进程,其他的辅助类跟`threading`模块中的类类似,由于进程间的内存是相互隔离的(操作系统对进程的保护),进程间通信(共享数据)必须使用管道、套接字等方式,这一点从编程的角度来讲是比较麻烦的,为此,Python的`multiprocessing`模块提供了一个名为`Queue`的类,它基于管道和锁机制提供了多个进程共享的队列。
```Python
"""
用下面的命令运行程序并查看执行时间,例如:
time python3 example06.py
real 0m20.657s
user 1m17.749s
sys 0m0.158s
使用多进程后实际执行时间为20.657秒,而用户时间1分17.749秒约为实际执行时间的4倍
这就证明我们的程序通过多进程使用了CPU的多核特性,而且这台计算机配置了4核的CPU
"""
import concurrent.futures
import math
PRIMES = [
1116281,
1297337,
104395303,
472882027,
533000389,
817504243,
982451653,
112272535095293,
112582705942171,
112272535095293,
115280095190773,
115797848077099,
1099726899285419
] * 5
def is_prime(num):
"""判断素数"""
assert num > 0
for i in range(2, int(math.sqrt(num)) + 1):
if num % i == 0:
return False
return num != 1
def main():
"""主函数"""
with concurrent.futures.ProcessPoolExecutor() as executor:
for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
print('%d is prime: %s' % (number, prime))
if __name__ == '__main__':
main()
```
3. 异步编程(异步I/O):所谓异步编程是通过调度程序从任务队列中挑选任务,调度程序以交叉的形式执行这些任务,我们并不能保证任务将以某种顺序去执行,因为执行顺序取决于队列中的一项任务是否愿意将CPU处理时间让位给另一项任务。异步编程通常通过多任务协作处理的方式来实现,由于执行时间和顺序的不确定,因此需要通过钩子函数(回调函数)或者`Future`对象来获取任务执行的结果。目前我们使用的Python 3通过`asyncio`模块以及`await``async`关键字(Python 3.5中引入,Python 3.7中正式成为关键字)提供了对异步I/O的支持。
```Python
import asyncio
async def fetch(host):
"""从指定的站点抓取信息(协程函数)"""
print(f'Start fetching {host}\n')
# 跟服务器建立连接
reader, writer = await asyncio.open_connection(host, 80)
# 构造请求行和请求头
writer.write(b'GET / HTTP/1.1\r\n')
writer.write(f'Host: {host}\r\n'.encode())
writer.write(b'\r\n')
# 清空缓存区(发送请求)
await writer.drain()
# 接收服务器的响应(读取响应行和响应头)
line = await reader.readline()
while line != b'\r\n':
print(line.decode().rstrip())
line = await reader.readline()
print('\n')
writer.close()
def main():
"""主函数"""
urls = ('www.sohu.com', 'www.douban.com', 'www.163.com')
# 获取系统默认的事件循环
loop = asyncio.get_event_loop()
# 用生成式语法构造一个包含多个协程对象的列表
tasks = [fetch(url) for url in urls]
# 通过asyncio模块的wait函数将协程列表包装成Task(Future子类)并等待其执行完成
# 通过事件循环的run_until_complete方法运行任务直到Future完成并返回它的结果
loop.run_until_complete(asyncio.wait(tasks))
loop.close()
if __name__ == '__main__':
main()
```
> 说明:目前大多数网站都要求基于HTTPS通信,因此上面例子中的网络请求不一定能收到正常的响应,也就是说响应状态码不一定是200,有可能是3xx或者4xx。当然我们这里的重点不在于获得网站响应的内容,而是帮助大家理解`asyncio`模块以及`async`和`await`两个关键字的使用。
我们对三种方式的使用场景做一个简单的总结。
以下情况需要使用多线程:
1. 程序需要维护许多共享的状态(尤其是可变状态),Python中的列表、字典、集合都是线程安全的,所以使用线程而不是进程维护共享状态的代价相对较小。
2. 程序会花费大量时间在I/O操作上,没有太多并行计算的需求且不需占用太多的内存。
以下情况需要使用多进程:
1. 程序执行计算密集型任务(如:字节码操作、数据处理、科学计算)。
2. 程序的输入可以并行的分成块,并且可以将运算结果合并。
3. 程序在内存使用方面没有任何限制且不强依赖于I/O操作(如:读写文件、套接字等)。
最后,如果程序不需要真正的并发性或并行性,而是更多的依赖于异步处理和回调时,异步I/O就是一种很好的选择。另一方面,当程序中有大量的等待与休眠时,也应该考虑使用异步I/O。
> 扩展:关于进程,还需要做一些补充说明。首先,为了控制进程的执行,操作系统内核必须有能力挂起正在CPU上运行的进程,并恢复以前挂起的某个进程使之继续执行,这种行为被称为进程切换(也叫调度)。进程切换是比较耗费资源的操作,因为在进行切换时首先要保存当前进程的上下文(内核再次唤醒该进程时所需要的状态,包括:程序计数器、状态寄存器、数据栈等),然后还要恢复准备执行的进程的上下文。正在执行的进程由于期待的某些事件未发生,如请求系统资源失败、等待某个操作完成、新数据尚未到达等原因会主动由运行状态变为阻塞状态,当进程进入阻塞状态,是不占用CPU资源的。这些知识对于理解到底选择哪种方式进行并发编程也是很重要的。
### I/O模式和事件驱动
对于一次I/O操作(以读操作为例),数据会先被拷贝到操作系统内核的缓冲区中,然后从操作系统内核的缓冲区拷贝到应用程序的缓冲区(这种方式称为标准I/O或缓存I/O,大多数文件系统的默认I/O都是这种方式),最后交给进程。所以说,当一个读操作发生时(写操作与之类似),它会经历两个阶段:(1)等待数据准备就绪;(2)将数据从内核拷贝到进程中。
由于存在这两个阶段,因此产生了以下几种I/O模式:
1. 阻塞 I/O(blocking I/O):进程发起读操作,如果内核数据尚未就绪,进程会阻塞等待数据直到内核数据就绪并拷贝到进程的内存中。
2. 非阻塞 I/O(non-blocking I/O):进程发起读操作,如果内核数据尚未就绪,进程不阻塞而是收到内核返回的错误信息,进程收到错误信息可以再次发起读操作,一旦内核数据准备就绪,就立即将数据拷贝到了用户内存中,然后返回。
3. 多路I/O复用( I/O multiplexing):监听多个I/O对象,当I/O对象有变化(数据就绪)的时候就通知用户进程。多路I/O复用的优势并不在于单个I/O操作能处理得更快,而是在于能处理更多的I/O操作。
4. 异步 I/O(asynchronous I/O):进程发起读操作后就可以去做别的事情了,内核收到异步读操作后会立即返回,所以用户进程不阻塞,当内核数据准备就绪时,内核发送一个信号给用户进程,告诉它读操作完成了。
通常,我们编写一个处理用户请求的服务器程序时,有以下三种方式可供选择:
1. 每收到一个请求,创建一个新的进程,来处理该请求;
2. 每收到一个请求,创建一个新的线程,来处理该请求;
3. 每收到一个请求,放入一个事件列表,让主进程通过非阻塞I/O方式来处理请求
第1种方式实现比较简单,但由于创建进程开销比较大,会导致服务器性能比较差;第2种方式,由于要涉及到线程的同步,有可能会面临竞争、死锁等问题;第3种方式,就是所谓事件驱动的方式,它利用了多路I/O复用和异步I/O的优点,虽然代码逻辑比前面两种都复杂,但能达到最好的性能,这也是目前大多数网络服务器采用的方式。
## Tornado入门
### Tornado概述
Python的Web框架种类繁多(比Python语言的关键字还要多),但在众多优秀的Web框架中,Tornado框架最适合用来开发需要处理长连接和应对高并发的Web应用。Tornado框架在设计之初就考虑到性能问题,通过对非阻塞I/O和epoll(Linux 2.5.44内核引入的一种多路I/O复用方式,旨在实现高性能网络服务,在BSD和macOS中是kqueue)的运用,Tornado可以处理大量的并发连接,更轻松的应对C10K(万级并发)问题,是非常理想的实时通信Web框架。
> 扩展:基于线程的Web服务器产品(如:Apache)会维护一个线程池来处理用户请求,当用户请求到达时就为该请求分配一个线程,如果线程池中没有空闲线程了,那么可以通过创建新的线程来应付新的请求,但前提是系统尚有空闲的内存空间,显然这种方式很容易将服务器的空闲内存耗尽(大多数Linux发行版本中,默认的线程栈大小为8M)。想象一下,如果我们要开发一个社交类应用,这类应用中,通常需要显示实时更新的消息、对象状态的变化和各种类型的通知,那也就意味着客户端需要保持请求连接来接收服务器的各种响应,在这种情况下,服务器上的工作线程很容易被耗尽,这也就意味着新的请求很有可能无法得到响应。
Tornado框架源于FriendFeed网站,在FriendFeed网站被Facebook收购之后得以开源,正式发布的日期是2009年9月10日。Tornado能让你能够快速开发高速的Web应用,如果你想编写一个可扩展的社交应用、实时分析引擎,或RESTful API,那么Tornado框架就是很好的选择。Tornado其实不仅仅是一个Web开发的框架,它还是一个高性能的事件驱动网络访问引擎,内置了高性能的HTTP服务器和客户端(支持同步和异步请求),同时还对WebSocket提供了完美的支持。
了解和学习Tornado最好的资料就是它的官方文档,在[tornadoweb.org](http://www.tornadoweb.org)上面有很多不错的例子,你也可以在Github上找到Tornado的源代码和历史版本。
### 5分钟上手Tornado
1. 创建并激活虚拟环境。
```Shell
mkdir hello-tornado
cd hello-tornado
python3 -m venv venv
source venv/bin/activate
```
2. 安装Tornado。
```Shell
pip install tornado
```
3. 编写Web应用。
```Python
"""
example01.py
"""
import tornado.ioloop
import tornado.web
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write('<h1>Hello, world!</h1>')
def main():
app = tornado.web.Application(handlers=[(r'/', MainHandler), ])
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
```
4. 运行并访问应用。
```Shell
python example01.py
```
![](./res/run-hello-world-app.png)
在上面的例子中,代码example01.py通过定义一个继承自`RequestHandler`的类(`MainHandler`)来处理用户请求,当请求到达时,Tornado会实例化这个类(创建`MainHandler`对象),并调用与HTTP请求方法(GET、POST等)对应的方法,显然上面的`MainHandler`只能处理GET请求,在收到GET请求时,它会将一段HTML的内容写入到HTTP响应中。`main`函数的第1行代码创建了Tornado框架中`Application`类的实例,它代表了我们的Web应用,而创建该实例最为重要的参数就是`handlers`,该参数告知`Application`对象,当收到一个请求时应该通过哪个类的对象来处理这个请求。在上面的例子中,当通过HTTP的GET请求访问站点根路径时,就会调用`MainHandler`的`get`方法。 `main`函数的第2行代码通过`Application`对象的`listen`方法指定了监听HTTP请求的端口。`main`函数的第3行代码用于获取Tornado框架的`IOLoop`实例并启动它,该实例代表一个条件触发的I/O循环,用于持续的接收来自于客户端的请求。
> 扩展:在Python 3中,`IOLoop`实例的本质就是`asyncio`的事件循环,该事件循环在非Windows系统中就是`SelectorEventLoop`对象,它基于`selectors`模块(高级I/O复用模块),会使用当前操作系统最高效的I/O复用选择器,例如在Linux环境下它使用`EpollSelector`,而在macOS和BSD环境下它使用的是`KqueueSelector`;在Python 2中,`IOLoop`直接使用`select`模块(低级I/O复用模块)的`epoll`或`kqueue`函数,如果这两种方式都不可用,则调用`select`函数实现多路I/O复用。当然,如果要支持高并发,你的系统最好能够支持epoll或者kqueue这两种多路I/O复用方式中的一种。
如果希望通过命令行参数来指定Web应用的监听端口,可以对上面的代码稍作修改。
```Python
"""
example01.py
"""
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write('<h1>Hello, world!</h1>')
def main():
# python example01.py --port=8000
parse_command_line()
app = tornado.web.Application(handlers=[(r'/', MainHandler), ])
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
```
在启动Web应用时,如果没有指定端口,将使用`define`函数中设置的默认端口8000,如果要指定端口,可以使用下面的方式来启动Web应用。
```Shell
python example01.py --port=8000
```
### 路由解析
上面我们曾经提到过创建`Application`实例时需要指定`handlers`参数,这个参数非常重要,它应该是一个元组的列表,元组中的第一个元素是正则表达式,它用于匹配用户请求的资源路径;第二个元素是`RequestHandler`的子类。在刚才的例子中,我们只在`handlers`列表中放置了一个元组,事实上我们可以放置多个元组来匹配不同的请求(资源路径),而且可以使用正则表达式的捕获组来获取匹配的内容并将其作为参数传入到`get`、`post`这些方法中。
```Python
"""
example02.py
"""
import os
import random
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
class SayingHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
sayings = [
'世上没有绝望的处境,只有对处境绝望的人',
'人生的道路在态度的岔口一分为二,从此通向成功或失败',
'所谓措手不及,不是说没有时间准备,而是有时间的时候没有准备',
'那些你认为不靠谱的人生里,充满你没有勇气做的事',
'在自己喜欢的时间里,按照自己喜欢的方式,去做自己喜欢做的事,这便是自由',
'有些人不属于自己,但是遇见了也弥足珍贵'
]
# 渲染index.html模板页
self.render('index.html', message=random.choice(sayings))
class WeatherHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self, city):
# Tornado框架会自动处理百分号编码的问题
weathers = {
'北京': {'temperature': '-4~4', 'pollution': '195 中度污染'},
'成都': {'temperature': '3~9', 'pollution': '53 良'},
'深圳': {'temperature': '20~25', 'pollution': '25 优'},
'广州': {'temperature': '18~23', 'pollution': '56 良'},
'上海': {'temperature': '6~8', 'pollution': '65 良'}
}
if city in weathers:
self.render('weather.html', city=city, weather=weathers[city])
else:
self.render('index.html', message=f'没有{city}的天气信息')
class ErrorHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
# 重定向到指定的路径
self.redirect('/saying')
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
# handlers是按列表中的顺序依次进行匹配的
handlers=[
(r'/saying/?', SayingHandler),
(r'/weather/([^/]{2,})/?', WeatherHandler),
(r'/.+', ErrorHandler),
],
# 通过template_path参数设置模板页的路径
template_path=os.path.join(os.path.dirname(__file__), 'templates')
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
```
模板页index.html。
```HTML
<!-- index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tornado基础</title>
</head>
<body>
<h1>{{message}}</h1>
</body>
</html>
```
模板页weather.html。
```HTML
<!-- weather.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tornado基础</title>
</head>
<body>
<h1>{{city}}</h1>
<hr>
<h2>温度:{{weather['temperature']}}摄氏度</h2>
<h2>污染指数:{{weather['pollution']}}</h2>
</body>
</html>
```
Tornado的模板语法与其他的Web框架中使用的模板语法并没有什么实质性的区别,而且目前的Web应用开发更倡导使用前端渲染的方式来减轻服务器的负担,所以这里我们并不对模板语法和后端渲染进行深入的讲解。
### 请求处理器
通过上面的代码可以看出,`RequestHandler`是处理用户请求的核心类,通过重写`get`、`post`、`put`、`delete`等方法可以处理不同类型的HTTP请求,除了这些方法之外,`RequestHandler`还实现了很多重要的方法,下面是部分方法的列表:
1. `get_argument` / `get_arguments` / `get_body_argument` / `get_body_arguments` / `get_query_arugment` / `get_query_arguments`:获取请求参数。
2. `set_status` / `send_error` / `set_header` / `add_header` / `clear_header` / `clear`:操作状态码和响应头。
3. `write` / `flush` / `finish` / `write_error`:和输出相关的方法。
4. `render` / `render_string`:渲染模板。
5. `redirect`:请求重定向。
6. `get_cookie` / `set_cookie` / `get_secure_cookie` / `set_secure_cookie` / `create_signed_value` / `clear_cookie` / `clear_all_cookies`:操作Cookie。
我们用上面讲到的这些方法来完成下面的需求,访问页面时,如果Cookie中没有读取到用户信息则要求用户填写个人信息,如果从Cookie中读取到用户信息则直接显示用户信息。
```Python
"""
example03.py
"""
import os
import re
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
users = {}
class User(object):
"""用户"""
def __init__(self, nickname, gender, birthday):
self.nickname = nickname
self.gender = gender
self.birthday = birthday
class MainHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
# 从Cookie中读取用户昵称
nickname = self.get_cookie('nickname')
if nickname in users:
self.render('userinfo.html', user=users[nickname])
else:
self.render('userform.html', hint='请填写个人信息')
class UserHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def post(self):
# 从表单参数中读取用户昵称、性别和生日信息
nickname = self.get_body_argument('nickname').strip()
gender = self.get_body_argument('gender')
birthday = self.get_body_argument('birthday')
# 检查用户昵称是否有效
if not re.fullmatch(r'\w{6,20}', nickname):
self.render('userform.html', hint='请输入有效的昵称')
elif nickname in users:
self.render('userform.html', hint='昵称已经被使用过')
else:
users[nickname] = User(nickname, gender, birthday)
# 将用户昵称写入Cookie并设置有效期为7天
self.set_cookie('nickname', nickname, expires_days=7)
self.render('userinfo.html', user=users[nickname])
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
handlers=[
(r'/', MainHandler), (r'/register', UserHandler)
],
template_path=os.path.join(os.path.dirname(__file__), 'templates')
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
```
模板页userform.html。
```HTML
<!-- userform.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tornado基础</title>
<style>
.em { color: red; }
</style>
</head>
<body>
<h1>填写用户信息</h1>
<hr>
<p class="em">{{hint}}</p>
<form action="/register" method="post">
<p>
<label>昵称:</label>
<input type="text" name="nickname">
(字母数字下划线,6-20个字符)
</p>
<p>
<label>性别:</label>
<input type="radio" name="gender" value="男" checked>
<input type="radio" name="gender" value="女">
</p>
<p>
<label>生日:</label>
<input type="date" name="birthday" value="1990-01-01">
</p>
<p>
<input type="submit" value="确定">
</p>
</form>
</body>
</html>
```
模板页userinfo.html。
```HTML
<!-- userinfo.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tornado基础</title>
</head>
<body>
<h1>用户信息</h1>
<hr>
<h2>昵称:{{user.nickname}}</h2>
<h2>性别:{{user.gender}}</h2>
<h2>出生日期:{{user.birthday}}</h2>
</body>
</html>
```
## 异步化
在前面的例子中,我们并没有对`RequestHandler`中的`get``post`方法进行异步处理,这就意味着,一旦在`get``post`方法中出现了耗时间的操作,不仅仅是当前请求被阻塞,按照Tornado框架的工作模式,其他的请求也会被阻塞,所以我们需要对耗时间的操作进行异步化处理。
在Tornado稍早一些的版本中,可以用装饰器实现请求方法的异步化或协程化来解决这个问题。
-`RequestHandler`的请求处理函数添加`@tornado.web.asynchronous`装饰器,如下所示:
```Python
class AsyncReqHandler(RequestHandler):
@tornado.web.asynchronous
def get(self):
http = httpclient.AsyncHTTPClient()
http.fetch("http://example.com/", self._on_download)
def _on_download(self, response):
do_something_with_response(response)
self.render("template.html")
```
- 给`RequestHandler`的请求处理函数添加`@tornado.gen.coroutine`装饰器,如下所示:
```Python
class GenAsyncHandler(RequestHandler):
@tornado.gen.coroutine
def get(self):
http_client = AsyncHTTPClient()
response = yield http_client.fetch("http://example.com")
do_something_with_response(response)
self.render("template.html")
```
- 使用`@return_future`装饰器,如下所示:
```Python
@return_future
def future_func(arg1, arg2, callback):
# Do stuff (possibly asynchronous)
callback(result)
async def caller():
await future_func(arg1, arg2)
```
在Tornado 5.x版本中,这几个装饰器都被标记为**deprcated**(过时),我们可以通过Python 3.5中引入的`async`和`await`(在Python 3.7中已经成为正式的关键字)来达到同样的效果。当然,要实现异步化还得靠其他的支持异步操作的三方库来支持,如果请求处理函数中用到了不支持异步操作的三方库,就需要靠自己写包装类来支持异步化。
下面的代码演示了在读写数据库时如何实现请求处理的异步化。我们用到的数据库建表语句如下所示:
```SQL
create database hrs default charset utf8;
use hrs;
/* 创建部门表 */
create table tb_dept
(
dno int not null comment '部门编号',
dname varchar(10) not null comment '部门名称',
dloc varchar(20) not null comment '部门所在地',
primary key (dno)
);
insert into tb_dept values
(10, '会计部', '北京'),
(20, '研发部', '成都'),
(30, '销售部', '重庆'),
(40, '运维部', '深圳');
```
我们通过下面的代码实现了查询和新增部门两个操作。
```Python
import json
import aiomysql
import tornado
import tornado.web
from tornado.ioloop import IOLoop
from tornado.options import define, parse_command_line, options
define('port', default=8000, type=int)
async def connect_mysql():
return await aiomysql.connect(
host='120.77.222.217',
port=3306,
db='hrs',
user='root',
password='123456',
)
class HomeHandler(tornado.web.RequestHandler):
async def get(self, no):
async with self.settings['mysql'].cursor(aiomysql.DictCursor) as cursor:
await cursor.execute("select * from tb_dept where dno=%s", (no, ))
if cursor.rowcount == 0:
self.finish(json.dumps({
'code': 20001,
'mesg': f'没有编号为{no}的部门'
}))
return
row = await cursor.fetchone()
self.finish(json.dumps(row))
async def post(self, *args, **kwargs):
no = self.get_argument('no')
name = self.get_argument('name')
loc = self.get_argument('loc')
conn = self.settings['mysql']
try:
async with conn.cursor() as cursor:
await cursor.execute('insert into tb_dept values (%s, %s, %s)',
(no, name, loc))
await conn.commit()
except aiomysql.MySQLError:
self.finish(json.dumps({
'code': 20002,
'mesg': '添加部门失败请确认部门信息'
}))
else:
self.set_status(201)
self.finish()
def make_app(config):
return tornado.web.Application(
handlers=[(r'/api/depts/(.*)', HomeHandler), ],
**config
)
def main():
parse_command_line()
app = make_app({
'debug': True,
'mysql': IOLoop.current().run_sync(connect_mysql)
})
app.listen(options.port)
IOLoop.current().start()
if __name__ == '__main__':
main()
```
上面的代码中,我们用到了`aiomysql`这个三方库,它基于`pymysql`封装,实现了对MySQL操作的异步化。操作Redis可以使用`aioredis`,访问MongoDB可以使用`motor`,这些都是支持异步操作的三方库。
\ No newline at end of file
## WebSocket的应用
Tornado的异步特性使其非常适合处理高并发的业务,同时也适合那些需要在客户端和服务器之间维持长连接的业务。传统的基于HTTP协议的Web应用,服务器和客户端(浏览器)的通信只能由客户端发起,这种单向请求注定了如果服务器有连续的状态变化,客户端(浏览器)是很难得知的。事实上,今天的很多Web应用都需要服务器主动向客户端(浏览器)发送数据,我们将这种通信方式称之为“推送”。过去很长一段时间,程序员都是用定时轮询(Polling)或长轮询(Long Polling)等方式来实现“推送”,但是这些都不是真正意义上的“推送”,而且浪费资源且效率低下。在HTML5时代,可以通过一种名为WebSocket的技术在服务器和客户端(浏览器)之间维持传输数据的长连接,这种方式可以实现真正的“推送”服务。
### WebSocket简介
WebSocket 协议在2008年诞生,2011年成为国际标准([RFC 6455](https://tools.ietf.org/html/rfc6455)),现在的浏览器都能够支持它,它可以实现浏览器和服务器之间的全双工通信。我们之前学习或了解过Python的Socket编程,通过Socket编程,可以基于TCP或UDP进行数据传输;而WebSocket与之类似,只不过它是基于HTTP来实现通信握手,使用TCP来进行数据传输。WebSocket的出现打破了HTTP请求和响应只能一对一通信的模式,也改变了服务器只能被动接受客户端请求的状况。目前有很多Web应用是需要服务器主动向客户端发送信息的,例如股票信息的网站可能需要向浏览器发送股票涨停通知,社交网站可能需要向用户发送好友上线提醒或聊天信息。
![](./res/websocket.png)
WebSocket的特点如下所示:
1. 建立在TCP协议之上,服务器端的实现比较容易。
2. 与HTTP协议有着良好的兼容性,默认端口是80(WS)和443(WSS),通信握手阶段采用HTTP协议,能通过各种 HTTP 代理服务器(不容易被防火墙阻拦)。
3. 数据格式比较轻量,性能开销小,通信高效。
4. 可以发送文本,也可以发送二进制数据。
5. 没有同源策略的限制,客户端(浏览器)可以与任意服务器通信。
![](./res/ws_wss.png)
### WebSocket服务器端编程
Tornado框架中有一个`tornado.websocket.WebSocketHandler`类专门用于处理来自WebSocket的请求,通过继承该类并重写`open``on_message``on_close` 等方法来处理WebSocket通信,下面我们对`WebSocketHandler`的核心方法做一个简单的介绍。
1. `open(*args, **kwargs)`方法:建立新的WebSocket连接后,Tornado框架会调用该方法,该方法的参数与`RequestHandler``get`方法的参数类似,这也就意味着在`open`方法中可以执行获取请求参数、读取Cookie信息这样的操作。
2. `on_message(message)`方法:建立WebSocket之后,当收到来自客户端的消息时,Tornado框架会调用该方法,这样就可以对收到的消息进行对应的处理,必须重写这个方法。
3. `on_close()`方法:当WebSocket被关闭时,Tornado框架会调用该方法,在该方法中可以通过`close_code``close_reason`了解关闭的原因。
4. `write_message(message, binary=False)`方法:将指定的消息通过WebSocket发送给客户端,可以传递utf-8字符序列或者字节序列,如果message是一个字典,将会执行JSON序列化。正常情况下,该方法会返回一个`Future`对象;如果WebSocket被关闭了,将引发`WebSocketClosedError`
5. `set_nodelay(value)`方法:默认情况下,因为TCP的Nagle算法会导致短小的消息被延迟发送,在考虑到交互性的情况下就要通过将该方法的参数设置为`True`来避免延迟。
6. `close(code=None, reason=None)`方法:主动关闭WebSocket,可以指定状态码(详见[RFC 6455 7.4.1节](https://tools.ietf.org/html/rfc6455#section-7.4.1))和原因。
### WebSocket客户端编程
1. 创建WebSocket对象。
```JavaScript
var webSocket = new WebSocket('ws://localhost:8000/ws');
```
>说明:webSocket对象的readyState属性表示该对象当前状态,取值为CONNECTING-正在连接,OPEN-连接成功可以通信,CLOSING-正在关闭,CLOSED-已经关闭。
2. 编写回调函数。
```JavaScript
webSocket.onopen = function(evt) { webSocket.send('...'); };
webSocket.onmessage = function(evt) { console.log(evt.data); };
webSocket.onclose = function(evt) {};
webSocket.onerror = function(evt) {};
```
> 说明:如果要绑定多个事件回调函数,可以用addEventListener方法。另外,通过事件对象的data属性获得的数据可能是字符串,也有可能是二进制数据,可以通过webSocket对象的binaryType属性(blob、arraybuffer)或者通过typeof、instanceof运算符检查类型进行判定。
### 项目:Web聊天室
```Python
"""
handlers.py - 用户登录和聊天的处理器
"""
import tornado.web
import tornado.websocket
nicknames = set()
connections = {}
class LoginHandler(tornado.web.RequestHandler):
def get(self):
self.render('login.html', hint='')
def post(self):
nickname = self.get_argument('nickname')
if nickname in nicknames:
self.render('login.html', hint='昵称已被使用,请更换昵称')
self.set_secure_cookie('nickname', nickname)
self.render('chat.html')
class ChatHandler(tornado.websocket.WebSocketHandler):
def open(self):
nickname = self.get_secure_cookie('nickname').decode()
nicknames.add(nickname)
for conn in connections.values():
conn.write_message(f'~~~{nickname}进入了聊天室~~~')
connections[nickname] = self
def on_message(self, message):
nickname = self.get_secure_cookie('nickname').decode()
for conn in connections.values():
if conn is not self:
conn.write_message(f'{nickname}说:{message}')
def on_close(self):
nickname = self.get_secure_cookie('nickname').decode()
del connections[nickname]
nicknames.remove(nickname)
for conn in connections.values():
conn.write_message(f'~~~{nickname}离开了聊天室~~~')
```
```Python
"""
run_chat_server.py - 聊天服务器
"""
import os
import tornado.web
import tornado.ioloop
from handlers import LoginHandler, ChatHandler
if __name__ == '__main__':
app = tornado.web.Application(
handlers=[(r'/login', LoginHandler), (r'/chat', ChatHandler)],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
static_path=os.path.join(os.path.dirname(__file__), 'static'),
cookie_secret='MWM2MzEyOWFlOWRiOWM2MGMzZThhYTk0ZDNlMDA0OTU=',
)
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
```
```HTML
<!-- login.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tornado聊天室</title>
<style>
.hint { color: red; font-size: 0.8em; }
</style>
</head>
<body>
<div>
<div id="container">
<h1>进入聊天室</h1>
<hr>
<p class="hint">{{hint}}</p>
<form method="post" action="/login">
<label>昵称:</label>
<input type="text" placeholder="请输入你的昵称" name="nickname">
<button type="submit">登录</button>
</form>
</div>
</div>
</body>
</html>
```
```HTML
<!-- chat.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tornado聊天室</title>
</head>
<body>
<h1>聊天室</h1>
<hr>
<div>
<textarea id="contents" rows="20" cols="120" readonly></textarea>
</div>
<div class="send">
<input type="text" id="content" size="50">
<input type="button" id="send" value="发送">
</div>
<p>
<a id="quit" href="javascript:void(0);">退出聊天室</a>
</p>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function() {
// 将内容追加到指定的文本区
function appendContent($ta, message) {
var contents = $ta.val();
contents += '\n' + message;
$ta.val(contents);
$ta[0].scrollTop = $ta[0].scrollHeight;
}
// 通过WebSocket发送消息
function sendMessage() {
message = $('#content').val().trim();
if (message.length > 0) {
ws.send(message);
appendContent($('#contents'), '我说:' + message);
$('#content').val('');
}
}
// 创建WebSocket对象
var ws= new WebSocket('ws://localhost:8888/chat');
// 连接建立后执行的回调函数
ws.onopen = function(evt) {
$('#contents').val('~~~欢迎您进入聊天室~~~');
};
// 收到消息后执行的回调函数
ws.onmessage = function(evt) {
appendContent($('#contents'), evt.data);
};
// 为发送按钮绑定点击事件回调函数
$('#send').on('click', sendMessage);
// 为文本框绑定按下回车事件回调函数
$('#content').on('keypress', function(evt) {
keycode = evt.keyCode || evt.which;
if (keycode == 13) {
sendMessage();
}
});
// 为退出聊天室超链接绑定点击事件回调函数
$('#quit').on('click', function(evt) {
ws.close();
location.href = '/login';
});
});
</script>
</body>
</html>
```
"""
handlers.py - 用户登录和聊天的处理器
"""
import tornado.web
import tornado.websocket
nicknames = set()
connections = {}
class LoginHandler(tornado.web.RequestHandler):
def get(self):
self.render('login.html', hint='')
def post(self):
nickname = self.get_argument('nickname')
if nickname in nicknames:
self.render('login.html', hint='昵称已被使用,请更换昵称')
self.set_secure_cookie('nickname', nickname)
self.render('chat.html')
class ChatHandler(tornado.websocket.WebSocketHandler):
def open(self):
nickname = self.get_secure_cookie('nickname').decode()
nicknames.add(nickname)
for conn in connections.values():
conn.write_message(f'~~~{nickname}进入了聊天室~~~')
connections[nickname] = self
def on_message(self, message):
nickname = self.get_secure_cookie('nickname').decode()
for conn in connections.values():
if conn is not self:
conn.write_message(f'{nickname}说:{message}')
def on_close(self):
nickname = self.get_secure_cookie('nickname').decode()
del connections[nickname]
nicknames.remove(nickname)
for conn in connections.values():
conn.write_message(f'~~~{nickname}离开了聊天室~~~')
"""
chat_server.py - 聊天服务器
"""
import os
import tornado.web
import tornado.ioloop
from chat_handlers import LoginHandler, ChatHandler
def main():
app = tornado.web.Application(
handlers=[(r'/login', LoginHandler), (r'/chat', ChatHandler)],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
static_path=os.path.join(os.path.dirname(__file__), 'static'),
cookie_secret='MWM2MzEyOWFlOWRiOWM2MGMzZThhYTk0ZDNlMDA0OTU=',
)
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example01.py - 五分钟上手Tornado
"""
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
class MainHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
# 向客户端(浏览器)写入内容
self.write('<h1>Hello, world!</h1>')
def main():
"""主函数"""
# 解析命令行参数,例如:
# python example01.py --port 8888
parse_command_line()
# 创建了Tornado框架中Application类的实例并指定handlers参数
# Application实例代表了我们的Web应用,handlers代表了路由解析
app = tornado.web.Application(handlers=[(r'/', MainHandler), ])
# 指定了监听HTTP请求的TCP端口(默认8000,也可以通过命令行参数指定)
app.listen(options.port)
# 获取Tornado框架的IOLoop实例并启动它(默认启动asyncio的事件循环)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example02.py - 路由解析
"""
import os
import random
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
class SayingHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
sayings = [
'世上没有绝望的处境,只有对处境绝望的人',
'人生的道路在态度的岔口一分为二,从此通向成功或失败',
'所谓措手不及,不是说没有时间准备,而是有时间的时候没有准备',
'那些你认为不靠谱的人生里,充满你没有勇气做的事',
'在自己喜欢的时间里,按照自己喜欢的方式,去做自己喜欢做的事,这便是自由',
'有些人不属于自己,但是遇见了也弥足珍贵'
]
# 渲染index.html模板页
self.render('index.html', message=random.choice(sayings))
class WeatherHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self, city):
# Tornado框架会自动处理百分号编码的问题
weathers = {
'北京': {'temperature': '-4~4', 'pollution': '195 中度污染'},
'成都': {'temperature': '3~9', 'pollution': '53 良'},
'深圳': {'temperature': '20~25', 'pollution': '25 优'},
'广州': {'temperature': '18~23', 'pollution': '56 良'},
'上海': {'temperature': '6~8', 'pollution': '65 良'}
}
if city in weathers:
self.render('weather.html', city=city, weather=weathers[city])
else:
self.render('index.html', message=f'没有{city}的天气信息')
class ErrorHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
# 重定向到指定的路径
self.redirect('/saying')
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
# handlers是按列表中的顺序依次进行匹配的
handlers=[
(r'/saying/?', SayingHandler),
(r'/weather/([^/]{2,})/?', WeatherHandler),
(r'/.+', ErrorHandler),
],
# 通过template_path参数设置模板页的路径
template_path=os.path.join(os.path.dirname(__file__), 'templates')
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example03.py - RequestHandler解析
"""
import os
import re
import tornado.ioloop
import tornado.web
from tornado.options import define, options, parse_command_line
# 定义默认端口
define('port', default=8000, type=int)
users = {}
class User(object):
"""用户"""
def __init__(self, nickname, gender, birthday):
self.nickname = nickname
self.gender = gender
self.birthday = birthday
class MainHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
# 从Cookie中读取用户昵称
nickname = self.get_cookie('nickname')
if nickname in users:
self.render('userinfo.html', user=users[nickname])
else:
self.render('userform.html', hint='请填写个人信息')
class UserHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def post(self):
# 从表单参数中读取用户昵称、性别和生日信息
nickname = self.get_body_argument('nickname').strip()
gender = self.get_body_argument('gender')
birthday = self.get_body_argument('birthday')
# 检查用户昵称是否有效
if not re.fullmatch(r'\w{6,20}', nickname):
self.render('userform.html', hint='请输入有效的昵称')
elif nickname in users:
self.render('userform.html', hint='昵称已经被使用过')
else:
users[nickname] = User(nickname, gender, birthday)
# 将用户昵称写入Cookie并设置有效期为7天
self.set_cookie('nickname', nickname, expires_days=7)
self.render('userinfo.html', user=users[nickname])
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
handlers=[
(r'/', MainHandler),
(r'/register', UserHandler),
],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example04.py - 同步请求的例子
"""
import json
import os
import requests
import tornado.gen
import tornado.ioloop
import tornado.web
import tornado.websocket
import tornado.httpclient
from tornado.options import define, options, parse_command_line
define('port', default=8888, type=int)
REQ_URL = 'http://api.tianapi.com/guonei/'
API_KEY = '772a81a51ae5c780251b1f98ea431b84'
class MainHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
def get(self):
resp = requests.get(f'{REQ_URL}?key={API_KEY}')
newslist = json.loads(resp.text)['newslist']
self.render('news.html', newslist=newslist)
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
handlers=[(r'/', MainHandler), ],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example05.py - 异步请求的例子
"""
import aiohttp
import json
import os
import tornado.gen
import tornado.ioloop
import tornado.web
import tornado.websocket
import tornado.httpclient
from tornado.options import define, options, parse_command_line
define('port', default=8888, type=int)
REQ_URL = 'http://api.tianapi.com/guonei/'
API_KEY = '772a81a51ae5c780251b1f98ea431b84'
class MainHandler(tornado.web.RequestHandler):
"""自定义请求处理器"""
async def get(self):
async with aiohttp.ClientSession() as session:
resp = await session.get(f'{REQ_URL}?key={API_KEY}')
json_str = await resp.text()
print(json_str)
newslist = json.loads(json_str)['newslist']
self.render('news.html', newslist=newslist)
def main():
"""主函数"""
parse_command_line()
app = tornado.web.Application(
handlers=[(r'/', MainHandler), ],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
)
app.listen(options.port)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example06.py - 异步操作MySQL
"""
import json
import aiomysql
import tornado
import tornado.web
from tornado.ioloop import IOLoop
from tornado.options import define, parse_command_line, options
define('port', default=8888, type=int)
async def connect_mysql():
return await aiomysql.connect(
host='120.77.222.217',
port=3306,
db='hrs',
charset='utf8',
use_unicode=True,
user='root',
password='123456',
)
class HomeHandler(tornado.web.RequestHandler):
async def get(self, no):
async with self.settings['mysql'].cursor(aiomysql.DictCursor) as cursor:
await cursor.execute("select * from tb_dept where dno=%s", (no, ))
if cursor.rowcount == 0:
self.finish(json.dumps({
'code': 20001,
'mesg': f'没有编号为{no}的部门'
}))
return
row = await cursor.fetchone()
self.finish(json.dumps(row))
async def post(self, *args, **kwargs):
no = self.get_argument('no')
name = self.get_argument('name')
loc = self.get_argument('loc')
conn = self.settings['mysql']
try:
async with conn.cursor() as cursor:
await cursor.execute('insert into tb_dept values (%s, %s, %s)',
(no, name, loc))
await conn.commit()
except aiomysql.MySQLError:
self.finish(json.dumps({
'code': 20002,
'mesg': '添加部门失败请确认部门信息'
}))
else:
self.set_status(201)
self.finish()
def make_app(config):
return tornado.web.Application(
handlers=[(r'/api/depts/(.*)', HomeHandler), ],
**config
)
def main():
parse_command_line()
app = make_app({
'debug': True,
'mysql': IOLoop.current().run_sync(connect_mysql)
})
app.listen(options.port)
IOLoop.current().start()
if __name__ == '__main__':
main()
"""
example07.py - 将非异步的三方库封装为异步调用
"""
import asyncio
import concurrent
import json
import tornado
import tornado.web
import pymysql
from pymysql import connect
from pymysql.cursors import DictCursor
from tornado.ioloop import IOLoop
from tornado.options import define, parse_command_line, options
from tornado.platform.asyncio import AnyThreadEventLoopPolicy
define('port', default=8888, type=int)
def get_mysql_connection():
return connect(
host='120.77.222.217',
port=3306,
db='hrs',
charset='utf8',
use_unicode=True,
user='root',
password='123456',
)
class HomeHandler(tornado.web.RequestHandler):
executor = concurrent.futures.ThreadPoolExecutor(max_workers=10)
async def get(self, no):
return await self._get(no)
@tornado.concurrent.run_on_executor
def _get(self, no):
con = get_mysql_connection()
try:
with con.cursor(DictCursor) as cursor:
cursor.execute("select * from tb_dept where dno=%s", (no, ))
if cursor.rowcount == 0:
self.finish(json.dumps({
'code': 20001,
'mesg': f'没有编号为{no}的部门'
}))
return
row = cursor.fetchone()
self.finish(json.dumps(row))
finally:
con.close()
async def post(self, *args, **kwargs):
return await self._post(*args, **kwargs)
@tornado.concurrent.run_on_executor
def _post(self, *args, **kwargs):
no = self.get_argument('no')
name = self.get_argument('name')
loc = self.get_argument('loc')
conn = get_mysql_connection()
try:
with conn.cursor() as cursor:
cursor.execute('insert into tb_dept values (%s, %s, %s)',
(no, name, loc))
conn.commit()
except pymysql.MySQLError:
self.finish(json.dumps({
'code': 20002,
'mesg': '添加部门失败请确认部门信息'
}))
else:
self.set_status(201)
self.finish()
def main():
asyncio.set_event_loop_policy(AnyThreadEventLoopPolicy())
parse_command_line()
app = tornado.web.Application(
handlers=[(r'/api/depts/(.*)', HomeHandler), ]
)
app.listen(options.port)
IOLoop.current().start()
if __name__ == '__main__':
main()
import asyncio
import re
import aiohttp
PATTERN = re.compile(r'\<title\>(?P<title>.*)\<\/title\>')
async def show_title(url):
async with aiohttp.ClientSession() as session:
resp = await session.get(url, ssl=False)
html = await resp.text()
print(PATTERN.search(html).group('title'))
def main():
urls = ('https://www.python.org/',
'https://git-scm.com/',
'https://www.jd.com/',
'https://www.taobao.com/',
'https://www.douban.com/')
# asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
# 获取事件循环()
loop = asyncio.get_event_loop()
tasks = [show_title(url) for url in urls]
loop.run_until_complete(asyncio.wait(tasks))
if __name__ == '__main__':
main()
import asyncio
async def fetch(host):
"""从指定的站点抓取信息(协程函数)"""
print(f'Start fetching {host}\n')
# 跟服务器建立连接
reader, writer = await asyncio.open_connection(host, 80)
# 构造请求行和请求头
writer.write(b'GET / HTTP/1.1\r\n')
writer.write(f'Host: {host}\r\n'.encode())
writer.write(b'\r\n')
# 清空缓存区(发送请求)
await writer.drain()
# 接收服务器的响应(读取响应行和响应头)
line = await reader.readline()
while line != b'\r\n':
print(line.decode().rstrip())
line = await reader.readline()
print('\n')
writer.close()
def main():
"""主函数"""
urls = ('www.sohu.com', 'www.douban.com', 'www.163.com')
# 获取系统默认的事件循环
loop = asyncio.get_event_loop()
# 用生成式语法构造一个包含多个协程对象的列表
tasks = [fetch(url) for url in urls]
# 通过asyncio模块的wait函数将协程列表包装成Task(Future子类)并等待其执行完成
# 通过事件循环的run_until_complete方法运行任务直到Future完成并返回它的结果
futures = asyncio.wait(tasks)
print(futures, type(futures))
loop.run_until_complete(futures)
loop.close()
if __name__ == '__main__':
main()
"""
协程(coroutine)- 可以在需要时进行切换的相互协作的子程序
"""
import asyncio
from example_of_multiprocess import is_prime
def num_generator(m, n):
"""指定范围的数字生成器"""
for num in range(m, n + 1):
print(f'generate number: {num}')
yield num
async def prime_filter(m, n):
"""素数过滤器"""
primes = []
for i in num_generator(m, n):
if is_prime(i):
print('Prime =>', i)
primes.append(i)
await asyncio.sleep(0.001)
return tuple(primes)
async def square_mapper(m, n):
"""平方映射器"""
squares = []
for i in num_generator(m, n):
print('Square =>', i * i)
squares.append(i * i)
await asyncio.sleep(0.001)
return squares
def main():
"""主函数"""
loop = asyncio.get_event_loop()
start, end = 1, 100
futures = asyncio.gather(prime_filter(start, end), square_mapper(start, end))
futures.add_done_callback(lambda x: print(x.result()))
loop.run_until_complete(futures)
loop.close()
if __name__ == '__main__':
main()
"""
用下面的命令运行程序并查看执行时间,例如:
time python3 example05.py
real 0m20.657s
user 1m17.749s
sys 0m0.158s
使用多进程后实际执行时间为20.657秒,而用户时间1分17.749秒约为实际执行时间的4倍
这就证明我们的程序通过多进程使用了CPU的多核特性,而且这台计算机配置了4核的CPU
"""
import concurrent.futures
import math
PRIMES = [
1116281,
1297337,
104395303,
472882027,
533000389,
817504243,
982451653,
112272535095293,
112582705942171,
112272535095293,
115280095190773,
115797848077099,
1099726899285419
] * 5
def is_prime(num):
"""判断素数"""
assert num > 0
if num % 2 == 0:
return False
for i in range(3, int(math.sqrt(num)) + 1, 2):
if num % i == 0:
return False
return num != 1
def main():
"""主函数"""
with concurrent.futures.ProcessPoolExecutor() as executor:
for number, prime in zip(PRIMES, executor.map(is_prime, PRIMES)):
print('%d is prime: %s' % (number, prime))
if __name__ == '__main__':
main()
aiohttp==3.5.4
aiomysql==0.0.20
asn1crypto==0.24.0
async-timeout==3.0.1
attrs==19.1.0
certifi==2019.3.9
cffi==1.12.2
chardet==3.0.4
cryptography==2.6.1
idna==2.8
multidict==4.5.2
pycparser==2.19
PyMySQL==0.9.2
requests==2.21.0
six==1.12.0
tornado==5.1.1
urllib3==1.24.1
yarl==1.3.0
<!-- chat.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tornado聊天室</title>
</head>
<body>
<h1>聊天室</h1>
<hr>
<div>
<textarea id="contents" rows="20" cols="120" readonly></textarea>
</div>
<div class="send">
<input type="text" id="content" size="50">
<input type="button" id="send" value="发送">
</div>
<p>
<a id="quit" href="javascript:void(0);">退出聊天室</a>
</p>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
$(function() {
// 将内容追加到指定的文本区
function appendContent($ta, message) {
var contents = $ta.val();
contents += '\n' + message;
$ta.val(contents);
$ta[0].scrollTop = $ta[0].scrollHeight;
}
// 通过WebSocket发送消息
function sendMessage() {
message = $('#content').val().trim();
if (message.length > 0) {
ws.send(message);
appendContent($('#contents'), '我说:' + message);
$('#content').val('');
}
}
// 创建WebSocket对象
var ws= new WebSocket('ws://localhost:8888/chat');
// 连接建立后执行的回调函数
ws.onopen = function(evt) {
$('#contents').val('~~~欢迎您进入聊天室~~~');
};
// 收到消息后执行的回调函数
ws.onmessage = function(evt) {
appendContent($('#contents'), evt.data);
};
// 为发送按钮绑定点击事件回调函数
$('#send').on('click', sendMessage);
// 为文本框绑定按下回车事件回调函数
$('#content').on('keypress', function(evt) {
keycode = evt.keyCode || evt.which;
if (keycode == 13) {
sendMessage();
}
});
// 为退出聊天室超链接绑定点击事件回调函数
$('#quit').on('click', function(evt) {
ws.close();
location.href = '/login';
});
});
</script>
</body>
</html>
<!-- login.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tornado聊天室</title>
<style>
.hint { color: red; font-size: 0.8em; }
</style>
</head>
<body>
<div>
<div id="container">
<h1>进入聊天室</h1>
<hr>
<p class="hint">{{hint}}</p>
<form method="post" action="/login">
<label>昵称:</label>
<input type="text" placeholder="请输入你的昵称" name="nickname">
<button type="submit">登录</button>
</form>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新闻列表</title>
</head>
<body>
<h1>新闻列表</h1>
<hr>
{% for news in newslist %}
<div>
<img src="{{news['picUrl']}}" alt="">
<p>{{news['title']}}</p>
</div>
{% end %}
</body>
</html>
\ No newline at end of file
/**
* admin.css
*/
/*
fixed-layout 固定头部和边栏布局
*/
html,
body {
height: 100%;
overflow: hidden;
}
ul {
margin-top: 0;
}
.admin-icon-yellow {
color: #ffbe40;
}
.admin-header {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1500;
font-size: 1.4rem;
margin-bottom: 0;
}
.admin-header-list a:hover :after {
content: none;
}
.admin-main {
position: relative;
height: 100%;
padding-top: 51px;
background: #f3f3f3;
}
.admin-menu {
position: fixed;
z-index: 10;
bottom: 30px;
right: 20px;
}
.admin-sidebar {
width: 260px;
min-height: 100%;
float: left;
border-right: 1px solid #cecece;
}
.admin-sidebar.am-active {
z-index: 1600;
}
.admin-sidebar-list {
margin-bottom: 0;
}
.admin-sidebar-list li a {
color: #5c5c5c;
padding-left: 24px;
}
.admin-sidebar-list li:first-child {
border-top: none;
}
.admin-sidebar-sub {
margin-top: 0;
margin-bottom: 0;
box-shadow: 0 16px 8px -15px #e2e2e2 inset;
background: #ececec;
padding-left: 24px;
}
.admin-sidebar-sub li:first-child {
border-top: 1px solid #dedede;
}
.admin-sidebar-panel {
margin: 10px;
}
.admin-content {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
background: #fff;
}
.admin-content,
.admin-sidebar {
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
}
.admin-content-body {
-webkit-box-flex: 1;
-webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
.admin-content-footer {
font-size: 85%;
color: #777;
}
.admin-content-list {
border: 1px solid #e9ecf1;
margin-top: 0;
}
.admin-content-list li {
border: 1px solid #e9ecf1;
border-width: 0 1px;
margin-left: -1px;
}
.admin-content-list li:first-child {
border-left: none;
}
.admin-content-list li:last-child {
border-right: none;
}
.admin-content-table a {
color: #535353;
}
.admin-content-file {
margin-bottom: 0;
color: #666;
}
.admin-content-file p {
margin: 0 0 5px 0;
font-size: 1.4rem;
}
.admin-content-file li {
padding: 10px 0;
}
.admin-content-file li:first-child {
border-top: none;
}
.admin-content-file li:last-child {
border-bottom: none;
}
.admin-content-file li .am-progress {
margin-bottom: 4px;
}
.admin-content-file li .am-progress-bar {
line-height: 14px;
}
.admin-content-task {
margin-bottom: 0;
}
.admin-content-task li {
padding: 5px 0;
border-color: #eee;
}
.admin-content-task li:first-child {
border-top: none;
}
.admin-content-task li:last-child {
border-bottom: none;
}
.admin-task-meta {
font-size: 1.2rem;
color: #999;
}
.admin-task-bd {
font-size: 1.4rem;
margin-bottom: 5px;
}
.admin-content-comment {
margin-bottom: 0;
}
.admin-content-comment .am-comment-bd {
font-size: 1.4rem;
}
.admin-content-pagination {
margin-bottom: 0;
}
.admin-content-pagination li a {
padding: 4px 8px;
}
@media only screen and (min-width: 641px) {
.admin-sidebar {
display: block;
position: static;
background: none;
}
.admin-offcanvas-bar {
position: static;
width: auto;
background: none;
-webkit-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
overflow-y: visible;
min-height: 100%;
}
.admin-offcanvas-bar:after {
content: none;
}
}
@media only screen and (max-width: 640px) {
.admin-sidebar {
width: inherit;
}
.admin-offcanvas-bar {
background: #f3f3f3;
}
.admin-offcanvas-bar:after {
background: #BABABA;
}
.admin-sidebar-list a:hover, .admin-sidebar-list a:active{
-webkit-transition: background-color .3s ease;
-moz-transition: background-color .3s ease;
-ms-transition: background-color .3s ease;
-o-transition: background-color .3s ease;
transition: background-color .3s ease;
background: #E4E4E4;
}
.admin-content-list li {
padding: 10px;
border-width: 1px 0;
margin-top: -1px;
}
.admin-content-list li:first-child {
border-top: none;
}
.admin-content-list li:last-child {
border-bottom: none;
}
.admin-form-text {
text-align: left !important;
}
}
/*
* user.html css
*/
.user-info {
margin-bottom: 15px;
}
.user-info .am-progress {
margin-bottom: 4px;
}
.user-info p {
margin: 5px;
}
.user-info-order {
font-size: 1.4rem;
}
/*
* errorLog.html css
*/
.error-log .am-pre-scrollable {
max-height: 40rem;
}
/*
* table.html css
*/
.table-main {
font-size: 1.4rem;
padding: .5rem;
}
.table-main button {
background: #fff;
}
.table-check {
width: 30px;
}
.table-id {
width: 50px;
}
@media only screen and (max-width: 640px) {
.table-select {
margin-top: 10px;
margin-left: 5px;
}
}
/*
gallery.html css
*/
.gallery-list li {
padding: 10px;
}
.gallery-list a {
color: #666;
}
.gallery-list a:hover {
color: #3bb4f2;
}
.gallery-title {
margin-top: 6px;
font-size: 1.4rem;
}
.gallery-desc {
font-size: 1.2rem;
margin-top: 4px;
}
/*
404.html css
*/
.page-404 {
background: #fff;
border: none;
width: 200px;
margin: 0 auto;
}
.am-datatable-hd{margin-bottom:10px}.am-datatable-hd label{font-weight:400}.am-datatable-filter{text-align:right}.am-datatable-filter input{margin-left:.5em}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_desc_disabled{cursor:pointer;position:relative}table.dataTable thead .sorting:after{position:absolute;top:50%;margin-top:-12px;right:8px;display:block;font-weight:400}table.dataTable thead .sorting_asc:after,table.dataTable thead .sorting_desc:after{position:absolute;top:50%;margin-top:-12px;right:8px;display:block;opacity:.5;font-weight:400}table.dataTable thead .sorting:after{opacity:.2;content:"\f0dc"}table.dataTable thead .sorting_asc:after{content:"\f15d"}table.dataTable thead .sorting_desc:after{content:"\f15e"}div.DTFC_LeftBodyWrapper table.dataTable thead .sorting:after,div.DTFC_LeftBodyWrapper table.dataTable thead .sorting_asc:after,div.DTFC_LeftBodyWrapper table.dataTable thead .sorting_desc:after,div.DTFC_RightBodyWrapper table.dataTable thead .sorting:after,div.DTFC_RightBodyWrapper table.dataTable thead .sorting_asc:after,div.DTFC_RightBodyWrapper table.dataTable thead .sorting_desc:after,div.dataTables_scrollBody table.dataTable thead .sorting:after,div.dataTables_scrollBody table.dataTable thead .sorting_asc:after,div.dataTables_scrollBody table.dataTable thead .sorting_desc:after{display:none}table.dataTable thead .sorting_asc_disabled:after,table.dataTable thead .sorting_desc_disabled:after{color:#eee}table.dataTable thead>tr>th{padding-right:30px}table.dataTable th:active{outline:none}table.dataTable.table-condensed thead>tr>th{padding-right:20px}table.dataTable.table-condensed thead .sorting:after,table.dataTable.table-condensed thead .sorting_asc:after,table.dataTable.table-condensed thead .sorting_desc:after{top:6px;right:6px}div.dataTables_scrollHead table{margin-bottom:0!important;border-bottom-left-radius:0;border-bottom-right-radius:0}div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child,div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,div.dataTables_scrollHead table thead tr:last-child td:first-child,div.dataTables_scrollHead table thead tr:last-child th:first-child{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}div.dataTables_scrollBody table{border-top:none;margin-top:0!important;margin-bottom:0!important}div.DTFC_LeftBodyWrapper tbody tr:first-child td,div.DTFC_LeftBodyWrapper tbody tr:first-child th,div.DTFC_RightBodyWrapper tbody tr:first-child td,div.DTFC_RightBodyWrapper tbody tr:first-child th,div.dataTables_scrollBody tbody tr:first-child td,div.dataTables_scrollBody tbody tr:first-child th{border-top:none}div.dataTables_scrollFoot table{margin-top:0!important;border-top:none}table.table-bordered.dataTable{border-collapse:separate!important}table.table-bordered thead td,table.table-bordered thead th{border-left-width:0;border-top-width:0}table.table-bordered tbody td,table.table-bordered tbody th,table.table-bordered tfoot td,table.table-bordered tfoot th{border-left-width:0;border-bottom-width:0}table.table-bordered td:last-child,table.table-bordered th:last-child{border-right-width:0}div.dataTables_scrollHead table.table-bordered{border-bottom-width:0}.table.dataTable tbody tr.active td,.table.dataTable tbody tr.active th{background-color:#08c;color:#fff}.table.dataTable tbody tr.active:hover td,.table.dataTable tbody tr.active:hover th{background-color:#0075b0!important}.table.dataTable tbody tr.active td>a,.table.dataTable tbody tr.active th>a{color:#fff}.table-striped.dataTable tbody tr.active:nth-child(odd) td,.table-striped.dataTable tbody tr.active:nth-child(odd) th{background-color:#017ebc}table.DTTT_selectable tbody tr{cursor:pointer}div.DTTT .btn:hover{text-decoration:none!important}ul.DTTT_dropdown.dropdown-menu{z-index:2003}ul.DTTT_dropdown.dropdown-menu a{color:#333!important}ul.DTTT_dropdown.dropdown-menu li{position:relative}ul.DTTT_dropdown.dropdown-menu li:hover a{background-color:#08c;color:#fff!important}div.DTTT_collection_background{z-index:2002}div.DTTT_print_info,div.dataTables_processing{top:50%;left:50%;text-align:center;background-color:#fff}div.DTTT_print_info{color:#333;padding:10px 30px;opacity:.95;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 7px rgba(0,0,0,.5);box-shadow:0 3px 7px rgba(0,0,0,.5);position:fixed;width:400px;height:150px;margin-left:-200px;margin-top:-75px}div.DTTT_print_info h6{font-weight:400;font-size:28px;line-height:28px;margin:1em}div.DTTT_print_info p{font-size:14px;line-height:20px}div.dataTables_processing{position:absolute;width:100%;height:60px;margin-left:-50%;margin-top:-25px;padding-top:20px;padding-bottom:20px;font-size:1.2em;background:-webkit-gradient(linear,left top,right top,color-stop(0%,rgba(255,255,255,0)),color-stop(25%,rgba(255,255,255,.9)),color-stop(75%,rgba(255,255,255,.9)),color-stop(100%,rgba(255,255,255,0)));background:-webkit-linear-gradient(left,rgba(255,255,255,0) 0%,rgba(255,255,255,.9) 25%,rgba(255,255,255,.9) 75%,rgba(255,255,255,0) 100%);background:-webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(25%,rgba(255,255,255,.9)),color-stop(75%,rgba(255,255,255,.9)),to(rgba(255,255,255,0)));background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,.9) 25%,rgba(255,255,255,.9) 75%,rgba(255,255,255,0) 100%)}div.DTFC_LeftHeadWrapper table{background-color:#fff}div.DTFC_LeftFootWrapper table{background-color:#fff;margin-bottom:0}div.DTFC_RightHeadWrapper table{background-color:#fff}div.DTFC_RightFootWrapper table,table.DTFC_Cloned tr.even{background-color:#fff;margin-bottom:0}div.DTFC_LeftHeadWrapper table,div.DTFC_RightHeadWrapper table{border-bottom:none!important;margin-bottom:0!important;border-top-right-radius:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}div.DTFC_LeftBodyWrapper table,div.DTFC_RightBodyWrapper table{border-top:none;margin:0!important}div.DTFC_LeftFootWrapper table,div.DTFC_RightFootWrapper table{border-top:none;margin-top:0!important}div.FixedHeader_Cloned table{margin:0!important}.am-datatable-pager{margin-top:0;margin-bottom:0}.am-datatable-info{padding-top:6px;color:#555;font-size:1.4rem}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child:before{top:8px;left:4px;height:16px;width:16px;display:block;position:absolute;color:#fff;border:2px solid #fff;border-radius:16px;text-align:center;line-height:14px;-webkit-box-shadow:0 0 3px #444;box-shadow:0 0 3px #444;-webkit-box-sizing:content-box;box-sizing:content-box;content:'+';background-color:#31b131}table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child.dataTables_empty:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th:first-child.dataTables_empty:before{display:none}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed>tbody>tr.child td:before{display:none}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:12px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:#fff;border:2px solid #fff;border-radius:16px;text-align:center;line-height:14px;-webkit-box-shadow:0 0 3px #666;box-shadow:0 0 3px #666;-webkit-box-sizing:content-box;box-sizing:content-box;content:'+';background-color:#5eb95e}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#dd514c}table.dataTable>tbody>tr.child{padding:.5em 1em}table.dataTable>tbody>tr.child:hover{background:0 0!important}table.dataTable>tbody>tr.child ul{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul li{border-bottom:1px solid #efefef;padding:.5em 0}table.dataTable>tbody>tr.child ul li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:700}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
ul,
li {
list-style: none;
padding: 0;
margin: 0;
}
header {
z-index: 1200;
position: relative;
}
.tpl-header-logo {
width: 240px;
height: 57px;
display: table;
text-align: center;
position: relative;
z-index: 1300;
}
.tpl-header-logo a {
display: table-cell;
vertical-align: middle;
}
.tpl-header-logo img {
width: 170px;
}
.tpl-header-fluid {
margin-left: 240px;
height: 56px;
padding-left: 20px;
padding-right: 20px;
}
.tpl-header-switch-button {
margin-top: 0px;
margin-bottom: 0px;
float: left;
color: #cfcfcf;
margin-left: -20px;
margin-right: 0;
border: 0;
border-radius: 0;
padding: 0px 22px;
font-size: 22px;
line-height: 55px;
}
.tpl-header-switch-button:hover {
outline: none;
}
.tpl-header-search-form {
height: 54px;
line-height: 52px;
margin-left: 10px;
}
.tpl-header-search-box,
.tpl-header-search-btn {
transition: all 0.4s ease-in-out;
color: #848c90;
background: none;
border: none;
outline: none;
}
.tpl-header-search-box {
font-size: 14px;
}
.tpl-header-search-box:hover,
.tpl-header-search-box:active {
color: #fff;
}
.tpl-header-search-btn {
font-size: 15px;
}
.tpl-header-search-btn:hover,
.tpl-header-search-btn:active {
color: #fff;
}
.tpl-header-navbar {
color: #fff;
}
.tpl-header-navbar li {
float: left;
}
.tpl-header-navbar a {
line-height: 56px;
display: block;
padding: 0 16px;
position: relative;
}
.tpl-header-navbar a .item-feed-badge {
position: absolute;
top: 9px;
left: 25px;
}
ul.tpl-dropdown-content {
padding: 10px;
margin-top: 0;
width: 300px;
background-color: #2f3638;
border: 1px solid #525e62;
border-radius: 0;
}
ul.tpl-dropdown-content li {
float: none;
}
ul.tpl-dropdown-content:before,
ul.tpl-dropdown-content:after {
display: none;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-title {
font-size: 12px;
float: left;
color: rgba(255, 255, 255, 0.7);
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-time {
float: right;
text-align: right;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
width: 50px;
margin-left: 10px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications:last-child .tpl-dropdown-menu-notifications-item {
text-align: center;
border: none;
font-size: 12px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications:last-child .tpl-dropdown-menu-notifications-item i {
margin-left: -6px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-messages:last-child .tpl-dropdown-menu-messages-item {
text-align: center;
border: none;
font-size: 12px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-messages:last-child .tpl-dropdown-menu-messages-item i {
margin-left: -6px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item {
padding: 12px;
color: #fff;
line-height: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item:hover,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item:hover,
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item:focus,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item:focus {
background-color: #465154;
color: #fff;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .menu-messages-ico,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-ico {
line-height: initial;
float: left;
width: 35px;
height: 35px;
border-radius: 50%;
margin-right: 10px;
margin-top: 6px;
overflow: hidden;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .menu-messages-ico img,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-ico img {
width: 100%;
height: auto;
vertical-align: middle;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .menu-messages-time,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-time {
float: right;
text-align: right;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
width: 40px;
margin-left: 10px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .menu-messages-content,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-content {
display: block;
font-size: 13px;
margin-left: 45px;
margin-right: 50px;
}
ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .menu-messages-content .menu-messages-content-time,
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-content .menu-messages-content-time {
margin-top: 3px;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
}
.am-dimmer {
z-index: 1200;
}
.am-modal {
z-index: 1300;
}
.am-datepicker-dropdown {
z-index: 1400;
}
.tpl-skiner {
transition: all 0.4s ease-in-out;
position: fixed;
z-index: 10000;
right: -130px;
top: 65px;
}
.tpl-skiner.active {
right: 0px;
}
.tpl-skiner-content {
background: rgba(0, 0, 0, 0.7);
width: 130px;
padding: 15px;
border-radius: 4px 0 0 4px;
overflow: hidden;
}
.fc-content .am-icon-close {
position: absolute;
right: 0;
top: 0px;
}
.tpl-skiner-toggle {
position: absolute;
top: 5px;
left: -40px;
width: 40px;
color: #969a9b;
font-size: 20px;
height: 40px;
line-height: 40px;
text-align: center;
background: rgba(0, 0, 0, 0.7);
cursor: pointer;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.tpl-skiner-content-title {
margin: 0;
margin-bottom: 4px;
padding-bottom: 4px;
font-size: 16px;
text-transform: uppercase;
color: #fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.tpl-skiner-content-bar {
padding-top: 10px;
}
.tpl-skiner-content-bar .skiner-color {
transition: all 0.4s ease-in-out;
float: left;
width: 25px;
height: 25px;
margin-right: 10px;
cursor: pointer;
}
.tpl-skiner-content-bar .skiner-white {
background: #fff;
border: 2px solid #eee;
}
.tpl-skiner-content-bar .skiner-black {
background: #000;
border: 2px solid #222;
}
.sub-active {
color: #fff!important;
}
.left-sidebar {
transition: all 0.4s ease-in-out;
width: 240px;
min-height: 100%;
padding-top: 57px;
position: absolute;
z-index: 1104;
top: 0;
left: 0px;
}
.left-sidebar.xs-active {
left: 0px;
}
.left-sidebar.active {
left: -240px;
}
.tpl-sidebar-user-panel {
padding: 22px;
padding-top: 28px;
}
.tpl-user-panel-profile-picture {
border-radius: 50%;
width: 82px;
height: 82px;
margin-bottom: 10px;
overflow: hidden;
}
.tpl-user-panel-profile-picture img {
width: auto;
height: 82px;
vertical-align: middle;
}
.tpl-user-panel-status-icon {
margin-right: 2px;
}
.user-panel-logged-in-text {
display: block;
color: #cfcfcf;
font-size: 14px;
}
.tpl-user-panel-action-link {
color: #6d787c;
font-size: 12px;
}
.tpl-user-panel-action-link:hover {
color: #a2aaad;
}
.sidebar-nav {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar-nav-sub {
display: none;
}
.sidebar-nav-sub .sidebar-nav-link {
font-size: 12px;
padding-left: 30px;
}
.sidebar-nav-sub .sidebar-nav-link a {
font-size: 12px;
padding-left: 0;
}
.sidebar-nav-sub .sidebar-nav-link-logo {
margin-right: 8px;
width: 20px;
font-size: 16px;
}
.sidebar-nav-sub-ico-rotate {
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
-webkit-transition: all 300ms;
transition: all 300ms;
}
.sidebar-nav-link-logo-ico {
margin-top: 5px;
}
.sidebar-nav-heading {
padding: 24px 17px;
font-size: 15px;
font-weight: 500;
}
.sidebar-nav-heading-info {
font-size: 12px;
color: #868E8E;
padding-left: 10px;
}
.sidebar-nav-link-logo {
margin-right: 8px;
width: 20px;
font-size: 16px;
}
.sidebar-nav-link {
color: #fff;
}
.sidebar-nav-link a {
display: block;
color: #868E8E;
padding: 10px 17px;
border-left: #282d2f 3px solid;
font-size: 14px;
cursor: pointer;
}
.sidebar-nav-link a.active {
cursor: pointer;
border-left: #1CA2CE 3px solid;
color: #fff;
}
.sidebar-nav-link a:hover {
color: #fff;
}
.tpl-content-wrapper {
transition: all 0.4s ease-in-out;
position: relative;
margin-left: 240px;
z-index: 1101;
min-height: 922px;
border-bottom-left-radius: 3px;
}
.tpl-content-wrapper.xs-active {
margin-left: 240px;
}
.tpl-content-wrapper.active {
margin-left: 0;
}
.page-header {
background: #424b4f;
margin-top: 0;
margin-bottom: 0;
padding: 40px 0;
border-bottom: 0;
}
.container-fluid {
margin-top: 0;
margin-bottom: 0;
padding: 40px 0;
border-bottom: 0;
padding-left: 20px;
padding-right: 20px;
}
.row {
margin-right: -10px;
margin-left: -10px;
}
.page-header-description {
margin-top: 4px;
margin-bottom: 0;
font-size: 14px;
color: #e6e6e6;
}
.page-header-heading {
font-size: 20px;
font-weight: 400;
}
.page-header-heading .page-header-heading-ico {
font-size: 28px;
position: relative;
top: 3px;
}
.page-header-heading small {
font-weight: normal;
line-height: 1;
color: #B3B3B3;
}
.page-header-button {
transition: all 0.4s ease-in-out;
opacity: 0.3;
float: right;
outline: none;
border: 1px solid #fff;
padding: 16px 36px;
font-size: 23px;
line-height: 23px;
border-radius: 0;
padding-top: 14px;
color: #fff;
background-color: rgba(0, 0, 0, 0);
font-weight: 500;
}
.page-header-button:hover {
background-color: #ffffff;
color: #333;
opacity: 1;
}
.widget {
width: 100%;
min-height: 148px;
margin-bottom: 20px;
border-radius: 0;
position: relative;
}
.widget-head {
width: 100%;
padding: 15px;
}
.widget-title {
font-size: 14px;
}
.widget-fluctuation-period-text {
display: inline-block;
font-size: 16px;
line-height: 20px;
margin-bottom: 9px;
}
.widget-body {
padding: 13px 15px;
width: 100%;
}
.row-content {
padding: 20px;
}
.widget-fluctuation-description-text {
margin-top: 4px;
display: block;
font-size: 12px;
line-height: 13px;
}
.widget-fluctuation-description-amount {
display: block;
font-size: 20px;
line-height: 22px;
}
.widget-statistic-header {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
text-transform: uppercase;
margin-bottom: 8px;
}
.widget-body-md {
height: 200px;
}
.widget-body-lg {
min-height: 330px;
}
.widget-margin-bottom-lg {
margin-bottom: 20px;
}
.tpl-table-black-operation a {
display: inline-block;
padding: 5px 6px;
font-size: 12px;
line-height: 12px;
}
.tpl-switch input[type="checkbox"] {
position: absolute;
opacity: 0;
width: 50px;
height: 20px;
}
.tpl-switch input[type="checkbox"].ios-switch + div {
vertical-align: middle;
width: 40px;
height: 20px;
border-radius: 999px;
background-color: rgba(0, 0, 0, 0.1);
-webkit-transition-duration: .4s;
-webkit-transition-property: background-color, box-shadow;
margin-top: 6px;
}
.tpl-switch input[type="checkbox"].ios-switch:checked + div {
width: 40px;
background-position: 0 0;
background-color: #36c6d3;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch + div {
width: 34px;
height: 18px;
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch + div {
width: 50px;
height: 25px;
}
.tpl-switch input[type="checkbox"].green.ios-switch:checked + div {
background-color: #00e359;
border: 1px solid #00a23f;
box-shadow: inset 0 0 0 10px #00e359;
}
.tpl-switch input[type="checkbox"].ios-switch + div > div {
float: left;
width: 18px;
height: 18px;
border-radius: inherit;
background: #ffffff;
-webkit-transition-timing-function: cubic-bezier(0.54, 1.85, 0.5, 1);
-webkit-transition-duration: 0.4s;
-webkit-transition-property: transform, background-color, box-shadow;
-moz-transition-timing-function: cubic-bezier(0.54, 1.85, 0.5, 1);
-moz-transition-duration: 0.4s;
-moz-transition-property: transform, background-color;
pointer-events: none;
margin-top: 1px;
margin-left: 1px;
}
.tpl-switch input[type="checkbox"].ios-switch:checked + div > div {
-webkit-transform: translate3d(20px, 0, 0);
-moz-transform: translate3d(20px, 0, 0);
background-color: #ffffff;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch + div > div {
width: 16px;
height: 16px;
margin-top: 1px;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch:checked + div > div {
-webkit-transform: translate3d(16px, 0, 0);
-moz-transform: translate3d(16px, 0, 0);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0px 0px 0 1px #0850ac;
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch + div > div {
width: 23px;
height: 23px;
margin-top: 1px;
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch:checked + div > div {
-webkit-transform: translate3d(25px, 0, 0);
-moz-transform: translate3d(16px, 0, 0);
}
.tpl-switch input[type="checkbox"].green.ios-switch:checked + div > div {
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px #00a23f;
}
.tpl-page-state {
width: 100%;
}
.tpl-page-state-title {
font-size: 40px;
font-weight: bold;
}
.tpl-page-state-content {
padding: 10px 0;
}
.tpl-login {
width: 100%;
}
.tpl-login-logo {
max-width: 159px;
height: 205px;
margin: 0 auto;
margin-bottom: 20px;
}
.tpl-login-title {
width: 100%;
font-size: 24px;
}
.tpl-login-content {
width: 300px;
margin: 12% auto 0;
}
.tpl-login-remember-me {
color: #B3B3B3;
font-size: 14px;
}
.tpl-login-remember-me label {
position: relative;
top: -2px;
}
.tpl-login-content-info {
color: #B3B3B3;
font-size: 14px;
}
.cl-p {
padding: 0!important;
}
.tpl-table-line-img {
max-width: 100px;
padding: 2px;
}
.tpl-table-list-select {
text-align: right;
}
.fc-button-group,
.fc button {
display: block;
}
.theme-white {
background: #e9ecf3;
}
.theme-white .sidebar-nav-sub .sidebar-nav-link-logo {
margin-left: 10px;
}
.theme-white .tpl-header-search-box:hover,
.theme-white .tpl-header-search-box:active .tpl-error-title {
color: #848c90;
}
.theme-white .tpl-error-title-info {
line-height: 30px;
font-size: 21px;
margin-top: 20px;
text-align: center;
color: #dce2ec;
}
.theme-white .tpl-error-btn {
background: #03a9f3;
border: 1px solid #03a9f3;
border-radius: 30px;
padding: 6px 20px 8px;
}
.theme-white .tpl-error-content {
margin-top: 20px;
margin-bottom: 20px;
font-size: 16px;
text-align: center;
color: #96a2b4;
}
.theme-white .tpl-calendar-box {
background: #fff;
border-radius: 4px;
padding: 20px;
}
.theme-white .tpl-calendar-box .fc-event {
border-radius: 0;
background: #03a9f3;
border: 1px solid #14b0f6;
}
.theme-white .tpl-calendar-box .fc-axis {
color: #868E8E;
}
.theme-white .tpl-calendar-box .fc-unthemed .fc-today {
background: #eee;
}
.theme-white .tpl-calendar-box .fc-more {
color: #868E8E;
}
.theme-white .tpl-calendar-box .fc th.fc-widget-header {
background: #32c5d2!important;
color: #ffffff;
font-size: 14px;
line-height: 20px;
padding: 7px 0px;
text-transform: uppercase;
border: none!important;
}
.theme-white .tpl-calendar-box .fc th.fc-widget-header a {
color: #fff;
}
.theme-white .tpl-calendar-box .fc-center h2 {
color: #868E8E;
}
.theme-white .tpl-calendar-box .fc-state-default {
background-image: none;
background: #fff;
font-size: 14px;
color: #868E8E;
}
.theme-white .tpl-calendar-box .fc th,
.theme-white .tpl-calendar-box .fc td,
.theme-white .tpl-calendar-box .fc hr,
.theme-white .tpl-calendar-box .fc thead,
.theme-white .tpl-calendar-box .fc tbody,
.theme-white .tpl-calendar-box .fc-row {
border-color: #eee!important;
}
.theme-white .tpl-calendar-box .fc-day-number {
color: #868E8E;
padding-right: 6px;
}
.theme-white .tpl-calendar-box .fc th {
color: #868E8E;
font-weight: normal;
font-size: 14px;
padding: 6px 0;
}
.theme-white .tpl-login-logo {
background: url(../img/logoa.png) center no-repeat;
}
.theme-white .sub-active {
color: #23abf0!important;
}
.theme-white .tpl-table-line-img {
border: 1px solid #ddd;
}
.theme-white .tpl-pagination .am-disabled a,
.theme-white .tpl-pagination li a {
color: #23abf0;
border-radius: 3px;
padding: 6px 12px;
}
.theme-white .tpl-pagination .am-active a {
background: #23abf0;
color: #fff;
border: 1px solid #23abf0;
padding: 6px 12px;
}
.theme-white .tpl-login-btn {
background-color: #32c5d2;
border: none;
padding: 10px 16px;
font-size: 14px;
line-height: 14px;
outline: none;
}
.theme-white .tpl-login-btn:hover,
.theme-white .tpl-login-btn:active {
background: #22b2e1;
color: #fff;
}
.theme-white .tpl-login-title {
color: #697882;
}
.theme-white .tpl-login-title strong {
color: #39bae4;
}
.theme-white .tpl-login-content {
width: 500px;
padding: 40px 40px 25px;
background-color: #fff;
border-radius: 4px;
}
.theme-white .tpl-form-line-form,
.theme-white .tpl-form-border-form {
padding-top: 20px;
}
.theme-white .tpl-form-border-form input[type=number]:focus,
.theme-white .tpl-form-border-form input[type=search]:focus,
.theme-white .tpl-form-border-form input[type=text]:focus,
.theme-white .tpl-form-border-form input[type=password]:focus,
.theme-white .tpl-form-border-form input[type=datetime]:focus,
.theme-white .tpl-form-border-form input[type=datetime-local]:focus,
.theme-white .tpl-form-border-form input[type=date]:focus,
.theme-white .tpl-form-border-form input[type=month]:focus,
.theme-white .tpl-form-border-form input[type=time]:focus,
.theme-white .tpl-form-border-form input[type=week]:focus,
.theme-white .tpl-form-border-form input[type=email]:focus,
.theme-white .tpl-form-border-form input[type=url]:focus,
.theme-white .tpl-form-border-form input[type=tel]:focus,
.theme-white .tpl-form-border-form input[type=color]:focus,
.theme-white .tpl-form-border-form select:focus,
.theme-white .tpl-form-border-form textarea:focus,
.theme-white .am-form-field:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.theme-white .tpl-form-border-form input[type=number],
.theme-white .tpl-form-border-form input[type=search],
.theme-white .tpl-form-border-form input[type=text],
.theme-white .tpl-form-border-form input[type=password],
.theme-white .tpl-form-border-form input[type=datetime],
.theme-white .tpl-form-border-form input[type=datetime-local],
.theme-white .tpl-form-border-form input[type=date],
.theme-white .tpl-form-border-form input[type=month],
.theme-white .tpl-form-border-form input[type=time],
.theme-white .tpl-form-border-form input[type=week],
.theme-white .tpl-form-border-form input[type=email],
.theme-white .tpl-form-border-form input[type=url],
.theme-white .tpl-form-border-form input[type=tel],
.theme-white .tpl-form-border-form input[type=color],
.theme-white .tpl-form-border-form select,
.theme-white .tpl-form-border-form textarea,
.theme-white .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border: 1px solid #c2cad8;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
text-indent: .5em;
-o-border-radius: 0;
border-radius: 0;
color: #555;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.theme-white .tpl-form-border-form .am-checkbox,
.theme-white .tpl-form-border-form .am-checkbox-inline,
.theme-white .tpl-form-border-form .am-form-label,
.theme-white .tpl-form-border-form .am-radio,
.theme-white .tpl-form-border-form .am-radio-inline {
margin-top: 0;
margin-bottom: 0;
}
.theme-white .tpl-form-border-form .am-form-group:after {
clear: both;
}
.theme-white .tpl-form-border-form .am-form-group:after,
.theme-white .tpl-form-border-form .am-form-group:before {
content: " ";
display: table;
}
.theme-white .tpl-form-border-form .am-form-label {
padding-top: 5px;
font-size: 16px;
color: #888;
font-weight: inherit;
text-align: right;
}
.theme-white .tpl-form-border-form .am-form-group {
/*padding: 20px 0;*/
}
.theme-white .tpl-form-border-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.theme-white .tpl-form-line-form input[type=number]:focus,
.theme-white .tpl-form-line-form input[type=search]:focus,
.theme-white .tpl-form-line-form input[type=text]:focus,
.theme-white .tpl-form-line-form input[type=password]:focus,
.theme-white .tpl-form-line-form input[type=datetime]:focus,
.theme-white .tpl-form-line-form input[type=datetime-local]:focus,
.theme-white .tpl-form-line-form input[type=date]:focus,
.theme-white .tpl-form-line-form input[type=month]:focus,
.theme-white .tpl-form-line-form input[type=time]:focus,
.theme-white .tpl-form-line-form input[type=week]:focus,
.theme-white .tpl-form-line-form input[type=email]:focus,
.theme-white .tpl-form-line-form input[type=url]:focus,
.theme-white .tpl-form-line-form input[type=tel]:focus,
.theme-white .tpl-form-line-form input[type=color]:focus,
.theme-white .tpl-form-line-form select:focus,
.theme-white .tpl-form-line-form textarea:focus,
.theme-white .am-form-field:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.theme-white .tpl-form-line-form input[type=number],
.theme-white .tpl-form-line-form input[type=search],
.theme-white .tpl-form-line-form input[type=text],
.theme-white .tpl-form-line-form input[type=password],
.theme-white .tpl-form-line-form input[type=datetime],
.theme-white .tpl-form-line-form input[type=datetime-local],
.theme-white .tpl-form-line-form input[type=date],
.theme-white .tpl-form-line-form input[type=month],
.theme-white .tpl-form-line-form input[type=time],
.theme-white .tpl-form-line-form input[type=week],
.theme-white .tpl-form-line-form input[type=email],
.theme-white .tpl-form-line-form input[type=url],
.theme-white .tpl-form-line-form input[type=tel],
.theme-white .tpl-form-line-form input[type=color],
.theme-white .tpl-form-line-form select,
.theme-white .tpl-form-line-form textarea,
.theme-white .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border-bottom: 1px solid #c2cad8;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #555;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.theme-white .tpl-form-line-form .am-checkbox,
.theme-white .tpl-form-line-form .am-checkbox-inline,
.theme-white .tpl-form-line-form .am-form-label,
.theme-white .tpl-form-line-form .am-radio,
.theme-white .tpl-form-line-form .am-radio-inline {
margin-top: 0;
margin-bottom: 0;
}
.theme-white .tpl-form-line-form .am-form-group:after {
clear: both;
}
.theme-white .tpl-form-line-form .am-form-group:after,
.theme-white .tpl-form-line-form .am-form-group:before {
content: " ";
display: table;
}
.theme-white .tpl-form-line-form .am-form-label {
padding-top: 5px;
font-size: 16px;
color: #888;
font-weight: inherit;
text-align: right;
}
.theme-white .tpl-form-line-form .am-form-group {
/*padding: 20px 0;*/
}
.theme-white .tpl-form-line-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.theme-white .tpl-table-black-operation a {
border: 1px solid #36c6d3;
color: #36c6d3;
}
.theme-white .tpl-table-black-operation a:hover {
background: #36c6d3;
color: #fff;
}
.theme-white .tpl-table-black-operation a.tpl-table-black-operation-del {
border: 1px solid #e7505a;
color: #e7505a;
}
.theme-white .tpl-table-black-operation a.tpl-table-black-operation-del:hover {
background: #e7505a;
color: #fff;
}
.theme-white .tpl-amendment-echarts {
left: -17px;
}
.theme-white .tpl-user-card {
border: 1px solid #3598dc;
border-top: 2px solid #3598dc;
background: #3598dc;
color: #ffffff;
border-radius: 4px;
}
.theme-white .tpl-user-card-title {
font-size: 26px;
margin-top: 0;
font-weight: 300;
margin-top: 25px;
margin-bottom: 10px;
}
.theme-white .achievement-subheading {
font-size: 12px;
margin-top: 0;
margin-bottom: 15px;
}
.theme-white .achievement-image {
border-radius: 50%;
margin-bottom: 22px;
}
.theme-white .achievement-description {
margin: 0;
font-size: 12px;
}
.theme-white .tpl-table-black {
color: #838FA1;
}
.theme-white .tpl-table-black thead > tr > th {
font-size: 14px;
padding: 6px;
}
.theme-white .tpl-table-black tbody > tr > td {
font-size: 14px;
padding: 7px 6px;
}
.theme-white .tpl-table-black tfoot > tr > th {
font-size: 14px;
padding: 6px 0;
}
.theme-white .am-progress {
height: 12px;
}
.theme-white .am-progress-title {
font-size: 14px;
margin-bottom: 8px;
}
.theme-white .widget-fluctuation-tpl-btn {
margin-top: 6px;
display: block;
color: #fff;
font-size: 12px;
padding: 8px 14px;
outline: none;
background-color: #e7505a;
border: 1px solid #e7505a;
}
.theme-white .widget-fluctuation-tpl-btn:hover {
background: transparent;
color: #e7505a;
}
.theme-white .widget-fluctuation-description-text {
color: #c5cacd;
}
.theme-white .widget-fluctuation-period-text {
color: #838FA1;
}
.theme-white .text-success {
color: #5eb95e;
}
.theme-white .widget-head {
border-bottom: 1px solid #eef1f5;
}
.theme-white .widget-function a {
color: #838FA1;
}
.theme-white .widget-function a:hover {
color: #a7bdcd;
}
.theme-white .widget {
padding: 10px 20px 13px;
background-color: #fff;
border-radius: 4px;
color: #838FA1;
}
.theme-white .widget-title {
font-size: 16px;
}
.theme-white .widget-primary {
min-height: 174px;
border: 1px solid #32c5d2;
border-top: 2px solid #32c5d2;
background: #32c5d2;
color: #ffffff;
padding: 12px 17px;
padding-left: 22px;
}
.theme-white .widget-statistic-icon {
position: absolute;
z-index: 30;
right: 30px;
top: 24px;
font-size: 70px;
color: #46cad6;
}
.theme-white .widget-statistic-description {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
line-height: 14px;
padding-top: 8px;
color: #fff;
}
.theme-white .widget-statistic-value {
position: relative;
z-index: 35;
font-weight: 300;
display: block;
color: #fff;
font-size: 46px;
line-height: 46px;
margin-bottom: 8px;
}
.theme-white .widget-statistic-header {
padding-top: 18px;
color: #fff;
}
.theme-white .widget-purple {
padding: 12px 17px;
border: 1px solid #8E44AD;
border-top: 2px solid #8E44AD;
background: #8E44AD;
color: #ffffff;
min-height: 174px;
}
.theme-white .widget-purple .widget-statistic-icon {
color: #9956b5;
}
.theme-white .widget-purple .widget-statistic-header {
color: #ded5e7;
}
.theme-white .widget-purple .widget-statistic-description {
color: #ded5e7;
}
.theme-white .page-header-button {
opacity: .8;
border: 1px solid #32c5d2;
background: #32c5d2;
color: #fff;
}
.theme-white .page-header-button:hover {
opacity: 1;
}
.theme-white .page-header-description {
color: #666;
}
.theme-white .page-header-heading {
color: #666;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-content .menu-messages-content-time {
color: #96a5aa;
}
.theme-white ul.tpl-dropdown-content {
background: #fff;
border: 1px solid #ddd;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item,
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item {
border-bottom: 1px solid #eee;
color: #999;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item:hover,
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item:hover {
background-color: #f5f5f5;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-item .tpl-dropdown-menu-notifications-time,
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .tpl-dropdown-menu-notifications-time {
color: #999;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item:hover {
background-color: #f5f5f5;
}
.theme-white ul.tpl-dropdown-content .tpl-dropdown-menu-notifications-title {
color: #999;
}
.theme-white .sidebar-nav-link a {
border-left: #fff 3px solid;
}
.theme-white .sidebar-nav-link a:hover {
background: #f2f6f9;
color: #868E8E;
border-left: #3bb4f2 3px solid;
}
.theme-white .sidebar-nav-link a.active {
background: #f2f6f9;
color: #868E8E;
border-left: #3bb4f2 3px solid;
}
.theme-white .sidebar-nav-heading {
color: #999;
border-bottom: 1px solid #eee;
}
.theme-white .tpl-sidebar-user-panel {
background: #fff;
border-bottom: 1px solid #eee;
}
.theme-white .tpl-content-wrapper {
background: #e9ecf3;
}
.theme-white .tpl-header-fluid {
background: #fff;
border-top: 1px solid #eee;
}
.theme-white .tpl-header-logo {
background: #fff;
border-bottom: 1px solid #eee;
}
.theme-white .tpl-header-switch-button {
background: #fff;
border-right: 1px solid #eee;
border-left: 1px solid #eee;
}
.theme-white .tpl-header-switch-button:hover {
background: #fff;
color: #999;
}
.theme-white .tpl-header-navbar a {
color: #999;
}
.theme-white .tpl-header-navbar a:hover {
color: #999;
}
.theme-white .left-sidebar {
background: #fff;
}
.theme-white .widget-color-green {
border: 1px solid #32c5d2;
border-top: 2px solid #32c5d2;
background: #32c5d2;
color: #ffffff;
}
.theme-white .widget-color-green .widget-fluctuation-period-text {
color: #fff;
}
.theme-white .widget-color-green .widget-head {
border-bottom: 1px solid #2bb8c4;
}
.theme-white .widget-color-green .widget-fluctuation-description-text {
color: #bbe7f6;
}
.theme-white .widget-color-green .widget-function a {
color: #42bde5;
}
.theme-white .widget-color-green .widget-function a:hover {
color: #fff;
}
.theme-black {
background-color: #282d2f;
}
.theme-black .tpl-am-model-bd {
background: #424b4f;
}
.theme-black .tpl-model-dialog {
background: #424b4f;
}
.theme-black .tpl-error-title {
font-size: 210px;
line-height: 220px;
color: #868E8E;
}
.theme-black .tpl-error-title-info {
line-height: 30px;
font-size: 21px;
margin-top: 20px;
text-align: center;
color: #868E8E;
}
.theme-black .tpl-error-btn {
background: #03a9f3;
border: 1px solid #03a9f3;
border-radius: 30px;
padding: 6px 20px 8px;
}
.theme-black .tpl-error-content {
margin-top: 20px;
margin-bottom: 20px;
font-size: 16px;
text-align: center;
color: #cfcfcf;
}
.theme-black .tpl-calendar-box {
background: #424b4f;
padding: 20px;
}
.theme-black .tpl-calendar-box .fc-button {
border-radius: 0;
box-shadow: 0;
}
.theme-black .tpl-calendar-box .fc-event {
border-radius: 0;
background: #03a9f3;
}
.theme-black .tpl-calendar-box .fc-axis {
color: #fff;
}
.theme-black .tpl-calendar-box .fc-unthemed .fc-today {
background: #3a4144;
}
.theme-black .tpl-calendar-box .fc-more {
color: #fff;
}
.theme-black .tpl-calendar-box .fc th.fc-widget-header {
background: #9675ce!important;
color: #ffffff;
font-size: 14px;
line-height: 20px;
padding: 7px 0px;
text-transform: uppercase;
border: none!important;
}
.theme-black .tpl-calendar-box .fc th.fc-widget-header a {
color: #fff;
}
.theme-black .tpl-calendar-box .fc-center h2 {
color: #fff;
}
.theme-black .tpl-calendar-box .fc-state-default {
background-image: none;
background: #fff;
font-size: 14px;
}
.theme-black .tpl-calendar-box .fc th,
.theme-black .tpl-calendar-box .fc td,
.theme-black .tpl-calendar-box .fc hr,
.theme-black .tpl-calendar-box .fc thead,
.theme-black .tpl-calendar-box .fc tbody,
.theme-black .tpl-calendar-box .fc-row {
border-color: rgba(120, 130, 140, 0.4) !important;
}
.theme-black .tpl-calendar-box .fc-day-number {
color: #868E8E;
padding-right: 6px;
}
.theme-black .tpl-calendar-box .fc th {
color: #868E8E;
font-weight: normal;
font-size: 14px;
padding: 6px 0;
}
.theme-black .tpl-login-logo {
background: url(../img/logob.png) center no-repeat;
}
.theme-black .tpl-table-line-img {
max-width: 100px;
padding: 2px;
border: none;
}
.theme-black .tpl-table-list-field {
border: none;
}
.theme-black .tpl-table-list-select .am-dropdown-content {
color: #888;
}
.theme-black .tpl-table-list-select .am-selected-btn {
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
}
.theme-black .tpl-table-list-select .am-btn-default.am-active,
.theme-black .tpl-table-list-select .am-btn-default:active,
.theme-black .tpl-table-list-select .am-dropdown.am-active .am-btn-default.am-dropdown-toggle {
border: 1px solid rgba(255, 255, 255, 0.2);
color: #fff;
background: #5d6468;
}
.theme-black .tpl-pagination .am-disabled a,
.theme-black .tpl-pagination li a {
color: #fff;
padding: 6px 12px;
background: #3f4649;
border: none;
}
.theme-black .tpl-pagination .am-active a {
background: #167fa1;
color: #fff;
border: 1px solid #167fa1;
padding: 6px 12px;
}
.theme-black .tpl-login-btn {
border: 1px solid #b5b5b5;
background-color: rgba(0, 0, 0, 0);
padding: 10px 16px;
font-size: 14px;
line-height: 14px;
color: #b5b5b5;
}
.theme-black .tpl-login-btn:hover,
.theme-black .tpl-login-btn:active {
background: #b5b5b5;
color: #fff;
}
.theme-black .tpl-login-title {
color: #fff;
}
.theme-black .tpl-login-title strong {
color: #39bae4;
}
.theme-black .tpl-form-line-form,
.theme-black .tpl-form-border-form {
padding-top: 20px;
}
.theme-black .tpl-form-line-form .am-btn-default,
.theme-black .tpl-form-border-form .am-btn-default {
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.theme-black .tpl-form-line-form .am-selected-text,
.theme-black .tpl-form-border-form .am-selected-text {
color: #888;
}
.theme-black .tpl-form-border-form input[type=number]:focus,
.theme-black .tpl-form-border-form input[type=search]:focus,
.theme-black .tpl-form-border-form input[type=text]:focus,
.theme-black .tpl-form-border-form input[type=password]:focus,
.theme-black .tpl-form-border-form input[type=datetime]:focus,
.theme-black .tpl-form-border-form input[type=datetime-local]:focus,
.theme-black .tpl-form-border-form input[type=date]:focus,
.theme-black .tpl-form-border-form input[type=month]:focus,
.theme-black .tpl-form-border-form input[type=time]:focus,
.theme-black .tpl-form-border-form input[type=week]:focus,
.theme-black .tpl-form-border-form input[type=email]:focus,
.theme-black .tpl-form-border-form input[type=url]:focus,
.theme-black .tpl-form-border-form input[type=tel]:focus,
.theme-black .tpl-form-border-form input[type=color]:focus,
.theme-black .tpl-form-border-form select:focus,
.theme-black .tpl-form-border-form textarea:focus,
.theme-black .am-form-field:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.theme-black .tpl-form-border-form input[type=number],
.theme-black .tpl-form-border-form input[type=search],
.theme-black .tpl-form-border-form input[type=text],
.theme-black .tpl-form-border-form input[type=password],
.theme-black .tpl-form-border-form input[type=datetime],
.theme-black .tpl-form-border-form input[type=datetime-local],
.theme-black .tpl-form-border-form input[type=date],
.theme-black .tpl-form-border-form input[type=month],
.theme-black .tpl-form-border-form input[type=time],
.theme-black .tpl-form-border-form input[type=week],
.theme-black .tpl-form-border-form input[type=email],
.theme-black .tpl-form-border-form input[type=url],
.theme-black .tpl-form-border-form input[type=tel],
.theme-black .tpl-form-border-form input[type=color],
.theme-black .tpl-form-border-form select,
.theme-black .tpl-form-border-form textarea,
.theme-black .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
text-indent: .5em;
border: 1px solid rgba(255, 255, 255, 0.2);
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #fff;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.theme-black .tpl-form-border-form .am-checkbox,
.theme-black .tpl-form-border-form .am-checkbox-inline,
.theme-black .tpl-form-border-form .am-form-label,
.theme-black .tpl-form-border-form .am-radio,
.theme-black .tpl-form-border-form .am-radio-inline {
margin-top: 0;
margin-bottom: 0;
}
.theme-black .tpl-form-border-form .am-form-group:after {
clear: both;
}
.theme-black .tpl-form-border-form .am-form-group:after,
.theme-black .tpl-form-border-form .am-form-group:before {
content: " ";
display: table;
}
.theme-black .tpl-form-border-form .am-form-label {
padding-top: 5px;
font-size: 16px;
color: #fff;
font-weight: inherit;
text-align: right;
}
.theme-black .tpl-form-border-form .am-form-group {
/*padding: 20px 0;*/
}
.theme-black .tpl-form-border-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.theme-black .tpl-form-line-form input[type=number]:focus,
.theme-black .tpl-form-line-form input[type=search]:focus,
.theme-black .tpl-form-line-form input[type=text]:focus,
.theme-black .tpl-form-line-form input[type=password]:focus,
.theme-black .tpl-form-line-form input[type=datetime]:focus,
.theme-black .tpl-form-line-form input[type=datetime-local]:focus,
.theme-black .tpl-form-line-form input[type=date]:focus,
.theme-black .tpl-form-line-form input[type=month]:focus,
.theme-black .tpl-form-line-form input[type=time]:focus,
.theme-black .tpl-form-line-form input[type=week]:focus,
.theme-black .tpl-form-line-form input[type=email]:focus,
.theme-black .tpl-form-line-form input[type=url]:focus,
.theme-black .tpl-form-line-form input[type=tel]:focus,
.theme-black .tpl-form-line-form input[type=color]:focus,
.theme-black .tpl-form-line-form select:focus,
.theme-black .tpl-form-line-form textarea:focus,
.theme-black .am-form-field:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.theme-black .tpl-form-line-form input[type=number],
.theme-black .tpl-form-line-form input[type=search],
.theme-black .tpl-form-line-form input[type=text],
.theme-black .tpl-form-line-form input[type=password],
.theme-black .tpl-form-line-form input[type=datetime],
.theme-black .tpl-form-line-form input[type=datetime-local],
.theme-black .tpl-form-line-form input[type=date],
.theme-black .tpl-form-line-form input[type=month],
.theme-black .tpl-form-line-form input[type=time],
.theme-black .tpl-form-line-form input[type=week],
.theme-black .tpl-form-line-form input[type=email],
.theme-black .tpl-form-line-form input[type=url],
.theme-black .tpl-form-line-form input[type=tel],
.theme-black .tpl-form-line-form input[type=color],
.theme-black .tpl-form-line-form select,
.theme-black .tpl-form-line-form textarea,
.theme-black .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #fff;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.theme-black .tpl-form-line-form .am-checkbox,
.theme-black .tpl-form-line-form .am-checkbox-inline,
.theme-black .tpl-form-line-form .am-form-label,
.theme-black .tpl-form-line-form .am-radio,
.theme-black .tpl-form-line-form .am-radio-inline {
margin-top: 0;
margin-bottom: 0;
}
.theme-black .tpl-form-line-form .am-form-group:after {
clear: both;
}
.theme-black .tpl-form-line-form .am-form-group:after,
.theme-black .tpl-form-line-form .am-form-group:before {
content: " ";
display: table;
}
.theme-black .tpl-form-line-form .am-form-label {
padding-top: 5px;
font-size: 16px;
color: #fff;
font-weight: inherit;
text-align: right;
}
.theme-black .tpl-form-line-form .am-form-group {
/*padding: 20px 0;*/
}
.theme-black .tpl-form-line-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.theme-black .tpl-table-black-operation a {
border: 1px solid #7b878d;
color: #7b878d;
}
.theme-black .tpl-table-black-operation a:hover {
background: #7b878d;
color: #fff;
}
.theme-black .tpl-table-black-operation a.tpl-table-black-operation-del {
border: 1px solid #f35842;
color: #f35842;
}
.theme-black .tpl-table-black-operation a.tpl-table-black-operation-del:hover {
background: #f35842;
color: #fff;
}
.theme-black .am-table-bordered {
border: 1px solid #666d70;
}
.theme-black .am-table-bordered > tbody > tr > td,
.theme-black .am-table-bordered > tbody > tr > th,
.theme-black .am-table-bordered > tfoot > tr > td,
.theme-black .am-table-bordered > tfoot > tr > th,
.theme-black .am-table-bordered > thead > tr > td,
.theme-black .am-table-bordered > thead > tr > th {
border: 1px solid #666d70;
}
.theme-black .am-table-bordered > thead + tbody > tr:first-child > td,
.theme-black .am-table-bordered > thead + tbody > tr:first-child > th {
border: 1px solid #666d70;
}
.theme-black .am-table-striped > tbody > tr:nth-child(odd) > td,
.theme-black .am-table-striped > tbody > tr:nth-child(odd) > th {
background-color: #5d6468;
}
.theme-black .tpl-table-black {
color: #fff;
}
.theme-black .tpl-table-black thead > tr > th {
font-size: 14px;
padding: 6px;
border-bottom: 1px solid #666d70;
}
.theme-black .tpl-table-black tbody > tr > td {
font-size: 14px;
padding: 7px 6px;
border-top: 1px solid #666d70;
}
.theme-black .tpl-table-black tfoot > tr > th {
font-size: 14px;
padding: 6px 0;
}
.theme-black .tpl-user-card {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
}
.theme-black .tpl-user-card-title {
font-size: 26px;
margin-top: 0;
font-weight: 300;
margin-top: 25px;
margin-bottom: 10px;
}
.theme-black .achievement-subheading {
font-size: 12px;
margin-top: 0;
margin-bottom: 15px;
}
.theme-black .achievement-image {
border-radius: 50%;
margin-bottom: 22px;
}
.theme-black .achievement-description {
margin: 0;
font-size: 12px;
}
.theme-black .am-progress {
height: 12px;
margin-bottom: 14px;
background: rgba(0, 0, 0, 0.15);
}
.theme-black .am-progress-title {
font-size: 14px;
margin-bottom: 8px;
}
.theme-black .am-progress-title-more {
color: #a1a8ab;
}
.theme-black .widget-fluctuation-tpl-btn {
margin-top: 6px;
display: block;
color: #fff;
font-size: 12px;
padding: 5px 10px;
outline: none;
background-color: rgba(255, 255, 255, 0);
border: 1px solid #fff;
}
.theme-black .widget-fluctuation-tpl-btn:hover {
background: #fff;
color: #4b5357;
}
.theme-black .widget-fluctuation-description-text {
color: #c5cacd;
}
.theme-black .text-success {
color: #08ed72;
}
.theme-black .widget-fluctuation-period-text {
color: #fff;
}
.theme-black .widget-head {
border-bottom: 1px solid #3f4649;
}
.theme-black .widget-function a {
color: #7b878d;
}
.theme-black .widget-function a:hover {
color: #fff;
}
.theme-black .widget {
border: 1px solid #33393c;
border-top: 2px solid #313639;
background: #4b5357;
color: #ffffff;
}
.theme-black .widget-primary {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
padding: 12px 17px;
}
.theme-black .widget-statistic-icon {
position: absolute;
z-index: 30;
right: 30px;
top: 0px;
font-size: 70px;
color: #1b9eca;
}
.theme-black .widget-statistic-description {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
line-height: 14px;
padding-top: 8px;
color: #9cdcf2;
}
.theme-black .widget-statistic-value {
position: relative;
z-index: 35;
font-weight: 300;
display: block;
color: #fff;
font-size: 46px;
line-height: 46px;
margin-bottom: 8px;
}
.theme-black .widget-statistic-header {
color: #9cdcf2;
}
.theme-black .widget-purple {
padding: 12px 17px;
border: 1px solid #5e4578;
border-top: 2px solid #5c4375;
background: #785799;
color: #ffffff;
}
.theme-black .widget-purple .widget-statistic-icon {
color: #8a6aaa;
}
.theme-black .widget-purple .widget-statistic-header {
color: #ded5e7;
}
.theme-black .widget-purple .widget-statistic-description {
color: #ded5e7;
}
.theme-black .page-header-description {
color: #e6e6e6;
}
.theme-black .page-header-heading {
color: #666;
}
.theme-black .container-fluid {
background: #424b4f;
}
.theme-black .page-header-heading {
color: #fff;
}
.theme-black .sidebar-nav-heading {
color: #fff;
}
.theme-black .tpl-sidebar-user-panel {
background: #1f2224;
border-bottom: 1px solid #1f2224;
}
.theme-black .tpl-content-wrapper {
background: #3a4144;
}
.theme-black .tpl-header-fluid {
background: #2f3638;
}
.theme-black .sidebar-nav-link a.active {
background: #232829;
}
.theme-black .sidebar-nav-link a:hover {
background: #232829;
}
.theme-black .tpl-header-switch-button {
background: #2f3638;
border-right: 1px solid #282d2f;
}
.theme-black .tpl-header-switch-button:hover {
background: #282d2f;
color: #fff;
}
.theme-black .tpl-header-navbar a {
color: #cfcfcf;
}
.theme-black .tpl-header-navbar a:hover {
color: #fff;
}
.theme-black .left-sidebar {
padding-top: 56px;
background: #282d2f;
}
.theme-black .widget-color-green {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
}
.theme-black .widget-color-green .widget-head {
border-bottom: 1px solid #147494;
}
.theme-black .widget-color-green .widget-fluctuation-description-text {
color: #bbe7f6;
}
.theme-black .widget-color-green .widget-function a {
color: #42bde5;
}
.theme-black .widget-color-green .widget-function a:hover {
color: #fff;
}
@media screen and (max-width: 1024px) {
.tpl-index-settings-button {
display: none;
}
.theme-black .left-sidebar {
padding-top: 111px;
}
.left-sidebar {
padding-top: 111px;
}
.tpl-content-wrapper {
margin-left: 0;
}
.tpl-header-logo {
float: none;
width: 100%;
}
.tpl-header-navbar-welcome {
display: none;
}
.tpl-sidebar-user-panel {
border-top: 1px solid #eee;
}
.tpl-header-fluid {
border-top: none;
margin-left: 0;
}
.theme-white .tpl-header-fluid {
border-top: none;
}
.theme-black .tpl-sidebar-user-panel {
border-top: 1px solid #1f2224;
}
}
@media screen and (min-width: 641px) {
[class*=am-u-] {
padding-left: 10px;
padding-right: 10px;
}
}
@media screen and (max-width: 641px) {
.theme-white .tpl-error-title,
.theme-black .tpl-error-title {
font-size: 130px;
line-height: 140px;
}
.theme-white .tpl-login-title {
font-size: 20px;
}
.theme-white .tpl-login-content {
width: 86%;
padding: 22px 30px 25px;
}
.tpl-header-search {
display: none;
}
ul.tpl-dropdown-content {
position: fixed;
width: 100%;
left: 0;
top: 112px;
right: 0;
}
}
ul,li {
list-style: none;
padding: 0;
margin: 0;
}
a {
}
header {
z-index: 1200;
position: relative;
}
.tpl-header-logo {
width: 240px;
height: 57px;
display: table;
text-align:center;
position: relative;
z-index: 1300;
a {
display:table-cell;
vertical-align:middle;
}
img {
width:170px;
}
}
.tpl-header-fluid {
margin-left: 240px;
height: 56px;
padding-left: 20px;
padding-right: 20px;
}
.tpl-header-switch-button {
margin-top: 0px;
margin-bottom: 0px;
float: left;
color: #cfcfcf;
margin-left: -20px;
margin-right: 0;
border: 0;
border-radius: 0;
padding: 0px 22px;
font-size: 22px;
line-height: 55px;
&:hover {
outline: none;
}
}
.tpl-header-search-form {
height: 54px;
line-height: 52px;
margin-left: 10px;
}
.tpl-header-search-box , .tpl-header-search-btn {
transition: all 0.4s ease-in-out;
color: #848c90;
background: none;
border: none;
outline: none;
}
.tpl-header-search-box {
font-size: 14px;
&:hover,&:active {
color: #fff;
}
}
.tpl-header-search-btn {
font-size: 15px;
&:hover,&:active {
color: #fff;
}
}
.tpl-header-navbar {
color: #fff;
li {
float: left;
}
a {
line-height: 56px;
display: block;
padding: 0 16px;
position: relative;
&:hover {
}
.item-feed-badge {
position: absolute;
top: 9px;
left: 25px;
}
}
}
ul.tpl-dropdown-content {
padding: 10px;
margin-top: 0;
width: 300px;
background-color: #2f3638;
border: 1px solid #525e62;
border-radius: 0;
li {
float:none;
}
&:before , &:after {
display: none;
}
}
ul.tpl-dropdown-content {
.tpl-dropdown-menu-notifications {
}
.tpl-dropdown-menu-notifications-title {
font-size: 12px;
float: left;
color: rgba(255, 255, 255, 0.7);
}
.tpl-dropdown-menu-notifications-time {
float: right;
text-align: right;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
width: 50px;
margin-left: 10px;
}
.tpl-dropdown-menu-notifications:last-child .tpl-dropdown-menu-notifications-item {
text-align: center;
border: none;
font-size: 12px;
i {
margin-left: -6px;
}
}
.tpl-dropdown-menu-messages:last-child .tpl-dropdown-menu-messages-item {
text-align: center;
border: none;
font-size: 12px;
i {
margin-left: -6px;
}
}
.tpl-dropdown-menu-notifications-item , .tpl-dropdown-menu-messages-item {
padding: 12px;
color: #fff;
line-height: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
&:hover , &:focus {
background-color: #465154;
color: #fff;
}
.menu-messages-ico {
line-height: initial;
float: left;
width: 35px;
height: 35px;
border-radius: 50%;
margin-right: 10px;
margin-top: 6px;
overflow: hidden;
img {
width: 100%;
height: auto;
vertical-align: middle;
}
}
.menu-messages-time {
float: right;
text-align: right;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
width: 40px;
margin-left: 10px;
}
.menu-messages-content {
display: block;
font-size: 13px;
margin-left: 45px;
margin-right: 50px;
.menu-messages-content-title {
}
.menu-messages-content-time {
margin-top: 3px;
color: rgba(255, 255, 255, 0.7);
font-size: 11px;
}
}
}
}
.am-dimmer {
z-index: 1200;
}
.am-modal {
z-index: 1300;
}
.am-datepicker-dropdown {
z-index: 1400;
}
.tpl-skiner {
transition: all 0.4s ease-in-out;
position: fixed;
z-index: 10000;
right: -130px;
top: 65px;
}
.tpl-skiner.active {
right: 0px;
}
.tpl-skiner-content {
background: rgba(0, 0, 0, 0.7);
width: 130px;
padding: 15px;
border-radius: 4px 0 0 4px;
overflow: hidden;
}
.fc-content .am-icon-close {
position: absolute;
right: 0;
top: 0px;
}
.tpl-skiner-toggle {
position: absolute;
top: 5px;
left: -40px;
width: 40px;
color:#969a9b;
font-size: 20px;
height: 40px;
line-height: 40px;
text-align: center;
background: rgba(0, 0, 0, 0.7);
cursor: pointer;
border-top-left-radius: 4px;
border-bottom-left-radius: 4px;
}
.tpl-skiner-content-title {
margin: 0;
margin-bottom: 4px;
padding-bottom: 4px;
font-size: 16px;
text-transform: uppercase;
color:#fff;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.tpl-skiner-content-bar {
padding-top: 10px;
.skiner-color {
transition: all 0.4s ease-in-out;
float: left;
width: 25px;
height: 25px;
margin-right: 10px;
cursor: pointer;
}
.skiner-white {
background: #fff;
border: 2px solid #eee;
}
.skiner-black {
background: #000;
border: 2px solid #222;
}
}
.sub-active {
color:#fff!important;
}
.left-sidebar {
transition: all 0.4s ease-in-out;
width: 240px;
min-height: 100%;
padding-top: 57px;
position: absolute;
z-index: 1104;
top: 0;
left: 0px;
&.xs-active {
left:0px;
}
&.active {
left:-240px;
}
}
.tpl-sidebar-user-panel {
padding: 22px;
padding-top: 28px;
}
.tpl-user-panel-slide-toggleable {
}
.tpl-user-panel-profile-picture {
border-radius: 50%;
width: 82px;
height: 82px;
margin-bottom: 10px;
overflow: hidden;
img {
width: auto;
height: 82px;
vertical-align: middle;
}
}
.tpl-user-panel-status-icon {
margin-right: 2px;
}
.user-panel-logged-in-text {
display: block;
color:#cfcfcf;
font-size: 14px;
}
.tpl-user-panel-action-link {
color: #6d787c;
font-size: 12px;
&:hover {
color: #a2aaad;
}
}
.sidebar-nav {
list-style-type: none;
padding: 0;
margin: 0;
}
.sidebar-nav-sub {
display: none;
.sidebar-nav-link {
font-size: 12px;
padding-left: 30px;
a {
font-size: 12px;
padding-left: 0;
}
}
.sidebar-nav-link-logo {
margin-right: 8px;
width: 20px;
font-size: 16px;
}
}
.sidebar-nav-sub-ico-rotate{
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
-webkit-transition: all 300ms;
transition: all 300ms;
}
.sidebar-nav-link-logo-ico {
margin-top: 5px;
}
.sidebar-nav-heading {
padding: 24px 17px;
font-size: 15px;
font-weight: 500;
}
.sidebar-nav-heading-info {
font-size: 12px;
color:#868E8E;
padding-left: 10px;
}
.sidebar-nav-link-logo {
margin-right: 8px;
width: 20px;
font-size: 16px;
}
.sidebar-nav-link {
color: #fff;
a {
display: block;
color: #868E8E;
padding: 10px 17px;
border-left: #282d2f 3px solid;
font-size: 14px;
cursor: pointer;
&.active {
cursor: pointer;
border-left: #1CA2CE 3px solid;
color: #fff;
}
&:hover {
color: #fff;
}
}
}
.tpl-content-wrapper {
transition: all 0.4s ease-in-out;
position: relative;
margin-left: 240px;
z-index: 1101;
min-height: 922px;
border-bottom-left-radius: 3px;
&.xs-active {
margin-left: 240px;
}
&.active {
margin-left: 0;
}
}
.page-header {
background: #424b4f;
margin-top: 0;
margin-bottom: 0;
padding: 40px 0;
border-bottom: 0;
}
.container-fluid {
margin-top: 0;
margin-bottom: 0;
padding: 40px 0;
border-bottom: 0;
padding-left: 20px;
padding-right: 20px;
}
.row {
margin-right: -10px;
margin-left: -10px;
}
.page-header-description {
margin-top: 4px;
margin-bottom: 0;
font-size: 14px;
color: #e6e6e6;
}
.page-header-heading {
font-size: 20px;
font-weight: 400;
.page-header-heading-ico {
font-size: 28px;
position: relative;
top: 3px;
}
small {
font-weight: normal;
line-height: 1;
color: #B3B3B3;
}
}
.page-header-button {
transition: all 0.4s ease-in-out;
opacity: 0.3;
font-weight: 500;
border-radius: 0;
float: right;
outline: none;
border: 1px solid #fff;
padding: 16px 36px;
font-size: 23px;
line-height: 23px;
border-radius: 0;
padding-top: 14px;
color: #fff;
background-color: rgba(0, 0, 0, 0);
font-weight: 500;
&:hover {
background-color: #ffffff;
color: #333;
opacity: 1;
}
}
.widget {
width: 100%;
min-height: 148px;
margin-bottom: 20px;
border-radius: 0;
position: relative;
}
.widget-head {
width: 100%;
padding: 15px;
}
.widget-title {
font-size: 14px;
}
.widget-function {
}
.widget-fluctuation-period-text {
display: inline-block;
font-size: 16px;
line-height: 20px;
margin-bottom: 9px;
}
.widget-body {
padding: 13px 15px;
width: 100%;
}
.row-content {
padding: 20px;
}
.widget-fluctuation-description-text{
margin-top: 4px;
display: block;
font-size: 12px;
line-height: 13px;
}
.text-success {
}
.widget-fluctuation-tpl-btn {
}
.widget-fluctuation-description-amount {
display: block;
font-size: 20px;
line-height: 22px;
}
.widget-primary {
}
.widget-statistic-header {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
text-transform: uppercase;
margin-bottom: 8px;
}
.widget-body-md {
height: 200px;
}
.widget-body-lg {
min-height: 330px;
// height: 330px;
}
.widget-margin-bottom-lg {
margin-bottom: 20px;
}
.tpl-table-black-operation {
}
.tpl-table-black-operation {
a {
display: inline-block;
padding: 5px 6px;
font-size: 12px;
line-height: 12px;
}
}
.tpl-switch input[type="checkbox"] {
position: absolute;
opacity: 0;
width: 50px;
height: 20px;
}
.tpl-switch input[type="checkbox"].ios-switch + div {
vertical-align: middle;
width: 40px;
height: 20px;
border-radius: 999px;
background-color: rgba(0, 0, 0, 0.1);
-webkit-transition-duration: .4s;
-webkit-transition-property: background-color, box-shadow;
margin-top: 6px;
}
.tpl-switch input[type="checkbox"].ios-switch:checked + div {
width: 40px;
background-position: 0 0;
background-color: #36c6d3;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch + div {
width: 34px;
height: 18px;
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch + div {
width: 50px;
height: 25px;
}
.tpl-switch input[type="checkbox"].green.ios-switch:checked + div {
background-color: #00e359;
border: 1px solid rgba(0, 162, 63, 1);
box-shadow: inset 0 0 0 10px rgba(0, 227, 89, 1);
}
.tpl-switch input[type="checkbox"].ios-switch + div > div {
float: left;
width: 18px;
height: 18px;
border-radius: inherit;
background: #ffffff;
-webkit-transition-timing-function: cubic-bezier(.54, 1.85, .5, 1);
-webkit-transition-duration: 0.4s;
-webkit-transition-property: transform, background-color, box-shadow;
-moz-transition-timing-function: cubic-bezier(.54, 1.85, .5, 1);
-moz-transition-duration: 0.4s;
-moz-transition-property: transform, background-color;
pointer-events: none;
margin-top: 1px;
margin-left: 1px;
}
.tpl-switch input[type="checkbox"].ios-switch:checked + div > div {
-webkit-transform: translate3d(20px, 0, 0);
-moz-transform: translate3d(20px, 0, 0);
background-color: #ffffff;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch + div > div {
width: 16px;
height: 16px;
margin-top: 1px;
}
.tpl-switch input[type="checkbox"].tinyswitch.ios-switch:checked + div > div {
-webkit-transform: translate3d(16px, 0, 0);
-moz-transform: translate3d(16px, 0, 0);
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0px 0px 0 1px rgba(8, 80, 172, 1);
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch + div > div {
width: 23px;
height: 23px;
margin-top: 1px;
}
.tpl-switch input[type="checkbox"].bigswitch.ios-switch:checked + div > div {
-webkit-transform: translate3d(25px, 0, 0);
-moz-transform: translate3d(16px, 0, 0);
}
.tpl-switch input[type="checkbox"].green.ios-switch:checked + div > div {
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 162, 63, 1);
}
.tpl-page-state {
width: 100%;
}
.tpl-page-state-title {
font-size: 40px;
font-weight: bold;
}
.tpl-page-state-content {
padding: 10px 0;
}
.tpl-login {
width: 100%;
}
.tpl-login-logo {
max-width: 159px;
height: 205px;
margin: 0 auto;
margin-bottom: 20px;
}
.tpl-login-title {
width: 100%;
font-size: 24px;
}
.tpl-login-content {
width: 300px;
margin: 12% auto 0;
}
.tpl-login-remember-me {
color: #B3B3B3;
font-size: 14px;
label {
position: relative;
top: -2px;
}
}
.tpl-login-content-info {
color: #B3B3B3;
font-size: 14px;
}
.tpl-pagination {
}
.cl-p {
padding: 0!important;
}
.tpl-table-line-img {
max-width: 100px;
padding: 2px;
}
.tpl-table-list-select {
text-align:right;
}
.fc-button-group, .fc button {
display: block;
}
.theme-white {
.sidebar-nav-sub {
.sidebar-nav-link-logo {
margin-left: 10px;
}
}
.tpl-header-search-box:hover, .tpl-header-search-box:active
.tpl-error-title {
color: #848c90;
}
.tpl-error-title-info {
line-height: 30px;
font-size: 21px;
margin-top: 20px;
text-align: center;
color: #dce2ec;
}
.tpl-error-btn {
background: #03a9f3;
border: 1px solid #03a9f3;
border-radius: 30px;
padding: 6px 20px 8px;
}
.tpl-error-content {
margin-top: 20px;
margin-bottom: 20px;
font-size: 16px;
text-align: center;
color: #96a2b4;
}
.tpl-calendar-box {
background: #fff;
border-radius: 4px;
padding: 20px;
.fc-event {
border-radius: 0;
background: #03a9f3;
border: 1px solid #14b0f6;
}
.fc-axis {
color: #868E8E;
}
.fc-unthemed .fc-today {
background: #eee;
}
.fc-more {
color: #868E8E;
}
.fc th.fc-widget-header {
background: #32c5d2!important;
color: #ffffff;
font-size: 14px;
line-height: 20px;
padding: 7px 0px;
text-transform: uppercase;
border:none!important;
a {
color: #fff;
}
}
.fc-center {
h2 {
color:#868E8E;
}
}
.fc-state-default {
background-image: none;
background: #fff;
font-size: 14px;
color: #868E8E;
}
.fc th, .fc td, .fc hr, .fc thead, .fc tbody, .fc-row {
// background: rgba(0, 0, 0, 0)!important;
border-color: #eee!important;
}
.fc-day-number {
color: #868E8E;
padding-right: 6px;
}
.fc th {
color: #868E8E;
font-weight: normal;
font-size: 14px;
padding: 6px 0;
}
}
.tpl-login-logo {
background: url(../img/logoa.png) center no-repeat;
}
.sub-active {
color:#23abf0!important;
}
.tpl-table-line-img {
border: 1px solid #ddd;
}
.tpl-pagination .am-disabled a , .tpl-pagination li a {
color: #23abf0;
border-radius: 3px;
padding: 6px 12px;
}
.tpl-pagination .am-active a{
background: #23abf0;color: #fff;
border: 1px solid #23abf0;
padding: 6px 12px;
}
.tpl-login-btn {
background-color:#32c5d2;
border: none;
padding: 10px 16px;
font-size: 14px;
line-height: 14px;
outline: none;
&:hover,&:active {
background: #22b2e1;
color:#fff;
}
}
.tpl-login-title {
color: #697882;
strong {
color: #39bae4;
}
}
.tpl-login-content{
width: 500px;
padding: 40px 40px 25px;
background-color: #fff;
border-radius: 4px;
}
.tpl-form-line-form , .tpl-form-border-form {
padding-top: 20px;
}
.tpl-form-border-form input[type=number]:focus, .tpl-form-border-form input[type=search]:focus, .tpl-form-border-form input[type=text]:focus, .tpl-form-border-form input[type=password]:focus, .tpl-form-border-form input[type=datetime]:focus, .tpl-form-border-form input[type=datetime-local]:focus, .tpl-form-border-form input[type=date]:focus, .tpl-form-border-form input[type=month]:focus, .tpl-form-border-form input[type=time]:focus, .tpl-form-border-form input[type=week]:focus, .tpl-form-border-form input[type=email]:focus, .tpl-form-border-form input[type=url]:focus, .tpl-form-border-form input[type=tel]:focus, .tpl-form-border-form input[type=color]:focus, .tpl-form-border-form select:focus, .tpl-form-border-form textarea:focus, .am-form-field:focus{
-webkit-box-shadow: none;
box-shadow: none;
}
.tpl-form-border-form input[type=number], .tpl-form-border-form input[type=search], .tpl-form-border-form input[type=text], .tpl-form-border-form input[type=password], .tpl-form-border-form input[type=datetime], .tpl-form-border-form input[type=datetime-local], .tpl-form-border-form input[type=date], .tpl-form-border-form input[type=month], .tpl-form-border-form input[type=time], .tpl-form-border-form input[type=week], .tpl-form-border-form input[type=email], .tpl-form-border-form input[type=url], .tpl-form-border-form input[type=tel], .tpl-form-border-form input[type=color], .tpl-form-border-form select, .tpl-form-border-form textarea, .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border: 1px solid #c2cad8;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
text-indent: .5em;
-o-border-radius: 0;
border-radius: 0;
color: #555;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.tpl-form-border-form .am-checkbox, .tpl-form-border-form .am-checkbox-inline, .tpl-form-border-form .am-form-label, .tpl-form-border-form .am-radio, .tpl-form-border-form .am-radio-inline{
margin-top: 0;
margin-bottom: 0;
}
.tpl-form-border-form .am-form-group:after {
clear: both;
}
.tpl-form-border-form .am-form-group:after, .tpl-form-border-form .am-form-group:before {
content: " ";
display: table;
}
.tpl-form-border-form .am-form-label{
padding-top: 5px;
font-size: 16px;
color: #888;
font-weight: inherit;
text-align: right;
}
.tpl-form-border-form .am-form-group {
/*padding: 20px 0;*/
}
.tpl-form-border-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.tpl-form-line-form input[type=number]:focus, .tpl-form-line-form input[type=search]:focus, .tpl-form-line-form input[type=text]:focus, .tpl-form-line-form input[type=password]:focus, .tpl-form-line-form input[type=datetime]:focus, .tpl-form-line-form input[type=datetime-local]:focus, .tpl-form-line-form input[type=date]:focus, .tpl-form-line-form input[type=month]:focus, .tpl-form-line-form input[type=time]:focus, .tpl-form-line-form input[type=week]:focus, .tpl-form-line-form input[type=email]:focus, .tpl-form-line-form input[type=url]:focus, .tpl-form-line-form input[type=tel]:focus, .tpl-form-line-form input[type=color]:focus, .tpl-form-line-form select:focus, .tpl-form-line-form textarea:focus, .am-form-field:focus{
-webkit-box-shadow: none;
box-shadow: none;
}
.tpl-form-line-form input[type=number], .tpl-form-line-form input[type=search], .tpl-form-line-form input[type=text], .tpl-form-line-form input[type=password], .tpl-form-line-form input[type=datetime], .tpl-form-line-form input[type=datetime-local], .tpl-form-line-form input[type=date], .tpl-form-line-form input[type=month], .tpl-form-line-form input[type=time], .tpl-form-line-form input[type=week], .tpl-form-line-form input[type=email], .tpl-form-line-form input[type=url], .tpl-form-line-form input[type=tel], .tpl-form-line-form input[type=color], .tpl-form-line-form select, .tpl-form-line-form textarea, .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border-bottom: 1px solid #c2cad8;
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #555;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.tpl-form-line-form .am-checkbox, .tpl-form-line-form .am-checkbox-inline, .tpl-form-line-form .am-form-label, .tpl-form-line-form .am-radio, .tpl-form-line-form .am-radio-inline{
margin-top: 0;
margin-bottom: 0;
}
.tpl-form-line-form .am-form-group:after {
clear: both;
}
.tpl-form-line-form .am-form-group:after, .tpl-form-line-form .am-form-group:before {
content: " ";
display: table;
}
.tpl-form-line-form .am-form-label{
padding-top: 5px;
font-size: 16px;
color: #888;
font-weight: inherit;
text-align: right;
}
.tpl-form-line-form .am-form-group {
/*padding: 20px 0;*/
}
.tpl-form-line-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.tpl-table-black-operation {
a {
border: 1px solid #36c6d3;
color:#36c6d3;
&:hover {
background: #36c6d3;
color:#fff;
}
}
a.tpl-table-black-operation-del {
border: 1px solid #e7505a;
color:#e7505a;
&:hover {
background: #e7505a;
color:#fff;
}
}
}
.tpl-amendment-echarts {
left: -17px;
}
.tpl-user-card {
border: 1px solid #3598dc;
border-top: 2px solid #3598dc;
background: #3598dc;
color: #ffffff;
border-radius: 4px;
}
.tpl-user-card-title {
font-size: 26px;
margin-top: 0;
font-weight: 300;
margin-top: 25px;
margin-bottom: 10px;
}
.achievement-subheading {
font-size: 12px;
margin-top: 0;
margin-bottom: 15px;
}
.achievement-image {
border-radius: 50%;
margin-bottom: 22px;
}
.achievement-description {
margin: 0;
font-size: 12px;
}
.tpl-table-black {
color: #838FA1;
thead>tr>th {
font-size: 14px;
padding: 6px;
}
tbody>tr>td {
font-size: 14px;
padding: 7px 6px;
}
tfoot>tr>th {
font-size: 14px;
padding: 6px 0;
}
}
.am-progress {
height: 12px;
}
.am-progress-title {
font-size: 14px;
margin-bottom: 8px;
}
.am-progress-title-more {
}
.widget-fluctuation-tpl-btn {
margin-top: 6px;
display: block;
color: #fff;
font-size: 12px;
padding: 8px 14px;
outline: none;
background-color: #e7505a;
border: 1px solid #e7505a;
&:hover {
background:transparent;
color:#e7505a;
}
}
.widget-fluctuation-description-text{
color: #c5cacd;
}
background: #e9ecf3;
.widget-fluctuation-period-text {
color:#838FA1;
}
.text-success {
color: #5eb95e;
}
.widget-head {
border-bottom: 1px solid #eef1f5;
}
.widget-function {
a {
color: #838FA1;
&:hover {
color:#a7bdcd;
}
}
}
.widget {
padding: 10px 20px 13px;
background-color: #fff;
border-radius: 4px;
color: #838FA1;
}
.widget-title {
font-size: 16px;
}
.widget-primary {
min-height: 174px;
border: 1px solid #32c5d2;
border-top: 2px solid #32c5d2;
background: #32c5d2;
color: #ffffff;
padding: 12px 17px;
padding-left: 22px;
}
.widget-statistic-body {
}
.widget-statistic-icon {
position: absolute;
z-index: 30;
right: 30px;
top: 24px;
font-size: 70px;
color: #46cad6;
}
.widget-statistic-description {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
line-height: 14px;
padding-top: 8px;
color: #fff;
}
.widget-statistic-value {
position: relative;
z-index: 35;
font-weight: 300;
display: block;
color: #fff;
font-size: 46px;
line-height: 46px;
margin-bottom: 8px;
}
.widget-statistic-header {
padding-top: 18px;
color: #fff;
}
.widget-purple {
padding: 12px 17px;
border: 1px solid #8E44AD;
border-top: 2px solid #8E44AD;
background: #8E44AD;
color: #ffffff;
min-height: 174px;
.widget-statistic-icon {
color: #9956b5;
}
.widget-statistic-header {
color: #ded5e7;
}
.widget-statistic-description {
color: #ded5e7;
}
}
.page-header-button {
opacity: .8;
border: 1px solid #32c5d2;
background: #32c5d2;
color:#fff;
&:hover {
opacity: 1;
}
}
.page-header-description {
color: #666;
}
.page-header-heading {
color: #666;
}
.container-fluid {
}
ul.tpl-dropdown-content .tpl-dropdown-menu-messages-item .menu-messages-content .menu-messages-content-time {
color: #96a5aa;
}
ul.tpl-dropdown-content {
background: #fff;
border: 1px solid #ddd;
.tpl-dropdown-menu-notifications-item , .tpl-dropdown-menu-messages-item {
border-bottom: 1px solid #eee;
color:#999;
&:hover{
background-color: #f5f5f5;
}
.tpl-dropdown-menu-notifications-time {
color: #999;
}
}
.tpl-dropdown-menu-messages-item:hover {
background-color: #f5f5f5;
}
.tpl-dropdown-menu-notifications-title {
color:#999;
}
}
.sidebar-nav-link {
a {
border-left: #fff 3px solid;
}
a:hover {
background: #f2f6f9;
color: #868E8E;
border-left: #3bb4f2 3px solid;
}
}
.sidebar-nav-link a.active {
background: #f2f6f9;
color: #868E8E;
border-left: #3bb4f2 3px solid;
}
.sidebar-nav-heading {
color: #999;
border-bottom: 1px solid #eee;
}
.tpl-sidebar-user-panel {
background: #fff;
border-bottom: 1px solid #eee;
}
.tpl-content-wrapper {
background: #e9ecf3;
}
.tpl-header-fluid {
background: #fff;
border-top: 1px solid #eee;
}
.tpl-header-logo {
background: #fff;
border-bottom: 1px solid #eee;
}
.tpl-header-switch-button {
background: #fff;
border-right: 1px solid #eee;
border-left: 1px solid #eee;
&:hover {
background: #fff;
color: #999;
}
}
.tpl-header-navbar {
a {
color:#999;
&:hover {
color: #999;
}
}
}
.left-sidebar {
background: #fff;
}
.widget-color-green {
border: 1px solid #32c5d2;
border-top: 2px solid #32c5d2;
background: #32c5d2;
color: #ffffff;
.widget-fluctuation-period-text {
color:#fff;
}
.widget-head {
border-bottom: 1px solid #2bb8c4;
}
.widget-fluctuation-description-text {
color:#bbe7f6;
}
.widget-function {
a {
color:#42bde5;
&:hover {
color: #fff;
}
}
}
}
}
.theme-black {
.tpl-am-model-bd {
background: #424b4f;
}
.tpl-model-dialog {
background: #424b4f;
}
.tpl-error-title {
font-size: 210px;
line-height: 220px;
color: #868E8E;
}
.tpl-error-title-info {
line-height: 30px;
font-size: 21px;
margin-top: 20px;
text-align: center;
color: #868E8E;
}
.tpl-error-btn {
background: #03a9f3;
border: 1px solid #03a9f3;
border-radius: 30px;
padding: 6px 20px 8px;
}
.tpl-error-content {
margin-top: 20px;
margin-bottom: 20px;
font-size: 16px;
text-align: center;
color: #cfcfcf;
}
.tpl-calendar-box {
background: #424b4f;
padding: 20px;
.fc-button {
border-radius: 0;
box-shadow:0;
}
.fc-event {
border-radius: 0;
background: #03a9f3;
}
.fc-axis {
color: #fff;
}
.fc-unthemed .fc-today {
background: #3a4144;
}
.fc-more {
color: #fff;
}
.fc th.fc-widget-header {
background: #9675ce!important;
color: #ffffff;
font-size: 14px;
line-height: 20px;
padding: 7px 0px;
text-transform: uppercase;
border:none!important;
a {
color: #fff;
}
}
.fc-center {
h2 {
color:#fff;
}
}
.fc-state-default {
background-image: none;
background: #fff;
font-size: 14px;
}
.fc th, .fc td, .fc hr, .fc thead, .fc tbody, .fc-row {
// background: rgba(0, 0, 0, 0)!important;
border-color: rgba(120, 130, 140, 0.4) !important;
}
.fc-day-number {
color: #868E8E;
padding-right: 6px;
}
.fc th {
color: #868E8E;
font-weight: normal;
font-size: 14px;
padding: 6px 0;
}
}
.tpl-login-logo {
background: url(../img/logob.png) center no-repeat;
}
.tpl-table-line-img {
max-width: 100px;
padding: 2px;
border: none;
}
.tpl-table-list-field {
border: none;
}
.tpl-table-list-select {
.am-dropdown-content {
color:#888;
}
.am-selected-btn {
border:1px solid rgba(255, 255, 255, 0.2);
color:#fff;
}
.am-btn-default.am-active, .am-btn-default:active, .am-dropdown.am-active .am-btn-default.am-dropdown-toggle {
border:1px solid rgba(255, 255, 255, 0.2);
color:#fff;
background: #5d6468;
}
}
.tpl-pagination .am-disabled a , .tpl-pagination li a {
color: #fff;
padding: 6px 12px;
background: #3f4649;
border: none;
}
.tpl-pagination .am-active a{
background: #167fa1;color: #fff;
border: 1px solid #167fa1;
padding: 6px 12px;
}
.tpl-login-btn {
border: 1px solid #b5b5b5;
background-color: rgba(0, 0, 0, 0);
padding: 10px 16px;
font-size: 14px;
line-height: 14px;
color:#b5b5b5;
&:hover,&:active {
background: #b5b5b5;
color:#fff;
}
}
.tpl-login-title {
color:#fff;
strong {
color: #39bae4;
}
}
.tpl-form-line-form , .tpl-form-border-form {
padding-top: 20px;
.am-btn-default {
color:#fff;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.am-selected-text {
color:#888;
}
}
.tpl-form-border-form input[type=number]:focus, .tpl-form-border-form input[type=search]:focus, .tpl-form-border-form input[type=text]:focus, .tpl-form-border-form input[type=password]:focus, .tpl-form-border-form input[type=datetime]:focus, .tpl-form-border-form input[type=datetime-local]:focus, .tpl-form-border-form input[type=date]:focus, .tpl-form-border-form input[type=month]:focus, .tpl-form-border-form input[type=time]:focus, .tpl-form-border-form input[type=week]:focus, .tpl-form-border-form input[type=email]:focus, .tpl-form-border-form input[type=url]:focus, .tpl-form-border-form input[type=tel]:focus, .tpl-form-border-form input[type=color]:focus, .tpl-form-border-form select:focus, .tpl-form-border-form textarea:focus, .am-form-field:focus{
-webkit-box-shadow: none;
box-shadow: none;
}
.tpl-form-border-form input[type=number], .tpl-form-border-form input[type=search], .tpl-form-border-form input[type=text], .tpl-form-border-form input[type=password], .tpl-form-border-form input[type=datetime], .tpl-form-border-form input[type=datetime-local], .tpl-form-border-form input[type=date], .tpl-form-border-form input[type=month], .tpl-form-border-form input[type=time], .tpl-form-border-form input[type=week], .tpl-form-border-form input[type=email], .tpl-form-border-form input[type=url], .tpl-form-border-form input[type=tel], .tpl-form-border-form input[type=color], .tpl-form-border-form select, .tpl-form-border-form textarea, .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
text-indent: .5em;
border: 1px solid rgba(255, 255, 255, 0.2);
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #fff;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.tpl-form-border-form .am-checkbox, .tpl-form-border-form .am-checkbox-inline, .tpl-form-border-form .am-form-label, .tpl-form-border-form .am-radio, .tpl-form-border-form .am-radio-inline{
margin-top: 0;
margin-bottom: 0;
}
.tpl-form-border-form .am-form-group:after {
clear: both;
}
.tpl-form-border-form .am-form-group:after, .tpl-form-border-form .am-form-group:before {
content: " ";
display: table;
}
.tpl-form-border-form .am-form-label{
padding-top: 5px;
font-size: 16px;
color: #fff;
font-weight: inherit;
text-align: right;
}
.tpl-form-border-form .am-form-group {
/*padding: 20px 0;*/
}
.tpl-form-border-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
.tpl-form-line-form input[type=number]:focus, .tpl-form-line-form input[type=search]:focus, .tpl-form-line-form input[type=text]:focus, .tpl-form-line-form input[type=password]:focus, .tpl-form-line-form input[type=datetime]:focus, .tpl-form-line-form input[type=datetime-local]:focus, .tpl-form-line-form input[type=date]:focus, .tpl-form-line-form input[type=month]:focus, .tpl-form-line-form input[type=time]:focus, .tpl-form-line-form input[type=week]:focus, .tpl-form-line-form input[type=email]:focus, .tpl-form-line-form input[type=url]:focus, .tpl-form-line-form input[type=tel]:focus, .tpl-form-line-form input[type=color]:focus, .tpl-form-line-form select:focus, .tpl-form-line-form textarea:focus, .am-form-field:focus{
-webkit-box-shadow: none;
box-shadow: none;
}
.tpl-form-line-form input[type=number], .tpl-form-line-form input[type=search], .tpl-form-line-form input[type=text], .tpl-form-line-form input[type=password], .tpl-form-line-form input[type=datetime], .tpl-form-line-form input[type=datetime-local], .tpl-form-line-form input[type=date], .tpl-form-line-form input[type=month], .tpl-form-line-form input[type=time], .tpl-form-line-form input[type=week], .tpl-form-line-form input[type=email], .tpl-form-line-form input[type=url], .tpl-form-line-form input[type=tel], .tpl-form-line-form input[type=color], .tpl-form-line-form select, .tpl-form-line-form textarea, .am-form-field {
display: block;
width: 100%;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857;
color: #4d6b8a;
background-color: #fff;
background-image: none;
border: 1px solid #c2cad8;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
-webkit-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
-o-transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
transition: border-color ease-in-out 0.15s,box-shadow ease-in-out 0.15s;
background: 0 0;
border: 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
-webkit-border-radius: 0;
-moz-border-radius: 0;
-ms-border-radius: 0;
-o-border-radius: 0;
border-radius: 0;
color: #fff;
box-shadow: none;
padding-left: 0;
padding-right: 0;
font-size: 14px;
}
.tpl-form-line-form .am-checkbox, .tpl-form-line-form .am-checkbox-inline, .tpl-form-line-form .am-form-label, .tpl-form-line-form .am-radio, .tpl-form-line-form .am-radio-inline{
margin-top: 0;
margin-bottom: 0;
}
.tpl-form-line-form .am-form-group:after {
clear: both;
}
.tpl-form-line-form .am-form-group:after, .tpl-form-line-form .am-form-group:before {
content: " ";
display: table;
}
.tpl-form-line-form .am-form-label{
padding-top: 5px;
font-size: 16px;
color: #fff;
font-weight: inherit;
text-align: right;
}
.tpl-form-line-form .am-form-group {
/*padding: 20px 0;*/
}
.tpl-form-line-form .am-form-label .tpl-form-line-small-title {
color: #999;
font-size: 12px;
}
background-color: #282d2f;
.tpl-table-black-operation {
a {
border: 1px solid #7b878d;
color:#7b878d;
&:hover {
background: #7b878d;
color:#fff;
}
}
a.tpl-table-black-operation-del {
border: 1px solid #f35842;
color:#f35842;
&:hover {
background: #f35842;
color:#fff;
}
}
}
.am-table-bordered {
border: 1px solid #666d70;
}
.am-table-bordered>tbody>tr>td, .am-table-bordered>tbody>tr>th, .am-table-bordered>tfoot>tr>td, .am-table-bordered>tfoot>tr>th, .am-table-bordered>thead>tr>td, .am-table-bordered>thead>tr>th {
border: 1px solid #666d70;
}
.am-table-bordered>thead+tbody>tr:first-child>td, .am-table-bordered>thead+tbody>tr:first-child>th {
border: 1px solid #666d70;
}
.am-table-striped>tbody>tr:nth-child(odd)>td, .am-table-striped>tbody>tr:nth-child(odd)>th {
background-color: #5d6468;
}
.tpl-table-black {
color:#fff;
thead>tr>th {
font-size: 14px;
padding: 6px;
border-bottom: 1px solid #666d70;
}
tbody>tr>td {
font-size: 14px;
padding: 7px 6px;
border-top: 1px solid #666d70;
}
tfoot>tr>th {
font-size: 14px;
padding: 6px 0;
}
}
.tpl-user-card {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
}
.tpl-user-card-title {
font-size: 26px;
margin-top: 0;
font-weight: 300;
margin-top: 25px;
margin-bottom: 10px;
}
.achievement-subheading {
font-size: 12px;
margin-top: 0;
margin-bottom: 15px;
}
.achievement-image {
border-radius: 50%;
margin-bottom: 22px;
}
.achievement-description {
margin: 0;
font-size: 12px;
}
.am-progress {
height: 12px;
margin-bottom: 14px;
background: rgba(0, 0, 0, 0.15);
}
.am-progress-title {
font-size: 14px;
margin-bottom: 8px;
}
.am-progress-title-more {
color: #a1a8ab;
}
.widget-fluctuation-tpl-btn {
margin-top: 6px;
display: block;
color: #fff;
font-size: 12px;
padding: 5px 10px;
outline: none;
background-color: rgba(255, 255, 255, 0);
border: 1px solid #fff;
&:hover {
background: #fff;
color:#4b5357;
}
}
.widget-fluctuation-description-text{
color: #c5cacd;
}
.text-success {
color: #08ed72;
}
.widget-fluctuation-period-text {
color:#fff;
}
.widget-head {
border-bottom: 1px solid #3f4649;
}
.widget-function {
a {
color:#7b878d;
&:hover {
color:#fff;
}
}
}
.widget {
border: 1px solid #33393c;
border-top: 2px solid #313639;
background: #4b5357;
color: #ffffff;
}
.widget-primary {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
padding: 12px 17px;
}
.widget-statistic-body {
}
.widget-statistic-icon {
position: absolute;
z-index: 30;
right: 30px;
top: 0px;
font-size: 70px;
color: #1b9eca;
}
.widget-statistic-description {
position: relative;
z-index: 35;
display: block;
font-size: 14px;
line-height: 14px;
padding-top: 8px;
color: #9cdcf2;
}
.widget-statistic-value {
position: relative;
z-index: 35;
font-weight: 300;
display: block;
color: #fff;
font-size: 46px;
line-height: 46px;
margin-bottom: 8px;
}
.widget-statistic-header {
color: #9cdcf2;
}
.widget-purple {
padding: 12px 17px;
border: 1px solid #5e4578;
border-top: 2px solid #5c4375;
background: #785799;
color: #ffffff;
.widget-statistic-icon {
color: #8a6aaa;
}
.widget-statistic-header {
color: #ded5e7;
}
.widget-statistic-description {
color: #ded5e7;
}
}
.page-header-description {
color: #e6e6e6;
}
.page-header-heading {
color: #666;
}
.container-fluid {
background: #424b4f;
}
.page-header-heading {
color: #fff;
}
.sidebar-nav-heading {
color:#fff;
}
.tpl-sidebar-user-panel {
background: #1f2224;
border-bottom: 1px solid #1f2224;
}
.tpl-content-wrapper {
background: #3a4144;
}
.tpl-header-fluid {
background: #2f3638;
}
.sidebar-nav-link {
a.active {
background: #232829;
}
a:hover {
background: #232829;
}
}
.tpl-header-switch-button {
background: #2f3638;
border-right: 1px solid #282d2f;
&:hover {
background: #282d2f;
color: #fff;
}
}
.tpl-header-navbar {
a {
color:#cfcfcf;
&:hover {
color: #fff;
}
}
}
.left-sidebar {
padding-top: 56px;
background: #282d2f;
}
.widget-color-green {
border: 1px solid #11627d;
border-top: 2px solid #105f79;
background: #1786aa;
color: #ffffff;
.widget-head {
border-bottom: 1px solid #147494;
}
.widget-fluctuation-description-text {
color:#bbe7f6;
}
.widget-function {
a {
color:#42bde5;
&:hover {
color: #fff;
}
}
}
}
}
@media screen and (max-width: 1024px) {
.tpl-index-settings-button {
display: none;
}
.theme-black .left-sidebar {
padding-top: 111px;
}
.left-sidebar {
padding-top: 111px;
}
.tpl-content-wrapper {
margin-left: 0
}
.tpl-header-logo {
float:none;
width: 100%;
}
.tpl-header-navbar-welcome {
display: none;
}
.tpl-sidebar-user-panel {
border-top: 1px solid #eee;
}
.tpl-header-fluid {
border-top: none;
margin-left: 0;
}
.theme-white .tpl-header-fluid {
border-top: none;
}
.theme-black .tpl-sidebar-user-panel {
border-top: 1px solid #1f2224;
}
}
@media screen and (min-width: 641px) {
[class*=am-u-] {
padding-left: 10px;
padding-right: 10px;
}
}
@media screen and (max-width: 641px) {
.theme-white , .theme-black {
.tpl-error-title {
font-size: 130px;
line-height: 140px;
}
}
.theme-white {
.tpl-login-title {
font-size: 20px;
}
.tpl-login-content{
width: 86%;
padding: 22px 30px 25px;
}
}
.tpl-header-search {
display: none;
}
ul.tpl-dropdown-content {
position: fixed;
width: 100%;
left: 0;
top: 112px;
right: 0;
}
}
\ No newline at end of file
/*!
* FullCalendar v0.0.0 Stylesheet
* Docs & License: http://fullcalendar.io/
* (c) 2016 Adam Shaw
*/.fc-icon,body .fc{font-size:1em}.fc-button-group,.fc-icon{display:inline-block}.fc-bg,.fc-row .fc-bgevent-skeleton,.fc-row .fc-highlight-skeleton{bottom:0}.fc-icon,.fc-unselectable{-khtml-user-select:none;-webkit-touch-callout:none}.fc{direction:ltr;text-align:left}.fc-rtl{text-align:right}.fc th,.fc-basic-view td.fc-week-number,.fc-icon,.fc-toolbar{text-align:center}.fc-unthemed .fc-content,.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-list-view,.fc-unthemed .fc-popover,.fc-unthemed .fc-row,.fc-unthemed tbody,.fc-unthemed td,.fc-unthemed th,.fc-unthemed thead{border-color:#ddd}.fc-unthemed .fc-popover{background-color:#fff}.fc-unthemed .fc-divider,.fc-unthemed .fc-list-heading td,.fc-unthemed .fc-popover .fc-header{background:#eee}.fc-unthemed .fc-popover .fc-header .fc-close{color:#666}.fc-unthemed .fc-today{background:#fcf8e3}.fc-highlight{background:#bce8f1;opacity:.3}.fc-bgevent{background:#8fdf82;opacity:.3}.fc-nonbusiness{background:#d7d7d7}.fc-icon{height:1em;line-height:1em;overflow:hidden;font-family:"Courier New",Courier,monospace;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.fc-icon:after{position:relative}.fc-icon-left-single-arrow:after{content:"\02039";font-weight:700;font-size:200%;top:-7%}.fc-icon-right-single-arrow:after{content:"\0203A";font-weight:700;font-size:200%;top:-7%}.fc-icon-left-double-arrow:after{content:"\000AB";font-size:160%;top:-7%}.fc-icon-right-double-arrow:after{content:"\000BB";font-size:160%;top:-7%}.fc-icon-left-triangle:after{content:"\25C4";font-size:125%;top:3%}.fc-icon-right-triangle:after{content:"\25BA";font-size:125%;top:3%}.fc-icon-down-triangle:after{content:"\25BC";font-size:125%;top:2%}.fc-icon-x:after{content:"\000D7";font-size:200%;top:6%}.fc button{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;height:2.1em;padding:0 .6em;font-size:1em;white-space:nowrap;cursor:pointer}.fc button::-moz-focus-inner{margin:0;padding:0}.fc-state-default{border:1px solid;background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.fc-state-default.fc-corner-left{border-top-left-radius:4px;border-bottom-left-radius:4px}.fc-state-default.fc-corner-right{border-top-right-radius:4px;border-bottom-right-radius:4px}.fc button .fc-icon{position:relative;top:-.05em;margin:0 .2em;vertical-align:middle}.fc-state-active,.fc-state-disabled,.fc-state-down,.fc-state-hover{color:#333;background-color:#e6e6e6}.fc-state-hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.fc-state-active,.fc-state-down{background-color:#ccc;background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.fc-state-disabled{cursor:default;background-image:none;opacity:.65;box-shadow:none}.fc-event.fc-draggable,.fc-event[href],.fc-popover .fc-header .fc-close,a[data-goto]{cursor:pointer}.fc .fc-button-group>*{float:left;margin:0 0 0 -1px}.fc .fc-button-group>:first-child{margin-left:0}.fc-popover{position:absolute;box-shadow:0 2px 6px rgba(0,0,0,.15)}.fc-popover .fc-header{padding:2px 4px}.fc-popover .fc-header .fc-title{margin:0 2px}.fc-ltr .fc-popover .fc-header .fc-title,.fc-rtl .fc-popover .fc-header .fc-close{float:left}.fc-ltr .fc-popover .fc-header .fc-close,.fc-rtl .fc-popover .fc-header .fc-title{float:right}.fc-unthemed .fc-popover{border-width:1px;border-style:solid}.fc-unthemed .fc-popover .fc-header .fc-close{font-size:.9em;margin-top:2px}.fc-popover>.ui-widget-header+.ui-widget-content{border-top:0}.fc-divider{border-style:solid;border-width:1px}hr.fc-divider{height:0;margin:0;padding:0 0 2px;border-width:1px 0}.fc-bg table,.fc-row .fc-bgevent-skeleton table,.fc-row .fc-highlight-skeleton table{height:100%}.fc-clear{clear:both}.fc-bg,.fc-bgevent-skeleton,.fc-helper-skeleton,.fc-highlight-skeleton{position:absolute;top:0;left:0;right:0}.fc table{width:100%;box-sizing:border-box;table-layout:fixed;border-collapse:collapse;border-spacing:0;font-size:1em}.fc td,.fc th{border-style:solid;border-width:1px;padding:0;vertical-align:top}.fc td.fc-today{border-style:double}a[data-goto]:hover{text-decoration:underline}.fc .fc-row{border-style:solid;border-width:0}.fc-row table{border-left:0 hidden transparent;border-right:0 hidden transparent;border-bottom:0 hidden transparent}.fc-row:first-child table{border-top:0 hidden transparent}.fc-row{position:relative}.fc-row .fc-bg{z-index:1}.fc-row .fc-bgevent-skeleton td,.fc-row .fc-highlight-skeleton td{border-color:transparent}.fc-row .fc-bgevent-skeleton{z-index:2}.fc-row .fc-highlight-skeleton{z-index:3}.fc-row .fc-content-skeleton{position:relative;z-index:4;padding-bottom:2px}.fc-row .fc-helper-skeleton{z-index:5}.fc-row .fc-content-skeleton td,.fc-row .fc-helper-skeleton td{background:0 0;border-color:transparent;border-bottom:0}.fc-row .fc-content-skeleton tbody td,.fc-row .fc-helper-skeleton tbody td{border-top:0}.fc-scroller{-webkit-overflow-scrolling:touch}.fc-row.fc-rigid,.fc-time-grid-event{overflow:hidden}.fc-scroller>.fc-day-grid,.fc-scroller>.fc-time-grid{position:relative;width:100%}.fc-event{position:relative;display:block;font-size:.85em;line-height:1.3;border-radius:3px;border:1px solid #3a87ad;font-weight:400}.fc-event,.fc-event-dot{background-color:#3a87ad}.fc-event,.fc-event:hover,.ui-widget .fc-event{color:#fff;text-decoration:none}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-event .fc-bg{z-index:1;background:#fff;opacity:.25}.fc-event .fc-content{position:relative;z-index:2}.fc-event .fc-resizer{position:absolute;z-index:4;display:none}.fc-event.fc-allow-mouse-resize .fc-resizer,.fc-event.fc-selected .fc-resizer{display:block}.fc-event.fc-selected .fc-resizer:before{content:"";position:absolute;z-index:9999;top:50%;left:50%;width:40px;height:40px;margin-left:-20px;margin-top:-20px}.fc-event.fc-selected{z-index:9999!important;box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event.fc-selected.fc-dragging{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-h-event.fc-selected:before{content:"";position:absolute;z-index:3;top:-10px;bottom:-10px;left:0;right:0}.fc-ltr .fc-h-event.fc-not-start,.fc-rtl .fc-h-event.fc-not-end{margin-left:0;border-left-width:0;padding-left:1px;border-top-left-radius:0;border-bottom-left-radius:0}.fc-ltr .fc-h-event.fc-not-end,.fc-rtl .fc-h-event.fc-not-start{margin-right:0;border-right-width:0;padding-right:1px;border-top-right-radius:0;border-bottom-right-radius:0}.fc-ltr .fc-h-event .fc-start-resizer,.fc-rtl .fc-h-event .fc-end-resizer{cursor:w-resize;left:-1px}.fc-ltr .fc-h-event .fc-end-resizer,.fc-rtl .fc-h-event .fc-start-resizer{cursor:e-resize;right:-1px}.fc-h-event.fc-allow-mouse-resize .fc-resizer{width:7px;top:-1px;bottom:-1px}.fc-h-event.fc-selected .fc-resizer{border-radius:4px;border-width:1px;width:6px;height:6px;border-style:solid;border-color:inherit;background:#fff;top:50%;margin-top:-4px}.fc-ltr .fc-h-event.fc-selected .fc-start-resizer,.fc-rtl .fc-h-event.fc-selected .fc-end-resizer{margin-left:-4px}.fc-ltr .fc-h-event.fc-selected .fc-end-resizer,.fc-rtl .fc-h-event.fc-selected .fc-start-resizer{margin-right:-4px}.fc-day-grid-event{margin:1px 2px 0;padding:0 1px}tr:first-child>td>.fc-day-grid-event{margin-top:2px}.fc-day-grid-event.fc-selected:after{content:"";position:absolute;z-index:1;top:-1px;right:-1px;bottom:-1px;left:-1px;background:#000;opacity:.25}.fc-day-grid-event .fc-content{white-space:nowrap;overflow:hidden}.fc-day-grid-event .fc-time{font-weight:700}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer{margin-left:-2px}.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer,.fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer{margin-right:-2px}a.fc-more{margin:1px 3px;font-size:.85em;cursor:pointer;text-decoration:none}a.fc-more:hover{text-decoration:underline}.fc-limited{display:none}.fc-day-grid .fc-row{z-index:1}.fc-more-popover{z-index:2;width:220px}.fc-more-popover .fc-event-container{padding:10px}.fc-now-indicator{position:absolute;border:0 solid red}.fc-unselectable{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.fc-toolbar{margin-bottom:1em}.fc-toolbar .fc-left{float:left}.fc-toolbar .fc-right{float:right}.fc-toolbar .fc-center{display:inline-block}.fc .fc-toolbar>*>*{float:left;margin-left:.75em}.fc .fc-toolbar>*>:first-child{margin-left:0}.fc-toolbar h2{margin:0}.fc-toolbar button{position:relative}.fc-toolbar .fc-state-hover,.fc-toolbar .ui-state-hover{z-index:2}.fc-toolbar .fc-state-down{z-index:3}.fc-toolbar .fc-state-active,.fc-toolbar .ui-state-active{z-index:4}.fc-toolbar button:focus{z-index:5}.fc-view-container *,.fc-view-container :after,.fc-view-container :before{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.fc-view,.fc-view>table{position:relative;z-index:1}.fc-basicDay-view .fc-content-skeleton,.fc-basicWeek-view .fc-content-skeleton{padding-bottom:1em}.fc-basic-view .fc-body .fc-row{min-height:4em}.fc-row.fc-rigid .fc-content-skeleton{position:absolute;top:0;left:0;right:0}.fc-day-top.fc-other-month{opacity:.3}.fc-basic-view .fc-day-number,.fc-basic-view .fc-week-number{padding:2px}.fc-basic-view th.fc-day-number,.fc-basic-view th.fc-week-number{padding:0 2px}.fc-ltr .fc-basic-view .fc-day-top .fc-day-number{float:right}.fc-rtl .fc-basic-view .fc-day-top .fc-day-number{float:left}.fc-ltr .fc-basic-view .fc-day-top .fc-week-number{float:left;border-radius:0 0 3px}.fc-rtl .fc-basic-view .fc-day-top .fc-week-number{float:right;border-radius:0 0 0 3px}.fc-basic-view .fc-day-top .fc-week-number{min-width:1.5em;text-align:center;background-color:#f2f2f2;color:grey}.fc-basic-view td.fc-week-number>*{display:inline-block;min-width:1.25em}.fc-agenda-view .fc-day-grid{position:relative;z-index:2}.fc-agenda-view .fc-day-grid .fc-row{min-height:3em}.fc-agenda-view .fc-day-grid .fc-row .fc-content-skeleton{padding-bottom:1em}.fc .fc-axis{vertical-align:middle;padding:0 4px;white-space:nowrap}.fc-ltr .fc-axis{text-align:right}.fc-rtl .fc-axis{text-align:left}.ui-widget td.fc-axis{font-weight:400}.fc-time-grid,.fc-time-grid-container{position:relative;z-index:1}.fc-time-grid{min-height:100%}.fc-time-grid table{border:0 hidden transparent}.fc-time-grid>.fc-bg{z-index:1}.fc-time-grid .fc-slats,.fc-time-grid>hr{position:relative;z-index:2}.fc-time-grid .fc-content-col{position:relative}.fc-time-grid .fc-content-skeleton{position:absolute;z-index:3;top:0;left:0;right:0}.fc-time-grid .fc-business-container{position:relative;z-index:1}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-helper-container{position:relative;z-index:6}.fc-time-grid .fc-slats td{height:1.5em;border-bottom:0}.fc-time-grid .fc-slats .fc-minor td{border-top-style:dotted}.fc-time-grid .fc-slats .ui-widget-content{background:0 0}.fc-time-grid .fc-highlight{position:absolute;left:0;right:0}.fc-ltr .fc-time-grid .fc-event-container{margin:0 2.5% 0 2px}.fc-rtl .fc-time-grid .fc-event-container{margin:0 2px 0 2.5%}.fc-time-grid .fc-bgevent,.fc-time-grid .fc-event{position:absolute;z-index:1}.fc-time-grid .fc-bgevent{left:0;right:0}.fc-v-event.fc-not-start{border-top-width:0;padding-top:1px;border-top-left-radius:0;border-top-right-radius:0}.fc-v-event.fc-not-end{border-bottom-width:0;padding-bottom:1px;border-bottom-left-radius:0;border-bottom-right-radius:0}.fc-time-grid-event.fc-selected{overflow:visible}.fc-time-grid-event.fc-selected .fc-bg{display:none}.fc-time-grid-event .fc-content{overflow:hidden}.fc-time-grid-event .fc-time,.fc-time-grid-event .fc-title{padding:0 1px}.fc-time-grid-event .fc-time{font-size:.85em;white-space:nowrap}.fc-time-grid-event.fc-short .fc-content{white-space:nowrap}.fc-time-grid-event.fc-short .fc-time,.fc-time-grid-event.fc-short .fc-title{display:inline-block;vertical-align:top}.fc-time-grid-event.fc-short .fc-time span{display:none}.fc-time-grid-event.fc-short .fc-time:before{content:attr(data-start)}.fc-time-grid-event.fc-short .fc-time:after{content:"\000A0-\000A0"}.fc-time-grid-event.fc-short .fc-title{font-size:.85em;padding:0}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer{left:0;right:0;bottom:0;height:8px;overflow:hidden;line-height:8px;font-size:11px;font-family:monospace;text-align:center;cursor:s-resize}.fc-time-grid-event.fc-allow-mouse-resize .fc-resizer:after{content:"="}.fc-time-grid-event.fc-selected .fc-resizer{border-radius:5px;border-width:1px;width:8px;height:8px;border-style:solid;border-color:inherit;background:#fff;left:50%;margin-left:-5px;bottom:-5px}.fc-time-grid .fc-now-indicator-line{border-top-width:1px;left:0;right:0}.fc-time-grid .fc-now-indicator-arrow{margin-top:-5px}.fc-ltr .fc-time-grid .fc-now-indicator-arrow{left:0;border-width:5px 0 5px 6px;border-top-color:transparent;border-bottom-color:transparent}.fc-rtl .fc-time-grid .fc-now-indicator-arrow{right:0;border-width:5px 6px 5px 0;border-top-color:transparent;border-bottom-color:transparent}.fc-event-dot{display:inline-block;width:10px;height:10px;border-radius:5px}.fc-rtl .fc-list-view{direction:rtl}.fc-list-view{border-width:1px;border-style:solid}.fc .fc-list-table{table-layout:auto}.fc-list-table td{border-width:1px 0 0;padding:8px 14px}.fc-list-table tr:first-child td{border-top-width:0}.fc-list-heading{border-bottom-width:1px}.fc-list-heading td{font-weight:700}.fc-ltr .fc-list-heading-main{float:left}.fc-ltr .fc-list-heading-alt,.fc-rtl .fc-list-heading-main{float:right}.fc-rtl .fc-list-heading-alt{float:left}.fc-list-item.fc-has-url{cursor:pointer}.fc-list-item:hover td{background-color:#f5f5f5}.fc-list-item-marker,.fc-list-item-time{white-space:nowrap;width:1px}.fc-ltr .fc-list-item-marker{padding-right:0}.fc-rtl .fc-list-item-marker{padding-left:0}.fc-list-item-title a{text-decoration:none;color:inherit}.fc-list-item-title a[href]:hover{text-decoration:underline}.fc-list-empty-wrap2{position:absolute;top:0;left:0;right:0;bottom:0}.fc-list-empty-wrap1{width:100%;height:100%;display:table}.fc-list-empty{display:table-cell;vertical-align:middle;text-align:center}.fc-unthemed .fc-list-empty{background-color:#eee}
\ No newline at end of file
/*!
* FullCalendar v0.0.0 Print Stylesheet
* Docs & License: http://fullcalendar.io/
* (c) 2016 Adam Shaw
*/
/*
* Include this stylesheet on your page to get a more printer-friendly calendar.
* When including this stylesheet, use the media='print' attribute of the <link> tag.
* Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.
*/
.fc {
max-width: 100% !important;
}
/* Global Event Restyling
--------------------------------------------------------------------------------------------------*/
.fc-event {
background: #fff !important;
color: #000 !important;
page-break-inside: avoid;
}
.fc-event .fc-resizer {
display: none;
}
/* Table & Day-Row Restyling
--------------------------------------------------------------------------------------------------*/
.fc th,
.fc td,
.fc hr,
.fc thead,
.fc tbody,
.fc-row {
border-color: #ccc !important;
background: #fff !important;
}
/* kill the overlaid, absolutely-positioned components */
/* common... */
.fc-bg,
.fc-bgevent-skeleton,
.fc-highlight-skeleton,
.fc-helper-skeleton,
/* for timegrid. within cells within table skeletons... */
.fc-bgevent-container,
.fc-business-container,
.fc-highlight-container,
.fc-helper-container {
display: none;
}
/* don't force a min-height on rows (for DayGrid) */
.fc tbody .fc-row {
height: auto !important; /* undo height that JS set in distributeHeight */
min-height: 0 !important; /* undo the min-height from each view's specific stylesheet */
}
.fc tbody .fc-row .fc-content-skeleton {
position: static; /* undo .fc-rigid */
padding-bottom: 0 !important; /* use a more border-friendly method for this... */
}
.fc tbody .fc-row .fc-content-skeleton tbody tr:last-child td { /* only works in newer browsers */
padding-bottom: 1em; /* ...gives space within the skeleton. also ensures min height in a way */
}
.fc tbody .fc-row .fc-content-skeleton table {
/* provides a min-height for the row, but only effective for IE, which exaggerates this value,
making it look more like 3em. for other browers, it will already be this tall */
height: 1em;
}
/* Undo month-view event limiting. Display all events and hide the "more" links
--------------------------------------------------------------------------------------------------*/
.fc-more-cell,
.fc-more {
display: none !important;
}
.fc tr.fc-limited {
display: table-row !important;
}
.fc td.fc-limited {
display: table-cell !important;
}
.fc-popover {
display: none; /* never display the "more.." popover in print mode */
}
/* TimeGrid Restyling
--------------------------------------------------------------------------------------------------*/
/* undo the min-height 100% trick used to fill the container's height */
.fc-time-grid {
min-height: 0 !important;
}
/* don't display the side axis at all ("all-day" and time cells) */
.fc-agenda-view .fc-axis {
display: none;
}
/* don't display the horizontal lines */
.fc-slats,
.fc-time-grid hr { /* this hr is used when height is underused and needs to be filled */
display: none !important; /* important overrides inline declaration */
}
/* let the container that holds the events be naturally positioned and create real height */
.fc-time-grid .fc-content-skeleton {
position: static;
}
/* in case there are no events, we still want some height */
.fc-time-grid .fc-content-skeleton table {
height: 4em;
}
/* kill the horizontal spacing made by the event container. event margins will be done below */
.fc-time-grid .fc-event-container {
margin: 0 !important;
}
/* TimeGrid *Event* Restyling
--------------------------------------------------------------------------------------------------*/
/* naturally position events, vertically stacking them */
.fc-time-grid .fc-event {
position: static !important;
margin: 3px 2px !important;
}
/* for events that continue to a future day, give the bottom border back */
.fc-time-grid .fc-event.fc-not-end {
border-bottom-width: 1px !important;
}
/* indicate the event continues via "..." text */
.fc-time-grid .fc-event.fc-not-end:after {
content: "...";
}
/* for events that are continuations from previous days, give the top border back */
.fc-time-grid .fc-event.fc-not-start {
border-top-width: 1px !important;
}
/* indicate the event is a continuation via "..." text */
.fc-time-grid .fc-event.fc-not-start:before {
content: "...";
}
/* time */
/* undo a previous declaration and let the time text span to a second line */
.fc-time-grid .fc-event .fc-time {
white-space: normal !important;
}
/* hide the the time that is normally displayed... */
.fc-time-grid .fc-event .fc-time span {
display: none;
}
/* ...replace it with a more verbose version (includes AM/PM) stored in an html attribute */
.fc-time-grid .fc-event .fc-time:after {
content: attr(data-full);
}
/* Vertical Scroller & Containers
--------------------------------------------------------------------------------------------------*/
/* kill the scrollbars and allow natural height */
.fc-scroller,
.fc-day-grid-container, /* these divs might be assigned height, which we need to cleared */
.fc-time-grid-container { /* */
overflow: visible !important;
height: auto !important;
}
/* kill the horizontal border/padding used to compensate for scrollbars */
.fc-row {
border: 0 !important;
margin: 0 !important;
}
/* Button Controls
--------------------------------------------------------------------------------------------------*/
.fc-button-group,
.fc button {
display: none; /* don't display any button-related controls */
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<script src="../js/echarts.min.js"></script>
<link rel="stylesheet" href="../css/amazeui.min.css"/>
<link rel="stylesheet" href="../css/amazeui.datatables.min.css"/>
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI
的成长,则离不开用户的支持。
</div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。</div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404" class="active">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="row-content am-cf">
<div class="widget am-cf">
<div class="widget-body">
<div class="tpl-page-state">
<div class="tpl-page-state-title am-text-center tpl-error-title">404</div>
<div class="tpl-error-title-info">Page Not Found</div>
<div class="tpl-page-state-content tpl-error-content">
<p>对不起,没有找到您所需要的页面,可能是URL不确定,或者页面已被移除。</p>
<a href="/" class="am-btn am-btn-secondary am-radius tpl-error-btn">Back Home</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/amazeui.datatables.min.js"></script>
<script src="../js/dataTables.responsive.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="../css/amazeui.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.print.css" media='print' />
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI 的成长,则离不开用户的支持。 </div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。 </div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html" class="active">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="row-content am-cf">
<div class="tpl-calendar-box">
<div id="calendar"></div>
</div>
</div>
</div>
</div>
</div>
<!-- 弹出层 -->
<div class="am-modal am-modal-no-btn" id="calendar-edit-box">
<div class="am-modal-dialog tpl-model-dialog">
<div class="am-modal-hd">
<a href="javascript: void(0)" class="am-close edit-box-close am-close-spin" data-am-modal-close>&times;</a>
</div>
<div class="am-modal-bd tpl-am-model-bd am-cf">
<form class="am-form tpl-form-border-form">
<div class="am-form-group am-u-sm-12">
<label for="user-name" class="am-u-sm-12 am-form-label am-text-left">标题 <span class="tpl-form-line-small-title">Title</span></label>
<div class="am-u-sm-12">
<input type="text" class="tpl-form-input am-margin-top-xs calendar-edit-box-title" id="user-name" placeholder="" disabled>
</div>
</div>
</form>
</div>
</div>
</div>
<script src="../js/moment.js"></script>
<script src="../js/amazeui.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/app.js"></script>
<script>
$(document).ready(function() {
var editBox = $('#calendar-edit-box');
$('.edit-box-close').on('click', function() {
$('#calendar').fullCalendar('unselect');
})
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
monthNames: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
monthNamesShort: ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"],
dayNames: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
dayNamesShort: ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"],
today: ["今天"],
firstDay: 1,
buttonText: {
today: '本月',
month: '月',
week: '周',
day: '日',
prev: '上一月',
next: '下一月'
},
defaultDate: '2016-09-12',
lang: 'zh-cn',
navLinks: true, // can click day/week names to navigate views
selectable: true,
selectHelper: true,
select: function(start, end) {
var title = prompt('填写你的记录的:');
var eventData;
if (title) {
eventData = {
title: title,
start: start,
end: end
};
$('#calendar').fullCalendar('renderEvent', eventData, true); // stick? = true
}
$('#calendar').fullCalendar('unselect');
},
editable: true,
eventLimit: true, // allow "more" link when too many events
eventClick: function(event, jsEvent, view) {
// event.source.events[0].title = '222223333'
// 修改数据
// 标题
$('.calendar-edit-box-title').val(event.title)
// 弹出框
editBox.modal();
},
events: [{
id: 1,
title: '给她抱抱 叫她包包 喂她吃饱 给她买包',
start: '2016-09-01',
end: '2016-09-10'
}, {
id: 2,
title: '给她抱抱',
start: '2016-09-07',
end: '2016-09-10'
}, {
id: 3,
title: '叫她包包',
start: '2016-09-09',
end: '2016-09-10'
}, {
id: 4,
title: '喂她吃饱',
start: '2016-09-16',
end: '2016-09-10'
}, {
id: 5,
title: '喂她吃饱',
start: '2016-09-11',
end: '2016-09-13'
}, {
id: 6,
title: '喂她吃饱',
start: '2016-09-12',
end: '2016-09-12'
}, {
id: 7,
title: '喂她吃饱',
start: '2016-09-12',
end: '2016-09-12'
}, {
id: 8,
title: '喂她吃饱',
start: '2016-09-12',
end: '2016-09-12'
}, {
id: 9,
title: '喂她吃饱',
start: '2016-09-12',
end: '2016-09-12'
}, {
id: 10,
title: '喂她吃饱',
start: '2016-09-12',
end: '2016-09-12'
}, {
id: 11,
title: 'Birthday Party',
start: '2016-09-13',
end: '2016-09-12'
}, {
id: 12,
title: 'Click for Google',
start: '2016-09-28',
end: '2016-09-12'
}]
});
});
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<script src="../js/echarts.min.js"></script>
<link rel="stylesheet" href="../css/amazeui.min.css" />
<link rel="stylesheet" href="../css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="chart">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI 的成长,则离不开用户的支持。 </div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。 </div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html" class="active">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="container-fluid am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 图表 <small>Amaze UI</small></div>
<p class="page-header-description">图表组件使用的是 <a href="http://echarts.baidu.com">百度图表echarts</a></p>
</div>
<div class="am-u-lg-3 tpl-index-settings-button">
<button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>
</div>
</div>
</div>
<div class="row-content am-cf">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">折线</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<div style="height: 400px" class="" id="tpl-echarts-A">
</div>
</div>
</div>
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">雷达</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<div style="height: 400px" id="tpl-echarts-B">
</div>
</div>
</div>
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">折线柱图</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<div style="height: 400px" id="tpl-echarts-C">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/amazeui.datatables.min.js"></script>
<script src="../js/dataTables.responsive.min.js"></script>
<script src="../js/app.js"></script>
<!-- 说明:通过WebSocket获取服务器推送数据的代码在app.js中 -->
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<script src="../js/echarts.min.js"></script>
<link rel="stylesheet" href="../css/amazeui.min.css" />
<link rel="stylesheet" href="../css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI 的成长,则离不开用户的支持。 </div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。 </div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html" class="active">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="container-fluid am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 表单 <small>Amaze UI</small></div>
<p class="page-header-description">Amaze UI 有许多不同的表格可用。</p>
</div>
<div class="am-u-lg-3 tpl-index-settings-button">
<button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>
</div>
</div>
</div>
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">线条表单</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<form class="am-form tpl-form-line-form">
<div class="am-form-group">
<label for="user-name" class="am-u-sm-3 am-form-label">标题 <span class="tpl-form-line-small-title">Title</span></label>
<div class="am-u-sm-9">
<input type="text" class="tpl-form-input" id="user-name" placeholder="请输入标题文字">
<small>请填写标题文字10-20字左右。</small>
</div>
</div>
<div class="am-form-group">
<label for="user-email" class="am-u-sm-3 am-form-label">发布时间 <span class="tpl-form-line-small-title">Time</span></label>
<div class="am-u-sm-9">
<input type="text" class="am-form-field tpl-form-no-bg" placeholder="发布时间" data-am-datepicker="" readonly="">
<small>发布时间为必填</small>
</div>
</div>
<div class="am-form-group">
<label for="user-phone" class="am-u-sm-3 am-form-label">作者 <span class="tpl-form-line-small-title">Author</span></label>
<div class="am-u-sm-9">
<select data-am-selected="{searchBox: 1}" style="display: none;">
<option value="a">-The.CC</option>
<option value="b">夕风色</option>
<option value="o">Orange</option>
</select>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-form-label">SEO关键字 <span class="tpl-form-line-small-title">SEO</span></label>
<div class="am-u-sm-9">
<input type="text" placeholder="输入SEO关键字">
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-3 am-form-label">封面图 <span class="tpl-form-line-small-title">Images</span></label>
<div class="am-u-sm-9">
<div class="am-form-group am-form-file">
<div class="tpl-form-file-img">
<img src="../img/a5.png" alt="">
</div>
<button type="button" class="am-btn am-btn-danger am-btn-sm">
<i class="am-icon-cloud-upload"></i> 添加封面图片</button>
<input id="doc-form-file" type="file" multiple="">
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-3 am-form-label">添加分类 <span class="tpl-form-line-small-title">Type</span></label>
<div class="am-u-sm-9">
<input type="text" id="user-weibo" placeholder="请添加分类用点号隔开">
<div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-3 am-form-label">隐藏文章</label>
<div class="am-u-sm-9">
<div class="tpl-switch">
<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" checked="">
<div class="tpl-switch-btn-view">
<div>
</div>
</div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-3 am-form-label">文章内容</label>
<div class="am-u-sm-9">
<textarea class="" rows="10" id="user-intro" placeholder="请输入文章内容"></textarea>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3">
<button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">边框表单</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<form class="am-form tpl-form-border-form tpl-form-border-br">
<div class="am-form-group">
<label for="user-name" class="am-u-sm-3 am-form-label">标题 <span class="tpl-form-line-small-title">Title</span></label>
<div class="am-u-sm-9">
<input type="text" class="tpl-form-input" id="user-name" placeholder="请输入标题文字">
<small>请填写标题文字10-20字左右。</small>
</div>
</div>
<div class="am-form-group">
<label for="user-email" class="am-u-sm-3 am-form-label">发布时间 <span class="tpl-form-line-small-title">Time</span></label>
<div class="am-u-sm-9">
<input type="text" class="am-form-field tpl-form-no-bg" placeholder="发布时间" data-am-datepicker="" readonly="">
<small>发布时间为必填</small>
</div>
</div>
<div class="am-form-group">
<label for="user-phone" class="am-u-sm-3 am-form-label">作者 <span class="tpl-form-line-small-title">Author</span></label>
<div class="am-u-sm-9">
<select data-am-selected="{searchBox: 1}" style="display: none;">
<option value="a">-The.CC</option>
<option value="b">夕风色</option>
<option value="o">Orange</option>
</select>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-form-label">SEO关键字 <span class="tpl-form-line-small-title">SEO</span></label>
<div class="am-u-sm-9">
<input type="text" placeholder="输入SEO关键字">
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-3 am-form-label">封面图 <span class="tpl-form-line-small-title">Images</span></label>
<div class="am-u-sm-9">
<div class="am-form-group am-form-file">
<div class="tpl-form-file-img">
<img src="../img/a5.png" alt="">
</div>
<button type="button" class="am-btn am-btn-danger am-btn-sm">
<i class="am-icon-cloud-upload"></i> 添加封面图片</button>
<input id="doc-form-file" type="file" multiple="">
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-3 am-form-label">添加分类 <span class="tpl-form-line-small-title">Type</span></label>
<div class="am-u-sm-9">
<input type="text" id="user-weibo" placeholder="请添加分类用点号隔开">
<div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-3 am-form-label">隐藏文章</label>
<div class="am-u-sm-9">
<div class="tpl-switch">
<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn" checked="">
<div class="tpl-switch-btn-view">
<div>
</div>
</div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-3 am-form-label">文章内容</label>
<div class="am-u-sm-9">
<textarea class="" rows="10" id="user-intro" placeholder="请输入文章内容"></textarea>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3">
<button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">换行边框</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<form class="am-form tpl-form-border-form">
<div class="am-form-group">
<label for="user-name" class="am-u-sm-12 am-form-label am-text-left">标题 <span class="tpl-form-line-small-title">Title</span></label>
<div class="am-u-sm-12">
<input type="text" class="tpl-form-input am-margin-top-xs" id="user-name" placeholder="请输入标题文字">
<small>请填写标题文字10-20字左右。</small>
</div>
</div>
<div class="am-form-group">
<label for="user-email" class="am-u-sm-12 am-form-label am-text-left">发布时间 <span class="tpl-form-line-small-title">Time</span></label>
<div class="am-u-sm-12">
<input type="text" class="am-form-field tpl-form-no-bg am-margin-top-xs" placeholder="发布时间" data-am-datepicker="" readonly="">
<small>发布时间为必填</small>
</div>
</div>
<div class="am-form-group">
<label for="user-phone" class="am-u-sm-12 am-form-label am-text-left">作者 <span class="tpl-form-line-small-title">Author</span></label>
<div class="am-u-sm-12 am-margin-top-xs">
<select data-am-selected="{searchBox: 1}" style="display: none;">
<option value="a">-The.CC</option>
<option value="b">夕风色</option>
<option value="o">Orange</option>
</select>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-12 am-form-label am-text-left">SEO关键字 <span class="tpl-form-line-small-title">SEO</span></label>
<div class="am-u-sm-12">
<input type="text" class="am-margin-top-xs" placeholder="输入SEO关键字">
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-12 am-form-label am-text-left">封面图 <span class="tpl-form-line-small-title">Images</span></label>
<div class="am-u-sm-12 am-margin-top-xs">
<div class="am-form-group am-form-file">
<div class="tpl-form-file-img">
<img src="../img/a5.png" alt="">
</div>
<button type="button" class="am-btn am-btn-danger am-btn-sm ">
<i class="am-icon-cloud-upload"></i> 添加封面图片</button>
<input id="doc-form-file" type="file" multiple="">
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-weibo" class="am-u-sm-12 am-form-label am-text-left">添加分类 <span class="tpl-form-line-small-title">Type</span></label>
<div class="am-u-sm-12">
<input type="text" id="user-weibo" class="am-margin-top-xs" placeholder="请添加分类用点号隔开">
<div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-12 am-form-label am-text-left">隐藏文章</label>
<div class="am-u-sm-12">
<div class="tpl-switch">
<input type="checkbox" class="ios-switch bigswitch tpl-switch-btn am-margin-top-xs" checked="">
<div class="tpl-switch-btn-view">
<div>
</div>
</div>
</div>
</div>
</div>
<div class="am-form-group">
<label for="user-intro" class="am-u-sm-12 am-form-label am-text-left">文章内容</label>
<div class="am-u-sm-12 am-margin-top-xs">
<textarea class="" rows="10" id="user-intro" placeholder="请输入文章内容"></textarea>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-12 am-u-sm-push-12">
<button type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success ">提交</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/amazeui.datatables.min.js"></script>
<script src="../js/dataTables.responsive.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="../css/amazeui.min.css" />
<link rel="stylesheet" href="../css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="login">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<div class="tpl-login">
<div class="tpl-login-content">
<div class="tpl-login-logo"></div>
<form class="am-form tpl-form-line-form">
<div class="am-form-group">
<input type="text" class="tpl-form-input" id="user-name" placeholder="请输入账号">
</div>
<div class="am-form-group">
<input type="password" class="tpl-form-input" id="user-name" placeholder="请输入密码">
</div>
<div class="am-form-group tpl-login-remember-me">
<input id="remember-me" type="checkbox">
<label for="remember-me">记住密码</label>
</div>
<div class="am-form-group">
<button type="button" class="am-btn am-btn-primary am-btn-block tpl-btn-bg-color-success tpl-login-btn">提交</button>
</div>
</form>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<link rel="stylesheet" href="../css/amazeui.min.css"/>
<link rel="stylesheet" href="../css/amazeui.datatables.min.css"/>
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="login">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<div class="tpl-login">
<div class="tpl-login-content">
<div class="tpl-login-title">注册用户</div>
<span class="tpl-login-content-info">创建一个新的用户</span>
<form class="am-form tpl-form-line-form">
<div class="am-form-group">
<input type="text" class="tpl-form-input" id="user-name" placeholder="邮箱">
</div>
<div class="am-form-group">
<input type="text" class="tpl-form-input" id="user-name" placeholder="用户名">
</div>
<div class="am-form-group">
<input type="password" class="tpl-form-input" id="user-name" placeholder="请输入密码">
</div>
<div class="am-form-group">
<input type="password" class="tpl-form-input" id="user-name" placeholder="再次输入密码">
</div>
<div class="am-form-group tpl-login-remember-me">
<input id="remember-me" type="checkbox">
<label for="remember-me">我已阅读并同意 <a href="javascript:;">《用户注册协议》</a></label>
</div>
<div class="am-form-group">
<button type="button"
class="am-btn am-btn-primary am-btn-block tpl-btn-bg-color-success tpl-login-btn">提交
</button>
</div>
</form>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<link rel="stylesheet" href="../css/amazeui.min.css" />
<link rel="stylesheet" href="../css/amazeui.datatables.min.css" />
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI 的成长,则离不开用户的支持。 </div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。 </div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title active">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico sidebar-nav-sub-ico-rotate"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub" style="display: block;">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html" class="sub-active">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-cf">文章列表</div>
</div>
<div class="widget-body am-fr">
<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
<div class="am-form-group">
<div class="am-btn-toolbar">
<div class="am-btn-group am-btn-group-xs">
<button type="button" class="am-btn am-btn-default am-btn-success"><span class="am-icon-plus"></span> 新增</button>
<button type="button" class="am-btn am-btn-default am-btn-secondary"><span class="am-icon-save"></span> 保存</button>
<button type="button" class="am-btn am-btn-default am-btn-warning"><span class="am-icon-archive"></span> 审核</button>
<button type="button" class="am-btn am-btn-default am-btn-danger"><span class="am-icon-trash-o"></span> 删除</button>
</div>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="am-form-group tpl-table-list-select">
<select data-am-selected="{btnSize: 'sm'}">
<option value="option1">所有类别</option>
<option value="option2">IT业界</option>
<option value="option3">数码产品</option>
<option value="option3">笔记本电脑</option>
<option value="option3">平板电脑</option>
<option value="option3">只能手机</option>
<option value="option3">超极本</option>
</select>
</div>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
<div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
<input type="text" class="am-form-field ">
<span class="am-input-group-btn">
<button class="am-btn am-btn-default am-btn-success tpl-table-list-field am-icon-search" type="button"></button>
</span>
</div>
</div>
<div class="am-u-sm-12">
<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
<thead>
<tr>
<th>文章缩略图</th>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">Amaze UI 模式窗口</td>
<td class="am-text-middle">张鹏飞</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">有适配微信小程序的计划吗</td>
<td class="am-text-middle">天纵之人</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">请问有没有amazeui 分享插件</td>
<td class="am-text-middle">王宽师</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">关于input输入框的问题</td>
<td class="am-text-middle">着迷</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">有没有发现官网上的下载包不好用</td>
<td class="am-text-middle">醉里挑灯看键</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>
<img src="../img/k.jpg" class="tpl-table-line-img" alt="">
</td>
<td class="am-text-middle">我建议WEB版本文件引入问题</td>
<td class="am-text-middle">罢了</td>
<td class="am-text-middle">2016-09-26</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<!-- more data -->
</tbody>
</table>
</div>
<div class="am-u-lg-12 am-cf">
<div class="am-fr">
<ul class="am-pagination tpl-pagination">
<li class="am-disabled"><a href="#">«</a></li>
<li class="am-active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp"/>
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI"/>
<script src="../js/echarts.min.js"></script>
<link rel="stylesheet" href="../css/amazeui.min.css"/>
<link rel="stylesheet" href="../css/amazeui.datatables.min.css"/>
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI
的成长,则离不开用户的支持。
</div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。</div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text"><i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title active">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico sidebar-nav-sub-ico-rotate"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub" style="display: block;">
<li class="sidebar-nav-link">
<a href="../html/table-list.html" class="sub-active">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-cf">文章列表</div>
</div>
<div class="widget-body am-fr">
<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
<div class="am-form-group">
<div class="am-btn-toolbar">
<div class="am-btn-group am-btn-group-xs">
<button type="button" class="am-btn am-btn-default am-btn-success"><span
class="am-icon-plus"></span> 新增
</button>
<button type="button" class="am-btn am-btn-default am-btn-secondary"><span
class="am-icon-save"></span> 保存
</button>
<button type="button" class="am-btn am-btn-default am-btn-warning"><span
class="am-icon-archive"></span> 审核
</button>
<button type="button" class="am-btn am-btn-default am-btn-danger"><span
class="am-icon-trash-o"></span> 删除
</button>
</div>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="am-form-group tpl-table-list-select">
<select data-am-selected="{btnSize: 'sm'}">
<option value="option1">所有类别</option>
<option value="option2">IT业界</option>
<option value="option3">数码产品</option>
<option value="option3">笔记本电脑</option>
<option value="option3">平板电脑</option>
<option value="option3">只能手机</option>
<option value="option3">超极本</option>
</select>
</div>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-3">
<div class="am-input-group am-input-group-sm tpl-form-border-form cl-p">
<input type="text" class="am-form-field ">
<span class="am-input-group-btn">
<button class="am-btn am-btn-default am-btn-success tpl-table-list-field am-icon-search"
type="button"></button>
</span>
</div>
</div>
<div class="am-u-sm-12">
<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black "
id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Amaze UI 模式窗口</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有适配微信小程序的计划吗</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>请问有没有amazeui 分享插件</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>关于input输入框的问题</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有没有发现官网上的下载包不好用</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>我建议WEB版本文件引入问题</td>
<td>罢了</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<!-- more data -->
</tbody>
</table>
</div>
<div class="am-u-lg-12 am-cf">
<div class="am-fr">
<ul class="am-pagination tpl-pagination">
<li class="am-disabled"><a href="#">«</a></li>
<li class="am-active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/amazeui.datatables.min.js"></script>
<script src="../js/dataTables.responsive.min.js"></script>
<script src="../js/app.js"></script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Amaze UI Admin index Examples</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp">
<link rel="icon" type="image/png" href="../i/favicon.png">
<link rel="apple-touch-icon-precomposed" href="../i/app-icon72x72@2x.png">
<meta name="apple-mobile-web-app-title" content="Amaze UI">
<script src="../js/echarts.min.js"></script>
<link rel="stylesheet" href="../css/amazeui.min.css">
<link rel="stylesheet" href="../css/amazeui.datatables.min.css">
<link rel="stylesheet" href="../css/app.css">
<script src="../js/jquery.min.js"></script>
</head>
<body data-type="widgets">
<script src="../js/theme.js"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="../img/logo.png" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user04.png" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI
的成长,则离不开用户的支持。
</div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="../img/user02.png" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。</div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="../img/user04.png" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/tables.html" class="active">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/calendar.html">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/form.html">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/chart.html">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="../html/table-list.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="../html/table-list-img.html">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="/signup">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="/login">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="/page404">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="container-fluid am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 表格
<small>Amaze UI</small>
</div>
<p class="page-header-description">Amaze UI 有许多不同的表格可用。</p>
</div>
<div class="am-u-lg-3 tpl-index-settings-button">
<button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置
</button>
</div>
</div>
</div>
<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">滚动条表格</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-lg am-fr">
<div class="am-scrollable-horizontal ">
<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black "
id="example-r">
<thead>
<tr>
<th>工号</th>
<th>姓名</th>
<th>职位</th>
<th>月薪</th>
<th>自我介绍</th>
</tr>
</thead>
<tbody id="emp-data-row">
<tr v-for="emp in emps">
<td>{{ emp.no }}</td>
<td>{{ emp.name }}</td>
<td>{{ emp.job }}</td>
<td>{{ emp.sal }}</td>
<td>{{ emp.intro }}</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">自适应表格</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-lg am-fr">
<table width="100%" class="am-table am-table-compact tpl-table-black " id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Amaze UI 模式窗口</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有适配微信小程序的计划吗</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>请问有没有amazeui 分享插件</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>关于input输入框的问题</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有没有发现官网上的下载包不好用</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>我建议WEB版本文件引入问题</td>
<td>罢了</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">基本边框</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-lg am-fr">
<table width="100%" class="am-table am-table-compact am-table-bordered tpl-table-black "
id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Amaze UI 模式窗口</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有适配微信小程序的计划吗</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>请问有没有amazeui 分享插件</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>关于input输入框的问题</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有没有发现官网上的下载包不好用</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>我建议WEB版本文件引入问题</td>
<td>罢了</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<!-- more data -->
</tbody>
</table>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-6">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">圆角斑马线边框</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-lg am-fr">
<table width="100%"
class="am-table am-table-compact am-table-bordered am-table-radius am-table-striped tpl-table-black "
id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Amaze UI 模式窗口</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有适配微信小程序的计划吗</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>请问有没有amazeui 分享插件</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>关于input输入框的问题</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有没有发现官网上的下载包不好用</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>我建议WEB版本文件引入问题</td>
<td>罢了</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<!-- more data -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">斑马线</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-lg am-fr">
<table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black "
id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>Amaze UI 模式窗口</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有适配微信小程序的计划吗</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>请问有没有amazeui 分享插件</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>关于input输入框的问题</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>有没有发现官网上的下载包不好用</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>我建议WEB版本文件引入问题</td>
<td>罢了</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<!-- more data -->
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="../js/amazeui.min.js"></script>
<script src="../js/amazeui.datatables.min.js"></script>
<script src="../js/dataTables.responsive.min.js"></script>
<script src="../js/app.js"></script>
<script src="https://cdn.bootcss.com/vue/2.6.9/vue.min.js"></script>
<script>
fetch('/api/emps')
.then(resp => resp.json())
.then(function(data) {
var app = new Vue({
'el': '#emp-data-row',
data: {
emps: data
}
});
});
</script>
</body>
</html>
\ No newline at end of file
!function e(t,n,a){function r(i,s){if(!n[i]){if(!t[i]){var l="function"==typeof require&&require;if(!s&&l)return l(i,!0);if(o)return o(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[i]={exports:{}};t[i][0].call(c.exports,function(e){var n=t[i][1][e];return r(n?n:e)},c,c.exports,e,t,n,a)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<a.length;i++)r(a[i]);return r}({1:[function(e,t,n){(function(n){"use strict";var a="undefined"!=typeof window?window.jQuery:"undefined"!=typeof n?n.jQuery:null,r=e("datatables")();r.defaults.oLanguage={sProcessing:"处理中...",sLengthMenu:"显示 _MENU_ 项结果",sZeroRecords:"没有匹配结果",sInfo:"显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",sInfoEmpty:"显示第 0 至 0 项结果,共 0 项",sInfoFiltered:"(由 _MAX_ 项结果过滤)",sInfoPostFix:"",sSearch:"搜索:",sUrl:"",sEmptyTable:"表中数据为空",sLoadingRecords:"载入中...",sInfoThousands:",",sThousands:",",oPaginate:{sFirst:"首页",sPrevious:"上页",sNext:"下页",sLast:"末页"},oAria:{sSortAscending:": 以升序排列此列",sSortDescending:": 以降序排列此列"}},a.extend(!0,r.defaults,{dom:"<'am-g am-datatable-hd'<'am-u-sm-6'l><'am-u-sm-6'f>><'am-g'<'am-u-sm-12'tr>><'am-g am-datatable-footer'<'am-u-sm-5'i><'am-u-sm-7'p>>",renderer:"amazeui"}),a.extend(r.ext.classes,{sWrapper:"dataTables_wrapper am-datatable am-form-inline dt-amazeui",sFilter:"dataTables_filter am-datatable-filter",sFilterInput:"am-form-field am-input-sm",sInfo:"dataTables_info am-datatable-info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length am-form-group am-datatable-length",sLengthSelect:"am-form-select am-input-sm",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_"}),r.ext.renderer.pageButton.amazeui=function(e,t,n,o,i,s){var l,u,c,f=new r.Api(e),d=e.oClasses,h=e.oLanguage.oPaginate,p=0,g=function(t,r){var o,c,b,v,m=function(e){e.preventDefault(),a(e.currentTarget).hasClass("am-disabled")||f.page(e.data.action).draw(!1)};for(o=0,c=r.length;o<c;o++)if(v=r[o],a.isArray(v))g(t,v);else{switch(l="",u="",v){case"ellipsis":l="&hellip;",u="am-disabled";break;case"first":l=h.sFirst,u=v+(i>0?"":" am-disabled");break;case"previous":l=h.sPrevious,u=v+(i>0?"":" am-disabled");break;case"next":l=h.sNext,u=v+(i<s-1?"":" am-disabled");break;case"last":l=h.sLast,u=v+(i<s-1?"":" am-disabled");break;default:l=v+1,u=i===v?"am-active":""}l&&(b=a("<li>",{"class":d.sPageButton+" "+u,id:0===n&&"string"==typeof v?e.sTableId+"_"+v:null}).append(a("<a>",{href:"#","aria-controls":e.sTableId,"data-dt-idx":p,tabindex:e.iTabIndex}).html(l)).appendTo(t),e.oApi._fnBindAction(b,{action:v},m),p++)}};try{c=a(document.activeElement).data("dt-idx")}catch(b){}g(a(t).empty().html('<ul class="am-datatable-pager am-pagination am-pagination-right am-text-sm"/>').children("ul"),o),c&&a(t).find("[data-dt-idx="+c+"]").focus()},r.TableTools&&(a.extend(!0,r.TableTools.classes,{container:"DTTT am-btn-group",buttons:{normal:"am-btn am-btn-default",disabled:"am-disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"am-disabled"}},print:{info:"DTTT_print_info"},select:{row:"am-active"}}),a.extend(!0,r.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}})),t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{datatables:2}],2:[function(e,t,n){(function(e){!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return a(e,window,document)}):"object"==typeof n?t.exports=function(t,n){return t||(t=window),n||(n="undefined"!=typeof window?"undefined"!=typeof window?window.jQuery:"undefined"!=typeof e?e.jQuery:null:("undefined"!=typeof window?window.jQuery:"undefined"!=typeof e?e.jQuery:null)(t)),a(n,t,t.document)}:a(jQuery,window,document)}(function(e,t,n,a){"use strict";function r(t){var n,a,o="a aa ai ao as b fn i m o s ",i={};e.each(t,function(e,s){n=e.match(/^([^A-Z]+?)([A-Z])/),n&&o.indexOf(n[1]+" ")!==-1&&(a=e.replace(n[0],n[2].toLowerCase()),i[a]=e,"o"===n[1]&&r(t[e]))}),t._hungarianMap=i}function o(t,n,i){t._hungarianMap||r(t);var s;e.each(n,function(r,l){s=t._hungarianMap[r],s===a||!i&&n[s]!==a||("o"===s.charAt(0)?(n[s]||(n[s]={}),e.extend(!0,n[s],n[r]),o(t[s],n[s],i)):n[s]=n[r])})}function i(e){var t=ze.defaults.oLanguage,n=e.sZeroRecords;!e.sEmptyTable&&n&&"No data available in table"===t.sEmptyTable&&je(e,e,"sZeroRecords","sEmptyTable"),!e.sLoadingRecords&&n&&"Loading..."===t.sLoadingRecords&&je(e,e,"sZeroRecords","sLoadingRecords"),e.sInfoThousands&&(e.sThousands=e.sInfoThousands);var a=e.sDecimal;a&&Be(a)}function s(e){pt(e,"ordering","bSort"),pt(e,"orderMulti","bSortMulti"),pt(e,"orderClasses","bSortClasses"),pt(e,"orderCellsTop","bSortCellsTop"),pt(e,"order","aaSorting"),pt(e,"orderFixed","aaSortingFixed"),pt(e,"paging","bPaginate"),pt(e,"pagingType","sPaginationType"),pt(e,"pageLength","iDisplayLength"),pt(e,"searching","bFilter"),"boolean"==typeof e.sScrollX&&(e.sScrollX=e.sScrollX?"100%":""),"boolean"==typeof e.scrollX&&(e.scrollX=e.scrollX?"100%":"");var t=e.aoSearchCols;if(t)for(var n=0,a=t.length;n<a;n++)t[n]&&o(ze.models.oSearch,t[n])}function l(t){pt(t,"orderable","bSortable"),pt(t,"orderData","aDataSort"),pt(t,"orderSequence","asSorting"),pt(t,"orderDataType","sortDataType");var n=t.aDataSort;n&&!e.isArray(n)&&(t.aDataSort=[n])}function u(t){if(!ze.__browser){var n={};ze.__browser=n;var a=e("<div/>").css({position:"fixed",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(e("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(e("<div/>").css({width:"100%",height:10}))).appendTo("body"),r=a.children(),o=r.children();n.barWidth=r[0].offsetWidth-r[0].clientWidth,n.bScrollOversize=100===o[0].offsetWidth&&100!==r[0].clientWidth,n.bScrollbarLeft=1!==Math.round(o.offset().left),n.bBounding=!!a[0].getBoundingClientRect().width,a.remove()}e.extend(t.oBrowser,ze.__browser),t.oScroll.iBarWidth=ze.__browser.barWidth}function c(e,t,n,r,o,i){var s,l=r,u=!1;for(n!==a&&(s=n,u=!0);l!==o;)e.hasOwnProperty(l)&&(s=u?t(s,e[l],l,e):e[l],u=!0,l+=i);return s}function f(t,a){var r=ze.defaults.column,o=t.aoColumns.length,i=e.extend({},ze.models.oColumn,r,{nTh:a?a:n.createElement("th"),sTitle:r.sTitle?r.sTitle:a?a.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[o],mData:r.mData?r.mData:o,idx:o});t.aoColumns.push(i);var s=t.aoPreSearchCols;s[o]=e.extend({},ze.models.oSearch,s[o]),d(t,o,e(a).data())}function d(t,n,r){var i=t.aoColumns[n],s=t.oClasses,u=e(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=u.attr("width")||null;var c=(u.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(i.sWidthOrig=c[1])}r!==a&&null!==r&&(l(r),o(ze.defaults.column,r),r.mDataProp===a||r.mData||(r.mData=r.mDataProp),r.sType&&(i._sManualType=r.sType),r.className&&!r.sClass&&(r.sClass=r.className),e.extend(i,r),je(i,r,"sWidth","sWidthOrig"),r.iDataSort!==a&&(i.aDataSort=[r.iDataSort]),je(i,r,"aDataSort"));var f=i.mData,d=I(f),h=i.mRender?I(i.mRender):null,p=function(e){return"string"==typeof e&&e.indexOf("@")!==-1};i._bAttrSrc=e.isPlainObject(f)&&(p(f.sort)||p(f.type)||p(f.filter)),i._setter=null,i.fnGetData=function(e,t,n){var r=d(e,t,a,n);return h&&t?h(r,t,e,n):r},i.fnSetData=function(e,t,n){return A(f)(e,t,n)},"number"!=typeof f&&(t._rowReadObject=!0),t.oFeatures.bSort||(i.bSortable=!1,u.addClass(s.sSortableNone));var g=e.inArray("asc",i.asSorting)!==-1,b=e.inArray("desc",i.asSorting)!==-1;i.bSortable&&(g||b)?g&&!b?(i.sSortingClass=s.sSortableAsc,i.sSortingClassJUI=s.sSortJUIAscAllowed):!g&&b?(i.sSortingClass=s.sSortableDesc,i.sSortingClassJUI=s.sSortJUIDescAllowed):(i.sSortingClass=s.sSortable,i.sSortingClassJUI=s.sSortJUI):(i.sSortingClass=s.sSortableNone,i.sSortingClassJUI="")}function h(e){if(e.oFeatures.bAutoWidth!==!1){var t=e.aoColumns;ve(e);for(var n=0,a=t.length;n<a;n++)t[n].nTh.style.width=t[n].sWidth}var r=e.oScroll;""===r.sY&&""===r.sX||ge(e),ke(e,null,"column-sizing",[e])}function p(e,t){var n=v(e,"bVisible");return"number"==typeof n[t]?n[t]:null}function g(t,n){var a=v(t,"bVisible"),r=e.inArray(n,a);return r!==-1?r:null}function b(t){var n=0;return e.each(t.aoColumns,function(t,a){a.bVisible&&"none"!==e(a.nTh).css("display")&&n++}),n}function v(t,n){var a=[];return e.map(t.aoColumns,function(e,t){e[n]&&a.push(t)}),a}function m(e){var t,n,r,o,i,s,l,u,c,f=e.aoColumns,d=e.aoData,h=ze.ext.type.detect;for(t=0,n=f.length;t<n;t++)if(l=f[t],c=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){for(r=0,o=h.length;r<o;r++){for(i=0,s=d.length;i<s&&(c[i]===a&&(c[i]=w(e,i,t,"type")),u=h[r](c[i],e),u||r===h.length-1)&&"html"!==u;i++);if(u){l.sType=u;break}}l.sType||(l.sType="string")}}function S(t,n,r,o){var i,s,l,u,c,d,h,p=t.aoColumns;if(n)for(i=n.length-1;i>=0;i--){h=n[i];var g=h.targets!==a?h.targets:h.aTargets;for(e.isArray(g)||(g=[g]),l=0,u=g.length;l<u;l++)if("number"==typeof g[l]&&g[l]>=0){for(;p.length<=g[l];)f(t);o(g[l],h)}else if("number"==typeof g[l]&&g[l]<0)o(p.length+g[l],h);else if("string"==typeof g[l])for(c=0,d=p.length;c<d;c++)("_all"==g[l]||e(p[c].nTh).hasClass(g[l]))&&o(c,h)}if(r)for(i=0,s=r.length;i<s;i++)o(i,r[i])}function D(t,n,r,o){var i=t.aoData.length,s=e.extend(!0,{},ze.models.oRow,{src:r?"dom":"data",idx:i});s._aData=n,t.aoData.push(s);for(var l=t.aoColumns,u=0,c=l.length;u<c;u++)l[u].sType=null;t.aiDisplayMaster.push(i);var f=t.rowIdFn(n);return f!==a&&(t.aIds[f]=s),!r&&t.oFeatures.bDeferRender||H(t,i,r,o),i}function y(t,n){var a;return n instanceof e||(n=e(n)),n.map(function(e,n){return a=j(t,n),D(t,a.data,n,a.cells)})}function _(e,t){return t._DT_RowIndex!==a?t._DT_RowIndex:null}function T(t,n,a){return e.inArray(a,t.aoData[n].anCells)}function w(e,t,n,r){var o=e.iDraw,i=e.aoColumns[n],s=e.aoData[t]._aData,l=i.sDefaultContent,u=i.fnGetData(s,r,{settings:e,row:t,col:n});if(u===a)return e.iDrawError!=o&&null===l&&(Re(e,0,"Requested unknown parameter "+("function"==typeof i.mData?"{function}":"'"+i.mData+"'")+" for row "+t+", column "+n,4),e.iDrawError=o),l;if(u!==s&&null!==u||null===l||r===a){if("function"==typeof u)return u.call(s)}else u=l;return null===u&&"display"==r?"":u}function C(e,t,n,a){var r=e.aoColumns[n],o=e.aoData[t]._aData;r.fnSetData(o,a,{settings:e,row:t,col:n})}function x(t){return e.map(t.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\./g,".")})}function I(t){if(e.isPlainObject(t)){var n={};return e.each(t,function(e,t){t&&(n[e]=I(t))}),function(e,t,r,o){var i=n[t]||n._;return i!==a?i(e,t,r,o):e}}if(null===t)return function(e){return e};if("function"==typeof t)return function(e,n,a,r){return t(e,n,a,r)};if("string"!=typeof t||t.indexOf(".")===-1&&t.indexOf("[")===-1&&t.indexOf("(")===-1)return function(e,n){return e[t]};var r=function(t,n,o){var i,s,l,u;if(""!==o)for(var c=x(o),f=0,d=c.length;f<d;f++){if(i=c[f].match(gt),s=c[f].match(bt),i){if(c[f]=c[f].replace(gt,""),""!==c[f]&&(t=t[c[f]]),l=[],c.splice(0,f+1),u=c.join("."),e.isArray(t))for(var h=0,p=t.length;h<p;h++)l.push(r(t[h],n,u));var g=i[0].substring(1,i[0].length-1);t=""===g?l:l.join(g);break}if(s)c[f]=c[f].replace(bt,""),t=t[c[f]]();else{if(null===t||t[c[f]]===a)return a;t=t[c[f]]}}return t};return function(e,n){return r(e,n,t)}}function A(t){if(e.isPlainObject(t))return A(t._);if(null===t)return function(){};if("function"==typeof t)return function(e,n,a){t(e,"set",n,a)};if("string"!=typeof t||t.indexOf(".")===-1&&t.indexOf("[")===-1&&t.indexOf("(")===-1)return function(e,n){e[t]=n};var n=function(t,r,o){for(var i,s,l,u,c,f=x(o),d=f[f.length-1],h=0,p=f.length-1;h<p;h++){if(s=f[h].match(gt),l=f[h].match(bt),s){if(f[h]=f[h].replace(gt,""),t[f[h]]=[],i=f.slice(),i.splice(0,h+1),c=i.join("."),e.isArray(r))for(var g=0,b=r.length;g<b;g++)u={},n(u,r[g],c),t[f[h]].push(u);else t[f[h]]=r;return}l&&(f[h]=f[h].replace(bt,""),t=t[f[h]](r)),null!==t[f[h]]&&t[f[h]]!==a||(t[f[h]]={}),t=t[f[h]]}d.match(bt)?t=t[d.replace(bt,"")](r):t[d.replace(gt,"")]=r};return function(e,a){return n(e,a,t)}}function F(e){return lt(e.aoData,"_aData")}function L(e){e.aoData.length=0,e.aiDisplayMaster.length=0,e.aiDisplay.length=0,e.aIds={}}function P(e,t,n){for(var r=-1,o=0,i=e.length;o<i;o++)e[o]==t?r=o:e[o]>t&&e[o]--;r!=-1&&n===a&&e.splice(r,1)}function R(e,t,n,r){var o,i,s=e.aoData[t],l=function(n,a){for(;n.childNodes.length;)n.removeChild(n.firstChild);n.innerHTML=w(e,t,a,"display")};if("dom"!==n&&(n&&"auto"!==n||"dom"!==s.src)){var u=s.anCells;if(u)if(r!==a)l(u[r],r);else for(o=0,i=u.length;o<i;o++)l(u[o],o)}else s._aData=j(e,s,r,r===a?a:s._aData).data;s._aSortData=null,s._aFilterData=null;var c=e.aoColumns;if(r!==a)c[r].sType=null;else{for(o=0,i=c.length;o<i;o++)c[o].sType=null;N(e,s)}}function j(t,n,r,o){var i,s,l,u=[],c=n.firstChild,f=0,d=t.aoColumns,h=t._rowReadObject;o=o!==a?o:h?{}:[];var p=function(e,t){if("string"==typeof e){var n=e.indexOf("@");if(n!==-1){var a=e.substring(n+1),r=A(e);r(o,t.getAttribute(a))}}},g=function(t){if(r===a||r===f)if(s=d[f],l=e.trim(t.innerHTML),s&&s._bAttrSrc){var n=A(s.mData._);n(o,l),p(s.mData.sort,t),p(s.mData.type,t),p(s.mData.filter,t)}else h?(s._setter||(s._setter=A(s.mData)),s._setter(o,l)):o[f]=l;f++};if(c)for(;c;)i=c.nodeName.toUpperCase(),"TD"!=i&&"TH"!=i||(g(c),u.push(c)),c=c.nextSibling;else{u=n.anCells;for(var b=0,v=u.length;b<v;b++)g(u[b])}var m=n.firstChild?n:n.nTr;if(m){var S=m.getAttribute("id");S&&A(t.rowId)(o,S)}return{data:o,cells:u}}function H(t,a,r,o){var i,s,l,u,c,f=t.aoData[a],d=f._aData,h=[];if(null===f.nTr){for(i=r||n.createElement("tr"),f.nTr=i,f.anCells=h,i._DT_RowIndex=a,N(t,f),u=0,c=t.aoColumns.length;u<c;u++)l=t.aoColumns[u],s=r?o[u]:n.createElement(l.sCellType),s._DT_CellIndex={row:a,column:u},h.push(s),r&&!l.mRender&&l.mData===u||e.isPlainObject(l.mData)&&l.mData._===u+".display"||(s.innerHTML=w(t,a,u,"display")),l.sClass&&(s.className+=" "+l.sClass),l.bVisible&&!r?i.appendChild(s):!l.bVisible&&r&&s.parentNode.removeChild(s),l.fnCreatedCell&&l.fnCreatedCell.call(t.oInstance,s,w(t,a,u),d,a,u);ke(t,"aoRowCreatedCallback",null,[i,d,a])}f.nTr.setAttribute("role","row")}function N(t,n){var a=n.nTr,r=n._aData;if(a){var o=t.rowIdFn(r);if(o&&(a.id=o),r.DT_RowClass){var i=r.DT_RowClass.split(" ");n.__rowc=n.__rowc?ht(n.__rowc.concat(i)):i,e(a).removeClass(n.__rowc.join(" ")).addClass(r.DT_RowClass)}r.DT_RowAttr&&e(a).attr(r.DT_RowAttr),r.DT_RowData&&e(a).data(r.DT_RowData)}}function O(t){var n,a,r,o,i,s=t.nTHead,l=t.nTFoot,u=0===e("th, td",s).length,c=t.oClasses,f=t.aoColumns;for(u&&(o=e("<tr/>").appendTo(s)),n=0,a=f.length;n<a;n++)i=f[n],r=e(i.nTh).addClass(i.sClass),u&&r.appendTo(o),t.oFeatures.bSort&&(r.addClass(i.sSortingClass),i.bSortable!==!1&&(r.attr("tabindex",t.iTabIndex).attr("aria-controls",t.sTableId),xe(t,i.nTh,n))),i.sTitle!=r[0].innerHTML&&r.html(i.sTitle),We(t,"header")(t,r,i,c);if(u&&E(t.aoHeader,s),e(s).find(">tr").attr("role","row"),e(s).find(">tr>th, >tr>td").addClass(c.sHeaderTH),e(l).find(">tr>th, >tr>td").addClass(c.sFooterTH),null!==l){var d=t.aoFooter[0];for(n=0,a=d.length;n<a;n++)i=f[n],i.nTf=d[n].cell,i.sClass&&e(i.nTf).addClass(i.sClass)}}function k(t,n,r){var o,i,s,l,u,c,f,d,h,p=[],g=[],b=t.aoColumns.length;if(n){for(r===a&&(r=!1),o=0,i=n.length;o<i;o++){for(p[o]=n[o].slice(),p[o].nTr=n[o].nTr,s=b-1;s>=0;s--)t.aoColumns[s].bVisible||r||p[o].splice(s,1);g.push([])}for(o=0,i=p.length;o<i;o++){if(f=p[o].nTr)for(;c=f.firstChild;)f.removeChild(c);for(s=0,l=p[o].length;s<l;s++)if(d=1,h=1,g[o][s]===a){for(f.appendChild(p[o][s].cell),g[o][s]=1;p[o+d]!==a&&p[o][s].cell==p[o+d][s].cell;)g[o+d][s]=1,d++;for(;p[o][s+h]!==a&&p[o][s].cell==p[o][s+h].cell;){for(u=0;u<d;u++)g[o+u][s+h]=1;h++}e(p[o][s].cell).attr("rowspan",d).attr("colspan",h)}}}}function M(t){var n=ke(t,"aoPreDrawCallback","preDraw",[t]);if(e.inArray(!1,n)!==-1)return void he(t,!1);var r=[],o=0,i=t.asStripeClasses,s=i.length,l=(t.aoOpenRows.length,t.oLanguage),u=t.iInitDisplayStart,c="ssp"==Ue(t),f=t.aiDisplay;t.bDrawing=!0,u!==a&&u!==-1&&(t._iDisplayStart=c?u:u>=t.fnRecordsDisplay()?0:u,t.iInitDisplayStart=-1);var d=t._iDisplayStart,h=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,he(t,!1);else if(c){if(!t.bDestroying&&!V(t))return}else t.iDraw++;if(0!==f.length)for(var p=c?0:d,g=c?t.aoData.length:h,v=p;v<g;v++){var m=f[v],S=t.aoData[m];null===S.nTr&&H(t,m);var D=S.nTr;if(0!==s){var y=i[o%s];S._sRowStripe!=y&&(e(D).removeClass(S._sRowStripe).addClass(y),S._sRowStripe=y)}ke(t,"aoRowCallback",null,[D,S._aData,o,v]),r.push(D),o++}else{var _=l.sZeroRecords;1==t.iDraw&&"ajax"==Ue(t)?_=l.sLoadingRecords:l.sEmptyTable&&0===t.fnRecordsTotal()&&(_=l.sEmptyTable),r[0]=e("<tr/>",{"class":s?i[0]:""}).append(e("<td />",{valign:"top",colSpan:b(t),"class":t.oClasses.sRowEmpty}).html(_))[0]}ke(t,"aoHeaderCallback","header",[e(t.nTHead).children("tr")[0],F(t),d,h,f]),ke(t,"aoFooterCallback","footer",[e(t.nTFoot).children("tr")[0],F(t),d,h,f]);var T=e(t.nTBody);T.children().detach(),T.append(e(r)),ke(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}function W(e,t){var n=e.oFeatures,a=n.bSort,r=n.bFilter;a&&Te(e),r?$(e,e.oPreviousSearch):e.aiDisplay=e.aiDisplayMaster.slice(),t!==!0&&(e._iDisplayStart=0),e._drawHold=t,M(e),e._drawHold=!1}function U(t){var n=t.oClasses,a=e(t.nTable),r=e("<div/>").insertBefore(a),o=t.oFeatures,i=e("<div/>",{id:t.sTableId+"_wrapper","class":n.sWrapper+(t.nTFoot?"":" "+n.sNoFooter)});t.nHolding=r[0],t.nTableWrapper=i[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var s,l,u,c,f,d,h=t.sDom.split(""),p=0;p<h.length;p++){if(s=null,l=h[p],"<"==l){if(u=e("<div/>")[0],c=h[p+1],"'"==c||'"'==c){for(f="",d=2;h[p+d]!=c;)f+=h[p+d],d++;if("H"==f?f=n.sJUIHeader:"F"==f&&(f=n.sJUIFooter),f.indexOf(".")!=-1){var g=f.split(".");u.id=g[0].substr(1,g[0].length-1),u.className=g[1]}else"#"==f.charAt(0)?u.id=f.substr(1,f.length-1):u.className=f;p+=d}i.append(u),i=e(u)}else if(">"==l)i=i.parent();else if("l"==l&&o.bPaginate&&o.bLengthChange)s=ue(t);else if("f"==l&&o.bFilter)s=z(t);else if("r"==l&&o.bProcessing)s=de(t);else if("t"==l)s=pe(t);else if("i"==l&&o.bInfo)s=ae(t);else if("p"==l&&o.bPaginate)s=ce(t);else if(0!==ze.ext.feature.length)for(var b=ze.ext.feature,v=0,m=b.length;v<m;v++)if(l==b[v].cFeature){s=b[v].fnInit(t);break}if(s){var S=t.aanFeatures;S[l]||(S[l]=[]),S[l].push(s),i.append(s)}}r.replaceWith(i),t.nHolding=null}function E(t,n){var a,r,o,i,s,l,u,c,f,d,h,p=e(n).children("tr"),g=function(e,t,n){for(var a=e[t];a[n];)n++;return n};for(t.splice(0,t.length),o=0,l=p.length;o<l;o++)t.push([]);for(o=0,l=p.length;o<l;o++)for(a=p[o],c=0,r=a.firstChild;r;){if("TD"==r.nodeName.toUpperCase()||"TH"==r.nodeName.toUpperCase())for(f=1*r.getAttribute("colspan"),d=1*r.getAttribute("rowspan"),f=f&&0!==f&&1!==f?f:1,d=d&&0!==d&&1!==d?d:1,u=g(t,o,c),h=1===f,s=0;s<f;s++)for(i=0;i<d;i++)t[o+i][u+s]={cell:r,unique:h},t[o+i].nTr=a;r=r.nextSibling}}function B(e,t,n){var a=[];n||(n=e.aoHeader,t&&(n=[],E(n,t)));for(var r=0,o=n.length;r<o;r++)for(var i=0,s=n[r].length;i<s;i++)!n[r][i].unique||a[i]&&e.bSortCellsTop||(a[i]=n[r][i].cell);return a}function J(t,n,a){if(ke(t,"aoServerParams","serverParams",[n]),n&&e.isArray(n)){var r={},o=/(.*?)\[\]$/;e.each(n,function(e,t){var n=t.name.match(o);if(n){var a=n[0];r[a]||(r[a]=[]),r[a].push(t.value)}else r[t.name]=t.value}),n=r}var i,s=t.ajax,l=t.oInstance,u=function(e){ke(t,null,"xhr",[t,e,t.jqXHR]),a(e)};if(e.isPlainObject(s)&&s.data){i=s.data;var c=e.isFunction(i)?i(n,t):i;n=e.isFunction(i)&&c?c:e.extend(!0,n,c),delete s.data}var f={data:n,success:function(e){var n=e.error||e.sError;n&&Re(t,0,n),t.json=e,u(e)},dataType:"json",cache:!1,type:t.sServerMethod,error:function(n,a,r){var o=ke(t,null,"xhr",[t,null,t.jqXHR]);e.inArray(!0,o)===-1&&("parsererror"==a?Re(t,0,"Invalid JSON response",1):4===n.readyState&&Re(t,0,"Ajax error",7)),he(t,!1)}};t.oAjaxData=n,ke(t,null,"preXhr",[t,n]),t.fnServerData?t.fnServerData.call(l,t.sAjaxSource,e.map(n,function(e,t){return{name:t,value:e}}),u,t):t.sAjaxSource||"string"==typeof s?t.jqXHR=e.ajax(e.extend(f,{url:s||t.sAjaxSource})):e.isFunction(s)?t.jqXHR=s.call(l,n,u,t):(t.jqXHR=e.ajax(e.extend(f,s)),s.data=i)}function V(e){return!e.bAjaxDataGet||(e.iDraw++,he(e,!0),J(e,X(e),function(t){q(e,t)}),!1)}function X(t){var n,a,r,o,i=t.aoColumns,s=i.length,l=t.oFeatures,u=t.oPreviousSearch,c=t.aoPreSearchCols,f=[],d=_e(t),h=t._iDisplayStart,p=l.bPaginate!==!1?t._iDisplayLength:-1,g=function(e,t){f.push({name:e,value:t})};g("sEcho",t.iDraw),g("iColumns",s),g("sColumns",lt(i,"sName").join(",")),g("iDisplayStart",h),g("iDisplayLength",p);var b={draw:t.iDraw,columns:[],order:[],start:h,length:p,search:{value:u.sSearch,regex:u.bRegex}};for(n=0;n<s;n++)r=i[n],o=c[n],a="function"==typeof r.mData?"function":r.mData,b.columns.push({data:a,name:r.sName,searchable:r.bSearchable,orderable:r.bSortable,search:{value:o.sSearch,regex:o.bRegex}}),g("mDataProp_"+n,a),l.bFilter&&(g("sSearch_"+n,o.sSearch),g("bRegex_"+n,o.bRegex),g("bSearchable_"+n,r.bSearchable)),l.bSort&&g("bSortable_"+n,r.bSortable);l.bFilter&&(g("sSearch",u.sSearch),g("bRegex",u.bRegex)),l.bSort&&(e.each(d,function(e,t){b.order.push({column:t.col,dir:t.dir}),g("iSortCol_"+e,t.col),g("sSortDir_"+e,t.dir)}),g("iSortingCols",d.length));var v=ze.ext.legacy.ajax;return null===v?t.sAjaxSource?f:b:v?f:b}function q(e,t){var n=function(e,n){return t[e]!==a?t[e]:t[n]},r=G(e,t),o=n("sEcho","draw"),i=n("iTotalRecords","recordsTotal"),s=n("iTotalDisplayRecords","recordsFiltered");if(o){if(1*o<e.iDraw)return;e.iDraw=1*o}L(e),e._iRecordsTotal=parseInt(i,10),e._iRecordsDisplay=parseInt(s,10);for(var l=0,u=r.length;l<u;l++)D(e,r[l]);e.aiDisplay=e.aiDisplayMaster.slice(),e.bAjaxDataGet=!1,M(e),e._bInitComplete||se(e,t),e.bAjaxDataGet=!0,he(e,!1)}function G(t,n){var r=e.isPlainObject(t.ajax)&&t.ajax.dataSrc!==a?t.ajax.dataSrc:t.sAjaxDataProp;return"data"===r?n.aaData||n[r]:""!==r?I(r)(n):n}function z(t){var a=t.oClasses,r=t.sTableId,o=t.oLanguage,i=t.oPreviousSearch,s=t.aanFeatures,l='<input type="search" class="'+a.sFilterInput+'"/>',u=o.sSearch;u=u.match(/_INPUT_/)?u.replace("_INPUT_",l):u+l;var c=e("<div/>",{id:s.f?null:r+"_filter","class":a.sFilter}).append(e("<label/>").append(u)),f=function(){var e=(s.f,this.value?this.value:"");e!=i.sSearch&&($(t,{sSearch:e,bRegex:i.bRegex,bSmart:i.bSmart,bCaseInsensitive:i.bCaseInsensitive}),t._iDisplayStart=0,M(t))},d=null!==t.searchDelay?t.searchDelay:"ssp"===Ue(t)?400:0,h=e("input",c).val(i.sSearch).attr("placeholder",o.sSearchPlaceholder).bind("keyup.DT search.DT input.DT paste.DT cut.DT",d?yt(f,d):f).bind("keypress.DT",function(e){if(13==e.keyCode)return!1}).attr("aria-controls",r);return e(t.nTable).on("search.dt.DT",function(e,a){if(t===a)try{h[0]!==n.activeElement&&h.val(i.sSearch)}catch(r){}}),c[0]}function $(e,t,n){var r=e.oPreviousSearch,o=e.aoPreSearchCols,i=function(e){r.sSearch=e.sSearch,r.bRegex=e.bRegex,r.bSmart=e.bSmart,r.bCaseInsensitive=e.bCaseInsensitive},s=function(e){return e.bEscapeRegex!==a?!e.bEscapeRegex:e.bRegex};if(m(e),"ssp"!=Ue(e)){Z(e,t.sSearch,n,s(t),t.bSmart,t.bCaseInsensitive),i(t);for(var l=0;l<o.length;l++)Y(e,o[l].sSearch,l,s(o[l]),o[l].bSmart,o[l].bCaseInsensitive);Q(e)}else i(t);e.bFiltered=!0,ke(e,null,"search",[e])}function Q(t){for(var n,a,r=ze.ext.search,o=t.aiDisplay,i=0,s=r.length;i<s;i++){for(var l=[],u=0,c=o.length;u<c;u++)a=o[u],n=t.aoData[a],r[i](t,n._aFilterData,a,n._aData,u)&&l.push(a);o.length=0,e.merge(o,l)}}function Y(e,t,n,a,r,o){if(""!==t)for(var i,s=e.aiDisplay,l=K(t,a,r,o),u=s.length-1;u>=0;u--)i=e.aoData[s[u]]._aFilterData[n],l.test(i)||s.splice(u,1)}function Z(e,t,n,a,r,o){var i,s,l,u=K(t,a,r,o),c=e.oPreviousSearch.sSearch,f=e.aiDisplayMaster;if(0!==ze.ext.search.length&&(n=!0),s=ee(e),t.length<=0)e.aiDisplay=f.slice();else for((s||n||c.length>t.length||0!==t.indexOf(c)||e.bSorted)&&(e.aiDisplay=f.slice()),i=e.aiDisplay,l=i.length-1;l>=0;l--)u.test(e.aoData[i[l]]._sFilterRow)||i.splice(l,1)}function K(t,n,a,r){if(t=n?t:vt(t),a){var o=e.map(t.match(/"[^"]+"|[^ ]+/g)||[""],function(e){if('"'===e.charAt(0)){var t=e.match(/^"(.*)"$/);e=t?t[1]:e}return e.replace('"',"")});t="^(?=.*?"+o.join(")(?=.*?")+").*$"}return new RegExp(t,r?"i":"")}function ee(e){var t,n,a,r,o,i,s,l,u=e.aoColumns,c=ze.ext.type.search,f=!1;for(n=0,r=e.aoData.length;n<r;n++)if(l=e.aoData[n],!l._aFilterData){for(i=[],a=0,o=u.length;a<o;a++)t=u[a],t.bSearchable?(s=w(e,n,a,"filter"),c[t.sType]&&(s=c[t.sType](s)),null===s&&(s=""),"string"!=typeof s&&s.toString&&(s=s.toString())):s="",s.indexOf&&s.indexOf("&")!==-1&&(mt.innerHTML=s,s=St?mt.textContent:mt.innerText),s.replace&&(s=s.replace(/[\r\n]/g,"")),i.push(s);l._aFilterData=i,l._sFilterRow=i.join(" "),f=!0}return f}function te(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function ne(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function ae(t){var n=t.sTableId,a=t.aanFeatures.i,r=e("<div/>",{"class":t.oClasses.sInfo,id:a?null:n+"_info"});return a||(t.aoDrawCallback.push({fn:re,sName:"information"}),r.attr("role","status").attr("aria-live","polite"),e(t.nTable).attr("aria-describedby",n+"_info")),r[0]}function re(t){var n=t.aanFeatures.i;if(0!==n.length){var a=t.oLanguage,r=t._iDisplayStart+1,o=t.fnDisplayEnd(),i=t.fnRecordsTotal(),s=t.fnRecordsDisplay(),l=s?a.sInfo:a.sInfoEmpty;s!==i&&(l+=" "+a.sInfoFiltered),l+=a.sInfoPostFix,l=oe(t,l);var u=a.fnInfoCallback;null!==u&&(l=u.call(t.oInstance,t,r,o,i,s,l)),e(n).html(l)}}function oe(e,t){var n=e.fnFormatNumber,a=e._iDisplayStart+1,r=e._iDisplayLength,o=e.fnRecordsDisplay(),i=r===-1;return t.replace(/_START_/g,n.call(e,a)).replace(/_END_/g,n.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,n.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,n.call(e,o)).replace(/_PAGE_/g,n.call(e,i?1:Math.ceil(a/r))).replace(/_PAGES_/g,n.call(e,i?1:Math.ceil(o/r)))}function ie(e){var t,n,a,r=e.iInitDisplayStart,o=e.aoColumns,i=e.oFeatures,s=e.bDeferLoading;if(!e.bInitialised)return void setTimeout(function(){ie(e)},200);for(U(e),O(e),k(e,e.aoHeader),k(e,e.aoFooter),he(e,!0),i.bAutoWidth&&ve(e),t=0,n=o.length;t<n;t++)a=o[t],a.sWidth&&(a.nTh.style.width=ye(a.sWidth));ke(e,null,"preInit",[e]),W(e);var l=Ue(e);("ssp"!=l||s)&&("ajax"==l?J(e,[],function(n){var a=G(e,n);for(t=0;t<a.length;t++)D(e,a[t]);e.iInitDisplayStart=r,W(e),he(e,!1),se(e,n)},e):(he(e,!1),se(e)))}function se(e,t){e._bInitComplete=!0,(t||e.oInit.aaData)&&h(e),ke(e,null,"plugin-init",[e,t]),ke(e,"aoInitComplete","init",[e,t])}function le(e,t){var n=parseInt(t,10);e._iDisplayLength=n,Me(e),ke(e,null,"length",[e,n])}function ue(t){for(var n=t.oClasses,a=t.sTableId,r=t.aLengthMenu,o=e.isArray(r[0]),i=o?r[0]:r,s=o?r[1]:r,l=e("<select/>",{name:a+"_length","aria-controls":a,"class":n.sLengthSelect}),u=0,c=i.length;u<c;u++)l[0][u]=new Option(s[u],i[u]);var f=e("<div><label/></div>").addClass(n.sLength);return t.aanFeatures.l||(f[0].id=a+"_length"),f.children().append(t.oLanguage.sLengthMenu.replace("_MENU_",l[0].outerHTML)),e("select",f).val(t._iDisplayLength).bind("change.DT",function(n){le(t,e(this).val()),M(t)}),e(t.nTable).bind("length.dt.DT",function(n,a,r){t===a&&e("select",f).val(r)}),f[0]}function ce(t){var n=t.sPaginationType,a=ze.ext.pager[n],r="function"==typeof a,o=function(e){M(e)},i=e("<div/>").addClass(t.oClasses.sPaging+n)[0],s=t.aanFeatures;return r||a.fnInit(t,i,o),s.p||(i.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(e){if(r){var t,n,i=e._iDisplayStart,l=e._iDisplayLength,u=e.fnRecordsDisplay(),c=l===-1,f=c?0:Math.ceil(i/l),d=c?1:Math.ceil(u/l),h=a(f,d);for(t=0,n=s.p.length;t<n;t++)We(e,"pageButton")(e,s.p[t],t,h,f,d)}else a.fnUpdate(e,o)},sName:"pagination"})),i}function fe(e,t,n){var a=e._iDisplayStart,r=e._iDisplayLength,o=e.fnRecordsDisplay();0===o||r===-1?a=0:"number"==typeof t?(a=t*r,a>o&&(a=0)):"first"==t?a=0:"previous"==t?(a=r>=0?a-r:0,a<0&&(a=0)):"next"==t?a+r<o&&(a+=r):"last"==t?a=Math.floor((o-1)/r)*r:Re(e,0,"Unknown paging action: "+t,5);var i=e._iDisplayStart!==a;return e._iDisplayStart=a,i&&(ke(e,null,"page",[e]),n&&M(e)),i}function de(t){return e("<div/>",{id:t.aanFeatures.r?null:t.sTableId+"_processing","class":t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function he(t,n){t.oFeatures.bProcessing&&e(t.aanFeatures.r).css("display",n?"block":"none"),ke(t,null,"processing",[t,n])}function pe(t){var n=e(t.nTable);n.attr("role","grid");var a=t.oScroll;if(""===a.sX&&""===a.sY)return t.nTable;var r=a.sX,o=a.sY,i=t.oClasses,s=n.children("caption"),l=s.length?s[0]._captionSide:null,u=e(n[0].cloneNode(!1)),c=e(n[0].cloneNode(!1)),f=n.children("tfoot"),d="<div/>",h=function(e){return e?ye(e):null};f.length||(f=null);var p=e(d,{"class":i.sScrollWrapper}).append(e(d,{"class":i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:r?h(r):"100%"}).append(e(d,{"class":i.sScrollHeadInner}).css({"box-sizing":"content-box",width:a.sXInner||"100%"}).append(u.removeAttr("id").css("margin-left",0).append("top"===l?s:null).append(n.children("thead"))))).append(e(d,{"class":i.sScrollBody}).css({position:"relative",overflow:"auto",width:h(r)}).append(n));f&&p.append(e(d,{"class":i.sScrollFoot}).css({overflow:"hidden",border:0,width:r?h(r):"100%"}).append(e(d,{"class":i.sScrollFootInner}).append(c.removeAttr("id").css("margin-left",0).append("bottom"===l?s:null).append(n.children("tfoot")))));var g=p.children(),b=g[0],v=g[1],m=f?g[2]:null;return r&&e(v).on("scroll.DT",function(e){var t=this.scrollLeft;b.scrollLeft=t,f&&(m.scrollLeft=t)}),e(v).css(o&&a.bCollapse?"max-height":"height",o),t.nScrollHead=b,t.nScrollBody=v,t.nScrollFoot=m,t.aoDrawCallback.push({fn:ge,sName:"scrolling"}),p[0]}function ge(t){var n,r,o,i,s,l,u,c,f,d=t.oScroll,g=d.sX,b=d.sXInner,v=d.sY,m=d.iBarWidth,S=e(t.nScrollHead),D=S[0].style,y=S.children("div"),_=y[0].style,T=y.children("table"),w=t.nScrollBody,C=e(w),x=w.style,I=e(t.nScrollFoot),A=I.children("div"),F=A.children("table"),L=e(t.nTHead),P=e(t.nTable),R=P[0],j=R.style,H=t.nTFoot?e(t.nTFoot):null,N=t.oBrowser,O=N.bScrollOversize,k=lt(t.aoColumns,"nTh"),M=[],W=[],U=[],E=[],J=function(e){var t=e.style;t.paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},V=w.scrollHeight>w.clientHeight;if(t.scrollBarVis!==V&&t.scrollBarVis!==a)return t.scrollBarVis=V,void h(t);t.scrollBarVis=V,P.children("thead, tfoot").remove(),H&&(l=H.clone().prependTo(P),r=H.find("tr"),i=l.find("tr")),s=L.clone().prependTo(P),n=L.find("tr"),o=s.find("tr"),s.find("th, td").removeAttr("tabindex"),g||(x.width="100%",S[0].style.width="100%"),e.each(B(t,s),function(e,n){u=p(t,e),n.style.width=t.aoColumns[u].sWidth}),H&&be(function(e){e.style.width=""},i),f=P.outerWidth(),""===g?(j.width="100%",O&&(P.find("tbody").height()>w.offsetHeight||"scroll"==C.css("overflow-y"))&&(j.width=ye(P.outerWidth()-m)),f=P.outerWidth()):""!==b&&(j.width=ye(b),f=P.outerWidth()),be(J,o),be(function(t){U.push(t.innerHTML),M.push(ye(e(t).css("width")))},o),be(function(t,n){e.inArray(t,k)!==-1&&(t.style.width=M[n])},n),e(o).height(0),H&&(be(J,i),be(function(t){E.push(t.innerHTML),W.push(ye(e(t).css("width")))},i),be(function(e,t){e.style.width=W[t]},r),e(i).height(0)),be(function(e,t){e.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+U[t]+"</div>",e.style.width=M[t]},o),H&&be(function(e,t){e.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+E[t]+"</div>",e.style.width=W[t]},i),P.outerWidth()<f?(c=w.scrollHeight>w.offsetHeight||"scroll"==C.css("overflow-y")?f+m:f,O&&(w.scrollHeight>w.offsetHeight||"scroll"==C.css("overflow-y"))&&(j.width=ye(c-m)),""!==g&&""===b||Re(t,1,"Possible column misalignment",6)):c="100%",x.width=ye(c),D.width=ye(c),H&&(t.nScrollFoot.style.width=ye(c)),v||O&&(x.height=ye(R.offsetHeight+m));var X=P.outerWidth();T[0].style.width=ye(X),_.width=ye(X);var q=P.height()>w.clientHeight||"scroll"==C.css("overflow-y"),G="padding"+(N.bScrollbarLeft?"Left":"Right");
_[G]=q?m+"px":"0px",H&&(F[0].style.width=ye(X),A[0].style.width=ye(X),A[0].style[G]=q?m+"px":"0px"),P.children("colgroup").insertBefore(P.children("thead")),C.scroll(),!t.bSorted&&!t.bFiltered||t._drawHold||(w.scrollTop=0)}function be(e,t,n){for(var a,r,o=0,i=0,s=t.length;i<s;){for(a=t[i].firstChild,r=n?n[i].firstChild:null;a;)1===a.nodeType&&(n?e(a,r,o):e(a,o),o++),a=a.nextSibling,r=n?r.nextSibling:null;i++}}function ve(n){var a,r,o,i=n.nTable,s=n.aoColumns,l=n.oScroll,u=l.sY,c=l.sX,f=l.sXInner,d=s.length,g=v(n,"bVisible"),m=e("th",n.nTHead),S=i.getAttribute("width"),D=i.parentNode,y=!1,_=n.oBrowser,T=_.bScrollOversize,w=i.style.width;for(w&&w.indexOf("%")!==-1&&(S=w),a=0;a<g.length;a++)r=s[g[a]],null!==r.sWidth&&(r.sWidth=me(r.sWidthOrig,D),y=!0);if(T||!y&&!c&&!u&&d==b(n)&&d==m.length)for(a=0;a<d;a++){var C=p(n,a);null!==C&&(s[C].sWidth=ye(m.eq(a).width()))}else{var x=e(i).clone().css("visibility","hidden").removeAttr("id");x.find("tbody tr").remove();var I=e("<tr/>").appendTo(x.find("tbody"));for(x.find("thead, tfoot").remove(),x.append(e(n.nTHead).clone()).append(e(n.nTFoot).clone()),x.find("tfoot th, tfoot td").css("width",""),m=B(n,x.find("thead")[0]),a=0;a<g.length;a++)r=s[g[a]],m[a].style.width=null!==r.sWidthOrig&&""!==r.sWidthOrig?ye(r.sWidthOrig):"",r.sWidthOrig&&c&&e(m[a]).append(e("<div/>").css({width:r.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(n.aoData.length)for(a=0;a<g.length;a++)o=g[a],r=s[o],e(Se(n,o)).clone(!1).append(r.sContentPadding).appendTo(I);e("[name]",x).removeAttr("name");var A=e("<div/>").css(c||u?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(x).appendTo(D);c&&f?x.width(f):c?(x.css("width","auto"),x.removeAttr("width"),x.width()<D.clientWidth&&S&&x.width(D.clientWidth)):u?x.width(D.clientWidth):S&&x.width(S);var F=0;for(a=0;a<g.length;a++){var L=e(m[a]),P=L.outerWidth()-L.width(),R=_.bBounding?Math.ceil(m[a].getBoundingClientRect().width):L.outerWidth();F+=R,s[g[a]].sWidth=ye(R-P)}i.style.width=ye(F),A.remove()}if(S&&(i.style.width=ye(S)),(S||c)&&!n._reszEvt){var j=function(){e(t).bind("resize.DT-"+n.sInstance,yt(function(){h(n)}))};T?setTimeout(j,1e3):j(),n._reszEvt=!0}}function me(t,a){if(!t)return 0;var r=e("<div/>").css("width",ye(t)).appendTo(a||n.body),o=r[0].offsetWidth;return r.remove(),o}function Se(t,n){var a=De(t,n);if(a<0)return null;var r=t.aoData[a];return r.nTr?r.anCells[n]:e("<td/>").html(w(t,a,n,"display"))[0]}function De(e,t){for(var n,a=-1,r=-1,o=0,i=e.aoData.length;o<i;o++)n=w(e,o,t,"display")+"",n=n.replace(Dt,""),n=n.replace(/&nbsp;/g," "),n.length>a&&(a=n.length,r=o);return r}function ye(e){return null===e?"0px":"number"==typeof e?e<0?"0px":e+"px":e.match(/\d$/)?e+"px":e}function _e(t){var n,r,o,i,s,l,u,c=[],f=t.aoColumns,d=t.aaSortingFixed,h=e.isPlainObject(d),p=[],g=function(t){t.length&&!e.isArray(t[0])?p.push(t):e.merge(p,t)};for(e.isArray(d)&&g(d),h&&d.pre&&g(d.pre),g(t.aaSorting),h&&d.post&&g(d.post),n=0;n<p.length;n++)for(u=p[n][0],i=f[u].aDataSort,r=0,o=i.length;r<o;r++)s=i[r],l=f[s].sType||"string",p[n]._idx===a&&(p[n]._idx=e.inArray(p[n][1],f[s].asSorting)),c.push({src:u,col:s,dir:p[n][1],index:p[n]._idx,type:l,formatter:ze.ext.type.order[l+"-pre"]});return c}function Te(e){var t,n,a,r,o,i=[],s=ze.ext.type.order,l=e.aoData,u=(e.aoColumns,0),c=e.aiDisplayMaster;for(m(e),o=_e(e),t=0,n=o.length;t<n;t++)r=o[t],r.formatter&&u++,Ae(e,r.col);if("ssp"!=Ue(e)&&0!==o.length){for(t=0,a=c.length;t<a;t++)i[c[t]]=t;u===o.length?c.sort(function(e,t){var n,a,r,s,u,c=o.length,f=l[e]._aSortData,d=l[t]._aSortData;for(r=0;r<c;r++)if(u=o[r],n=f[u.col],a=d[u.col],s=n<a?-1:n>a?1:0,0!==s)return"asc"===u.dir?s:-s;return n=i[e],a=i[t],n<a?-1:n>a?1:0}):c.sort(function(e,t){var n,a,r,u,c,f,d=o.length,h=l[e]._aSortData,p=l[t]._aSortData;for(r=0;r<d;r++)if(c=o[r],n=h[c.col],a=p[c.col],f=s[c.type+"-"+c.dir]||s["string-"+c.dir],u=f(n,a),0!==u)return u;return n=i[e],a=i[t],n<a?-1:n>a?1:0})}e.bSorted=!0}function we(e){for(var t,n,a=e.aoColumns,r=_e(e),o=e.oLanguage.oAria,i=0,s=a.length;i<s;i++){var l=a[i],u=l.asSorting,c=l.sTitle.replace(/<.*?>/g,""),f=l.nTh;f.removeAttribute("aria-sort"),l.bSortable?(r.length>0&&r[0].col==i?(f.setAttribute("aria-sort","asc"==r[0].dir?"ascending":"descending"),n=u[r[0].index+1]||u[0]):n=u[0],t=c+("asc"===n?o.sSortAscending:o.sSortDescending)):t=c,f.setAttribute("aria-label",t)}}function Ce(t,n,r,o){var i,s=t.aoColumns[n],l=t.aaSorting,u=s.asSorting,c=function(t,n){var r=t._idx;return r===a&&(r=e.inArray(t[1],u)),r+1<u.length?r+1:n?null:0};if("number"==typeof l[0]&&(l=t.aaSorting=[l]),r&&t.oFeatures.bSortMulti){var f=e.inArray(n,lt(l,"0"));f!==-1?(i=c(l[f],!0),null===i&&1===l.length&&(i=0),null===i?l.splice(f,1):(l[f][1]=u[i],l[f]._idx=i)):(l.push([n,u[0],0]),l[l.length-1]._idx=0)}else l.length&&l[0][0]==n?(i=c(l[0]),l.length=1,l[0][1]=u[i],l[0]._idx=i):(l.length=0,l.push([n,u[0]]),l[0]._idx=0);W(t),"function"==typeof o&&o(t)}function xe(e,t,n,a){var r=e.aoColumns[n];Ne(t,{},function(t){r.bSortable!==!1&&(e.oFeatures.bProcessing?(he(e,!0),setTimeout(function(){Ce(e,n,t.shiftKey,a),"ssp"!==Ue(e)&&he(e,!1)},0)):Ce(e,n,t.shiftKey,a))})}function Ie(t){var n,a,r,o=t.aLastSort,i=t.oClasses.sSortColumn,s=_e(t),l=t.oFeatures;if(l.bSort&&l.bSortClasses){for(n=0,a=o.length;n<a;n++)r=o[n].src,e(lt(t.aoData,"anCells",r)).removeClass(i+(n<2?n+1:3));for(n=0,a=s.length;n<a;n++)r=s[n].src,e(lt(t.aoData,"anCells",r)).addClass(i+(n<2?n+1:3))}t.aLastSort=s}function Ae(e,t){var n,a=e.aoColumns[t],r=ze.ext.order[a.sSortDataType];r&&(n=r.call(e.oInstance,e,t,g(e,t)));for(var o,i,s=ze.ext.type.order[a.sType+"-pre"],l=0,u=e.aoData.length;l<u;l++)o=e.aoData[l],o._aSortData||(o._aSortData=[]),o._aSortData[t]&&!r||(i=r?n[l]:w(e,l,t,"sort"),o._aSortData[t]=s?s(i):i)}function Fe(t){if(t.oFeatures.bStateSave&&!t.bDestroying){var n={time:+new Date,start:t._iDisplayStart,length:t._iDisplayLength,order:e.extend(!0,[],t.aaSorting),search:te(t.oPreviousSearch),columns:e.map(t.aoColumns,function(e,n){return{visible:e.bVisible,search:te(t.aoPreSearchCols[n])}})};ke(t,"aoStateSaveParams","stateSaveParams",[t,n]),t.oSavedState=n,t.fnStateSaveCallback.call(t.oInstance,t,n)}}function Le(t,n){var r,o,i=t.aoColumns;if(t.oFeatures.bStateSave){var s=t.fnStateLoadCallback.call(t.oInstance,t);if(s&&s.time){var l=ke(t,"aoStateLoadParams","stateLoadParams",[t,s]);if(e.inArray(!1,l)===-1){var u=t.iStateDuration;if(!(u>0&&s.time<+new Date-1e3*u)&&i.length===s.columns.length){for(t.oLoadedState=e.extend(!0,{},s),s.start!==a&&(t._iDisplayStart=s.start,t.iInitDisplayStart=s.start),s.length!==a&&(t._iDisplayLength=s.length),s.order!==a&&(t.aaSorting=[],e.each(s.order,function(e,n){t.aaSorting.push(n[0]>=i.length?[0,n[1]]:n)})),s.search!==a&&e.extend(t.oPreviousSearch,ne(s.search)),r=0,o=s.columns.length;r<o;r++){var c=s.columns[r];c.visible!==a&&(i[r].bVisible=c.visible),c.search!==a&&e.extend(t.aoPreSearchCols[r],ne(c.search))}ke(t,"aoStateLoaded","stateLoaded",[t,s])}}}}}function Pe(t){var n=ze.settings,a=e.inArray(t,lt(n,"nTable"));return a!==-1?n[a]:null}function Re(e,n,a,r){if(a="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+a,r&&(a+=". For more information about this error, please see http://datatables.net/tn/"+r),n)t.console&&console.log&&console.log(a);else{var o=ze.ext,i=o.sErrMode||o.errMode;if(e&&ke(e,null,"error",[e,r,a]),"alert"==i)alert(a);else{if("throw"==i)throw new Error(a);"function"==typeof i&&i(e,r,a)}}}function je(t,n,r,o){return e.isArray(r)?void e.each(r,function(a,r){e.isArray(r)?je(t,n,r[0],r[1]):je(t,n,r)}):(o===a&&(o=r),void(n[r]!==a&&(t[o]=n[r])))}function He(t,n,a){var r;for(var o in n)n.hasOwnProperty(o)&&(r=n[o],e.isPlainObject(r)?(e.isPlainObject(t[o])||(t[o]={}),e.extend(!0,t[o],r)):a&&"data"!==o&&"aaData"!==o&&e.isArray(r)?t[o]=r.slice():t[o]=r);return t}function Ne(t,n,a){e(t).bind("click.DT",n,function(e){t.blur(),a(e)}).bind("keypress.DT",n,function(e){13===e.which&&(e.preventDefault(),a(e))}).bind("selectstart.DT",function(){return!1})}function Oe(e,t,n,a){n&&e[t].push({fn:n,sName:a})}function ke(t,n,a,r){var o=[];if(n&&(o=e.map(t[n].slice().reverse(),function(e,n){return e.fn.apply(t.oInstance,r)})),null!==a){var i=e.Event(a+".dt");e(t.nTable).trigger(i,r),o.push(i.result)}return o}function Me(e){var t=e._iDisplayStart,n=e.fnDisplayEnd(),a=e._iDisplayLength;t>=n&&(t=n-a),t-=t%a,(a===-1||t<0)&&(t=0),e._iDisplayStart=t}function We(t,n){var a=t.renderer,r=ze.ext.renderer[n];return e.isPlainObject(a)&&a[n]?r[a[n]]||r._:"string"==typeof a?r[a]||r._:r._}function Ue(e){return e.oFeatures.bServerSide?"ssp":e.ajax||e.sAjaxSource?"ajax":"dom"}function Ee(e,t){var n=[],a=Vt.numbers_length,r=Math.floor(a/2);return t<=a?n=ct(0,t):e<=r?(n=ct(0,a-2),n.push("ellipsis"),n.push(t-1)):e>=t-1-r?(n=ct(t-(a-2),t),n.splice(0,0,"ellipsis"),n.splice(0,0,0)):(n=ct(e-r+2,e+r-1),n.push("ellipsis"),n.push(t-1),n.splice(0,0,"ellipsis"),n.splice(0,0,0)),n.DT_el="span",n}function Be(t){e.each({num:function(e){return Xt(e,t)},"num-fmt":function(e){return Xt(e,t,tt)},"html-num":function(e){return Xt(e,t,Ye)},"html-num-fmt":function(e){return Xt(e,t,Ye,tt)}},function(e,n){Ve.type.order[e+t+"-pre"]=n,e.match(/^html\-/)&&(Ve.type.search[e+t]=Ve.type.search.html)})}function Je(e){return function(){var t=[Pe(this[ze.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return ze.ext.internal[e].apply(this,t)}}var Ve,Xe,qe,Ge,ze=function(t){this.$=function(e,t){return this.api(!0).$(e,t)},this._=function(e,t){return this.api(!0).rows(e,t).data()},this.api=function(e){return new Xe(e?Pe(this[Ve.iApiIndex]):this)},this.fnAddData=function(t,n){var r=this.api(!0),o=e.isArray(t)&&(e.isArray(t[0])||e.isPlainObject(t[0]))?r.rows.add(t):r.row.add(t);return(n===a||n)&&r.draw(),o.flatten().toArray()},this.fnAdjustColumnSizing=function(e){var t=this.api(!0).columns.adjust(),n=t.settings()[0],r=n.oScroll;e===a||e?t.draw(!1):""===r.sX&&""===r.sY||ge(n)},this.fnClearTable=function(e){var t=this.api(!0).clear();(e===a||e)&&t.draw()},this.fnClose=function(e){this.api(!0).row(e).child.hide()},this.fnDeleteRow=function(e,t,n){var r=this.api(!0),o=r.rows(e),i=o.settings()[0],s=i.aoData[o[0][0]];return o.remove(),t&&t.call(this,i,s),(n===a||n)&&r.draw(),s},this.fnDestroy=function(e){this.api(!0).destroy(e)},this.fnDraw=function(e){this.api(!0).draw(e)},this.fnFilter=function(e,t,n,r,o,i){var s=this.api(!0);null===t||t===a?s.search(e,n,r,i):s.column(t).search(e,n,r,i),s.draw()},this.fnGetData=function(e,t){var n=this.api(!0);if(e!==a){var r=e.nodeName?e.nodeName.toLowerCase():"";return t!==a||"td"==r||"th"==r?n.cell(e,t).data():n.row(e).data()||null}return n.data().toArray()},this.fnGetNodes=function(e){var t=this.api(!0);return e!==a?t.row(e).node():t.rows().nodes().flatten().toArray()},this.fnGetPosition=function(e){var t=this.api(!0),n=e.nodeName.toUpperCase();if("TR"==n)return t.row(e).index();if("TD"==n||"TH"==n){var a=t.cell(e).index();return[a.row,a.columnVisible,a.column]}return null},this.fnIsOpen=function(e){return this.api(!0).row(e).child.isShown()},this.fnOpen=function(e,t,n){return this.api(!0).row(e).child(t,n).show().child()[0]},this.fnPageChange=function(e,t){var n=this.api(!0).page(e);(t===a||t)&&n.draw(!1)},this.fnSetColumnVis=function(e,t,n){var r=this.api(!0).column(e).visible(t);(n===a||n)&&r.columns.adjust().draw()},this.fnSettings=function(){return Pe(this[Ve.iApiIndex])},this.fnSort=function(e){this.api(!0).order(e).draw()},this.fnSortListener=function(e,t,n){this.api(!0).order.listener(e,t,n)},this.fnUpdate=function(e,t,n,r,o){var i=this.api(!0);return n===a||null===n?i.row(t).data(e):i.cell(t,n).data(e),(o===a||o)&&i.columns.adjust(),(r===a||r)&&i.draw(),0},this.fnVersionCheck=Ve.fnVersionCheck;var n=this,r=t===a,c=this.length;r&&(t={}),this.oApi=this.internal=Ve.internal;for(var h in ze.ext.internal)h&&(this[h]=Je(h));return this.each(function(){var h,p={},g=c>1?He(p,t,!0):t,b=0,v=this.getAttribute("id"),m=!1,_=ze.defaults,T=e(this);if("table"!=this.nodeName.toLowerCase())return void Re(null,0,"Non-table node initialisation ("+this.nodeName+")",2);s(_),l(_.column),o(_,_,!0),o(_.column,_.column,!0),o(_,e.extend(g,T.data()));var w=ze.settings;for(b=0,h=w.length;b<h;b++){var C=w[b];if(C.nTable==this||C.nTHead.parentNode==this||C.nTFoot&&C.nTFoot.parentNode==this){var x=g.bRetrieve!==a?g.bRetrieve:_.bRetrieve,A=g.bDestroy!==a?g.bDestroy:_.bDestroy;if(r||x)return C.oInstance;if(A){C.oInstance.fnDestroy();break}return void Re(C,0,"Cannot reinitialise DataTable",3)}if(C.sTableId==this.id){w.splice(b,1);break}}null!==v&&""!==v||(v="DataTables_Table_"+ze.ext._unique++,this.id=v);var F=e.extend(!0,{},ze.models.oSettings,{sDestroyWidth:T[0].style.width,sInstance:v,sTableId:v});F.nTable=this,F.oApi=n.internal,F.oInit=g,w.push(F),F.oInstance=1===n.length?n:T.dataTable(),s(g),g.oLanguage&&i(g.oLanguage),g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=e.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]),g=He(e.extend(!0,{},_),g),je(F.oFeatures,g,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),je(F,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]),je(F.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),je(F.oLanguage,g,"fnInfoCallback"),Oe(F,"aoDrawCallback",g.fnDrawCallback,"user"),Oe(F,"aoServerParams",g.fnServerParams,"user"),Oe(F,"aoStateSaveParams",g.fnStateSaveParams,"user"),Oe(F,"aoStateLoadParams",g.fnStateLoadParams,"user"),Oe(F,"aoStateLoaded",g.fnStateLoaded,"user"),Oe(F,"aoRowCallback",g.fnRowCallback,"user"),Oe(F,"aoRowCreatedCallback",g.fnCreatedRow,"user"),Oe(F,"aoHeaderCallback",g.fnHeaderCallback,"user"),Oe(F,"aoFooterCallback",g.fnFooterCallback,"user"),Oe(F,"aoInitComplete",g.fnInitComplete,"user"),Oe(F,"aoPreDrawCallback",g.fnPreDrawCallback,"user"),F.rowIdFn=I(g.rowId),u(F);var L=F.oClasses;if(g.bJQueryUI?(e.extend(L,ze.ext.oJUIClasses,g.oClasses),g.sDom===_.sDom&&"lfrtip"===_.sDom&&(F.sDom='<"H"lfr>t<"F"ip>'),F.renderer?e.isPlainObject(F.renderer)&&!F.renderer.header&&(F.renderer.header="jqueryui"):F.renderer="jqueryui"):e.extend(L,ze.ext.classes,g.oClasses),T.addClass(L.sTable),F.iInitDisplayStart===a&&(F.iInitDisplayStart=g.iDisplayStart,F._iDisplayStart=g.iDisplayStart),null!==g.iDeferLoading){F.bDeferLoading=!0;var P=e.isArray(g.iDeferLoading);F._iRecordsDisplay=P?g.iDeferLoading[0]:g.iDeferLoading,F._iRecordsTotal=P?g.iDeferLoading[1]:g.iDeferLoading}var R=F.oLanguage;e.extend(!0,R,g.oLanguage),""!==R.sUrl&&(e.ajax({dataType:"json",url:R.sUrl,success:function(t){i(t),o(_.oLanguage,t),e.extend(!0,R,t),ie(F)},error:function(){ie(F)}}),m=!0),null===g.asStripeClasses&&(F.asStripeClasses=[L.sStripeOdd,L.sStripeEven]);var j=F.asStripeClasses,H=T.children("tbody").find("tr").eq(0);e.inArray(!0,e.map(j,function(e,t){return H.hasClass(e)}))!==-1&&(e("tbody tr",this).removeClass(j.join(" ")),F.asDestroyStripes=j.slice());var N,O=[],k=this.getElementsByTagName("thead");if(0!==k.length&&(E(F.aoHeader,k[0]),O=B(F)),null===g.aoColumns)for(N=[],b=0,h=O.length;b<h;b++)N.push(null);else N=g.aoColumns;for(b=0,h=N.length;b<h;b++)f(F,O?O[b]:null);if(S(F,g.aoColumnDefs,N,function(e,t){d(F,e,t)}),H.length){var M=function(e,t){return null!==e.getAttribute("data-"+t)?t:null};e(H[0]).children("th, td").each(function(e,t){var n=F.aoColumns[e];if(n.mData===e){var r=M(t,"sort")||M(t,"order"),o=M(t,"filter")||M(t,"search");null===r&&null===o||(n.mData={_:e+".display",sort:null!==r?e+".@data-"+r:a,type:null!==r?e+".@data-"+r:a,filter:null!==o?e+".@data-"+o:a},d(F,e))}})}var W=F.oFeatures;if(g.bStateSave&&(W.bStateSave=!0,Le(F,g),Oe(F,"aoDrawCallback",Fe,"state_save")),g.aaSorting===a){var U=F.aaSorting;for(b=0,h=U.length;b<h;b++)U[b][1]=F.aoColumns[b].asSorting[0]}Ie(F),W.bSort&&Oe(F,"aoDrawCallback",function(){if(F.bSorted){var t=_e(F),n={};e.each(t,function(e,t){n[t.src]=t.dir}),ke(F,null,"order",[F,t,n]),we(F)}}),Oe(F,"aoDrawCallback",function(){(F.bSorted||"ssp"===Ue(F)||W.bDeferRender)&&Ie(F)},"sc");var J=T.children("caption").each(function(){this._captionSide=T.css("caption-side")}),V=T.children("thead");0===V.length&&(V=e("<thead/>").appendTo(this)),F.nTHead=V[0];var X=T.children("tbody");0===X.length&&(X=e("<tbody/>").appendTo(this)),F.nTBody=X[0];var q=T.children("tfoot");if(0===q.length&&J.length>0&&(""!==F.oScroll.sX||""!==F.oScroll.sY)&&(q=e("<tfoot/>").appendTo(this)),0===q.length||0===q.children().length?T.addClass(L.sNoFooter):q.length>0&&(F.nTFoot=q[0],E(F.aoFooter,F.nTFoot)),g.aaData)for(b=0;b<g.aaData.length;b++)D(F,g.aaData[b]);else(F.bDeferLoading||"dom"==Ue(F))&&y(F,e(F.nTBody).children("tr"));F.aiDisplay=F.aiDisplayMaster.slice(),F.bInitialised=!0,m===!1&&ie(F)}),n=null,this},$e={},Qe=/[\r\n]/g,Ye=/<.*?>/g,Ze=/^[\w\+\-]/,Ke=/[\w\+\-]$/,et=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),tt=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,nt=function(e){return!e||e===!0||"-"===e},at=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null},rt=function(e,t){return $e[t]||($e[t]=new RegExp(vt(t),"g")),"string"==typeof e&&"."!==t?e.replace(/\./g,"").replace($e[t],"."):e},ot=function(e,t,n){var a="string"==typeof e;return!!nt(e)||(t&&a&&(e=rt(e,t)),n&&a&&(e=e.replace(tt,"")),!isNaN(parseFloat(e))&&isFinite(e))},it=function(e){return nt(e)||"string"==typeof e},st=function(e,t,n){if(nt(e))return!0;var a=it(e);return a?!!ot(dt(e),t,n)||null:null},lt=function(e,t,n){var r=[],o=0,i=e.length;if(n!==a)for(;o<i;o++)e[o]&&e[o][t]&&r.push(e[o][t][n]);else for(;o<i;o++)e[o]&&r.push(e[o][t]);return r},ut=function(e,t,n,r){var o=[],i=0,s=t.length;if(r!==a)for(;i<s;i++)e[t[i]][n]&&o.push(e[t[i]][n][r]);else for(;i<s;i++)o.push(e[t[i]][n]);return o},ct=function(e,t){var n,r=[];t===a?(t=0,n=e):(n=t,t=e);for(var o=t;o<n;o++)r.push(o);return r},ft=function(e){for(var t=[],n=0,a=e.length;n<a;n++)e[n]&&t.push(e[n]);return t},dt=function(e){return e.replace(Ye,"")},ht=function(e){var t,n,a,r=[],o=e.length,i=0;e:for(n=0;n<o;n++){for(t=e[n],a=0;a<i;a++)if(r[a]===t)continue e;r.push(t),i++}return r};ze.util={throttle:function(e,t){var n,r,o=t!==a?t:200;return function(){var t=this,i=+new Date,s=arguments;n&&i<n+o?(clearTimeout(r),r=setTimeout(function(){n=a,e.apply(t,s)},o)):(n=i,e.apply(t,s))}},escapeRegex:function(e){return e.replace(et,"\\$1")}};var pt=function(e,t,n){e[t]!==a&&(e[n]=e[t])},gt=/\[.*?\]$/,bt=/\(\)$/,vt=ze.util.escapeRegex,mt=e("<div>")[0],St=mt.textContent!==a,Dt=/<.*?>/g,yt=ze.util.throttle,_t=[],Tt=Array.prototype,wt=function(t){var n,a,r=ze.settings,o=e.map(r,function(e,t){return e.nTable});return t?t.nTable&&t.oApi?[t]:t.nodeName&&"table"===t.nodeName.toLowerCase()?(n=e.inArray(t,o),n!==-1?[r[n]]:null):t&&"function"==typeof t.settings?t.settings().toArray():("string"==typeof t?a=e(t):t instanceof e&&(a=t),a?a.map(function(t){return n=e.inArray(this,o),n!==-1?r[n]:null}).toArray():void 0):[]};Xe=function(t,n){if(!(this instanceof Xe))return new Xe(t,n);var a=[],r=function(e){var t=wt(e);t&&(a=a.concat(t))};if(e.isArray(t))for(var o=0,i=t.length;o<i;o++)r(t[o]);else r(t);this.context=ht(a),n&&e.merge(this,n),this.selector={rows:null,cols:null,opts:null},Xe.extend(this,this,_t)},ze.Api=Xe,e.extend(Xe.prototype,{any:function(){return 0!==this.count()},concat:Tt.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,n=this.length;t<n;t++)e.call(this,this[t],t,this);return this},eq:function(e){var t=this.context;return t.length>e?new Xe(t[e],this[e]):null},filter:function(e){var t=[];if(Tt.filter)t=Tt.filter.call(this,e,this);else for(var n=0,a=this.length;n<a;n++)e.call(this,this[n],n,this)&&t.push(this[n]);return new Xe(this.context,t)},flatten:function(){var e=[];return new Xe(this.context,e.concat.apply(e,this.toArray()))},join:Tt.join,indexOf:Tt.indexOf||function(e,t){for(var n=t||0,a=this.length;n<a;n++)if(this[n]===e)return n;return-1},iterator:function(e,t,n,r){var o,i,s,l,u,c,f,d,h=[],p=this.context,g=this.selector;for("string"==typeof e&&(r=n,n=t,t=e,e=!1),i=0,s=p.length;i<s;i++){var b=new Xe(p[i]);if("table"===t)o=n.call(b,p[i],i),o!==a&&h.push(o);else if("columns"===t||"rows"===t)o=n.call(b,p[i],this[i],i),o!==a&&h.push(o);else if("column"===t||"column-rows"===t||"row"===t||"cell"===t)for(f=this[i],"column-rows"===t&&(c=Lt(p[i],g.opts)),l=0,u=f.length;l<u;l++)d=f[l],o="cell"===t?n.call(b,p[i],d.row,d.column,i,l):n.call(b,p[i],d,i,l,c),o!==a&&h.push(o)}if(h.length||r){var v=new Xe(p,e?h.concat.apply([],h):h),m=v.selector;return m.rows=g.rows,m.cols=g.cols,m.opts=g.opts,v}return this},lastIndexOf:Tt.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(Tt.map)t=Tt.map.call(this,e,this);else for(var n=0,a=this.length;n<a;n++)t.push(e.call(this,this[n],n));return new Xe(this.context,t)},pluck:function(e){return this.map(function(t){return t[e]})},pop:Tt.pop,push:Tt.push,reduce:Tt.reduce||function(e,t){return c(this,e,t,0,this.length,1)},reduceRight:Tt.reduceRight||function(e,t){return c(this,e,t,this.length-1,-1,-1)},reverse:Tt.reverse,selector:null,shift:Tt.shift,sort:Tt.sort,splice:Tt.splice,toArray:function(){return Tt.slice.call(this)},to$:function(){return e(this)},toJQuery:function(){return e(this)},unique:function(){return new Xe(this.context,ht(this))},unshift:Tt.unshift}),Xe.extend=function(t,n,a){if(a.length&&n&&(n instanceof Xe||n.__dt_wrapper)){var r,o,i,s=function(e,t,n){return function(){var a=t.apply(e,arguments);return Xe.extend(a,a,n.methodExt),a}};for(r=0,o=a.length;r<o;r++)i=a[r],n[i.name]="function"==typeof i.val?s(t,i.val,i):e.isPlainObject(i.val)?{}:i.val,n[i.name].__dt_wrapper=!0,Xe.extend(t,n[i.name],i.propExt)}},Xe.register=qe=function(t,n){if(e.isArray(t))for(var a=0,r=t.length;a<r;a++)Xe.register(t[a],n);else{var o,i,s,l,u=t.split("."),c=_t,f=function(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n].name===t)return e[n];return null};for(o=0,i=u.length;o<i;o++){l=u[o].indexOf("()")!==-1,s=l?u[o].replace("()",""):u[o];var d=f(c,s);d||(d={name:s,val:{},methodExt:[],propExt:[]},c.push(d)),o===i-1?d.val=n:c=l?d.methodExt:d.propExt}}},Xe.registerPlural=Ge=function(t,n,r){Xe.register(t,r),Xe.register(n,function(){var t=r.apply(this,arguments);return t===this?this:t instanceof Xe?t.length?e.isArray(t[0])?new Xe(t.context,t[0]):t[0]:a:t})};var Ct=function(t,n){if("number"==typeof t)return[n[t]];var a=e.map(n,function(e,t){return e.nTable});return e(a).filter(t).map(function(t){var r=e.inArray(this,a);return n[r]}).toArray()};qe("tables()",function(e){return e?new Xe(Ct(e,this.context)):this}),qe("table()",function(e){var t=this.tables(e),n=t.context;return n.length?new Xe(n[0]):t}),Ge("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)}),Ge("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)}),Ge("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)}),Ge("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)}),Ge("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)}),qe("draw()",function(e){return this.iterator("table",function(t){"page"===e?M(t):("string"==typeof e&&(e="full-hold"!==e),W(t,e===!1))})}),qe("page()",function(e){return e===a?this.page.info().page:this.iterator("table",function(t){fe(t,e)})}),qe("page.info()",function(e){if(0===this.context.length)return a;var t=this.context[0],n=t._iDisplayStart,r=t.oFeatures.bPaginate?t._iDisplayLength:-1,o=t.fnRecordsDisplay(),i=r===-1;return{page:i?0:Math.floor(n/r),pages:i?1:Math.ceil(o/r),start:n,end:t.fnDisplayEnd(),length:r,recordsTotal:t.fnRecordsTotal(),recordsDisplay:o,serverSide:"ssp"===Ue(t)}}),qe("page.len()",function(e){return e===a?0!==this.context.length?this.context[0]._iDisplayLength:a:this.iterator("table",function(t){le(t,e)})});var xt=function(e,t,n){if(n){var a=new Xe(e);a.one("draw",function(){n(a.ajax.json())})}if("ssp"==Ue(e))W(e,t);else{he(e,!0);var r=e.jqXHR;r&&4!==r.readyState&&r.abort(),J(e,[],function(n){L(e);for(var a=G(e,n),r=0,o=a.length;r<o;r++)D(e,a[r]);W(e,t),he(e,!1)})}};qe("ajax.json()",function(){var e=this.context;if(e.length>0)return e[0].json}),qe("ajax.params()",function(){var e=this.context;if(e.length>0)return e[0].oAjaxData}),qe("ajax.reload()",function(e,t){return this.iterator("table",function(n){xt(n,t===!1,e)})}),qe("ajax.url()",function(t){var n=this.context;return t===a?0===n.length?a:(n=n[0],n.ajax?e.isPlainObject(n.ajax)?n.ajax.url:n.ajax:n.sAjaxSource):this.iterator("table",function(n){e.isPlainObject(n.ajax)?n.ajax.url=t:n.ajax=t})}),qe("ajax.url().load()",function(e,t){return this.iterator("table",function(n){xt(n,t===!1,e)})});var It=function(t,n,r,o,i){var s,l,u,c,f,d,h=[],p=typeof n;for(n&&"string"!==p&&"function"!==p&&n.length!==a||(n=[n]),u=0,c=n.length;u<c;u++)for(l=n[u]&&n[u].split?n[u].split(","):[n[u]],f=0,d=l.length;f<d;f++)s=r("string"==typeof l[f]?e.trim(l[f]):l[f]),s&&s.length&&(h=h.concat(s));var g=Ve.selector[t];if(g.length)for(u=0,c=g.length;u<c;u++)h=g[u](o,i,h);return ht(h)},At=function(t){return t||(t={}),t.filter&&t.search===a&&(t.search=t.filter),e.extend({search:"none",order:"current",page:"all"},t)},Ft=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t].length>0)return e[0]=e[t],e[0].length=1,e.length=1,e.context=[e.context[t]],e;return e.length=0,e},Lt=function(t,n){var a,r,o,i=[],s=t.aiDisplay,l=t.aiDisplayMaster,u=n.search,c=n.order,f=n.page;if("ssp"==Ue(t))return"removed"===u?[]:ct(0,l.length);if("current"==f)for(a=t._iDisplayStart,r=t.fnDisplayEnd();a<r;a++)i.push(s[a]);else if("current"==c||"applied"==c)i="none"==u?l.slice():"applied"==u?s.slice():e.map(l,function(t,n){return e.inArray(t,s)===-1?t:null});else if("index"==c||"original"==c)for(a=0,r=t.aoData.length;a<r;a++)"none"==u?i.push(a):(o=e.inArray(a,s),(o===-1&&"removed"==u||o>=0&&"applied"==u)&&i.push(a));return i},Pt=function(t,n,r){var o=function(n){var o=at(n);if(null!==o&&!r)return[o];var i=Lt(t,r);if(null!==o&&e.inArray(o,i)!==-1)return[o];if(!n)return i;if("function"==typeof n)return e.map(i,function(e){var a=t.aoData[e];return n(e,a._aData,a.nTr)?e:null});var s=ft(ut(t.aoData,i,"nTr"));if(n.nodeName){if(n._DT_RowIndex!==a)return[n._DT_RowIndex];if(n._DT_CellIndex)return[n._DT_CellIndex.row];var l=e(n).closest("*[data-dt-row]");return l.length?[l.data("dt-row")]:[]}if("string"==typeof n&&"#"===n.charAt(0)){var u=t.aIds[n.replace(/^#/,"")];if(u!==a)return[u.idx]}return e(s).filter(n).map(function(){return this._DT_RowIndex}).toArray()};return It("row",n,o,t,r)};qe("rows()",function(t,n){t===a?t="":e.isPlainObject(t)&&(n=t,t=""),n=At(n);var r=this.iterator("table",function(e){return Pt(e,t,n)},1);return r.selector.rows=t,r.selector.opts=n,r}),qe("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||a},1)}),qe("rows().data()",function(){return this.iterator(!0,"rows",function(e,t){return ut(e.aoData,t,"_aData")},1)}),Ge("rows().cache()","row().cache()",function(e){return this.iterator("row",function(t,n){var a=t.aoData[n];return"search"===e?a._aFilterData:a._aSortData},1)}),Ge("rows().invalidate()","row().invalidate()",function(e){return this.iterator("row",function(t,n){R(t,n,e)})}),Ge("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)}),Ge("rows().ids()","row().id()",function(e){for(var t=[],n=this.context,a=0,r=n.length;a<r;a++)for(var o=0,i=this[a].length;o<i;o++){var s=n[a].rowIdFn(n[a].aoData[this[a][o]]._aData);t.push((e===!0?"#":"")+s)}return new Xe(n,t)}),Ge("rows().remove()","row().remove()",function(){var e=this;return this.iterator("row",function(t,n,r){var o,i,s,l,u,c,f=t.aoData,d=f[n];for(f.splice(n,1),o=0,i=f.length;o<i;o++)if(u=f[o],c=u.anCells,null!==u.nTr&&(u.nTr._DT_RowIndex=o),null!==c)for(s=0,l=c.length;s<l;s++)c[s]._DT_CellIndex.row=o;P(t.aiDisplayMaster,n),P(t.aiDisplay,n),P(e[r],n,!1),Me(t);var h=t.rowIdFn(d._aData);h!==a&&delete t.aIds[h]}),this.iterator("table",function(e){for(var t=0,n=e.aoData.length;t<n;t++)e.aoData[t].idx=t}),this}),qe("rows.add()",function(t){var n=this.iterator("table",function(e){var n,a,r,o=[];for(a=0,r=t.length;a<r;a++)n=t[a],n.nodeName&&"TR"===n.nodeName.toUpperCase()?o.push(y(e,n)[0]):o.push(D(e,n));return o},1),a=this.rows(-1);return a.pop(),e.merge(a,n),a}),qe("row()",function(e,t){return Ft(this.rows(e,t))}),qe("row().data()",function(e){var t=this.context;return e===a?t.length&&this.length?t[0].aoData[this[0]]._aData:a:(t[0].aoData[this[0]]._aData=e,R(t[0],this[0],"data"),this)}),qe("row().node()",function(){var e=this.context;return e.length&&this.length?e[0].aoData[this[0]].nTr||null:null}),qe("row.add()",function(t){t instanceof e&&t.length&&(t=t[0]);var n=this.iterator("table",function(e){return t.nodeName&&"TR"===t.nodeName.toUpperCase()?y(e,t)[0]:D(e,t)});return this.row(n[0])});var Rt=function(t,n,a,r){var o=[],i=function(n,a){if(e.isArray(n)||n instanceof e)for(var r=0,s=n.length;r<s;r++)i(n[r],a);else if(n.nodeName&&"tr"===n.nodeName.toLowerCase())o.push(n);else{var l=e("<tr><td/></tr>").addClass(a);e("td",l).addClass(a).html(n)[0].colSpan=b(t),o.push(l[0])}};i(a,r),n._details&&n._details.remove(),n._details=e(o),n._detailsShow&&n._details.insertAfter(n.nTr)},jt=function(e,t){var n=e.context;if(n.length){var r=n[0].aoData[t!==a?t:e[0]];r&&r._details&&(r._details.remove(),r._detailsShow=a,r._details=a)}},Ht=function(e,t){var n=e.context;if(n.length&&e.length){var a=n[0].aoData[e[0]];a._details&&(a._detailsShow=t,t?a._details.insertAfter(a.nTr):a._details.detach(),Nt(n[0]))}},Nt=function(e){var t=new Xe(e),n=".dt.DT_details",a="draw"+n,r="column-visibility"+n,o="destroy"+n,i=e.aoData;t.off(a+" "+r+" "+o),lt(i,"_details").length>0&&(t.on(a,function(n,a){e===a&&t.rows({page:"current"}).eq(0).each(function(e){var t=i[e];t._detailsShow&&t._details.insertAfter(t.nTr)})}),t.on(r,function(t,n,a,r){if(e===n)for(var o,s=b(n),l=0,u=i.length;l<u;l++)o=i[l],o._details&&o._details.children("td[colspan]").attr("colspan",s)}),t.on(o,function(n,a){if(e===a)for(var r=0,o=i.length;r<o;r++)i[r]._details&&jt(t,r)}))},Ot="",kt=Ot+"row().child",Mt=kt+"()";qe(Mt,function(e,t){var n=this.context;return e===a?n.length&&this.length?n[0].aoData[this[0]]._details:a:(e===!0?this.child.show():e===!1?jt(this):n.length&&this.length&&Rt(n[0],n[0].aoData[this[0]],e,t),this)}),qe([kt+".show()",Mt+".show()"],function(e){return Ht(this,!0),this}),qe([kt+".hide()",Mt+".hide()"],function(){return Ht(this,!1),this}),qe([kt+".remove()",Mt+".remove()"],function(){return jt(this),this}),qe(kt+".isShown()",function(){var e=this.context;return!(!e.length||!this.length)&&(e[0].aoData[this[0]]._detailsShow||!1)});var Wt=/^(.+):(name|visIdx|visible)$/,Ut=function(e,t,n,a,r){for(var o=[],i=0,s=r.length;i<s;i++)o.push(w(e,r[i],t));return o},Et=function(t,n,a){var r=t.aoColumns,o=lt(r,"sName"),i=lt(r,"nTh"),s=function(n){var s=at(n);if(""===n)return ct(r.length);if(null!==s)return[s>=0?s:r.length+s];if("function"==typeof n){var l=Lt(t,a);return e.map(r,function(e,a){return n(a,Ut(t,a,0,0,l),i[a])?a:null})}var u="string"==typeof n?n.match(Wt):"";if(u)switch(u[2]){case"visIdx":case"visible":var c=parseInt(u[1],10);if(c<0){var f=e.map(r,function(e,t){return e.bVisible?t:null});return[f[f.length+c]]}return[p(t,c)];case"name":return e.map(o,function(e,t){return e===u[1]?t:null;
});default:return[]}if(n.nodeName&&n._DT_CellIndex)return[n._DT_CellIndex.column];var d=e(i).filter(n).map(function(){return e.inArray(this,i)}).toArray();if(d.length||!n.nodeName)return d;var h=e(n).closest("*[data-dt-column]");return h.length?[h.data("dt-column")]:[]};return It("column",n,s,t,a)},Bt=function(t,n,r){var o,i,s,l,u=t.aoColumns,c=u[n],f=t.aoData;if(r===a)return c.bVisible;if(c.bVisible!==r){if(r){var d=e.inArray(!0,lt(u,"bVisible"),n+1);for(i=0,s=f.length;i<s;i++)l=f[i].nTr,o=f[i].anCells,l&&l.insertBefore(o[n],o[d]||null)}else e(lt(t.aoData,"anCells",n)).detach();c.bVisible=r,k(t,t.aoHeader),k(t,t.aoFooter),Fe(t)}};qe("columns()",function(t,n){t===a?t="":e.isPlainObject(t)&&(n=t,t=""),n=At(n);var r=this.iterator("table",function(e){return Et(e,t,n)},1);return r.selector.cols=t,r.selector.opts=n,r}),Ge("columns().header()","column().header()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)}),Ge("columns().footer()","column().footer()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)}),Ge("columns().data()","column().data()",function(){return this.iterator("column-rows",Ut,1)}),Ge("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)}),Ge("columns().cache()","column().cache()",function(e){return this.iterator("column-rows",function(t,n,a,r,o){return ut(t.aoData,o,"search"===e?"_aFilterData":"_aSortData",n)},1)}),Ge("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,n,a,r){return ut(e.aoData,r,"anCells",t)},1)}),Ge("columns().visible()","column().visible()",function(e,t){var n=this.iterator("column",function(t,n){return e===a?t.aoColumns[n].bVisible:void Bt(t,n,e)});return e!==a&&(this.iterator("column",function(n,a){ke(n,null,"column-visibility",[n,a,e,t])}),(t===a||t)&&this.columns.adjust()),n}),Ge("columns().indexes()","column().index()",function(e){return this.iterator("column",function(t,n){return"visible"===e?g(t,n):n},1)}),qe("columns.adjust()",function(){return this.iterator("table",function(e){h(e)},1)}),qe("column.index()",function(e,t){if(0!==this.context.length){var n=this.context[0];if("fromVisible"===e||"toData"===e)return p(n,t);if("fromData"===e||"toVisible"===e)return g(n,t)}}),qe("column()",function(e,t){return Ft(this.columns(e,t))});var Jt=function(t,n,r){var o,i,s,l,u,c,f,d=t.aoData,h=Lt(t,r),p=ft(ut(d,h,"anCells")),g=e([].concat.apply([],p)),b=t.aoColumns.length,v=function(n){var r="function"==typeof n;if(null===n||n===a||r){for(i=[],s=0,l=h.length;s<l;s++)for(o=h[s],u=0;u<b;u++)c={row:o,column:u},r?(f=d[o],n(c,w(t,o,u),f.anCells?f.anCells[u]:null)&&i.push(c)):i.push(c);return i}if(e.isPlainObject(n))return[n];var p=g.filter(n).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray();return p.length||!n.nodeName?p:(f=e(n).closest("*[data-dt-row]"),f.length?[{row:f.data("dt-row"),column:f.data("dt-column")}]:[])};return It("cell",n,v,t,r)};qe("cells()",function(t,n,r){if(e.isPlainObject(t)&&(t.row===a?(r=t,t=null):(r=n,n=null)),e.isPlainObject(n)&&(r=n,n=null),null===n||n===a)return this.iterator("table",function(e){return Jt(e,t,At(r))});var o,i,s,l,u,c=this.columns(n,r),f=this.rows(t,r),d=this.iterator("table",function(e,t){for(o=[],i=0,s=f[t].length;i<s;i++)for(l=0,u=c[t].length;l<u;l++)o.push({row:f[t][i],column:c[t][l]});return o},1);return e.extend(d.selector,{cols:n,rows:t,opts:r}),d}),Ge("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,n){var r=e.aoData[t];return r&&r.anCells?r.anCells[n]:a},1)}),qe("cells().data()",function(){return this.iterator("cell",function(e,t,n){return w(e,t,n)},1)}),Ge("cells().cache()","cell().cache()",function(e){return e="search"===e?"_aFilterData":"_aSortData",this.iterator("cell",function(t,n,a){return t.aoData[n][e][a]},1)}),Ge("cells().render()","cell().render()",function(e){return this.iterator("cell",function(t,n,a){return w(t,n,a,e)},1)}),Ge("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,n){return{row:t,column:n,columnVisible:g(e,n)}},1)}),Ge("cells().invalidate()","cell().invalidate()",function(e){return this.iterator("cell",function(t,n,a){R(t,n,e,a)})}),qe("cell()",function(e,t,n){return Ft(this.cells(e,t,n))}),qe("cell().data()",function(e){var t=this.context,n=this[0];return e===a?t.length&&n.length?w(t[0],n[0].row,n[0].column):a:(C(t[0],n[0].row,n[0].column,e),R(t[0],n[0].row,"data",n[0].column),this)}),qe("order()",function(t,n){var r=this.context;return t===a?0!==r.length?r[0].aaSorting:a:("number"==typeof t?t=[[t,n]]:t.length&&!e.isArray(t[0])&&(t=Array.prototype.slice.call(arguments)),this.iterator("table",function(e){e.aaSorting=t.slice()}))}),qe("order.listener()",function(e,t,n){return this.iterator("table",function(a){xe(a,e,t,n)})}),qe("order.fixed()",function(t){if(!t){var n=this.context,r=n.length?n[0].aaSortingFixed:a;return e.isArray(r)?{pre:r}:r}return this.iterator("table",function(n){n.aaSortingFixed=e.extend(!0,{},t)})}),qe(["columns().order()","column().order()"],function(t){var n=this;return this.iterator("table",function(a,r){var o=[];e.each(n[r],function(e,n){o.push([n,t])}),a.aaSorting=o})}),qe("search()",function(t,n,r,o){var i=this.context;return t===a?0!==i.length?i[0].oPreviousSearch.sSearch:a:this.iterator("table",function(a){a.oFeatures.bFilter&&$(a,e.extend({},a.oPreviousSearch,{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),1)})}),Ge("columns().search()","column().search()",function(t,n,r,o){return this.iterator("column",function(i,s){var l=i.aoPreSearchCols;return t===a?l[s].sSearch:void(i.oFeatures.bFilter&&(e.extend(l[s],{sSearch:t+"",bRegex:null!==n&&n,bSmart:null===r||r,bCaseInsensitive:null===o||o}),$(i,i.oPreviousSearch,1)))})}),qe("state()",function(){return this.context.length?this.context[0].oSavedState:null}),qe("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})}),qe("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null}),qe("state.save()",function(){return this.iterator("table",function(e){Fe(e)})}),ze.versionCheck=ze.fnVersionCheck=function(e){for(var t,n,a=ze.version.split("."),r=e.split("."),o=0,i=r.length;o<i;o++)if(t=parseInt(a[o],10)||0,n=parseInt(r[o],10)||0,t!==n)return t>n;return!0},ze.isDataTable=ze.fnIsDataTable=function(t){var n=e(t).get(0),a=!1;return e.each(ze.settings,function(t,r){var o=r.nScrollHead?e("table",r.nScrollHead)[0]:null,i=r.nScrollFoot?e("table",r.nScrollFoot)[0]:null;r.nTable!==n&&o!==n&&i!==n||(a=!0)}),a},ze.tables=ze.fnTables=function(t){var n=!1;e.isPlainObject(t)&&(n=t.api,t=t.visible);var a=e.map(ze.settings,function(n){if(!t||t&&e(n.nTable).is(":visible"))return n.nTable});return n?new Xe(a):a},ze.camelToHungarian=o,qe("$()",function(t,n){var a=this.rows(n).nodes(),r=e(a);return e([].concat(r.filter(t).toArray(),r.find(t).toArray()))}),e.each(["on","one","off"],function(t,n){qe(n+"()",function(){var t=Array.prototype.slice.call(arguments);t[0].match(/\.dt\b/)||(t[0]+=".dt");var a=e(this.tables().nodes());return a[n].apply(a,t),this})}),qe("clear()",function(){return this.iterator("table",function(e){L(e)})}),qe("settings()",function(){return new Xe(this.context,this.context)}),qe("init()",function(){var e=this.context;return e.length?e[0].oInit:null}),qe("data()",function(){return this.iterator("table",function(e){return lt(e.aoData,"_aData")}).flatten()}),qe("destroy()",function(n){return n=n||!1,this.iterator("table",function(a){var r,o=a.nTableWrapper.parentNode,i=a.oClasses,s=a.nTable,l=a.nTBody,u=a.nTHead,c=a.nTFoot,f=e(s),d=e(l),h=e(a.nTableWrapper),p=e.map(a.aoData,function(e){return e.nTr});a.bDestroying=!0,ke(a,"aoDestroyCallback","destroy",[a]),n||new Xe(a).columns().visible(!0),h.unbind(".DT").find(":not(tbody *)").unbind(".DT"),e(t).unbind(".DT-"+a.sInstance),s!=u.parentNode&&(f.children("thead").detach(),f.append(u)),c&&s!=c.parentNode&&(f.children("tfoot").detach(),f.append(c)),a.aaSorting=[],a.aaSortingFixed=[],Ie(a),e(p).removeClass(a.asStripeClasses.join(" ")),e("th, td",u).removeClass(i.sSortable+" "+i.sSortableAsc+" "+i.sSortableDesc+" "+i.sSortableNone),a.bJUI&&(e("th span."+i.sSortIcon+", td span."+i.sSortIcon,u).detach(),e("th, td",u).each(function(){var t=e("div."+i.sSortJUIWrapper,this);e(this).append(t.contents()),t.detach()})),d.children().detach(),d.append(p);var g=n?"remove":"detach";f[g](),h[g](),!n&&o&&(o.insertBefore(s,a.nTableReinsertBefore),f.css("width",a.sDestroyWidth).removeClass(i.sTable),r=a.asDestroyStripes.length,r&&d.children().each(function(t){e(this).addClass(a.asDestroyStripes[t%r])}));var b=e.inArray(a,ze.settings);b!==-1&&ze.settings.splice(b,1)})}),e.each(["column","row","cell"],function(e,t){qe(t+"s().every()",function(e){var n=this.selector.opts,r=this;return this.iterator(t,function(o,i,s,l,u){e.call(r[t](i,"cell"===t?s:n,"cell"===t?n:a),i,s,l,u)})})}),qe("i18n()",function(t,n,r){var o=this.context[0],i=I(t)(o.oLanguage);return i===a&&(i=n),r!==a&&e.isPlainObject(i)&&(i=i[r]!==a?i[r]:i._),i.replace("%d",r)}),ze.version="1.10.12",ze.settings=[],ze.models={},ze.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},ze.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},ze.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},ze.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((e.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(t){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(e.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(n){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:e.extend({},ze.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},r(ze.defaults),ze.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},r(ze.defaults.column),ze.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:a,oAjaxData:a,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Ue(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Ue(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,n=t+e,a=this.aiDisplay.length,r=this.oFeatures,o=r.bPaginate;return r.bServerSide?o===!1||e===-1?t+a:Math.min(t+e,this._iRecordsDisplay):!o||n>a||e===-1?a:n},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},ze.ext=Ve={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:ze.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:ze.version},e.extend(Ve,{afnFiltering:Ve.search,aTypes:Ve.type.detect,ofnSearch:Ve.type.search,oSort:Ve.type.order,afnSortData:Ve.order,aoFeatures:Ve.feature,oApi:Ve.internal,oStdClasses:Ve.classes,oPagination:Ve.pager}),e.extend(ze.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""}),function(){var t="";t="";var n=t+"ui-state-default",a=t+"css_right ui-icon ui-icon-",r=t+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";e.extend(ze.ext.oJUIClasses,ze.ext.classes,{sPageButton:"fg-button ui-button "+n,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:n+" sorting_asc",sSortDesc:n+" sorting_desc",sSortable:n+" sorting",sSortableAsc:n+" sorting_asc_disabled",sSortableDesc:n+" sorting_desc_disabled",sSortableNone:n+" sorting_disabled",sSortJUIAsc:a+"triangle-1-n",sSortJUIDesc:a+"triangle-1-s",sSortJUI:a+"carat-2-n-s",sSortJUIAscAllowed:a+"carat-1-n",sSortJUIDescAllowed:a+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+n,sScrollFoot:"dataTables_scrollFoot "+n,sHeaderTH:n,sFooterTH:n,sJUIHeader:r+" ui-corner-tl ui-corner-tr",sJUIFooter:r+" ui-corner-bl ui-corner-br"})}();var Vt=ze.ext.pager;e.extend(Vt,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},numbers:function(e,t){return[Ee(e,t)]},simple_numbers:function(e,t){return["previous",Ee(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Ee(e,t),"next","last"]},_numbers:Ee,numbers_length:7}),e.extend(!0,ze.ext.renderer,{pageButton:{_:function(t,a,r,o,i,s){var l,u,c,f=t.oClasses,d=t.oLanguage.oPaginate,h=t.oLanguage.oAria.paginate||{},p=0,g=function(n,a){var o,c,b,v,m=function(e){fe(t,e.data.action,!0)};for(o=0,c=a.length;o<c;o++)if(v=a[o],e.isArray(v)){var S=e("<"+(v.DT_el||"div")+"/>").appendTo(n);g(S,v)}else{switch(l=null,u="",v){case"ellipsis":n.append('<span class="ellipsis">&#x2026;</span>');break;case"first":l=d.sFirst,u=v+(i>0?"":" "+f.sPageButtonDisabled);break;case"previous":l=d.sPrevious,u=v+(i>0?"":" "+f.sPageButtonDisabled);break;case"next":l=d.sNext,u=v+(i<s-1?"":" "+f.sPageButtonDisabled);break;case"last":l=d.sLast,u=v+(i<s-1?"":" "+f.sPageButtonDisabled);break;default:l=v+1,u=i===v?f.sPageButtonActive:""}null!==l&&(b=e("<a>",{"class":f.sPageButton+" "+u,"aria-controls":t.sTableId,"aria-label":h[v],"data-dt-idx":p,tabindex:t.iTabIndex,id:0===r&&"string"==typeof v?t.sTableId+"_"+v:null}).html(l).appendTo(n),Ne(b,{action:v},m),p++)}};try{c=e(a).find(n.activeElement).data("dt-idx")}catch(b){}g(e(a).empty(),o),c&&e(a).find("[data-dt-idx="+c+"]").focus()}}}),e.extend(ze.ext.type.detect,[function(e,t){var n=t.oLanguage.sDecimal;return ot(e,n)?"num"+n:null},function(e,t){if(e&&!(e instanceof Date)&&(!Ze.test(e)||!Ke.test(e)))return null;var n=Date.parse(e);return null!==n&&!isNaN(n)||nt(e)?"date":null},function(e,t){var n=t.oLanguage.sDecimal;return ot(e,n,!0)?"num-fmt"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return st(e,n)?"html-num"+n:null},function(e,t){var n=t.oLanguage.sDecimal;return st(e,n,!0)?"html-num-fmt"+n:null},function(e,t){return nt(e)||"string"==typeof e&&e.indexOf("<")!==-1?"html":null}]),e.extend(ze.ext.type.search,{html:function(e){return nt(e)?e:"string"==typeof e?e.replace(Qe," ").replace(Ye,""):""},string:function(e){return nt(e)?e:"string"==typeof e?e.replace(Qe," "):e}});var Xt=function(e,t,n,a){return 0===e||e&&"-"!==e?(t&&(e=rt(e,t)),e.replace&&(n&&(e=e.replace(n,"")),a&&(e=e.replace(a,""))),1*e):-(1/0)};e.extend(Ve.type.order,{"date-pre":function(e){return Date.parse(e)||0},"html-pre":function(e){return nt(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return nt(e)?"":"string"==typeof e?e.toLowerCase():e.toString?e.toString():""},"string-asc":function(e,t){return e<t?-1:e>t?1:0},"string-desc":function(e,t){return e<t?1:e>t?-1:0}}),Be(""),e.extend(!0,ze.ext.renderer,{header:{_:function(t,n,a,r){e(t.nTable).on("order.dt.DT",function(e,o,i,s){if(t===o){var l=a.idx;n.removeClass(a.sSortingClass+" "+r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:a.sSortingClass)}})},jqueryui:function(t,n,a,r){e("<div/>").addClass(r.sSortJUIWrapper).append(n.contents()).append(e("<span/>").addClass(r.sSortIcon+" "+a.sSortingClassJUI)).appendTo(n),e(t.nTable).on("order.dt.DT",function(e,o,i,s){if(t===o){var l=a.idx;n.removeClass(r.sSortAsc+" "+r.sSortDesc).addClass("asc"==s[l]?r.sSortAsc:"desc"==s[l]?r.sSortDesc:a.sSortingClass),n.find("span."+r.sSortIcon).removeClass(r.sSortJUIAsc+" "+r.sSortJUIDesc+" "+r.sSortJUI+" "+r.sSortJUIAscAllowed+" "+r.sSortJUIDescAllowed).addClass("asc"==s[l]?r.sSortJUIAsc:"desc"==s[l]?r.sSortJUIDesc:a.sSortingClassJUI)}})}}});var qt=function(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e};return ze.render={number:function(e,t,n,a,r){return{display:function(o){if("number"!=typeof o&&"string"!=typeof o)return o;var i=o<0?"-":"",s=parseFloat(o);if(isNaN(s))return qt(o);o=Math.abs(s);var l=parseInt(o,10),u=n?t+(o-l).toFixed(n).substring(2):"";return i+(a||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e)+u+(r||"")}}},text:function(){return{display:qt}}},e.extend(ze.ext.internal,{_fnExternApiFunc:Je,_fnBuildAjax:J,_fnAjaxUpdate:V,_fnAjaxParameters:X,_fnAjaxUpdateDraw:q,_fnAjaxDataSrc:G,_fnAddColumn:f,_fnColumnOptions:d,_fnAdjustColumnSizing:h,_fnVisibleToColumnIndex:p,_fnColumnIndexToVisible:g,_fnVisbleColumns:b,_fnGetColumns:v,_fnColumnTypes:m,_fnApplyColumnDefs:S,_fnHungarianMap:r,_fnCamelToHungarian:o,_fnLanguageCompat:i,_fnBrowserDetect:u,_fnAddData:D,_fnAddTr:y,_fnNodeToDataIndex:_,_fnNodeToColumnIndex:T,_fnGetCellData:w,_fnSetCellData:C,_fnSplitObjNotation:x,_fnGetObjectDataFn:I,_fnSetObjectDataFn:A,_fnGetDataMaster:F,_fnClearTable:L,_fnDeleteIndex:P,_fnInvalidate:R,_fnGetRowElements:j,_fnCreateTr:H,_fnBuildHead:O,_fnDrawHead:k,_fnDraw:M,_fnReDraw:W,_fnAddOptionsHtml:U,_fnDetectHeader:E,_fnGetUniqueThs:B,_fnFeatureHtmlFilter:z,_fnFilterComplete:$,_fnFilterCustom:Q,_fnFilterColumn:Y,_fnFilter:Z,_fnFilterCreateSearch:K,_fnEscapeRegex:vt,_fnFilterData:ee,_fnFeatureHtmlInfo:ae,_fnUpdateInfo:re,_fnInfoMacros:oe,_fnInitialise:ie,_fnInitComplete:se,_fnLengthChange:le,_fnFeatureHtmlLength:ue,_fnFeatureHtmlPaginate:ce,_fnPageChange:fe,_fnFeatureHtmlProcessing:de,_fnProcessingDisplay:he,_fnFeatureHtmlTable:pe,_fnScrollDraw:ge,_fnApplyToChildren:be,_fnCalculateColumnWidths:ve,_fnThrottle:yt,_fnConvertToWidth:me,_fnGetWidestNode:Se,_fnGetMaxLenString:De,_fnStringToCss:ye,_fnSortFlatten:_e,_fnSort:Te,_fnSortAria:we,_fnSortListener:Ce,_fnSortAttachListener:xe,_fnSortingClasses:Ie,_fnSortData:Ae,_fnSaveState:Fe,_fnLoadState:Le,_fnSettingsFromNode:Pe,_fnLog:Re,_fnMap:je,_fnBindAction:Ne,_fnCallbackReg:Oe,_fnCallbackFire:ke,_fnLengthOverflow:Me,_fnRenderer:We,_fnDataSource:Ue,_fnRowAttributes:N,_fnCalculateEnd:function(){}}),e.fn.dataTable=ze,ze.$=e,e.fn.dataTableSettings=ze.settings,e.fn.dataTableExt=ze.ext,e.fn.DataTable=function(t){return e(this).dataTable(t).api()},e.each(ze,function(t,n){e.fn.DataTable[t]=n}),e.fn.dataTable})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
$(function() {
// 读取body data-type 判断是哪个页面然后执行相应页面方法,方法在下面。
var dataType = $('body').attr('data-type');
console.log(dataType);
for (key in pageData) {
if (key == dataType) {
pageData[key]();
}
}
// // 判断用户是否已有自己选择的模板风格
// if(storageLoad('SelcetColor')){
// $('body').attr('class',storageLoad('SelcetColor').Color)
// }else{
// storageSave(saveSelectColor);
// $('body').attr('class','theme-black')
// }
autoLeftNav();
$(window).resize(function() {
autoLeftNav();
console.log($(window).width())
});
// if(storageLoad('SelcetColor')){
// }else{
// storageSave(saveSelectColor);
// }
})
// 页面数据
var pageData = {
// ===============================================
// 首页
// ===============================================
'index': function indexData() {
$('#example-r').DataTable({
bInfo: false, //页脚信息
dom: 'ti'
});
// ==========================
// 百度图表A http://echarts.baidu.com/
// ==========================
var echartsA = echarts.init(document.getElementById('tpl-echarts'));
option = {
tooltip: {
trigger: 'axis'
},
grid: {
top: '3%',
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
boundaryGap: false,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
}],
yAxis: [{
type: 'value'
}],
textStyle: {
color: '#838FA1'
},
series: [{
name: '邮件营销',
type: 'line',
stack: '总量',
areaStyle: { normal: {} },
data: [120, 132, 101, 134, 90],
itemStyle: {
normal: {
color: '#1cabdb',
borderColor: '#1cabdb',
borderWidth: '2',
borderType: 'solid',
opacity: '1'
},
emphasis: {
}
}
}]
};
echartsA.setOption(option);
},
// ===============================================
// 图表页
// ===============================================
'chart': function chartData() {
// ==========================
// 百度图表A http://echarts.baidu.com/
// ==========================
var echartsC = echarts.init(document.getElementById('tpl-echarts-C'));
optionC = {
tooltip: {
trigger: 'axis'
},
legend: {
data: ['蒸发量', '降水量', '平均温度']
},
xAxis: [{
type: 'category',
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
}],
yAxis: [{
type: 'value',
name: '水量',
min: 0,
max: 250,
interval: 50,
axisLabel: {
formatter: '{value} ml'
}
},
{
type: 'value',
name: '温度',
min: 0,
max: 25,
interval: 5,
axisLabel: {
formatter: '{value} °C'
}
}
],
series: [{
name: '蒸发量',
type: 'bar',
data: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3]
},
{
name: '降水量',
type: 'bar',
data: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3]
},
{
name: '平均温度',
type: 'line',
yAxisIndex: 1,
data: [2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2]
}
]
};
echartsC.setOption(optionC);
var echartsB = echarts.init(document.getElementById('tpl-echarts-B'));
optionB = {
tooltip: {
trigger: 'axis'
},
legend: {
x: 'center',
data: ['某软件', '某主食手机', '某水果手机', '降水量', '蒸发量']
},
radar: [{
indicator: [
{ text: '品牌', max: 100 },
{ text: '内容', max: 100 },
{ text: '可用性', max: 100 },
{ text: '功能', max: 100 }
],
center: ['25%', '40%'],
radius: 80
},
{
indicator: [
{ text: '外观', max: 100 },
{ text: '拍照', max: 100 },
{ text: '系统', max: 100 },
{ text: '性能', max: 100 },
{ text: '屏幕', max: 100 }
],
radius: 80,
center: ['50%', '60%'],
},
{
indicator: (function() {
var res = [];
for (var i = 1; i <= 12; i++) {
res.push({ text: i + '月', max: 100 });
}
return res;
})(),
center: ['75%', '40%'],
radius: 80
}
],
series: [{
type: 'radar',
tooltip: {
trigger: 'item'
},
itemStyle: { normal: { areaStyle: { type: 'default' } } },
data: [{
value: [60, 73, 85, 40],
name: '某软件'
}]
},
{
type: 'radar',
radarIndex: 1,
data: [{
value: [85, 90, 90, 95, 95],
name: '某主食手机'
},
{
value: [95, 80, 95, 90, 93],
name: '某水果手机'
}
]
},
{
type: 'radar',
radarIndex: 2,
itemStyle: { normal: { areaStyle: { type: 'default' } } },
data: [{
name: '降水量',
value: [2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 75.6, 82.2, 48.7, 18.8, 6.0, 2.3],
},
{
name: '蒸发量',
value: [2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 35.6, 62.2, 32.6, 20.0, 6.4, 3.3]
}
]
}
]
};
echartsB.setOption(optionB);
var echartsA = echarts.init(document.getElementById('tpl-echarts-A'));
option = {
tooltip: {
trigger: 'axis',
},
legend: {
data: ['邮件', '媒体', '资源']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
boundaryGap: true,
data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
}],
yAxis: [{
type: 'value'
}],
series: [
{
name: '邮件',
type: 'line',
stack: '总量',
areaStyle: { normal: {} },
data: [120, 132, 101, 134, 90, 230, 210],
itemStyle: {
normal: {
color: '#59aea2'
},
emphasis: {
}
}
},
{
name: '媒体',
type: 'line',
stack: '总量',
areaStyle: { normal: {} },
data: [220, 182, 191, 234, 290, 330, 310],
itemStyle: {
normal: {
color: '#e7505a'
}
}
},
{
name: '资源',
type: 'line',
stack: '总量',
areaStyle: { normal: {} },
data: [150, 232, 201, 154, 190, 330, 410],
itemStyle: {
normal: {
color: '#32c5d2'
}
}
}
]
};
// 通过WebSocket获取数据并刷新图表
var ws = new WebSocket('ws://localhost:8888/ws/charts');
ws.onmessage = function(evt) {
var array = JSON.parse(evt.data);
for (var i = 0; i < array.length; ++i) {
option.series[i].data = array[i];
}
echartsA.setOption(option);
};
}
}
// 风格切换
$('.tpl-skiner-toggle').on('click', function() {
$('.tpl-skiner').toggleClass('active');
})
$('.tpl-skiner-content-bar').find('span').on('click', function() {
$('body').attr('class', $(this).attr('data-color'))
saveSelectColor.Color = $(this).attr('data-color');
// 保存选择项
storageSave(saveSelectColor);
})
// 侧边菜单开关
function autoLeftNav() {
$('.tpl-header-switch-button').on('click', function() {
if ($('.left-sidebar').is('.active')) {
if ($(window).width() > 1024) {
$('.tpl-content-wrapper').removeClass('active');
}
$('.left-sidebar').removeClass('active');
} else {
$('.left-sidebar').addClass('active');
if ($(window).width() > 1024) {
$('.tpl-content-wrapper').addClass('active');
}
}
})
if ($(window).width() < 1024) {
$('.left-sidebar').addClass('active');
} else {
$('.left-sidebar').removeClass('active');
}
}
// 侧边菜单
$('.sidebar-nav-sub-title').on('click', function() {
$(this).siblings('.sidebar-nav-sub').slideToggle(80)
.end()
.find('.sidebar-nav-sub-ico').toggleClass('sidebar-nav-sub-ico-rotate');
})
\ No newline at end of file
!function(t){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(e){return t(e,window,document)}):"object"==typeof exports?module.exports=function(e,n){return e||(e=window),n&&n.fn.dataTable||(n=require("datatables.net")(e,n).$),t(n,e,e.document)}:t(jQuery,window,document)}(function(t,e,n,i){"use strict";var r=t.fn.dataTable,s=function(e,n){if(!r.versionCheck||!r.versionCheck("1.10.3"))throw"DataTables Responsive requires DataTables 1.10.3 or newer";this.s={dt:new r.Api(e),columns:[],current:[]},this.s.dt.settings()[0].responsive||(n&&"string"==typeof n.details?n.details={type:n.details}:n&&n.details===!1?n.details={type:!1}:n&&n.details===!0&&(n.details={type:"inline"}),this.c=t.extend(!0,{},s.defaults,r.defaults.responsive,n),e.responsive=this,this._constructor())};t.extend(s.prototype,{_constructor:function(){var n=this,i=this.s.dt,s=i.settings()[0],o=t(e).width();i.settings()[0]._responsive=this,t(e).on("resize.dtr orientationchange.dtr",r.util.throttle(function(){var i=t(e).width();i!==o&&(n._resize(),o=i)})),s.oApi._fnCallbackReg(s,"aoRowCreatedCallback",function(e,r,s){t.inArray(!1,n.s.current)!==-1&&t("td, th",e).each(function(e){var r=i.column.index("toData",e);n.s.current[r]===!1&&t(this).css("display","none")})}),i.on("destroy.dtr",function(){i.off(".dtr"),t(i.table().body()).off(".dtr"),t(e).off("resize.dtr orientationchange.dtr"),t.each(n.s.current,function(t,e){e===!1&&n._setColumnVis(t,!0)})}),this.c.breakpoints.sort(function(t,e){return t.width<e.width?1:t.width>e.width?-1:0}),this._classLogic(),this._resizeAuto();var a=this.c.details;a.type!==!1&&(n._detailsInit(),i.on("column-visibility.dtr",function(t,e,i,r){n._classLogic(),n._resizeAuto(),n._resize()}),i.on("draw.dtr",function(){n._redrawChildren()}),t(i.table().node()).addClass("dtr-"+a.type)),i.on("column-reorder.dtr",function(t,e,i){n._classLogic(),n._resizeAuto(),n._resize()}),i.on("column-sizing.dtr",function(){n._resizeAuto(),n._resize()}),i.on("init.dtr",function(e,r,s){n._resizeAuto(),n._resize(),t.inArray(!1,n.s.current)&&i.columns.adjust()}),this._resize()},_columnsVisiblity:function(e){var n,i,r=this.s.dt,s=this.s.columns,o=s.map(function(t,e){return{columnIdx:e,priority:t.priority}}).sort(function(t,e){return t.priority!==e.priority?t.priority-e.priority:t.columnIdx-e.columnIdx}),a=t.map(s,function(n){return(!n.auto||null!==n.minWidth)&&(n.auto===!0?"-":t.inArray(e,n.includeIn)!==-1)}),d=0;for(n=0,i=a.length;n<i;n++)a[n]===!0&&(d+=s[n].minWidth);var l=r.settings()[0].oScroll,c=l.sY||l.sX?l.iBarWidth:0,u=r.table().container().offsetWidth-c,h=u-d;for(n=0,i=a.length;n<i;n++)s[n].control&&(h-=s[n].minWidth);var p=!1;for(n=0,i=o.length;n<i;n++){var f=o[n].columnIdx;"-"===a[f]&&!s[f].control&&s[f].minWidth&&(p||h-s[f].minWidth<0?(p=!0,a[f]=!1):a[f]=!0,h-=s[f].minWidth)}var m=!1;for(n=0,i=s.length;n<i;n++)if(!s[n].control&&!s[n].never&&!a[n]){m=!0;break}for(n=0,i=s.length;n<i;n++)s[n].control&&(a[n]=m);return t.inArray(!0,a)===-1&&(a[0]=!0),a},_classLogic:function(){var e=this,n=this.c.breakpoints,r=this.s.dt,s=r.columns().eq(0).map(function(e){var n=this.column(e),s=n.header().className,o=r.settings()[0].aoColumns[e].responsivePriority;if(o===i){var a=t(n.header()).data("priority");o=a!==i?1*a:1e4}return{className:s,includeIn:[],auto:!1,control:!1,never:!!s.match(/\bnever\b/),priority:o}}),o=function(e,n){var i=s[e].includeIn;t.inArray(n,i)===-1&&i.push(n)},a=function(t,i,r,a){var d,l,c;if(r){if("max-"===r)for(d=e._find(i).width,l=0,c=n.length;l<c;l++)n[l].width<=d&&o(t,n[l].name);else if("min-"===r)for(d=e._find(i).width,l=0,c=n.length;l<c;l++)n[l].width>=d&&o(t,n[l].name);else if("not-"===r)for(l=0,c=n.length;l<c;l++)n[l].name.indexOf(a)===-1&&o(t,n[l].name)}else s[t].includeIn.push(i)};s.each(function(e,i){for(var r=e.className.split(" "),s=!1,o=0,d=r.length;o<d;o++){var l=t.trim(r[o]);if("all"===l)return s=!0,void(e.includeIn=t.map(n,function(t){return t.name}));if("none"===l||e.never)return void(s=!0);if("control"===l)return s=!0,void(e.control=!0);t.each(n,function(t,e){var n=e.name.split("-"),r=new RegExp("(min\\-|max\\-|not\\-)?("+n[0]+")(\\-[_a-zA-Z0-9])?"),o=l.match(r);o&&(s=!0,o[2]===n[0]&&o[3]==="-"+n[1]?a(i,e.name,o[1],o[2]+o[3]):o[2]!==n[0]||o[3]||a(i,e.name,o[1],o[2]))})}s||(e.auto=!0)}),this.s.columns=s},_detailsDisplay:function(e,n){var i=this,r=this.s.dt,s=this.c.details;if(s&&s.type!==!1){var o=s.display(e,n,function(){return s.renderer(r,e[0],i._detailsObj(e[0]))});o!==!0&&o!==!1||t(r.table().node()).triggerHandler("responsive-display.dt",[r,e,o,n])}},_detailsInit:function(){var e=this,n=this.s.dt,i=this.c.details;"inline"===i.type&&(i.target="td:first-child, th:first-child"),n.on("draw.dtr",function(){e._tabIndexes()}),e._tabIndexes(),t(n.table().body()).on("keyup.dtr","td, th",function(e){13===e.keyCode&&t(this).data("dtr-keyboard")&&t(this).click()});var r=i.target,s="string"==typeof r?r:"td, th";t(n.table().body()).on("click.dtr mousedown.dtr mouseup.dtr",s,function(i){if(t(n.table().node()).hasClass("collapsed")&&n.row(t(this).closest("tr")).length){if("number"==typeof r){var s=r<0?n.columns().eq(0).length+r:r;if(n.cell(this).index().column!==s)return}var o=n.row(t(this).closest("tr"));"click"===i.type?e._detailsDisplay(o,!1):"mousedown"===i.type?t(this).css("outline","none"):"mouseup"===i.type&&t(this).blur().css("outline","")}})},_detailsObj:function(e){var n=this,i=this.s.dt;return t.map(this.s.columns,function(t,r){if(!t.never&&!t.control)return{title:i.settings()[0].aoColumns[r].sTitle,data:i.cell(e,r).render(n.c.orthogonal),hidden:i.column(r).visible()&&!n.s.current[r],columnIndex:r,rowIndex:e}})},_find:function(t){for(var e=this.c.breakpoints,n=0,i=e.length;n<i;n++)if(e[n].name===t)return e[n]},_redrawChildren:function(){var t=this,e=this.s.dt;e.rows({page:"current"}).iterator("row",function(n,i){e.row(i);t._detailsDisplay(e.row(i),!0)})},_resize:function(){var n,i,r=this,s=this.s.dt,o=t(e).width(),a=this.c.breakpoints,d=a[0].name,l=this.s.columns,c=this.s.current.slice();for(n=a.length-1;n>=0;n--)if(o<=a[n].width){d=a[n].name;break}var u=this._columnsVisiblity(d);this.s.current=u;var h=!1;for(n=0,i=l.length;n<i;n++)if(u[n]===!1&&!l[n].never&&!l[n].control){h=!0;break}t(s.table().node()).toggleClass("collapsed",h);var p=!1;s.columns().eq(0).each(function(t,e){u[e]!==c[e]&&(p=!0,r._setColumnVis(t,u[e]))}),p&&(this._redrawChildren(),t(s.table().node()).trigger("responsive-resize.dt",[s,this.s.current]))},_resizeAuto:function(){var e=this.s.dt,n=this.s.columns;if(this.c.auto&&t.inArray(!0,t.map(n,function(t){return t.auto}))!==-1){var i=(e.table().node().offsetWidth,e.columns,e.table().node().cloneNode(!1)),r=t(e.table().header().cloneNode(!1)).appendTo(i),s=t(e.table().body()).clone(!1,!1).empty().appendTo(i),o=e.columns().header().filter(function(t){return e.column(t).visible()}).to$().clone(!1).css("display","table-cell");t(s).append(t(e.rows({page:"current"}).nodes()).clone(!1)).find("th, td").css("display","");var a=e.table().footer();if(a){var d=t(a.cloneNode(!1)).appendTo(i),l=e.columns().footer().filter(function(t){return e.column(t).visible()}).to$().clone(!1).css("display","table-cell");t("<tr/>").append(l).appendTo(d)}t("<tr/>").append(o).appendTo(r),"inline"===this.c.details.type&&t(i).addClass("dtr-inline collapsed"),t(i).find("[name]").removeAttr("name");var c=t("<div/>").css({width:1,height:1,overflow:"hidden"}).append(i);c.insertBefore(e.table().node()),o.each(function(t){var i=e.column.index("fromVisible",t);n[i].minWidth=this.offsetWidth||0}),c.remove()}},_setColumnVis:function(e,n){var i=this.s.dt,r=n?"":"none";t(i.column(e).header()).css("display",r),t(i.column(e).footer()).css("display",r),i.column(e).nodes().to$().css("display",r)},_tabIndexes:function(){var e=this.s.dt,n=e.cells({page:"current"}).nodes().to$(),i=e.settings()[0],r=this.c.details.target;n.filter("[data-dtr-keyboard]").removeData("[data-dtr-keyboard]");var s="number"==typeof r?":eq("+r+")":r;t(s,e.rows({page:"current"}).nodes()).attr("tabIndex",i.iTabIndex).data("dtr-keyboard",1)}}),s.breakpoints=[{name:"desktop",width:1/0},{name:"tablet-l",width:1024},{name:"tablet-p",width:768},{name:"mobile-l",width:480},{name:"mobile-p",width:320}],s.display={childRow:function(e,n,i){return n?t(e.node()).hasClass("parent")?(e.child(i(),"child").show(),!0):void 0:e.child.isShown()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},childRowImmediate:function(e,n,i){return!n&&e.child.isShown()||!e.responsive.hasHidden()?(e.child(!1),t(e.node()).removeClass("parent"),!1):(e.child(i(),"child").show(),t(e.node()).addClass("parent"),!0)},modal:function(e){return function(i,r,s){if(r)t("div.dtr-modal-content").empty().append(s());else{var o=function(){a.remove(),t(n).off("keypress.dtr")},a=t('<div class="dtr-modal"/>').append(t('<div class="dtr-modal-display"/>').append(t('<div class="dtr-modal-content"/>').append(s())).append(t('<div class="dtr-modal-close">&times;</div>').click(function(){o()}))).append(t('<div class="dtr-modal-background"/>').click(function(){o()})).appendTo("body");t(n).on("keyup.dtr",function(t){27===t.keyCode&&(t.stopPropagation(),o())})}e&&e.header&&t("div.dtr-modal-content").prepend("<h2>"+e.header(i)+"</h2>")}}},s.renderer={listHidden:function(){return function(e,n,i){var r=t.map(i,function(t){return t.hidden?'<li data-dtr-index="'+t.columnIndex+'" data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><span class="dtr-title">'+t.title+'</span> <span class="dtr-data">'+t.data+"</span></li>":""}).join("");return!!r&&t('<ul data-dtr-index="'+n+'"/>').append(r)}},tableAll:function(e){return e=t.extend({tableClass:""},e),function(n,i,r){var s=t.map(r,function(t){return'<tr data-dt-row="'+t.rowIndex+'" data-dt-column="'+t.columnIndex+'"><td>'+t.title+":</td> <td>"+t.data+"</td></tr>"}).join("");return t('<table class="'+e.tableClass+'" width="100%"/>').append(s)}}},s.defaults={breakpoints:s.breakpoints,auto:!0,details:{display:s.display.childRow,renderer:s.renderer.listHidden(),target:0,type:"inline"},orthogonal:"display"};var o=t.fn.dataTable.Api;return o.register("responsive()",function(){return this}),o.register("responsive.index()",function(e){return e=t(e),{column:e.data("dtr-index"),row:e.parent().data("dtr-index")}}),o.register("responsive.rebuild()",function(){return this.iterator("table",function(t){t._responsive&&t._responsive._classLogic()})}),o.register("responsive.recalc()",function(){return this.iterator("table",function(t){t._responsive&&(t._responsive._resizeAuto(),t._responsive._resize())})}),o.register("responsive.hasHidden()",function(){var e=this.context[0];return!!e._responsive&&t.inArray(!1,e._responsive.s.current)!==-1}),s.version="2.1.0",t.fn.dataTable.Responsive=s,t.fn.DataTable.Responsive=s,t(n).on("preInit.dt.dtr",function(e,n,i){if("dt"===e.namespace&&(t(n.nTable).hasClass("responsive")||t(n.nTable).hasClass("dt-responsive")||n.oInit.responsive||r.defaults.responsive)){var o=n.oInit.responsive;o!==!1&&new s(n,t.isPlainObject(o)?o:{})}}),s});
\ 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.
/*! jQuery v2.0.3 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],p="2.0.3",f=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,x=function(e,n){return new x.fn.init(e,n,t)},b=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^-ms-/,N=/-([\da-z])/gi,E=function(e,t){return t.toUpperCase()},S=function(){o.removeEventListener("DOMContentLoaded",S,!1),e.removeEventListener("load",S,!1),x.ready()};x.fn=x.prototype={jquery:p,constructor:x,init:function(e,t,n){var r,i;if(!e)return this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),C.test(r[1])&&x.isPlainObject(t))for(r in t)x.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=o.getElementById(r[2]),i&&i.parentNode&&(this.length=1,this[0]=i),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?n.ready(e):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return d.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[1]||{},a=2),"object"==typeof s||x.isFunction(s)||(s={}),u===a&&(s=this,--a);u>a;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(x.isPlainObject(r)||(i=x.isArray(r)))?(i?(i=!1,o=n&&x.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},s[t]=x.extend(l,o,r)):r!==undefined&&(s[t]=r));return s},x.extend({expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=a),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){(e===!0?--x.readyWait:x.isReady)||(x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(o,[x]),x.fn.trigger&&x(o).trigger("ready").off("ready")))},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=undefined}return(!t||t.getElementsByTagName("parsererror").length)&&x.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){var t,n=eval;e=x.trim(e),e&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(k,"ms-").replace(N,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,s=j(e);if(n){if(s){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":v.call(e)},makeArray:function(e,t){var n=t||[];return null!=e&&(j(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:g.call(t,e,n)},merge:function(e,t){var n=t.length,r=e.length,i=0;if("number"==typeof n)for(;n>i;i++)e[r++]=t[i];else while(t[i]!==undefined)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){var r,i=[],o=0,s=e.length;for(n=!!n;s>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,s=j(e),a=[];if(s)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(a[a.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(a[a.length]=r);return f.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),x.isFunction(e)?(r=d.call(arguments,2),i=function(){return e.apply(t||this,r.concat(d.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):undefined},access:function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===x.type(n)){i=!0;for(a in n)x.access(e,t,a,n[a],!0,o,s)}else if(r!==undefined&&(i=!0,x.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;u>a;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o},now:Date.now,swap:function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i}}),x.ready.promise=function(t){return n||(n=x.Deferred(),"complete"===o.readyState?setTimeout(x.ready):(o.addEventListener("DOMContentLoaded",S,!1),e.addEventListener("load",S,!1))),n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function j(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}t=x(o),function(e,undefined){var t,n,r,i,o,s,a,u,l,c,p,f,h,d,g,m,y,v="sizzle"+-new Date,b=e.document,w=0,T=0,C=st(),k=st(),N=st(),E=!1,S=function(e,t){return e===t?(E=!0,0):0},j=typeof undefined,D=1<<31,A={}.hasOwnProperty,L=[],q=L.pop,H=L.push,O=L.push,F=L.slice,P=L.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",W="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",$=W.replace("w","w#"),B="\\["+M+"*("+W+")"+M+"*(?:([*^$|!~]?=)"+M+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+$+")|)|)"+M+"*\\]",I=":("+W+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+B.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=RegExp("^"+M+"*,"+M+"*"),X=RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=RegExp(M+"*[+~]"),Y=RegExp("="+M+"*([^\\]'\"]*)"+M+"*\\]","g"),V=RegExp(I),G=RegExp("^"+$+"$"),J={ID:RegExp("^#("+W+")"),CLASS:RegExp("^\\.("+W+")"),TAG:RegExp("^("+W.replace("w","w*")+")"),ATTR:RegExp("^"+B),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:RegExp("^(?:"+R+")$","i"),needsContext:RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/^(?:input|select|textarea|button)$/i,et=/^h\d$/i,tt=/'|\\/g,nt=RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{O.apply(L=F.call(b.childNodes),b.childNodes),L[b.childNodes.length].nodeType}catch(it){O={apply:L.length?function(e,t){H.apply(e,F.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function ot(e,t,r,i){var o,s,a,u,l,f,g,m,x,w;if((t?t.ownerDocument||t:b)!==p&&c(t),t=t||p,r=r||[],!e||"string"!=typeof e)return r;if(1!==(u=t.nodeType)&&9!==u)return[];if(h&&!i){if(o=K.exec(e))if(a=o[1]){if(9===u){if(s=t.getElementById(a),!s||!s.parentNode)return r;if(s.id===a)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(a))&&y(t,s)&&s.id===a)return r.push(s),r}else{if(o[2])return O.apply(r,t.getElementsByTagName(e)),r;if((a=o[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&(!d||!d.test(e))){if(m=g=v,x=t,w=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){f=gt(e),(g=t.getAttribute("id"))?m=g.replace(tt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",l=f.length;while(l--)f[l]=m+mt(f[l]);x=U.test(e)&&t.parentNode||t,w=f.join(",")}if(w)try{return O.apply(r,x.querySelectorAll(w)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,r,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>i.cacheLength&&delete t[e.shift()],t[n]=r}return t}function at(e){return e[v]=!0,e}function ut(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),r=e.length;while(r--)i.attrHandle[n[r]]=t}function ct(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return at(function(t){return t=+t,at(function(n,r){var i,o=e([],n.length,t),s=o.length;while(s--)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},n=ot.support={},c=ot.setDocument=function(e){var t=e?e.ownerDocument||e:b,r=t.defaultView;return t!==p&&9===t.nodeType&&t.documentElement?(p=t,f=t.documentElement,h=!s(t),r&&r.attachEvent&&r!==r.top&&r.attachEvent("onbeforeunload",function(){c()}),n.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ut(function(e){return e.appendChild(t.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),n.getById=ut(function(e){return f.appendChild(e).id=v,!t.getElementsByName||!t.getElementsByName(v).length}),n.getById?(i.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete i.find.ID,i.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=n.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==j?t.getElementsByTagName(e):undefined}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==j&&h?t.getElementsByClassName(e):undefined},g=[],d=[],(n.qsa=Q.test(t.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll(":checked").length||d.push(":checked")}),ut(function(e){var n=t.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&d.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||d.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),d.push(",.*:")})),(n.matchesSelector=Q.test(m=f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ut(function(e){n.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",I)}),d=d.length&&RegExp(d.join("|")),g=g.length&&RegExp(g.join("|")),y=Q.test(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},S=f.compareDocumentPosition?function(e,r){if(e===r)return E=!0,0;var i=r.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(r);return i?1&i||!n.sortDetached&&r.compareDocumentPosition(e)===i?e===t||y(b,e)?-1:r===t||y(b,r)?1:l?P.call(l,e)-P.call(l,r):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,n){var r,i=0,o=e.parentNode,s=n.parentNode,a=[e],u=[n];if(e===n)return E=!0,0;if(!o||!s)return e===t?-1:n===t?1:o?-1:s?1:l?P.call(l,e)-P.call(l,n):0;if(o===s)return ct(e,n);r=e;while(r=r.parentNode)a.unshift(r);r=n;while(r=r.parentNode)u.unshift(r);while(a[i]===u[i])i++;return i?ct(a[i],u[i]):a[i]===b?-1:u[i]===b?1:0},t):p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Y,"='$1']"),!(!n.matchesSelector||!h||g&&g.test(t)||d&&d.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&c(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!h):undefined;return o===undefined?n.attributes||!h?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null:o},ot.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,o=0;if(E=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(S),E){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return e},o=ot.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=ot.selectors={cacheLength:50,createPseudo:at,match:J,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[4]||e[5]||"").replace(nt,rt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return J.CHILD.test(e[0])?null:(e[3]&&e[4]!==undefined?e[2]=e[4]:n&&V.test(n)&&(t=gt(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,h,d,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,y=a&&t.nodeName.toLowerCase(),x=!u&&!a;if(m){if(o){while(g){p=t;while(p=p[g])if(a?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&x){c=m[v]||(m[v]={}),l=c[e]||[],h=l[0]===w&&l[1],f=l[0]===w&&l[2],p=h&&m.childNodes[h];while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[w,h,f];break}}else if(x&&(l=(t[v]||(t[v]={}))[e])&&l[0]===w)f=l[1];else while(p=++h&&p&&p[g]||(f=h=0)||d.pop())if((a?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(x&&((p[v]||(p[v]={}))[e]=[w,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return r[v]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=P.call(e,o[s]),e[i]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:at(function(e){var t=[],n=[],r=a(e.replace(z,"$1"));return r[v]?at(function(e,t,n,i){var o,s=r(e,null,i,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:at(function(e){return G.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return et.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},i.pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pt(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=ft(t);function dt(){}dt.prototype=i.filters=i.pseudos,i.setFilters=new dt;function gt(e,t){var n,r,o,s,a,u,l,c=k[e+" "];if(c)return t?0:c.slice(0);a=e,u=[],l=i.preFilter;while(a){(!n||(r=_.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=X.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(z," ")}),a=a.slice(n.length));for(s in i.filter)!(r=J[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ot.error(e):k(e,u).slice(0)}function mt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function yt(e,t,n){var i=t.dir,o=n&&"parentNode"===i,s=T++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,a){var u,l,c,p=w+" "+s;if(a){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,a))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[v]||(t[v]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,a)||r,l[1]===!0)return!0}}function vt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,s=[],a=0,u=e.length,l=null!=t;for(;u>a;a++)(o=e[a])&&(!n||n(o,r,i))&&(s.push(o),l&&t.push(a));return s}function bt(e,t,n,r,i,o){return r&&!r[v]&&(r=bt(r)),i&&!i[v]&&(i=bt(i,o)),at(function(o,s,a,u){var l,c,p,f=[],h=[],d=s.length,g=o||Ct(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xt(g,f,e,a,u),y=n?i||(o?e:d||r)?[]:s:m;if(n&&n(m,y,a,u),r){l=xt(y,h),r(l,[],a,u),c=l.length;while(c--)(p=l[c])&&(y[h[c]]=!(m[h[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?P.call(o,p):f[c])>-1&&(o[l]=!(s[l]=p))}}else y=xt(y===s?y.splice(d,y.length):y),i?i(null,s,y,u):O.apply(s,y)})}function wt(e){var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=yt(function(e){return e===t},a,!0),p=yt(function(e){return P.call(t,e)>-1},a,!0),f=[function(e,n,r){return!s&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>l;l++)if(n=i.relative[e[l].type])f=[yt(vt(f),n)];else{if(n=i.filter[e[l].type].apply(null,e[l].matches),n[v]){for(r=++l;o>r;r++)if(i.relative[e[r].type])break;return bt(l>1&&vt(f),l>1&&mt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&wt(e.slice(l,r)),o>r&&wt(e=e.slice(r)),o>r&&mt(e))}f.push(n)}return vt(f)}function Tt(e,t){var n=0,o=t.length>0,s=e.length>0,a=function(a,l,c,f,h){var d,g,m,y=[],v=0,x="0",b=a&&[],T=null!=h,C=u,k=a||s&&i.find.TAG("*",h&&l.parentNode||l),N=w+=null==C?1:Math.random()||.1;for(T&&(u=l!==p&&l,r=n);null!=(d=k[x]);x++){if(s&&d){g=0;while(m=e[g++])if(m(d,l,c)){f.push(d);break}T&&(w=N,r=++n)}o&&((d=!m&&d)&&v--,a&&b.push(d))}if(v+=x,o&&x!==v){g=0;while(m=t[g++])m(b,y,l,c);if(a){if(v>0)while(x--)b[x]||y[x]||(y[x]=q.call(f));y=xt(y)}O.apply(f,y),T&&!a&&y.length>0&&v+t.length>1&&ot.uniqueSort(f)}return T&&(w=N,u=C),b};return o?at(a):a}a=ot.compile=function(e,t){var n,r=[],i=[],o=N[e+" "];if(!o){t||(t=gt(e)),n=t.length;while(n--)o=wt(t[n]),o[v]?r.push(o):i.push(o);o=N(e,Tt(i,r))}return o};function Ct(e,t,n){var r=0,i=t.length;for(;i>r;r++)ot(e,t[r],n);return n}function kt(e,t,r,o){var s,u,l,c,p,f=gt(e);if(!o&&1===f.length){if(u=f[0]=f[0].slice(0),u.length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&h&&i.relative[u[1].type]){if(t=(i.find.ID(l.matches[0].replace(nt,rt),t)||[])[0],!t)return r;e=e.slice(u.shift().value.length)}s=J.needsContext.test(e)?0:u.length;while(s--){if(l=u[s],i.relative[c=l.type])break;if((p=i.find[c])&&(o=p(l.matches[0].replace(nt,rt),U.test(u[0].type)&&t.parentNode||t))){if(u.splice(s,1),e=o.length&&mt(u),!e)return O.apply(r,o),r;break}}}return a(e,f)(o,t,!h,r,U.test(e)),r}n.sortStable=v.split("").sort(S).join("")===v,n.detectDuplicates=E,c(),n.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(p.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||lt("type|href|height|width",function(e,t,n){return n?undefined:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||lt("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?undefined:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||lt(R,function(e,t,n){var r;return n?undefined:(r=e.getAttributeNode(t))&&r.specified?r.value:e[t]===!0?t.toLowerCase():null}),x.find=ot,x.expr=ot.selectors,x.expr[":"]=x.expr.pseudos,x.unique=ot.uniqueSort,x.text=ot.getText,x.isXMLDoc=ot.isXML,x.contains=ot.contains}(e);var D={};function A(e){var t=D[e]={};return x.each(e.match(w)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?D[e]||A(e):x.extend({},e);var t,n,r,i,o,s,a=[],u=!e.once&&[],l=function(p){for(t=e.memory&&p,n=!0,s=i||0,i=0,o=a.length,r=!0;a&&o>s;s++)if(a[s].apply(p[0],p[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,a&&(u?u.length&&l(u.shift()):t?a=[]:c.disable())},c={add:function(){if(a){var n=a.length;(function s(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==r&&s(n)})})(arguments),r?o=a.length:t&&(i=n,l(t))}return this},remove:function(){return a&&x.each(arguments,function(e,t){var n;while((n=x.inArray(t,a,n))>-1)a.splice(n,1),r&&(o>=n&&o--,s>=n&&s--)}),this},has:function(e){return e?x.inArray(e,a)>-1:!(!a||!a.length)},empty:function(){return a=[],o=0,this},disable:function(){return a=u=t=undefined,this},disabled:function(){return!a},lock:function(){return u=undefined,t||c.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!a||n&&!u||(t=t||[],t=[e,t.slice?t.slice():t],r?u.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var s=o[0],a=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=d.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),s=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?d.call(arguments):r,n===a?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},a,u,l;if(r>1)for(a=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(s(t,l,n)).fail(o.reject).progress(s(t,u,a)):--i;return i||o.resolveWith(l,n),o.promise()}}),x.support=function(t){var n=o.createElement("input"),r=o.createDocumentFragment(),i=o.createElement("div"),s=o.createElement("select"),a=s.appendChild(o.createElement("option"));return n.type?(n.type="checkbox",t.checkOn=""!==n.value,t.optSelected=a.selected,t.reliableMarginRight=!0,t.boxSizingReliable=!0,t.pixelPosition=!1,n.checked=!0,t.noCloneChecked=n.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!a.disabled,n=o.createElement("input"),n.value="t",n.type="radio",t.radioValue="t"===n.value,n.setAttribute("checked","t"),n.setAttribute("name","t"),r.appendChild(n),t.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,t.focusinBubbles="onfocusin"in e,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===i.style.backgroundClip,x(function(){var n,r,s="padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box",a=o.getElementsByTagName("body")[0];a&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",a.appendChild(n).appendChild(i),i.innerHTML="",i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%",x.swap(a,null!=a.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===i.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,r=i.appendChild(o.createElement("div")),r.style.cssText=i.style.cssText=s,r.style.marginRight=r.style.width="0",i.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),a.removeChild(n))}),t):t}({});var L,q,H=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,O=/([A-Z])/g;function F(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=x.expando+Math.random()}F.uid=1,F.accepts=function(e){return e.nodeType?1===e.nodeType||9===e.nodeType:!0},F.prototype={key:function(e){if(!F.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=F.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,x.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(x.isEmptyObject(o))x.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return t===undefined?n:n[t]},access:function(e,t,n){var r;return t===undefined||t&&"string"==typeof t&&n===undefined?(r=this.get(e,t),r!==undefined?r:this.get(e,x.camelCase(t))):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(t===undefined)this.cache[o]={};else{x.isArray(t)?r=t.concat(t.map(x.camelCase)):(i=x.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(w)||[])),n=r.length;while(n--)delete s[r[n]]}},hasData:function(e){return!x.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}},L=new F,q=new F,x.extend({acceptData:F.accepts,hasData:function(e){return L.hasData(e)||q.hasData(e)},data:function(e,t,n){return L.access(e,t,n)},removeData:function(e,t){L.remove(e,t)},_data:function(e,t,n){return q.access(e,t,n)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i=this[0],o=0,s=null;if(e===undefined){if(this.length&&(s=L.get(i),1===i.nodeType&&!q.get(i,"hasDataAttrs"))){for(n=i.attributes;n.length>o;o++)r=n[o].name,0===r.indexOf("data-")&&(r=x.camelCase(r.slice(5)),P(i,r,s[r]));q.set(i,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){L.set(this,e)}):x.access(this,function(t){var n,r=x.camelCase(e);if(i&&t===undefined){if(n=L.get(i,e),n!==undefined)return n;if(n=L.get(i,r),n!==undefined)return n;if(n=P(i,r,undefined),n!==undefined)return n}else this.each(function(){var n=L.get(this,r);L.set(this,r,t),-1!==e.indexOf("-")&&n!==undefined&&L.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){L.remove(this,e)})}});function P(e,t,n){var r;if(n===undefined&&1===e.nodeType)if(r="data-"+t.replace(O,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:H.test(n)?JSON.parse(n):n}catch(i){}L.set(e,t,n)}else n=undefined;return n}x.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=q.get(e,t),n&&(!r||x.isArray(n)?r=q.access(e,t,x.makeArray(n)):r.push(n)),r||[]):undefined},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),s=function(){x.dequeue(e,t)
};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return q.get(e,n)||q.access(e,n,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),n>arguments.length?x.queue(this[0],e):t===undefined?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=undefined),e=e||"fx";while(s--)n=q.get(o[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var R,M,W=/[\t\r\n\f]/g,$=/\r/g,B=/^(?:input|select|textarea|button)$/i;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})},addClass:function(e){var t,n,r,i,o,s=0,a=this.length,u="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,s=0,a=this.length,u=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];a>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(W," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,i=0,o=x(this),s=e.match(w)||[];while(t=s[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===r||"boolean"===n)&&(this.className&&q.set(this,"__className__",this.className),this.className=this.className||e===!1?"":q.get(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(W," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=x.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,x(this).val()):e,null==i?i="":"number"==typeof i?i+="":x.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,i,"value")!==undefined||(this.value=i))});if(i)return t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,"string"==typeof n?n.replace($,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,s=o?null:[],a=o?i+1:r.length,u=0>i?a:o?i:0;for(;a>u;u++)if(n=r[u],!(!n.selected&&u!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),s=i.length;while(s--)r=i[s],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,t,n){var i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===r?x.prop(e,t,n):(1===s&&x.isXMLDoc(e)||(t=t.toLowerCase(),i=x.attrHooks[t]||(x.expr.match.bool.test(t)?M:R)),n===undefined?i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=x.find.attr(e,t),null==o?undefined:o):null!==n?i&&"set"in i&&(o=i.set(e,n,t))!==undefined?o:(e.setAttribute(t,n+""),n):(x.removeAttr(e,t),undefined))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!x.isXMLDoc(e),o&&(t=x.propFix[t]||t,i=x.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||B.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),M={set:function(e,t,n){return t===!1?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=x.expr.attrHandle[t]||x.find.attr;x.expr.attrHandle[t]=function(e,t,r){var i=x.expr.attrHandle[t],o=r?undefined:(x.expr.attrHandle[t]=undefined)!=n(e,t,r)?t.toLowerCase():null;return x.expr.attrHandle[t]=i,o}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){return x.isArray(t)?e.checked=x.inArray(x(e).val(),t)>=0:undefined}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var I=/^key/,z=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function U(){return!0}function Y(){return!1}function V(){try{return o.activeElement}catch(e){}}x.event={global:{},add:function(e,t,n,i,o){var s,a,u,l,c,p,f,h,d,g,m,y=q.get(e);if(y){n.handler&&(s=n,n=s.handler,o=s.selector),n.guid||(n.guid=x.guid++),(l=y.events)||(l=y.events={}),(a=y.handle)||(a=y.handle=function(e){return typeof x===r||e&&x.event.triggered===e.type?undefined:x.event.dispatch.apply(a.elem,arguments)},a.elem=e),t=(t||"").match(w)||[""],c=t.length;while(c--)u=X.exec(t[c])||[],d=m=u[1],g=(u[2]||"").split(".").sort(),d&&(f=x.event.special[d]||{},d=(o?f.delegateType:f.bindType)||d,f=x.event.special[d]||{},p=x.extend({type:d,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:g.join(".")},s),(h=l[d])||(h=l[d]=[],h.delegateCount=0,f.setup&&f.setup.call(e,i,g,a)!==!1||e.addEventListener&&e.addEventListener(d,a,!1)),f.add&&(f.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,p):h.push(p),x.event.global[d]=!0);e=null}},remove:function(e,t,n,r,i){var o,s,a,u,l,c,p,f,h,d,g,m=q.hasData(e)&&q.get(e);if(m&&(u=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(a=X.exec(t[l])||[],h=g=a[1],d=(a[2]||"").split(".").sort(),h){p=x.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,f=u[h]||[],a=a[2]&&RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;while(o--)c=f[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&p.teardown.call(e,d,m.handle)!==!1||x.removeEvent(e,h,m.handle),delete u[h])}else for(h in u)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(u)&&(delete m.handle,q.remove(e,"events"))}},trigger:function(t,n,r,i){var s,a,u,l,c,p,f,h=[r||o],d=y.call(t,"type")?t.type:t,g=y.call(t,"namespace")?t.namespace.split("."):[];if(a=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!_.test(d+x.event.triggered)&&(d.indexOf(".")>=0&&(g=d.split("."),d=g.shift(),g.sort()),c=0>d.indexOf(":")&&"on"+d,t=t[x.expando]?t:new x.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,n)!==!1)){if(!i&&!f.noBubble&&!x.isWindow(r)){for(l=f.delegateType||d,_.test(l+d)||(a=a.parentNode);a;a=a.parentNode)h.push(a),u=a;u===(r.ownerDocument||o)&&h.push(u.defaultView||u.parentWindow||e)}s=0;while((a=h[s++])&&!t.isPropagationStopped())t.type=s>1?l:f.bindType||d,p=(q.get(a,"events")||{})[t.type]&&q.get(a,"handle"),p&&p.apply(a,n),p=c&&a[c],p&&x.acceptData(a)&&p.apply&&p.apply(a,n)===!1&&t.preventDefault();return t.type=d,i||t.isDefaultPrevented()||f._default&&f._default.apply(h.pop(),n)!==!1||!x.acceptData(r)||c&&x.isFunction(r[d])&&!x.isWindow(r)&&(u=r[c],u&&(r[c]=null),x.event.triggered=d,r[d](),x.event.triggered=undefined,u&&(r[c]=u)),t.result}},dispatch:function(e){e=x.event.fix(e);var t,n,r,i,o,s=[],a=d.call(arguments),u=(q.get(this,"events")||{})[e.type]||[],l=x.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),t=0;while((i=s[t++])&&!e.isPropagationStopped()){e.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a),r!==undefined&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(u.disabled!==!0||"click"!==e.type){for(r=[],n=0;a>n;n++)o=t[n],i=o.selector+" ",r[i]===undefined&&(r[i]=o.needsContext?x(i,this).index(u)>=0:x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return t.length>a&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||o,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||s===undefined||(e.which=1&s?1:2&s?3:4&s?2:0),e}},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,s=e,a=this.fixHooks[i];a||(this.fixHooks[i]=a=z.test(i)?this.mouseHooks:I.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new x.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=o),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,s):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==V()&&this.focus?(this.focus(),!1):undefined},delegateType:"focusin"},blur:{trigger:function(){return this===V()&&this.blur?(this.blur(),!1):undefined},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&x.nodeName(this,"input")?(this.click(),!1):undefined},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.getPreventDefault&&e.getPreventDefault()?U:Y):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,undefined):new x.Event(e,t)},x.Event.prototype={isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=U,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=U,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=U,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=undefined):null==r&&("string"==typeof t?(r=n,n=undefined):(r=n,n=t,t=undefined)),r===!1)r=Y;else if(!r)return this;return 1===i&&(o=r,r=function(e){return x().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=x.guid++)),this.each(function(){x.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=undefined),n===!1&&(n=Y),this.each(function(){x.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?x.event.trigger(e,t,n,!0):undefined}});var G=/^.[^:#\[\.,]*$/,J=/^(?:parents|prev(?:Until|All))/,Q=x.expr.match.needsContext,K={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){var e=0;for(;n>e;e++)if(x.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(et(this,e||[],!0))},filter:function(e){return this.pushStack(et(this,e||[],!1))},is:function(e){return!!et(this,"string"==typeof e&&Q.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],s=Q.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?g.call(x(e),this[0]):g.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function Z(e,t){while((e=e[t])&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return Z(e,"nextSibling")},prev:function(e){return Z(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return e.contentDocument||x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(K[e]||x.unique(i),J.test(e)&&i.reverse()),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function et(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(G.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return g.call(t,e)>=0!==n})}var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,nt=/<([\w:]+)/,rt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,ot=/^(?:checkbox|radio)$/i,st=/checked\s*(?:[^=]|=\s*.checked.)/i,at=/^$|\/(?:java|ecma)script/i,ut=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ct.optgroup=ct.option,ct.tbody=ct.tfoot=ct.colgroup=ct.caption=ct.thead,ct.th=ct.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===undefined?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(mt(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&dt(mt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(mt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!ct[(nt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(tt,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(x.cleanData(mt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=f.apply([],e);var r,i,o,s,a,u,l=0,c=this.length,p=this,h=c-1,d=e[0],g=x.isFunction(d);if(g||!(1>=c||"string"!=typeof d||x.support.checkClone)&&st.test(d))return this.each(function(r){var i=p.eq(r);g&&(e[0]=d.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(r=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),i=r.firstChild,1===r.childNodes.length&&(r=i),i)){for(o=x.map(mt(r,"script"),ft),s=o.length;c>l;l++)a=r,l!==h&&(a=x.clone(a,!0,!0),s&&x.merge(o,mt(a,"script"))),t.call(this[l],a,l);if(s)for(u=o[o.length-1].ownerDocument,x.map(o,ht),l=0;s>l;l++)a=o[l],at.test(a.type||"")&&!q.access(a,"globalEval")&&x.contains(u,a)&&(a.src?x._evalUrl(a.src):x.globalEval(a.textContent.replace(lt,"")))}return this}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=[],i=x(e),o=i.length-1,s=0;for(;o>=s;s++)n=s===o?this:this.clone(!0),x(i[s])[t](n),h.apply(r,n.get());return this.pushStack(r)}}),x.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=mt(a),o=mt(e),r=0,i=o.length;i>r;r++)yt(o[r],s[r]);if(t)if(n)for(o=o||mt(e),s=s||mt(a),r=0,i=o.length;i>r;r++)gt(o[r],s[r]);else gt(e,a);return s=mt(a,"script"),s.length>0&&dt(s,!u&&mt(e,"script")),a},buildFragment:function(e,t,n,r){var i,o,s,a,u,l,c=0,p=e.length,f=t.createDocumentFragment(),h=[];for(;p>c;c++)if(i=e[c],i||0===i)if("object"===x.type(i))x.merge(h,i.nodeType?[i]:i);else if(rt.test(i)){o=o||f.appendChild(t.createElement("div")),s=(nt.exec(i)||["",""])[1].toLowerCase(),a=ct[s]||ct._default,o.innerHTML=a[1]+i.replace(tt,"<$1></$2>")+a[2],l=a[0];while(l--)o=o.lastChild;x.merge(h,o.childNodes),o=f.firstChild,o.textContent=""}else h.push(t.createTextNode(i));f.textContent="",c=0;while(i=h[c++])if((!r||-1===x.inArray(i,r))&&(u=x.contains(i.ownerDocument,i),o=mt(f.appendChild(i),"script"),u&&dt(o),n)){l=0;while(i=o[l++])at.test(i.type||"")&&n.push(i)}return f},cleanData:function(e){var t,n,r,i,o,s,a=x.event.special,u=0;for(;(n=e[u])!==undefined;u++){if(F.accepts(n)&&(o=n[q.expando],o&&(t=q.cache[o]))){if(r=Object.keys(t.events||{}),r.length)for(s=0;(i=r[s])!==undefined;s++)a[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);q.cache[o]&&delete q.cache[o]}delete L.cache[n[L.expando]]}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}});function pt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ft(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ht(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function dt(e,t){var n=e.length,r=0;for(;n>r;r++)q.set(e[r],"globalEval",!t||q.get(t[r],"globalEval"))}function gt(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(q.hasData(e)&&(o=q.access(e),s=q.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)x.event.add(t,i,l[i][n])}L.hasData(e)&&(a=L.access(e),u=x.extend({},a),L.set(t,u))}}function mt(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return t===undefined||t&&x.nodeName(e,t)?x.merge([e],n):n}function yt(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ot.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var vt,xt,bt=/^(none|table(?!-c[ea]).+)/,wt=/^margin/,Tt=RegExp("^("+b+")(.*)$","i"),Ct=RegExp("^("+b+")(?!px)[a-z%]+$","i"),kt=RegExp("^([+-])=("+b+")","i"),Nt={BODY:"block"},Et={position:"absolute",visibility:"hidden",display:"block"},St={letterSpacing:0,fontWeight:400},jt=["Top","Right","Bottom","Left"],Dt=["Webkit","O","Moz","ms"];function At(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Dt.length;while(i--)if(t=Dt[i]+n,t in e)return t;return r}function Lt(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function qt(t){return e.getComputedStyle(t,null)}function Ht(e,t){var n,r,i,o=[],s=0,a=e.length;for(;a>s;s++)r=e[s],r.style&&(o[s]=q.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Lt(r)&&(o[s]=q.access(r,"olddisplay",Rt(r.nodeName)))):o[s]||(i=Lt(r),(n&&"none"!==n||!i)&&q.set(r,"olddisplay",i?n:x.css(r,"display"))));for(s=0;a>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}x.fn.extend({css:function(e,t){return x.access(this,function(e,t,n){var r,i,o={},s=0;if(x.isArray(t)){for(r=qt(e),i=t.length;i>s;s++)o[t[s]]=x.css(e,t[s],!1,r);return o}return n!==undefined?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)},show:function(){return Ht(this,!0)},hide:function(){return Ht(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Lt(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=vt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=x.camelCase(t),u=e.style;return t=x.cssProps[a]||(x.cssProps[a]=At(u,a)),s=x.cssHooks[t]||x.cssHooks[a],n===undefined?s&&"get"in s&&(i=s.get(e,!1,r))!==undefined?i:u[t]:(o=typeof n,"string"===o&&(i=kt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(x.css(e,t)),o="number"),null==n||"number"===o&&isNaN(n)||("number"!==o||x.cssNumber[a]||(n+="px"),x.support.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&(n=s.set(e,n,r))===undefined||(u[t]=n)),undefined)}},css:function(e,t,n,r){var i,o,s,a=x.camelCase(t);return t=x.cssProps[a]||(x.cssProps[a]=At(e.style,a)),s=x.cssHooks[t]||x.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),i===undefined&&(i=vt(e,t,r)),"normal"===i&&t in St&&(i=St[t]),""===n||n?(o=parseFloat(i),n===!0||x.isNumeric(o)?o||0:i):i}}),vt=function(e,t,n){var r,i,o,s=n||qt(e),a=s?s.getPropertyValue(t)||s[t]:undefined,u=e.style;return s&&(""!==a||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),Ct.test(a)&&wt.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=s.width,u.width=r,u.minWidth=i,u.maxWidth=o)),a};function Ot(e,t,n){var r=Tt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Ft(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;for(;4>o;o+=2)"margin"===n&&(s+=x.css(e,n+jt[o],!0,i)),r?("content"===n&&(s-=x.css(e,"padding"+jt[o],!0,i)),"margin"!==n&&(s-=x.css(e,"border"+jt[o]+"Width",!0,i))):(s+=x.css(e,"padding"+jt[o],!0,i),"padding"!==n&&(s+=x.css(e,"border"+jt[o]+"Width",!0,i)));return s}function Pt(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=qt(e),s=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=vt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Ct.test(i))return i;r=s&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+Ft(e,t,n||(s?"border":"content"),r,o)+"px"}function Rt(e){var t=o,n=Nt[e];return n||(n=Mt(e,t),"none"!==n&&n||(xt=(xt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(xt[0].contentWindow||xt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=Mt(e,t),xt.detach()),Nt[e]=n),n}function Mt(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){return n?0===e.offsetWidth&&bt.test(x.css(e,"display"))?x.swap(e,Et,function(){return Pt(e,t,r)}):Pt(e,t,r):undefined},set:function(e,n,r){var i=r&&qt(e);return Ot(e,n,r?Ft(e,t,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,t){return t?x.swap(e,{display:"inline-block"},vt,[e,"marginRight"]):undefined}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,t){x.cssHooks[t]={get:function(e,n){return n?(n=vt(e,t),Ct.test(n)?x(e).position()[t]+"px":n):undefined}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+jt[r]+t]=o[r]||o[r-2]||o[0];return i}},wt.test(e)||(x.cssHooks[e+t].set=Ot)});var Wt=/%20/g,$t=/\[\]$/,Bt=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,zt=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&zt.test(this.nodeName)&&!It.test(e)&&(this.checked||!ot.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(Bt,"\r\n")}}):{name:t.name,value:n.replace(Bt,"\r\n")}}).get()}}),x.param=function(e,t){var n,r=[],i=function(e,t){t=x.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(n in e)_t(n,e[n],t,i);return r.join("&").replace(Wt,"+")};function _t(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||$t.test(e)?r(e,i):_t(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)_t(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)
},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Xt,Ut,Yt=x.now(),Vt=/\?/,Gt=/#.*$/,Jt=/([?&])_=[^&]*/,Qt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Kt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Zt=/^(?:GET|HEAD)$/,en=/^\/\//,tn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,nn=x.fn.load,rn={},on={},sn="*/".concat("*");try{Ut=i.href}catch(an){Ut=o.createElement("a"),Ut.href="",Ut=Ut.href}Xt=tn.exec(Ut.toLowerCase())||[];function un(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ln(e,t,n,r){var i={},o=e===on;function s(a){var u;return i[a]=!0,x.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):undefined:(t.dataTypes.unshift(l),s(l),!1)}),u}return s(t.dataTypes[0])||!i["*"]&&s("*")}function cn(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return a>=0&&(r=e.slice(a),e=e.slice(0,a)),x.isFunction(t)?(n=t,t=undefined):t&&"object"==typeof t&&(i="POST"),s.length>0&&x.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){s.each(n,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ut,type:"GET",isLocal:Kt.test(Xt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?cn(cn(e,x.ajaxSettings),t):cn(x.ajaxSettings,e)},ajaxPrefilter:un(rn),ajaxTransport:un(on),ajax:function(e,t){"object"==typeof e&&(t=e,e=undefined),t=t||{};var n,r,i,o,s,a,u,l,c=x.ajaxSetup({},t),p=c.context||c,f=c.context&&(p.nodeType||p.jquery)?x(p):x.event,h=x.Deferred(),d=x.Callbacks("once memory"),g=c.statusCode||{},m={},y={},v=0,b="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===v){if(!o){o={};while(t=Qt.exec(i))o[t[1].toLowerCase()]=t[2]}t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===v?i:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return v||(e=y[n]=y[n]||e,m[e]=t),this},overrideMimeType:function(e){return v||(c.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>v)for(t in e)g[t]=[g[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||b;return n&&n.abort(t),k(0,t),this}};if(h.promise(T).complete=d.add,T.success=T.done,T.error=T.fail,c.url=((e||c.url||Ut)+"").replace(Gt,"").replace(en,Xt[1]+"//"),c.type=t.method||t.type||c.method||c.type,c.dataTypes=x.trim(c.dataType||"*").toLowerCase().match(w)||[""],null==c.crossDomain&&(a=tn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===Xt[1]&&a[2]===Xt[2]&&(a[3]||("http:"===a[1]?"80":"443"))===(Xt[3]||("http:"===Xt[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=x.param(c.data,c.traditional)),ln(rn,c,t,T),2===v)return T;u=c.global,u&&0===x.active++&&x.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Zt.test(c.type),r=c.url,c.hasContent||(c.data&&(r=c.url+=(Vt.test(r)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=Jt.test(r)?r.replace(Jt,"$1_="+Yt++):r+(Vt.test(r)?"&":"?")+"_="+Yt++)),c.ifModified&&(x.lastModified[r]&&T.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&T.setRequestHeader("If-None-Match",x.etag[r])),(c.data&&c.hasContent&&c.contentType!==!1||t.contentType)&&T.setRequestHeader("Content-Type",c.contentType),T.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+sn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers)T.setRequestHeader(l,c.headers[l]);if(c.beforeSend&&(c.beforeSend.call(p,T,c)===!1||2===v))return T.abort();b="abort";for(l in{success:1,error:1,complete:1})T[l](c[l]);if(n=ln(on,c,t,T)){T.readyState=1,u&&f.trigger("ajaxSend",[T,c]),c.async&&c.timeout>0&&(s=setTimeout(function(){T.abort("timeout")},c.timeout));try{v=1,n.send(m,k)}catch(C){if(!(2>v))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,t,o,a){var l,m,y,b,w,C=t;2!==v&&(v=2,s&&clearTimeout(s),n=undefined,i=a||"",T.readyState=e>0?4:0,l=e>=200&&300>e||304===e,o&&(b=pn(c,T,o)),b=fn(c,b,T,l),l?(c.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(x.lastModified[r]=w),w=T.getResponseHeader("etag"),w&&(x.etag[r]=w)),204===e||"HEAD"===c.type?C="nocontent":304===e?C="notmodified":(C=b.state,m=b.data,y=b.error,l=!y)):(y=C,(e||!C)&&(C="error",0>e&&(e=0))),T.status=e,T.statusText=(t||C)+"",l?h.resolveWith(p,[m,C,T]):h.rejectWith(p,[T,C,y]),T.statusCode(g),g=undefined,u&&f.trigger(l?"ajaxSuccess":"ajaxError",[T,c,l?m:y]),d.fireWith(p,[T,C]),u&&(f.trigger("ajaxComplete",[T,c]),--x.active||x.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,undefined,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,i){return x.isFunction(n)&&(i=i||r,r=n,n=undefined),x.ajax({url:e,type:t,dataType:i,data:n,success:r})}});function pn(e,t,n){var r,i,o,s,a=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):undefined}function fn(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=l[u+" "+o]||l["* "+o],!s)for(i in l)if(a=i.split(" "),a[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[i]:l[i]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=x("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),o.head.appendChild(t[0])},abort:function(){n&&n()}}}});var hn=[],dn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=hn.pop()||x.expando+"_"+Yt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=x.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(Vt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||x.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,hn.push(i)),s&&x.isFunction(o)&&o(s[0]),s=o=undefined}),"script"):undefined}),x.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var gn=x.ajaxSettings.xhr(),mn={0:200,1223:204},yn=0,vn={};e.ActiveXObject&&x(e).on("unload",function(){for(var e in vn)vn[e]();vn=undefined}),x.support.cors=!!gn&&"withCredentials"in gn,x.support.ajax=gn=!!gn,x.ajaxTransport(function(e){var t;return x.support.cors||gn&&!e.crossDomain?{send:function(n,r){var i,o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)s.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete vn[o],t=s.onload=s.onerror=null,"abort"===e?s.abort():"error"===e?r(s.status||404,s.statusText):r(mn[s.status]||s.status,s.statusText,"string"==typeof s.responseText?{text:s.responseText}:undefined,s.getAllResponseHeaders()))}},s.onload=t(),s.onerror=t("error"),t=vn[o=yn++]=t("abort"),s.send(e.hasContent&&e.data||null)},abort:function(){t&&t()}}:undefined});var xn,bn,wn=/^(?:toggle|show|hide)$/,Tn=RegExp("^(?:([+-])=|)("+b+")([a-z%]*)$","i"),Cn=/queueHooks$/,kn=[An],Nn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Tn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),s=(x.cssNumber[e]||"px"!==o&&+r)&&Tn.exec(x.css(n.elem,e)),a=1,u=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do a=a||".5",s/=a,x.style(n.elem,e,s+o);while(a!==(a=n.cur()/r)&&1!==a&&--u)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};function En(){return setTimeout(function(){xn=undefined}),xn=x.now()}function Sn(e,t,n){var r,i=(Nn[t]||[]).concat(Nn["*"]),o=0,s=i.length;for(;s>o;o++)if(r=i[o].call(n,t,e))return r}function jn(e,t,n){var r,i,o=0,s=kn.length,a=x.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=xn||En(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,s=0,u=l.tweens.length;for(;u>s;s++)l.tweens[s].run(o);return a.notifyWith(e,[l,o,n]),1>o&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:xn||En(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?a.resolveWith(e,[l,t]):a.rejectWith(e,[l,t]),this}}),c=l.props;for(Dn(c,l.opts.specialEasing);s>o;o++)if(r=kn[o].call(l,e,c,l.opts))return r;return x.map(c,Sn,l),x.isFunction(l.opts.start)&&l.opts.start.call(e,l),x.fx.timer(x.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function Dn(e,t){var n,r,i,o,s;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),s=x.cssHooks[r],s&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(jn,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Nn[n]=Nn[n]||[],Nn[n].unshift(t)},prefilter:function(e,t){t?kn.unshift(e):kn.push(e)}});function An(e,t,n){var r,i,o,s,a,u,l=this,c={},p=e.style,f=e.nodeType&&Lt(e),h=q.get(e,"fxshow");n.queue||(a=x._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,l.always(function(){l.always(function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",l.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],wn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show")){if("show"!==i||!h||h[r]===undefined)continue;f=!0}c[r]=h&&h[r]||x.style(e,r)}if(!x.isEmptyObject(c)){h?"hidden"in h&&(f=h.hidden):h=q.access(e,"fxshow",{}),o&&(h.hidden=!f),f?x(e).show():l.done(function(){x(e).hide()}),l.done(function(){var t;q.remove(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)s=Sn(f?h[r]:0,r,l),r in h||(h[r]=s.start,f&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function Ln(e,t,n,r,i){return new Ln.prototype.init(e,t,n,r,i)}x.Tween=Ln,Ln.prototype={constructor:Ln,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=Ln.propHooks[this.prop];return e&&e.get?e.get(this):Ln.propHooks._default.get(this)},run:function(e){var t,n=Ln.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ln.propHooks._default.set(this),this}},Ln.prototype.init.prototype=Ln.prototype,Ln.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ln.propHooks.scrollTop=Ln.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(qn(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Lt).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),s=function(){var t=jn(this,x.extend({},e),o);(i||q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=x.timers,s=q.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&Cn.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));(t||!n)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=q.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,s=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;s>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function qn(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=jt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:qn("show"),slideUp:qn("hide"),slideToggle:qn("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=Ln.prototype.init,x.fx.tick=function(){var e,t=x.timers,n=0;for(xn=x.now();t.length>n;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||x.fx.stop(),xn=undefined},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){bn||(bn=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(bn),bn=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===undefined?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,i=this[0],o={top:0,left:0},s=i&&i.ownerDocument;if(s)return t=s.documentElement,x.contains(t,i)?(typeof i.getBoundingClientRect!==r&&(o=i.getBoundingClientRect()),n=Hn(s),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o},x.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l,c=x.css(e,"position"),p=x(e),f={};"static"===c&&(e.style.position="relative"),a=p.offset(),o=x.css(e,"top"),u=x.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=p.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),x.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):p.css(f)}},x.fn.extend({position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===x.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(r=e.offset()),r.top+=x.css(e[0],"borderTopWidth",!0),r.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-x.css(n,"marginTop",!0),left:t.left-r.left-x.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;x.fn[t]=function(i){return x.access(this,function(t,i,o){var s=Hn(t);return o===undefined?s?s[n]:t[i]:(s?s.scrollTo(r?e.pageXOffset:o,r?o:e.pageYOffset):t[i]=o,undefined)},t,i,arguments.length,null)}});function Hn(e){return x.isWindow(e)?e:9===e.nodeType&&e.defaultView}x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return x.access(this,function(t,n,r){var i;return x.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?x.css(t,n,s):x.style(t,n,r,s)},t,o?r:undefined,o,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}),"object"==typeof e&&"object"==typeof e.document&&(e.jQuery=e.$=x)})(window);
This source diff could not be displayed because it is too large. You can view the blob instead.
var saveSelectColor = {
'Name': 'SelcetColor',
'Color': 'theme-black'
}
// 判断用户是否已有自己选择的模板风格
if (storageLoad('SelcetColor')) {
$('body').attr('class', storageLoad('SelcetColor').Color)
} else {
storageSave(saveSelectColor);
$('body').attr('class', 'theme-black')
}
// 本地缓存
function storageSave(objectData) {
localStorage.setItem(objectData.Name, JSON.stringify(objectData));
}
function storageLoad(objectName) {
if (localStorage.getItem(objectName)) {
return JSON.parse(localStorage.getItem(objectName))
} else {
return false
}
}
\ No newline at end of file
"""
backend_server.py - 后台服务器
"""
import asyncio
import os
import threading
import aiomysql
import tornado.web
from tornado.ioloop import IOLoop
from tornado.platform.asyncio import AnyThreadEventLoopPolicy
from service.handlers.handlers_for_charts import send_data
from service.handlers.handlers_for_nav import IndexHandler
from service.handlers.handlers_for_tables import EmpHandler
from service.handlers.handlers_for_charts import ChartHandler
async def connect_mysql():
return await aiomysql.connect(
host='120.77.222.217',
port=3306,
db='hrs',
charset='utf8',
use_unicode=True,
user='root',
password='123456',
)
def main():
# Tornado 5开始使用线程必须指定事件循环的策略否则无法启动线程
asyncio.set_event_loop_policy(AnyThreadEventLoopPolicy())
# 启动通过WebSocket长连接发送数据的线程
threading.Thread(target=send_data, daemon=True, args=(5, )).start()
app = tornado.web.Application(
handlers=[
(r'/', IndexHandler),
(r'/api/emps', EmpHandler),
(r'/ws/charts', ChartHandler),
],
template_path=os.path.join(os.path.dirname(__file__), 'templates'),
static_path=os.path.join(os.path.dirname(__file__), 'assets'),
cookie_secret='MWM2MzEyOWFlOWRiOWM2MGMzZThhYTk0ZDNlMDA0OTU=',
mysql=IOLoop.current().run_sync(connect_mysql),
debug=True
)
app.listen(8888)
tornado.ioloop.IOLoop.current().start()
if __name__ == '__main__':
main()
aiomysql==0.0.20
asn1crypto==0.24.0
cffi==1.12.2
cryptography==2.6.1
pycparser==2.19
PyMySQL==0.9.2
six==1.12.0
tornado==5.1.1
import json
import random
import time
import tornado.websocket
clients_set = set()
class ChartHandler(tornado.websocket.WebSocketHandler):
def open(self):
clients_set.add(self)
def on_close(self):
clients_set.remove(self)
def gen_mock_data(num_of_series, num_of_sample):
data = []
for _ in range(num_of_series):
series = []
for _ in range(num_of_sample):
series.append(random.randint(50, 500))
data.append(series)
return data
def send_data(delay):
while True:
for ws_client in clients_set:
data = gen_mock_data(3, 7)
ws_client.write_message(json.dumps(data).encode())
time.sleep(delay)
import tornado
class IndexHandler(tornado.web.RequestHandler):
async def get(self, *args, **kwargs):
return await self.render('index.html')
import json
import aiomysql
import tornado
class EmpHandler(tornado.web.RequestHandler):
async def get(self, *args, **kwargs):
async with self.settings['mysql'].cursor(aiomysql.DictCursor) as cursor:
await cursor.execute("select eno as no, ename as name, job, sal, intro from tb_emp")
emps = list(await cursor.fetchall())
self.finish(json.dumps(emps))
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>后台数据监控项目</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="{{ static_url('i/favicon.png') }}">
<link rel="apple-touch-icon-precomposed" href="{{ static_url('i/app-icon72x72@2x.png') }}">
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<script src="{{ static_url('js/echarts.min.js') }}"></script>
<link rel="stylesheet" href="{{ static_url('css/amazeui.min.css') }}" />
<link rel="stylesheet" href="{{ static_url('css/amazeui.datatables.min.css') }}" />
<link rel="stylesheet" href="{{ static_url('css/app.css') }}">
<script src="{{ static_url('js/jquery.min.js') }}"></script>
</head>
<body data-type="index">
<script src="{{ static_url('js/theme.js') }}"></script>
<div class="am-g tpl-g">
<!-- 头部 -->
<header>
<!-- logo -->
<div class="am-fl tpl-header-logo">
<a href="javascript:;"><img src="{{ static_url('img/logo.png') }}" alt=""></a>
</div>
<!-- 右侧内容 -->
<div class="tpl-header-fluid">
<!-- 侧边切换 -->
<div class="am-fl tpl-header-switch-button am-icon-list">
<span>
</span>
</div>
<!-- 搜索 -->
<div class="am-fl tpl-header-search">
<form class="tpl-header-search-form" action="javascript:;">
<button class="tpl-header-search-btn am-icon-search"></button>
<input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
</form>
</div>
<!-- 其它功能-->
<div class="am-fr tpl-header-navbar">
<ul>
<!-- 欢迎语 -->
<li class="am-text-sm tpl-header-navbar-welcome">
<a href="javascript:;">欢迎你, <span>Amaze UI</span> </a>
</li>
<!-- 新邮件 -->
<li class="am-dropdown tpl-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle tpl-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-envelope"></i>
<span class="am-badge am-badge-success am-round item-feed-badge">4</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="{{ static_url('img/user04.png') }}" alt="">
</div>
<div class="menu-messages-time">
3小时前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-success"></i>
<span>夕风色</span>
</div>
<div class="am-text-truncate"> Amaze UI 的诞生,依托于 GitHub 及其他技术社区上一些优秀的资源;Amaze UI 的成长,则离不开用户的支持。 </div>
<div class="menu-messages-content-time">2016-09-21 下午 16:40</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<div class="menu-messages-ico">
<img src="{{ static_url('img/user02.png') }}" alt="">
</div>
<div class="menu-messages-time">
5天前
</div>
<div class="menu-messages-content">
<div class="menu-messages-content-title">
<i class="am-icon-circle-o am-text-warning"></i>
<span>禁言小张</span>
</div>
<div class="am-text-truncate"> 为了能最准确的传达所描述的问题, 建议你在反馈时附上演示,方便我们理解。 </div>
<div class="menu-messages-content-time">2016-09-16 上午 09:23</div>
</div>
</a>
</li>
<li class="tpl-dropdown-menu-messages">
<a href="javascript:;" class="tpl-dropdown-menu-messages-item am-cf">
<i class="am-icon-circle-o"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 新提示 -->
<li class="am-dropdown" data-am-dropdown>
<a href="javascript:;" class="am-dropdown-toggle" data-am-dropdown-toggle>
<i class="am-icon-bell"></i>
<span class="am-badge am-badge-warning am-round item-feed-badge">5</span>
</a>
<!-- 弹出列表 -->
<ul class="am-dropdown-content tpl-dropdown-content">
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-line-chart"></i>
<span> 有6笔新的销售订单</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
12分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-star"></i>
<span> 有3个来自人事部的消息</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
30分钟前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<div class="tpl-dropdown-menu-notifications-title">
<i class="am-icon-folder-o"></i>
<span> 上午开会记录存档</span>
</div>
<div class="tpl-dropdown-menu-notifications-time">
1天前
</div>
</a>
</li>
<li class="tpl-dropdown-menu-notifications">
<a href="javascript:;" class="tpl-dropdown-menu-notifications-item am-cf">
<i class="am-icon-bell"></i> 进入列表…
</a>
</li>
</ul>
</li>
<!-- 退出 -->
<li class="am-text-sm">
<a href="javascript:;">
<span class="am-icon-sign-out"></span> 退出
</a>
</li>
</ul>
</div>
</div>
</header>
<!-- 风格切换 -->
<div class="tpl-skiner">
<div class="tpl-skiner-toggle am-icon-cog">
</div>
<div class="tpl-skiner-content">
<div class="tpl-skiner-content-title">
选择主题
</div>
<div class="tpl-skiner-content-bar">
<span class="skiner-color skiner-white" data-color="theme-white"></span>
<span class="skiner-color skiner-black" data-color="theme-black"></span>
</div>
</div>
</div>
<!-- 侧边导航栏 -->
<div class="left-sidebar">
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
<div class="tpl-user-panel-slide-toggleable">
<div class="tpl-user-panel-profile-picture">
<img src="{{ static_url('img/user04.png') }}" alt="">
</div>
<span class="user-panel-logged-in-text">
<i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
禁言小张
</span>
<a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
</div>
</div>
<!-- 菜单 -->
<ul class="sidebar-nav">
<li class="sidebar-nav-heading">Components <span class="sidebar-nav-heading-info"> 附加组件</span></li>
<li class="sidebar-nav-link">
<a href="/" class="active">
<i class="am-icon-home sidebar-nav-link-logo"></i> 首页
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/tables.html') }}">
<i class="am-icon-table sidebar-nav-link-logo"></i> 表格
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/calendar.html') }}">
<i class="am-icon-calendar sidebar-nav-link-logo"></i> 日历
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/form.html') }}">
<i class="am-icon-wpforms sidebar-nav-link-logo"></i> 表单
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/chart.html') }}">
<i class="am-icon-bar-chart sidebar-nav-link-logo"></i> 图表
</a>
</li>
<li class="sidebar-nav-heading">Page<span class="sidebar-nav-heading-info"> 常用页面</span></li>
<li class="sidebar-nav-link">
<a href="javascript:;" class="sidebar-nav-sub-title">
<i class="am-icon-table sidebar-nav-link-logo"></i> 数据列表
<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
</a>
<ul class="sidebar-nav sidebar-nav-sub">
<li class="sidebar-nav-link">
<a href="{{ static_url('html/table-list.html') }}">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 文字列表
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/table-list-img.html') }}">
<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 图文列表
</a>
</li>
</ul>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/sign-up.html') }}">
<i class="am-icon-clone sidebar-nav-link-logo"></i> 注册
<span class="am-badge am-badge-secondary sidebar-nav-link-logo-ico am-round am-fr am-margin-right-sm">6</span>
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/login.html') }}">
<i class="am-icon-key sidebar-nav-link-logo"></i> 登录
</a>
</li>
<li class="sidebar-nav-link">
<a href="{{ static_url('html/404.html') }}">
<i class="am-icon-tv sidebar-nav-link-logo"></i> 404错误
</a>
</li>
</ul>
</div>
<!-- 内容区域 -->
<div class="tpl-content-wrapper">
<div class="container-fluid am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
<div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 部件首页 <small>Amaze UI</small></div>
<p class="page-header-description">Amaze UI 含近 20 个 CSS 组件、20 余 JS 组件,更有多个包含不同主题的 Web 组件。</p>
</div>
<div class="am-u-lg-3 tpl-index-settings-button">
<button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>
</div>
</div>
</div>
<div class="row-content am-cf">
<div class="row am-cf">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-4">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">月度财务收支计划</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body am-fr">
<div class="am-fl">
<div class="widget-fluctuation-period-text">
¥61746.45
<button class="widget-fluctuation-tpl-btn">
<i class="am-icon-calendar"></i>
更多月份
</button>
</div>
</div>
<div class="am-fr am-cf">
<div class="widget-fluctuation-description-amount text-success" am-cf>
+¥30420.56
</div>
<div class="widget-fluctuation-description-text am-text-right">
8月份收入
</div>
</div>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-4">
<div class="widget widget-primary am-cf">
<div class="widget-statistic-header">
本季度利润
</div>
<div class="widget-statistic-body">
<div class="widget-statistic-value">
¥27,294
</div>
<div class="widget-statistic-description">
本季度比去年多收入 <strong>2593元</strong> 人民币
</div>
<span class="widget-statistic-icon am-icon-credit-card-alt"></span>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-4">
<div class="widget widget-purple am-cf">
<div class="widget-statistic-header">
本季度利润
</div>
<div class="widget-statistic-body">
<div class="widget-statistic-value">
¥27,294
</div>
<div class="widget-statistic-description">
本季度比去年多收入 <strong>2593元</strong> 人民币
</div>
<span class="widget-statistic-icon am-icon-support"></span>
</div>
</div>
</div>
</div>
<div class="row am-cf">
<div class="am-u-sm-12 am-u-md-8">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">月度财务收支计划</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body-md widget-body tpl-amendment-echarts am-fr" id="tpl-echarts">
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-4">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-fl">专用服务器负载</div>
<div class="widget-function am-fr">
<a href="javascript:;" class="am-icon-cog"></a>
</div>
</div>
<div class="widget-body widget-body-md am-fr">
<div class="am-progress-title">CPU Load <span class="am-fr am-progress-title-more">28% / 100%</span></div>
<div class="am-progress">
<div class="am-progress-bar" style="width: 15%"></div>
</div>
<div class="am-progress-title">CPU Load <span class="am-fr am-progress-title-more">28% / 100%</span></div>
<div class="am-progress">
<div class="am-progress-bar am-progress-bar-warning" style="width: 75%"></div>
</div>
<div class="am-progress-title">CPU Load <span class="am-fr am-progress-title-more">28% / 100%</span></div>
<div class="am-progress">
<div class="am-progress-bar am-progress-bar-danger" style="width: 35%"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row am-cf">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-4 widget-margin-bottom-lg ">
<div class="tpl-user-card am-text-center widget-body-lg">
<div class="tpl-user-card-title">
禁言小张
</div>
<div class="achievement-subheading">
月度最佳员工
</div>
<img class="achievement-image" src="{{ static_url('img/user07.png') }}" alt="">
<div class="achievement-description">
禁言小张在
<strong>30天内</strong> 禁言了
<strong>200多</strong>人。
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-12 am-u-lg-8 widget-margin-bottom-lg">
<div class="widget am-cf widget-body-lg">
<div class="widget-body am-fr">
<div class="am-scrollable-horizontal ">
<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black " id="example-r">
<thead>
<tr>
<th>文章标题</th>
<th>作者</th>
<th>时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr class="gradeX">
<td>新加坡大数据初创公司 Latize 获 150 万美元风险融资</td>
<td>张鹏飞</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>自拍的“政治角色”:观众背对希拉里自拍合影表示“支持”</td>
<td>天纵之人</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="gradeX">
<td>关于创新管理,我想和你当面聊聊。</td>
<td>王宽师</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>究竟是趋势带动投资,还是投资引领趋势?</td>
<td>着迷</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<tr class="even gradeC">
<td>Docker领域再添一员,网易云发布“蜂巢”,加入云计算之争</td>
<td>醉里挑灯看键</td>
<td>2016-09-26</td>
<td>
<div class="tpl-table-black-operation">
<a href="javascript:;">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="tpl-table-black-operation-del">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="{{ static_url('js/amazeui.min.js') }}"></script>
<script src="{{ static_url('js/amazeui.datatables.min.js') }}"></script>
<script src="{{ static_url('js/dataTables.responsive.min.js') }}"></script>
<script src="{{ static_url('js/app.js') }}"></script>
</body>
</html>
\ No newline at end of file
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