';
+ } else if (!!settings.marginBottom) {
+ tipHtml += '
';
+ } else {
+ tipHtml += '
';
+ }
+ tipHtml += '
';
+ tipHtml += settings.content;
+ tipHtml += '
';
+ tipHtml += '
';
+ tipHtml += '
';
+ }
+
+ $(".tip-mask").remove();
+ $(".tip").remove();
+ $(document.body).append(tipHtml);
+
+ setTimeout(function() {
+ $("#"+UUID).remove();
+ }, settings.live);
+ },
+
+ // 加载层
+ loading : function(args) {
+ var settings = defaults(args);
+ $(document.body).append('
');
+
+ // 判断页面是否加载完毕
+ document.onreadystatechange = subSomething;
+ function subSomething() {
+ if (document.readyState=="complete") {
+ var oLoading = document.getElementById("javaex-loading");
+ if (oLoading!=null) {
+ oLoading.remove();
+ settings.callback({
+ "code": "000000"
+ });
+ }
+ }
+ }
+ },
+
+ // 高级弹出层
+ dialog : function(args) {
+ var settings = defaults(args);
+ var type = settings.type;
+
+ // 生成随机id
+ var UUID = info.getUUID();
+ var dialogHtml = '';
+
+ if (type=="menu") {
+ // 生成菜单html代码
+ var json = settings.menu;
+ var menuHtml = '';
+ for (var key in json) {
+ menuHtml += '
'+key+' ';
+ }
+ menuHtml += '
关闭 ';
+
+ // 弹出层代码
+ dialogHtml = '';
+ } else if (type=="html") {
+ var fill = settings.fill;
+ var title = settings.title;
+ var scriptArr = settings.scriptArr;
+
+ // 弹出层代码
+ dialogHtml += '';
+ if (scriptArr.length>0) {
+ for (var i=0; i
';
+ }
+ }
+ }
+
+ $(document.body).append(dialogHtml);
+
+ if (type=="html") {
+ // 设置高度
+ if (fill=="auto") {
+
+ } else if (fill=="100%") {
+ if (title=="") {
+ $(".popup .operation").css("height", $(document).height()-$(".button-cancel").height()-32 + "px");
+ } else {
+ $(".popup .operation").css("height", $(document).height()-$(".dialog-title").height()-$(".button-cancel").height()-32 + "px");
+ }
+ } else {
+ if (title=="") {
+ $(".popup .operation").css("height", $(document).height()-$(document).height()*parseInt(fill)/100-$(".button-cancel").height()-32 + "px");
+ } else {
+ $(".popup .operation").css("height", $(document).height()-$(document).height()*parseInt(fill)/100-$(".dialog-title").height()-$(".button-cancel").height()-32 + "px");
+ }
+ }
+ }
+
+ // 添加遮罩
+ $("#"+UUID).before('
');
+ // 显示弹出层
+ $("#"+UUID).show();
+ $("#"+UUID).addClass("modal-in");
+
+ // 点击遮罩隐藏
+ $(".mask").click(function() {
+ $(".mask").remove();
+ $("#"+UUID).css("transform", "translateY(100%)");
+ setTimeout(function() {
+ info.close(UUID);
+ }, 300);
+ });
+ },
+ closeTranslate : function(UUID) {
+ $(".mask").remove();
+ $("#"+UUID).css("transform", "translateY(100%)");
+ setTimeout(function() {
+ info.close(UUID);
+ }, 300);
+ },
+
+ // 关闭弹出层
+ close : function(UUID) {
+ if (!UUID) {
+ $(".mask").remove();
+ } else {
+ $("#"+UUID).remove();
+ $(".mask").remove();
+ }
+ },
+
+ // 重新渲染
+ render : function(args) {
+ var settings = defaults(args);
+ var id = settings.id;
+ var type = settings.type;
+
+ if (!!id) {
+ if (!!type) {
+ // 等分系统
+ if (type=="equal") {
+ // 判断含有多少个属性
+ var classArr = $('#'+id).attr("class").split(" ");
+
+ for (var i=0; i=0) {
+ // 获取等分布局的等分数
+ var num = classArr[i].split("-")[1];
+ // 为子级div设置宽度
+ $('#'+id).children("li").css("width", (100/num) + "%");
+ }
+ }
+ return;
+ }
+
+ // 栅格系统
+ if (type=="grid") {
+ // 判断含有多少个属性
+ var classArr = $('#'+id).attr("class").split(" ");
+
+ for (var i=0; i=0) {
+ // 获取栅格布局
+ var arr = classArr[i].split("-");
+ // 计算一共需要分成多少份
+ var sum = 0;
+ for (var j in arr) {
+ if (j>0) {
+ sum = parseInt(sum) + parseInt(arr[j]);
+ }
+ }
+ // 为子级div设置宽度
+ $('#'+id).children("div").each(function(k) {
+ $(this).css("width", (100/sum) * arr[k+1] + "%");
+ });
+ } else if (classArr[i].indexOf("spacing-")>=0) {
+ // 获取栅格间距
+ var spacing = classArr[i].split("-")[1];
+
+ // 为子级div设置间距
+ var width = "calc(100% + "+parseInt(spacing)+"px)";
+ $('#'+id).css("width", width);
+ $('#'+id).children("div").each(function(k) {
+ $(this).css("margin-right", parseInt(spacing) + "px");
+ });
+ }
+ }
+ return;
+ }
+ }
+ } else {
+ $("script").each(function() {
+ if (!!$(this).attr("src")) {
+ if ($(this).attr("src").indexOf("common.js")>-1) {
+ var jsSrc = $(this).attr("src");
+ var script = document.createElement("script");
+ script.src = jsSrc;
+ $(document.body).append(script);
+ }
+ if ($(this).attr("src").indexOf("javaex-formVerify.js")>-1) {
+ var jsSrc = $(this).attr("src");
+ var script = document.createElement("script");
+ script.src = jsSrc;
+ $(document.body).append(script);
+ }
+ }
+ });
+ }
+ },
+
+ // 导航
+ nav : function(args) {
+ var settings = defaults(args);
+
+ // 左侧滑动菜单
+ if (settings.type=="slide") {
+ // 判断是否存在底部功能栏
+ if ($("#slide-bottom")!=null) {
+ var height = $("#slide-bottom").height();
+ // 重新设置导航菜单的高度
+ $("#slide-list").css("height", "calc(100% - " + (160+height) + "px)");
+ }
+
+ // 添加遮罩
+ $("#slide-nav").before('
');
+ // 显示导航
+ $("#slide-nav").css("transform", "translateX(" + $("#slide-nav").width() + "px)");
+
+ // 点击遮罩隐藏导航
+ $(".mask").click(function() {
+ $(".mask").remove();
+ $("#slide-nav").css("transform", "translateX(0px)");
+ });
+ } else if (settings.type=="guide") {
+ // 为子级 ul 添加和去除 active 属性
+ if ($("#guide-nav > ul").hasClass("active")) {
+ $("#guide-nav > ul").removeClass("active");
+ $("#guide-nav ul").css("height", "1rem");
+ } else {
+ // 查询 li 的个数
+ var liCount = $("#guide-nav > ul > li").length;
+ // 判断可以分成几行 2.1表示视为3
+ var row = Math.ceil((liCount+1)/5);
+ $("#guide-nav > ul").addClass("active");
+ // 设置高度
+ $("#guide-nav ul.active").css("height", (row+0.2) + "rem");
+ }
+ }
+ },
+
+ // 滚动公告
+ roll : function(args) {
+ var settings = defaults(args);
+
+ var fn = function() {
+ $("#" + settings.id).find("ul:first").animate({
+ "margin-top": "-0.5rem"
+ }, 2000, function() {
+ $(this).css("margin-top", 0).find("li:first").appendTo(this);
+ });
+ };
+
+ // setInterval() 方法可按照指定的周期(以毫秒计)来调用函数或计算表达式。
+ setInterval(fn, settings.delay);
+ },
+
+ // 以下这些属性相当于全局变量,用于重复赋值与使用
+ loadDataFunction : "", // 请求数据的函数
+ isDataLoaded : false, // 是否已滚动加载
+ isOver : "", // 哪一块内容区域已经没有更多数据了
+ documentHeight : "", // 文档高度
+ loadDistance : 0, // 滑到哪里开始触发加载
+ windowHeight : "", // 屏幕高度
+ loadData : "",
+ noData : "",
+ setPageInit : function() {
+ info.loadDataFunction = "";
+ info.isDataLoaded = false;
+ info.isOver = "";
+ info.documentHeight = "";
+ info.loadDistance = 0;
+ info.windowHeight = "";
+ info.loadData = "";
+ info.noData = "";
+ },
+ // 上拉加载,相当于分页
+ page : function(args) {
+ var settings = defaults(args);
+ var pageId = settings.id;
+
+ info.loadDataFunction = settings.loadDataFunction;
+ info.documentHeight = $(document).height();
+ info.windowHeight = document.documentElement.clientHeight;
+ info.loadData = settings.loadData;
+ info.noData = settings.noData;
+
+ init();
+
+ function init() {
+ // 事先在下方插入加载占位div
+ var obj = document.getElementById("infinite-scroll-preloader-"+pageId);
+ if (obj==null) {
+ $("#"+pageId).after('
');
+ }
+
+ // 判断是否存在固定底部的footer
+ var oFooter = document.getElementById("footer");
+ if (oFooter!=null) {
+ // 判断底部固定是否是可见的
+ if ($("#footer").is(":visible")==true) {
+ // 为站位加载区域添加下边距
+ $("#infinite-scroll-preloader-"+pageId).css("margin-bottom", oFooter.offsetHeight + "px");
+ }
+ }
+
+ // 滑到站位加载区2/3处时加载数据
+ info.loadDistance = Math.floor($("#infinite-scroll-preloader-"+pageId).height()*(1/3));
+ if (info.loadDistance==0) {
+ info.loadDistance = 90;
+ }
+ // 加载下方数据
+ $(window).on('scroll',function() {
+ // 滚动页面触发加载数据
+ if (!info.isDataLoaded
+ && info.isOver!=pageId
+ && (info.documentHeight-info.loadDistance) <= (info.windowHeight+$(window).scrollTop())) {
+ info.loadDown(pageId);
+ }
+ });
+
+ // 自动向下方加载数据,直至充满整个屏幕
+ info.autoLoad(pageId);
+ }
+ },
+ // 设置上滑加载已无数据
+ over : function(pageId) {
+ info.isOver = pageId;
+ },
+ // 如果文档高度不大于窗口高度,数据较少,自动向下方加载数据
+ autoLoad : function(pageId) {
+ if ((info.documentHeight-info.loadDistance) <= info.windowHeight) {
+ info.loadDown(pageId);
+ }
+ },
+ // 向下方加载数据
+ loadDown : function(pageId) {
+ $("#infinite-scroll-preloader-"+pageId).html(info.loadData);
+ info.isDataLoaded = true;
+ info.loadDataFunction();
+ },
+ // 重置上滑加载的一些属性
+ resetLoad : function(pageId) {
+ // 重新设置文档的高度
+ info.documentHeight = $(document).height();
+
+ info.isDataLoaded = false;
+ if (info.isOver==pageId) {
+ $("#infinite-scroll-preloader-"+pageId).html(info.noData);
+ } else {
+ info.autoLoad();
+ }
+ },
+
+ // tab选项卡切换
+ tab : function(args) {
+ var settings = defaults(args);
+ var tabId = settings.id;
+ var current = settings.current;
+ var type = settings.type;
+ var hasUnderline = settings.hasUnderline;
+
+ // 水平
+ if (type=="" || type=="level") {
+ // 添加下划线样式
+ if (hasUnderline) {
+ $("#" + tabId + " > ul").append(' ');
+ }
+
+ // 判断当前有多少个选项卡
+ var tabNum = $("#" + tabId + " > ul li").length;
+ // 为每个选项卡设置宽度
+ $("#" + tabId + " > ul li").css("width", (100/tabNum) + "%");
+ // 为下划线设置宽度
+ if (hasUnderline) {
+ $("#" + tabId + " > ul .border").css("width", (100/tabNum) + "%");
+ }
+
+ // 为当前选中的选项卡添加选中属性
+ $("#" + tabId + " > ul li").each(function(i) {
+ if (i==(current-1)) {
+ $(this).addClass("current");
+ if (hasUnderline) {
+ $("#" + tabId + " > ul .border").css("left", $(this).offset().left + "px");
+ }
+ }
+ });
+ } else {
+ // 垂直
+ // 为当前选中的选项卡添加选中属性
+ $("#" + tabId + " > ul li").each(function(i) {
+ if (i==(current-1)) {
+ $(this).addClass("current");
+ }
+ });
+ }
+
+ // 显示当前选中的选项卡的内容,隐藏其他选项卡的内容
+ $("#" + tabId).siblings(".tab-content").children("div").each(function(i) {
+ if (i==(current-1)) {
+ $(this).css("display", "block");
+ } else {
+ $(this).css("display", "none");
+ }
+ });
+
+ // 初始化返回回调函数,返回选项卡的索引,从1开始计
+ if (settings.isInit) {
+ settings.callback({
+ "index": current
+ });
+ }
+
+ // tab切换事件
+ $("#" + tabId + " > ul li").click(function() {
+ // 给标题添加样式
+ $(this).addClass("current").siblings().removeClass("current");
+ if (hasUnderline) {
+ $("#" + tabId + " > ul .border").css("left", $(this).offset().left + "px");
+ }
+ $("#" + tabId).siblings(".tab-content").children("div:eq(" + $(this).index() + ")").show().siblings().hide();
+ // 触发图片懒加载机制
+ $(settings.container).trigger(settings.event);
+ // 设置回调函数,返回选项卡的索引,从1开始计
+ settings.callback({
+ "index": $(this).index()+1
+ });
+ });
+ },
+
+ // 日期时间
+ date : function(args) {
+ var settings = defaults(args);
+ var dateId = settings.id;
+
+ // 创建数据
+ var now = new Date();
+ // 年
+ var yearList = '';
+ for (var i=1900; i<=parseInt(now.getFullYear()+50); i++) {
+ yearList += ''+i+' ';
+ }
+ // 月
+ var monthList = '';
+ for (var i=1; i<=12; i++) {
+ if (i<10) {
+ i = "0" + i;
+ }
+ monthList += ''+i+' ';
+ }
+ // 日
+ var dayList = '';
+ for (var i=1; i<=31; i++) {
+ if (i<10) {
+ i = "0" + i;
+ }
+ dayList += ''+i+' ';
+ }
+
+ // 日期选择器面板代码
+ var dateHtml = '';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '年 ';
+ dateHtml += '月 ';
+ dateHtml += '日 ';
+ dateHtml += ' ';
+ dateHtml += ' ';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += ' ';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += ' ';
+ dateHtml += '';
+ dateHtml += '';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += ' ';
+ dateHtml += ' ';
+ dateHtml += ' ';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '取消 ';
+ dateHtml += '确定 ';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+ dateHtml += '
';
+
+ $(document.body).append(dateHtml);
+ // 添加遮罩
+ $("#date-box-"+dateId+" table ul").after('');
+
+ var isStart = true;
+ var isMove = false;
+ var isEnd = false;
+ var startY = 0; // 当前触摸时的Y坐标
+ var lastY = 0; // 上一次触摸时的Y坐标
+ var nowElement = null; // 当前滚动的ul
+ var liLength = 0; // 当前滚动的ul下的li数量
+ var nY = 0;
+ var mY = 0;
+ var endY = 0;
+ var maxY = 0;
+ var minY = 0;
+ var nowY = 0;
+ var liHeight = $(".mask-mid").height();
+
+ var year = "";
+ var month = "";
+ var day = "";
+
+ // 用于缓动的变量
+ var lastMoveTime = 0;
+ var lastMoveStart = 0;
+ var totalDistance = 0; // 移动总距离
+ var stopInertiaMove = false;// 是否停止缓动
+
+ init();
+ if (settings.date=="" || settings.date==null || settings.date==undefined) {
+
+ } else {
+ // 关闭日期选择框,并把结果回显到输入框
+ close(true);
+ }
+
+ // 绑定日期框的点击事件
+ $("#"+dateId).bind("click", function() {
+ init();
+ // 显示日历
+ $("#date-box-"+dateId).show();
+ return;
+ });
+
+ // 日期选择确定按钮的点击事件
+ $("#date-ok-"+dateId).bind("click", function() {
+ close(true);
+ // 设置回调函数,返回一个时间对象,包含所选日期
+ settings.callback({
+ "date": $("#final-date-text-"+dateId).text()
+ });
+ return;
+ });
+ // 日期选择关闭按钮的点击事件
+ $("#date-cancel-"+dateId).bind("click", function() {
+ close();
+ return;
+ });
+
+ /**
+ * 日期选择初始化
+ */
+ function init() {
+ // 清空列表的内容
+ $("#year-"+dateId+" ul").empty();
+ $("#month-"+dateId+" ul").empty();
+ $("#day-"+dateId+" ul").empty();
+ // 为列表添加内容
+ $("#year-"+dateId+" ul").html(yearList);
+ $("#month-"+dateId+" ul").html(monthList);
+ $("#day-"+dateId+" ul").html(dayList);
+
+ // 判断是否已经选择过日期了
+ var date = $("#final-date-value-"+dateId).val();
+ if (date=="" || date==null || date==undefined) {
+ // 判断用户是否自定义了日期
+ if (settings.date=="" || settings.date==null || settings.date==undefined) {
+ // 不变,默认显示系统日期
+ } else {
+ // 分割年月日
+ var arr = settings.date.split("-");
+ // 返回日期格式
+ now = new Date(arr[0], arr[1]-1, arr[2]);
+ }
+ } else {
+ // 分割年月日
+ var arr = date.split("-");
+ // 返回日期格式
+ now = new Date(arr[0], arr[1]-1, arr[2]);
+ }
+
+ year = now.getFullYear();
+ month = ((now.getMonth()+1)<10?"0":"")+(now.getMonth()+1);
+ day = (now.getDate()<10?"0":"")+now.getDate();
+
+ // 获取当前月应该有多少天
+ var curMonthDays = new Date(year, month, 0).getDate();
+ var dif = curMonthDays-31;
+ // 隐藏多余的天数
+ if (dif<0) {
+ var moveY = getTranslateY($("#day-"+dateId+" .date-ul"));
+ for (var i=0; i>dif; i--) {
+ $("#day-"+dateId+" .date-ul > li:eq("+[31-1+i]+")").removeClass("date-show").addClass("date-hide");
+ }
+ }
+
+ // 默认选择年月日
+ $("#year-"+dateId+" .date-ul .date-li").each(function() {
+ if (parseInt($(this).text())==parseInt(year)) {
+ var positionY = -($(this).index()-2)*liHeight;
+ $(this).parent().css("transform", "translate(0, "+positionY+"px)");
+ }
+ });
+ $("#month-"+dateId+" .date-ul .date-li").each(function() {
+ if (parseInt($(this).text())==parseInt(month)) {
+ var positionY = -($(this).index()-2)*liHeight;
+ $(this).parent().css("transform", "translate(0, "+positionY+"px)");
+ }
+ });
+ $("#day-"+dateId+" .date-ul .date-li").each(function() {
+ if (parseInt($(this).text())==parseInt(day)) {
+ var positionY = -($(this).index()-2)*liHeight;
+ $(this).parent().css("transform", "translate(0, "+positionY+"px)");
+ }
+ });
+ // 填充日期
+ $("#final-date-text-"+dateId).html(year+"-"+month+"-"+day);
+ }
+
+ // 绑定滚动事件
+ var oScrollList = document.querySelectorAll("#date-box-"+dateId+" .mask-data");
+ for (var i=0; i300) {
+ lastMoveTime = nowTime;
+ lastMoveStart = mY;
+ }
+ }, false);
+
+ // 当手指从屏幕上离开的时候触发
+ oScrollList[i].addEventListener("touchend", function (event) {
+ event.preventDefault();
+
+ endY = event.changedTouches[0].clientY;
+ maxY = liHeight*2;
+ minY = -(liLength-3)*liHeight;
+ if (isEnd) {
+ isMove = false;
+ isEnd = false;
+ isStart = true;
+ nY = -(nY-(mY-startY));
+ nowY = endY;
+
+ // 修正位置
+ if (nY>maxY) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ } else if (nY 0 ? -1 : 1;
+ // 减速率 0.0006 为减速时间
+ var deceleration = dir*0.0006;
+ function inertiaMove() {
+ if (stopInertiaMove) {
+ return;
+ }
+ var nowTime = new Date().getTime();
+ var t = nowTime - lastMoveTime;
+ // 当前速度
+ var nowV = v + t * deceleration;
+ var moveY = (v + nowV) / 2 * t;
+ // 减速停止过程
+ if (dir*nowV>0) {
+ // 移动总距离大于最大值时,修正回弹
+ if (totalDistance>maxY) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ } else if (totalDistance(maxY+(liHeight*2))) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ return;
+ } else if (totalDistance<(minY-(liHeight*2))) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+minY+"px)");
+ return;
+ }
+ nowElement.css("transform", "translate(0, "+totalDistance+"px)");
+ // 获取并填充日期
+ setTimeout(function() {
+ fillDate();
+ }, 500);
+ setTimeout(inertiaMove, 10);
+ }
+ inertiaMove();
+ })(v, endTime, nY);
+ }
+
+ // 获取并填充日期
+ setTimeout(function() {
+ fillDate();
+ }, 500);
+ }
+ }, false);
+ }
+
+ /**
+ * 获取并填充日期
+ */
+ function fillDate(id) {
+ var currentY = 0;
+ $("#date-box-"+dateId+" .date-ul").each(function(index) {
+ currentY = getTranslateY(this);
+ var value = "";
+ if (currentY==0) {
+ value = $($(this).find(".date-li")[2]).text();
+ } else {
+ value = $($(this).find(".date-li")[Math.round(currentY/liHeight)+2]).text();
+ }
+ if (index==0) {
+ year = value;
+ } else if (index==1) {
+ month = value;
+ } else if (index==2) {
+ day = value;
+ }
+ });
+
+ // 修改天数
+ if (id!=undefined && id!=null) {
+ if (id=="year-"+dateId || id=="month-"+dateId) {
+ // 获取当前月应该有多少天
+ var curMonthDays = new Date(year, month, 0).getDate();
+ // 获取目前列表中的天数
+ var curDays = $("#day-"+dateId+" .date-ul .date-show").length;
+ var dif = curMonthDays-curDays;
+ if (dif>0) {
+ // 显示被隐藏的天数
+ for (var i=0; i li:eq("+[curDays+i]+")").removeClass("date-hide").addClass("date-show");
+ }
+ } else if (dif<0) {
+ var moveY = getTranslateY($("#day-"+dateId+" .date-ul"));
+ // 隐藏多余的天数
+ for (var i=0; i>dif; i--) {
+ $("#day-"+dateId+" .date-ul > li:eq("+[curDays-1+i]+")").removeClass("date-show").addClass("date-hide");
+ }
+
+ // 自动重新滚动天数
+ if (moveY>(curMonthDays-1-2)*liHeight) {
+ $("#day-"+dateId+" .date-ul").css("transition", "all 0s");
+ $("#day-"+dateId+" .date-ul").css("transform", "translate(0, "+-(curMonthDays-1-2)*liHeight+"px)");
+
+ // 重新对日期赋值
+ day = curMonthDays;
+ }
+ }
+ }
+ }
+
+ // 将最终日期显示在头部
+ $("#final-date-text-"+dateId).html(year+"-"+month+"-"+day);
+ $("#final-date-value-"+dateId).val(year+"-"+month+"-"+day);
+ }
+
+ function getTranslateY(element) {
+ var matrix = $(element).css("transform");
+ var translateY = 0;
+ if (matrix!="none") {
+ var arr = matrix.split(",");
+ translateY = -(arr[5].split(")")[0]);
+ }
+ return translateY;
+ }
+
+ /**
+ * 关闭日期选择框
+ * isOk : 判断是否是点击确定按钮关闭的
+ */
+ function close(isOk) {
+ if (isOk) {
+ $("#final-date-value-"+dateId).val(year+"-"+month+"-"+day);
+
+ // 把时间显示到页面
+ var obj = document.getElementById(dateId);
+ if (obj && obj.tagName=="INPUT") {
+ $("#"+dateId).val($("#final-date-text-"+dateId).text());
+ } else {
+ $("#"+dateId).html($("#final-date-text-"+dateId).text());
+ }
+ }
+ // 隐藏日历框
+ $("#date-box-"+dateId).css("display", "none");
+ }
+ },
+
+ // select选择框
+ firstIndex : 0, // 第一个可见项的索引
+ lastIndex : 0, // 最后一个可见项的索引
+ isSearchInit : false, // 是否搜索过后就没再次滚动
+ select : function(args) {
+ var settings = defaults(args);
+ var selectId = settings.id;
+
+ // 判断是否已经存在input元素
+ var obj = document.getElementById("input-"+selectId);
+ if (obj==null) {
+ $("#"+selectId).before(' ');
+ }
+ // 将select框隐藏起来
+ $("#"+selectId).hide();
+
+ // select选择框面板代码
+ var selectHtml = '';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '取消 ';
+ selectHtml += '确定 ';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+ selectHtml += '
';
+
+ $(document.body).append(selectHtml);
+ $("#select-box-"+selectId+" ul").after('');
+
+ var isStart = true;
+ var isMove = false;
+ var isEnd = false;
+ var startY = 0; // 当前触摸时的Y坐标
+ var lastY = 0; // 上一次触摸时的Y坐标
+ var nowElement = null; // 当前滚动的ul
+ var liLength = 0; // 当前滚动的ul下的li数量
+ var nY = 0;
+ var mY = 0;
+ var endY = 0;
+ var maxY = 0;
+ var minY = 0;
+ var nowY = 0;
+ var liHeight = $(".mask-mid").height();
+
+ // 用于缓动的变量
+ var lastMoveTime = 0;
+ var lastMoveStart = 0;
+ var totalDistance = 0; // 移动总距离
+ var stopInertiaMove = false;// 是否停止缓动
+
+ // 判断select是否已有默认值
+ var selectValue = $("#"+selectId).val();
+ var selectName = "";
+
+ init();
+ close(true);
+
+ // 绑定select选择框的点击事件
+ $("#input-"+selectId).bind("click", function() {
+ init();
+ // 显示select选择框
+ $("#select-box-"+selectId).show();
+ return;
+ });
+
+ // select选择确定按钮的点击事件
+ $("#select-ok-"+selectId).bind("click", function() {
+ close(true);
+ return;
+ });
+ // select选择关闭按钮的点击事件
+ $("#select-cancel-"+selectId).bind("click", function() {
+ close();
+ return;
+ });
+
+ /**
+ * select选择初始化
+ */
+ function init() {
+ // 清空列表的内容
+ $("#opt-select-"+selectId+" ul").empty();
+ // 为列表添加内容
+ $("#opt-select-"+selectId+" ul").html($("#"+selectId).html());
+ // 添加属性
+ $("#opt-select-"+selectId+" option").addClass("select-option option-show");
+ // 选中默认值
+ $("#opt-select-"+selectId+" option").each(function() {
+ if ($(this).attr("value")==selectValue) {
+ var positionY = -($(this).index()-2)*liHeight;
+ $(this).parent().css("transform", "translate(0, "+positionY+"px)");
+ }
+ });
+ // 关闭select选择框,并把结果回显到页面
+ selectName =$("#"+selectId).find("option:selected").text();
+
+ // 初始化第一个索引和最后一个索引
+ info.firstIndex = 0;
+ info.lastIndex = $("#opt-select-"+selectId+" ul option").length - 1;
+ }
+
+ // 绑定滚动事件
+ var oScroll = document.getElementById("mask-data-"+selectId);
+ // 当手指触摸屏幕时候触发,即使已经有一个手指放在屏幕上也会触发
+ oScroll.addEventListener("touchstart", function (event) {
+ event.preventDefault();
+
+ // 记录当前触摸时的Y坐标
+ startY = event.touches[0].clientY;
+ // 记录上一次触摸时的Y坐标
+ lastY = startY;
+ nowElement = $(this).prev(".select-ul");
+ liLength = nowElement.find(".option-show").length;
+ nY = getTranslateY(nowElement);
+ if (!isMove&&isEnd) {
+ return false;
+ }
+ isStart = false;
+ isMove = false;
+
+ // 缓动代码
+ lastMoveStart = lastY;
+ lastMoveTime = new Date().getTime();
+ stopInertiaMove = true;
+ }, false);
+
+ // 当手指在屏幕上滑动的时候连续地触发。在这个事件发生期间,调用preventDefault()事件可以阻止滚动
+ oScroll.addEventListener("touchmove", function (event) {
+ event.preventDefault();
+
+ mY = event.touches[0].clientY;
+ if (!isStart) {
+ isMove = true;
+ isEnd = true;
+ }
+ if (isMove) {
+ nowElement.css("transition", "none");
+ nowElement.css("transform", "translate(0, "+-(nY-(mY-startY))+"px)");
+ }
+
+ // 缓动代码
+ var nowTime = new Date().getTime();
+ stopInertiaMove = true;
+ if ((nowTime - lastMoveTime)>300) {
+ lastMoveTime = nowTime;
+ lastMoveStart = mY;
+ }
+ }, false);
+
+ // 当手指从屏幕上离开的时候触发
+ oScroll.addEventListener("touchend", function (event) {
+ event.preventDefault();
+
+ endY = event.changedTouches[0].clientY;
+ maxY = -(info.firstIndex-2)*liHeight;
+ minY = -(info.lastIndex-2)*liHeight;
+ if (isEnd) {
+ isMove = false;
+ isEnd = false;
+ isStart = true;
+ nY = -(nY-(mY-startY));
+ nowY = endY;
+
+ // 修正位置
+ if (nY>maxY) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ } else if (nY 0 ? -1 : 1;
+ // 减速率 0.0006 为减速时间
+ var deceleration = dir*0.0006;
+ function inertiaMove() {
+ if (stopInertiaMove) {
+ return;
+ }
+ var nowTime = new Date().getTime();
+ var t = nowTime - lastMoveTime;
+ // 当前速度
+ var nowV = v + t * deceleration;
+ var moveY = (v + nowV) / 2 * t;
+ // 减速停止过程
+ if (dir*nowV>0) {
+ // 移动总距离大于最大值时,修正回弹
+ if (totalDistance>maxY) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ } else if (totalDistance(maxY+(liHeight*2))) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+maxY+"px)");
+ return;
+ } else if (totalDistance<(minY-(liHeight*2))) {
+ nowElement.css("transition", "all .5s");
+ nowElement.css("transform", "translate(0, "+minY+"px)");
+ return;
+ }
+ nowElement.css("transform", "translate(0, "+totalDistance+"px)");
+ // 获取值
+ setTimeout(function() {
+ setSelectValue();
+ }, 500);
+ setTimeout(inertiaMove, 10);
+ }
+ inertiaMove();
+ })(v, endTime, nY);
+ }
+
+ // 获取值
+ setTimeout(function() {
+ setSelectValue();
+ }, 500);
+ }
+ }, false);
+
+ function getTranslateY(element) {
+ var matrix = $(element).css("transform");
+ var translateY = 0;
+ if (matrix!="none") {
+ var arr = matrix.split(",");
+ translateY = -(arr[5].split(")")[0]);
+ }
+ return translateY;
+ }
+
+ /**
+ * 获取值
+ */
+ function setSelectValue() {
+ var currentY = 0;
+ $("#opt-select-"+selectId+" .select-ul").each(function(index) {
+ currentY = getTranslateY(this);
+ var value = "";
+ var name = "";
+ if (currentY==0) {
+ value = $($(this).find(".select-option")[2]).attr("value");
+ name = $($(this).find(".select-option")[2]).text();
+ } else {
+ value = $($(this).find(".select-option")[Math.round(currentY/liHeight)+2]).attr("value");
+ name = $($(this).find(".select-option")[Math.round(currentY/liHeight)+2]).text();
+ }
+ if (index==0) {
+ selectValue = value;
+ selectName = name;
+ }
+ info.isSearchInit = false;
+ });
+ }
+
+ /**
+ * 关闭select选择框
+ * isOk : 判断是否是点击确定按钮关闭的
+ */
+ function close(isOk) {
+ if (isOk) {
+ // 如果是检索过后就没再次滚动选择,就默认取第一条数据
+ if (info.isSearchInit) {
+ selectValue = $($("#opt-select-"+selectId+" .select-ul").find(".select-option")[info.firstIndex]).attr("value");
+ selectName = $($("#opt-select-"+selectId+" .select-ul").find(".select-option")[info.firstIndex]).text();
+ }
+ // 把值显示到页面
+ $("#"+selectId).val(selectValue);
+ if (selectValue=="") {
+ $("#input-"+selectId).val("");
+ } else {
+ $("#input-"+selectId).val(selectName);
+ }
+
+ // 回调函数
+ settings.callback({
+ "selectValue": selectValue,
+ "selectName" : selectName
+ });
+ }
+ // 隐藏select框
+ $("#select-box-"+selectId).css("display", "none");
+ }
+ },
+ selectSearch : function(selectId) {
+ var keyword = $("#search-"+selectId).val();
+ var count = 0;
+ var indexArr = new Array(); // 记录符合检索条件的索引
+
+ // 如果检索内容为空
+ keyword = keyword.replace(/(^\s*)|(\s*$)/g, "");
+ if (keyword=="") {
+ // 则显示所有选项
+ $("#opt-select-"+selectId+" ul option").removeClass("option-hide").addClass("option-show");
+ } else {
+ // 遍历匹配每一个选项
+ $("#opt-select-"+selectId+" ul option").each(function(i) {
+ // 因为indexOf()方法对大小写敏感,所以这里强制转化为小写后再匹配
+ // 如果当前选项不匹配
+ if ($(this).text().toLowerCase().indexOf(keyword.toLowerCase())==-1) {
+ $(this).removeClass("option-show").addClass("option-hide");
+ count++;
+ } else {
+ $(this).removeClass("option-hide").addClass("option-show");
+ // 记录下当前的索引
+ indexArr.push(i);
+ }
+ });
+
+ // 重新滚动
+ if (indexArr!="" && indexArr!=null) {
+ $("#opt-select-"+selectId+" .select-ul").css("transition", "all 0s");
+ var positionY = 0;
+ var liHeight = $(".mask-mid").height();
+ info.firstIndex = indexArr[0]; // 第一条被检索到的索引
+ info.lastIndex = indexArr[indexArr.length-1]; // 最后一条被检索到的索引
+ $("#opt-select-"+selectId+" .select-ul").css("transform", "translate(0, "+-(info.firstIndex-2)*liHeight+"px)");
+ info.isSearchInit = true;
+ }
+ }
+ }
+ };
+
+ return info;
+ };
+
+ // 在窗口下方
+ $.belowthefold = function(element, settings) {
+ var fold;
+
+ if (settings.container === undefined || settings.container === window) {
+ fold = (window.innerHeight ? window.innerHeight : $(window).height()) + $(window).scrollTop();
+ } else {
+ fold = $(settings.container).offset().top + $(settings.container).height();
+ }
+
+ return fold <= $(element).offset().top - settings.threshold;
+ };
+ // 在窗口右方
+ $.rightoffold = function(element, settings) {
+ var fold;
+
+ if (settings.container === undefined || settings.container === window) {
+ fold = $(window).width() + $(window).scrollLeft();
+ } else {
+ fold = $(settings.container).offset().left + $(settings.container).width();
+ }
+
+ return fold <= $(element).offset().left - settings.threshold;
+ };
+ // 在窗口上方
+ $.abovethetop = function(element, settings) {
+ var fold;
+
+ if (settings.container === undefined || settings.container === window) {
+ fold = $(window).scrollTop();
+ } else {
+ fold = $(settings.container).offset().top;
+ }
+
+ return fold >= $(element).offset().top + settings.threshold + $(element).height();
+ };
+ // 在窗口左方
+ $.leftofbegin = function(element, settings) {
+ var fold;
+
+ if (settings.container === undefined || settings.container === window) {
+ fold = $(window).scrollLeft();
+ } else {
+ fold = $(settings.container).offset().left;
+ }
+
+ return fold >= $(element).offset().left + settings.threshold + $(element).width();
+ };
+
+ window.javaex = javaex();
+})();
\ No newline at end of file
diff --git a/src/main/resources/static/javaex/m/js/javaex.min.js b/src/main/resources/static/javaex/m/js/javaex.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..ec1770ea0309f089426a71633ed294d23de1b22b
--- /dev/null
+++ b/src/main/resources/static/javaex/m/js/javaex.min.js
@@ -0,0 +1,5 @@
+/**
+ * 作者:陈霓清
+ * 官网:http://www.javaex.cn
+ */
+;(function(){var javaex=function(){function defaults(args){var defaults={id:"",isInit:false,type:"",name:"",uncheckClass:"",checkedClass:"",second:45,text:"获取验证码",color:"unset",backgroundColor:"transparent",downColor:"unset",downBackgroundColor:"transparent",mask:true,content:"",confirmName:"确定",cancelName:"取消",callback:function(){return true},menu:"",live:2000,marginTop:"",marginBottom:"",delay:2000,title:"",fill:"auto",isShowCloseBtn:true,scriptArr:[],isAutoPlay:true,focusCenter:false,startSlide:1,effect:null,threshold:100,event:"scroll",container:window,dataOriginal:"data-original",appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC",loadDataFunction:"",loadData:"
",noData:" 没有更多内容了,亲~
",hasUnderline:true,current:1,date:""};return $.extend(defaults,args)}var info={getUUID:function(){return Date.now().toString(36)+Math.random().toString(36).substr(3,3)},changeTimeText:function(time){var timeText=time;var now=info.getTime();var day=info.getTimeDiff(time,now,"day");if(day>6){}else if(day>0){if(day==1){timeText="昨天 "+time.split(" ")[1]}else if(day==2){timeText="前天 "+time.split(" ")[1]}else{timeText=day+" 天前"}}else if(day==0){var hour=info.getTimeDiff(time,now,"hour");if(hour>0){timeText=hour+" 小时前"}else if(hour==0){var minute=info.getTimeDiff(time,now,"minute");if(minute>0){timeText=minute+" 分钟前"}else if(minute==0){var second=info.getTimeDiff(time,now,"second");timeText=second+" 秒前"}}}return timeText},changeTimeTexts:function(selector){var now=info.getTime();$(selector).each(function(){var day=info.getTimeDiff($(this).text(),now,"day");if(day>6){}else if(day>0){if(day==1){$(this).text("昨天 "+$(this).text().split(" ")[1])}else if(day==2){$(this).text("前天 "+$(this).text().split(" ")[1])}else{$(this).text(day+" 天前")}}else if(day==0){var hour=info.getTimeDiff($(this).text(),now,"hour");if(hour>0){$(this).text(hour+" 小时前");$(this).addClass("highlight-color")}else if(hour==0){var minute=info.getTimeDiff($(this).text(),now,"minute");if(minute>0){$(this).text(minute+" 分钟前");$(this).addClass("highlight-color")}else if(minute==0){var second=info.getTimeDiff($(this).text(),now,"second");$(this).text(second+" 秒前");$(this).addClass("highlight-color")}}}})},fakeRadio:function(args){var settings=defaults(args);var name=settings.name;var uncheckClass=settings.uncheckClass;var checkedClass=settings.checkedClass;$(':radio[name="'+name+'"]').each(function(){if($(this).is(":checked")){$(this).closest("label").addClass(checkedClass);if(settings.isInit){settings.callback({"val":$(this).val()})}}else{$(this).closest("label").addClass(uncheckClass)}});$(':radio[name="'+name+'"]').change(function(){$(':radio[name="'+name+'"]').each(function(){$(this).closest("label").removeClass(checkedClass).addClass(uncheckClass)});$(this).closest("label").removeClass(uncheckClass).addClass(checkedClass);settings.callback({"val":$(this).val()})})},fakeCheckbox:function(args){var settings=defaults(args);var name=settings.name;var uncheckClass=settings.uncheckClass;var checkedClass=settings.checkedClass;$(':checkbox[name="'+name+'"]').each(function(){if($(this).is(":checked")){$(this).parent("label").addClass(checkedClass);if(settings.isInit){settings.callback({"val":$(this).val()})}}else{$(this).parent("label").addClass(uncheckClass)}});$(':checkbox[name="'+name+'"]').change(function(){if($(this).is(":checked")){$(this).closest("label").removeClass(uncheckClass).addClass(checkedClass)}else{$(this).closest("label").removeClass(checkedClass).addClass(uncheckClass)}})},timerId:null,code:function(args){var settings=defaults(args);var id=settings.id;var second=parseInt(settings.second);if(settings.type=="reset"){clearInterval(info.timerId);$("#"+id).css({"pointer-events":"unset","color":settings.color,"background-color":settings.backgroundColor});$("#"+id).text(settings.text);second=parseInt(settings.second)}else{setTimer();function setTimer(){$("#"+id).css({"pointer-events":"none","color":settings.downColor,"background-color":settings.downBackgroundColor});info.timerId=setInterval(function(){second=second-1;if(second>0){$("#"+id).text(second+"秒后重试")}else{clearInterval(info.timerId);$("#"+id).css({"pointer-events":"unset","color":settings.color,"background-color":settings.backgroundColor});$("#"+id).text(settings.text);second=parseInt(settings.second)}},1000)}}},goTopBtn:function(args){var settings=defaults(args);var id=settings.id;$("#"+id).css("display","none");$("#"+id).click(function(){$("body, html").animate({scrollTop:0},500)});$(window).scroll(function(){var sc=$(window).scrollTop();if(sc>300){$("#"+id).css("display","block")}else{$("#"+id).css("display","none")}})},slide:function(args){var settings=defaults(args);var id=settings.id;var isAutoPlay=settings.isAutoPlay;var startSlide=parseInt(settings.startSlide);var index=startSlide-1;var diffLeftX=0;var slide=document.getElementById(id);var focusBg=document.querySelector("#"+id+" .focus-bg");var imgLi=document.querySelectorAll("#"+id+" .focus-bg li");var imgLiWidth=focusBg.offsetWidth;slide.style.height=imgLi[0].offsetHeight+"px";focusBg.style.width=imgLi.length*100+"%";for(var i=0;i0){$slide.find(".focus-title li").each(function(i){if(i==index){$(this).show()}else{$(this).hide()}})}if(settings.focusCenter){var box=$slide.find(".focus-box");box.css("margin-left",-(box.width()/2)+"px")}if($slide.find(".focus-box").length>0){if($slide.find(".focus-box ul").length==0){var html='';$slide.find(".focus-box").empty();$slide.find(".focus-box").append(html)}$slide.find(".focus-box li").eq(index).addClass("on")}$slide.find(".slide-next").on("click",function(){var old=index;if(index>=(count-1)){index=0}else{index++}change.call(slide,index,old)});$slide.find(".slide-prev").on("click",function(){var old=index;if(index<=0){index=count-1}else{index--}change.call(slide,index,old)});autoPlay();function autoPlay(){if(isAutoPlay){time=setInterval(function(){var old=index;if(index>=(count-1)){index=0}else{index++}change.call(slide,index,old)},delay)}}function change(show,hide){diffLeftX=-show*slide.offsetWidth;var leftX=-show*slide.offsetWidth+"px";$("#"+id+" .focus-bg").css("transition","all .5s");$("#"+id+" .focus-bg").css("transform","translate("+leftX+", 0)");$slide.find(".focus-title li").eq(hide).hide();$slide.find(".focus-title li").eq(show).show();$slide.find(".focus-box li").removeClass("on");$slide.find(".focus-box li").eq(show).addClass("on");var $self=$slide.find(".focus-bg li").eq(show).find("img");if($self.length==0){$self=$slide.find(".focus-bg li").eq(show).find("a")}var original=$self.attr(settings.dataOriginal);if(!!original){if($self.is("img")){$self.attr("src",original)}else{$self.css("background-image","url('"+original+"')")}$self.removeAttr(settings.dataOriginal)}settings.callback({"index":show})}var startPointX=0;var startEle=0;slide.addEventListener("touchstart",function(e){if(isAutoPlay){clearInterval(time)}startPointX=e.changedTouches[0].pageX;startEle=diffLeftX});slide.addEventListener("touchmove",function(e){if(isAutoPlay){clearInterval(time)}e.preventDefault();var curPointX=e.changedTouches[0].pageX;var diffX=curPointX-startPointX;var left=startEle+diffX;diffLeftX=left;var leftX=left+"px";$("#"+id+" .focus-bg").css("transition","all .5s");$("#"+id+" .focus-bg").css("transform","translate("+leftX+", 0)")});slide.addEventListener("touchend",function(e){if(isAutoPlay){autoPlay()}var left=diffLeftX;var curNum=Math.round(-left/imgLiWidth);curNum=curNum>=(imgLi.length-1)?imgLi.length-1:curNum;curNum=curNum<=0?0:curNum;var old=index;if(index==curNum){change.call(slide,index,index)}else{if(index=(count-1)){index=0}else{index++}}else{if(index<=0){index=count-1}else{index--}}change.call(slide,index,old)}})},tabbar:function(args){var settings=defaults(args);var tabId=settings.id;$("#"+tabId+">a").click(function(){$(this).addClass("activate").siblings().removeClass("activate")})},lazyload:function(args){var settings=defaults(args);var selector=settings.selector;var elements=$(selector);var effect=settings.effect;if(!effect){effect="fadeIn"}$(document).ready(function(){$(settings.container).trigger(settings.event);checkImage()});$(window).bind("resize",function(){checkImage()});$container=(settings.container===undefined||settings.container===window)?$(window):$(settings.container);if(0===settings.event.indexOf("scroll")){$container.bind(settings.event,function(){return checkImage()})}elements.each(function(){var self=this;var $self=$(self);self.loaded=false;if(!$self.attr("src")){if($self.is("img")){$self.attr("src",settings.placeholder)}}$self.one("appear",function(){if(!this.loaded){if(settings.appear){var elements_left=elements.length;settings.appear.call(self,elements_left,settings)}$(" ").bind("load",function(){var original=$self.attr(settings.dataOriginal);$self.hide();if($self.is("img")){$self.attr("src",original)}else{$self.css("background-image","url('"+original+"')")}$self[effect](400);self.loaded=true;$self.removeAttr(settings.dataOriginal);var temp=$.grep(elements,function(element){return!element.loaded});elements=$(temp);if(settings.load){var elements_left=elements.length;settings.load.call(self,elements_left,settings)}}).attr("src",$self.attr(settings.dataOriginal))}})});function checkImage(){var counter=0;elements.each(function(){var $this=$(this);if(!$this.is(":visible")){return}if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$this.trigger("appear");counter=0}else{if(++counter>0){return false}}})}},getTime:function(param){var date=new Date();var year=date.getFullYear();var month=date.getMonth()+1;var day=date.getDate();if(!param){return year+"-"+add0(month)+"-"+add0(day)+" "+add0(date.getHours())+":"+add0(date.getMinutes())+":"+add0(date.getSeconds())}else{param=param.toLowerCase();if(param=="year"){return year}if(param=="month"){return month}if(param=="day"){return day}if(param=="today"){return year+"-"+add0(month)+"-"+add0(day)}if(param=="week"){var week=date.getDay();if(week==0){week=7}return week}}function add0(num){if(num>=1&&num<=9){num="0"+num}return num}},getTimeDiff:function(startTime,endTime,type){startTime=startTime.replace(/\-/g,"/");endTime=endTime.replace(/\-/g,"/");type=type.toLowerCase();var sTime=new Date(startTime);var eTime=new Date(endTime);var divNum=1;switch(type){case"second":divNum=1000;break;case"minute":divNum=1000*60;break;case"hour":divNum=1000*3600;break;case"day":divNum=1000*3600*24;break;default:break}return parseInt((eTime.getTime()-sTime.getTime())/parseInt(divNum))},alert:function(args){var settings=defaults(args);var UUID=info.getUUID();var alertHtml='';alertHtml+='
';alertHtml+='
';alertHtml+='
';alertHtml+=settings.content;alertHtml+='
';alertHtml+='
';alertHtml+=''+settings.confirmName+' ';alertHtml+='
';alertHtml+='
';alertHtml+='
';alertHtml+='
';$(document.body).append(alertHtml)},confirm:function(args){var settings=defaults(args);var UUID=info.getUUID();var confirmHtml='';confirmHtml+='
';confirmHtml+='
';confirmHtml+='
';confirmHtml+=settings.content;confirmHtml+='
';confirmHtml+='
';confirmHtml+=''+settings.confirmName+' ';confirmHtml+=''+settings.cancelName+' ';confirmHtml+='
';confirmHtml+='
';confirmHtml+='
';confirmHtml+='
';$(document.body).append(confirmHtml)},tip:function(args){var settings=defaults(args);var type=settings.type;var UUID=info.getUUID();var tipHtml='';if(type=="loading"){tipHtml+='';tipHtml+='
';tipHtml+='
';tipHtml+='
';tipHtml+='
'+settings.content+'
';tipHtml+='
';tipHtml+='
'}else{if(settings.mask){tipHtml+='
'}else{tipHtml+='
'}if(!!settings.marginTop){tipHtml+='
'}else if(!!settings.marginBottom){tipHtml+='
'}else{tipHtml+='
'}tipHtml+='
';tipHtml+=settings.content;tipHtml+='
';tipHtml+='
';tipHtml+='
'}$(".tip-mask").remove();$(".tip").remove();$(document.body).append(tipHtml);setTimeout(function(){$("#"+UUID).remove()},settings.live)},loading:function(args){var settings=defaults(args);$(document.body).append('
');document.onreadystatechange=subSomething;function subSomething(){if(document.readyState=="complete"){var oLoading=document.getElementById("javaex-loading");if(oLoading!=null){oLoading.remove();settings.callback({"code":"000000"})}}}},dialog:function(args){var settings=defaults(args);var type=settings.type;var UUID=info.getUUID();var dialogHtml='';if(type=="menu"){var json=settings.menu;var menuHtml='';for(var key in json){menuHtml+='
'+key+' '}menuHtml+='
关闭 ';dialogHtml=''}else if(type=="html"){var fill=settings.fill;var title=settings.title;var scriptArr=settings.scriptArr;dialogHtml+='';if(scriptArr.length>0){for(var i=0;i
'}}}$(document.body).append(dialogHtml);if(type=="html"){if(fill=="auto"){}else if(fill=="100%"){if(title==""){$(".popup .operation").css("height",$(document).height()-$(".button-cancel").height()-32+"px")}else{$(".popup .operation").css("height",$(document).height()-$(".dialog-title").height()-$(".button-cancel").height()-32+"px")}}else{if(title==""){$(".popup .operation").css("height",$(document).height()-$(document).height()*parseInt(fill)/100-$(".button-cancel").height()-32+"px")}else{$(".popup .operation").css("height",$(document).height()-$(document).height()*parseInt(fill)/100-$(".dialog-title").height()-$(".button-cancel").height()-32+"px")}}}$("#"+UUID).before('
');$("#"+UUID).show();$("#"+UUID).addClass("modal-in");$(".mask").click(function(){$(".mask").remove();$("#"+UUID).css("transform","translateY(100%)");setTimeout(function(){info.close(UUID)},300)})},closeTranslate:function(UUID){$(".mask").remove();$("#"+UUID).css("transform","translateY(100%)");setTimeout(function(){info.close(UUID)},300)},close:function(UUID){if(!UUID){$(".mask").remove()}else{$("#"+UUID).remove();$(".mask").remove()}},render:function(args){var settings=defaults(args);var id=settings.id;var type=settings.type;if(!!id){if(!!type){if(type=="equal"){var classArr=$('#'+id).attr("class").split(" ");for(var i=0;i=0){var num=classArr[i].split("-")[1];$('#'+id).children("li").css("width",(100/num)+"%")}}return}if(type=="grid"){var classArr=$('#'+id).attr("class").split(" ");for(var i=0;i=0){var arr=classArr[i].split("-");var sum=0;for(var j in arr){if(j>0){sum=parseInt(sum)+parseInt(arr[j])}}$('#'+id).children("div").each(function(k){$(this).css("width",(100/sum)*arr[k+1]+"%")})}else if(classArr[i].indexOf("spacing-")>=0){var spacing=classArr[i].split("-")[1];var width="calc(100% + "+parseInt(spacing)+"px)";$('#'+id).css("width",width);$('#'+id).children("div").each(function(k){$(this).css("margin-right",parseInt(spacing)+"px")})}}return}}}else{$("script").each(function(){if(!!$(this).attr("src")){if($(this).attr("src").indexOf("common.js")>-1){var jsSrc=$(this).attr("src");var script=document.createElement("script");script.src=jsSrc;$(document.body).append(script)}if($(this).attr("src").indexOf("javaex-formVerify.js")>-1){var jsSrc=$(this).attr("src");var script=document.createElement("script");script.src=jsSrc;$(document.body).append(script)}}})}},nav:function(args){var settings=defaults(args);if(settings.type=="slide"){if($("#slide-bottom")!=null){var height=$("#slide-bottom").height();$("#slide-list").css("height","calc(100% - "+(160+height)+"px)")}$("#slide-nav").before('
');$("#slide-nav").css("transform","translateX("+$("#slide-nav").width()+"px)");$(".mask").click(function(){$(".mask").remove();$("#slide-nav").css("transform","translateX(0px)")})}else if(settings.type=="guide"){if($("#guide-nav > ul").hasClass("active")){$("#guide-nav > ul").removeClass("active");$("#guide-nav ul").css("height","1rem")}else{var liCount=$("#guide-nav > ul > li").length;var row=Math.ceil((liCount+1)/5);$("#guide-nav > ul").addClass("active");$("#guide-nav ul.active").css("height",(row+0.2)+"rem")}}},roll:function(args){var settings=defaults(args);var fn=function(){$("#"+settings.id).find("ul:first").animate({"margin-top":"-0.5rem"},2000,function(){$(this).css("margin-top",0).find("li:first").appendTo(this)})};setInterval(fn,settings.delay)},loadDataFunction:"",isDataLoaded:false,isOver:"",documentHeight:"",loadDistance:0,windowHeight:"",loadData:"",noData:"",setPageInit:function(){info.loadDataFunction="";info.isDataLoaded=false;info.isOver="";info.documentHeight="";info.loadDistance=0;info.windowHeight="";info.loadData="";info.noData=""},page:function(args){var settings=defaults(args);var pageId=settings.id;info.loadDataFunction=settings.loadDataFunction;info.documentHeight=$(document).height();info.windowHeight=document.documentElement.clientHeight;info.loadData=settings.loadData;info.noData=settings.noData;init();function init(){var obj=document.getElementById("infinite-scroll-preloader-"+pageId);if(obj==null){$("#"+pageId).after('
')}var oFooter=document.getElementById("footer");if(oFooter!=null){if($("#footer").is(":visible")==true){$("#infinite-scroll-preloader-"+pageId).css("margin-bottom",oFooter.offsetHeight+"px")}}info.loadDistance=Math.floor($("#infinite-scroll-preloader-"+pageId).height()*(1/3));if(info.loadDistance==0){info.loadDistance=90}$(window).on('scroll',function(){if(!info.isDataLoaded&&info.isOver!=pageId&&(info.documentHeight-info.loadDistance)<=(info.windowHeight+$(window).scrollTop())){info.loadDown(pageId)}});info.autoLoad(pageId)}},over:function(pageId){info.isOver=pageId},autoLoad:function(pageId){if((info.documentHeight-info.loadDistance)<=info.windowHeight){info.loadDown(pageId)}},loadDown:function(pageId){$("#infinite-scroll-preloader-"+pageId).html(info.loadData);info.isDataLoaded=true;info.loadDataFunction()},resetLoad:function(pageId){info.documentHeight=$(document).height();info.isDataLoaded=false;if(info.isOver==pageId){$("#infinite-scroll-preloader-"+pageId).html(info.noData)}else{info.autoLoad()}},tab:function(args){var settings=defaults(args);var tabId=settings.id;var current=settings.current;var type=settings.type;var hasUnderline=settings.hasUnderline;if(type==""||type=="level"){if(hasUnderline){$("#"+tabId+" > ul").append(' ')}var tabNum=$("#"+tabId+" > ul li").length;$("#"+tabId+" > ul li").css("width",(100/tabNum)+"%");if(hasUnderline){$("#"+tabId+" > ul .border").css("width",(100/tabNum)+"%")}$("#"+tabId+" > ul li").each(function(i){if(i==(current-1)){$(this).addClass("current");if(hasUnderline){$("#"+tabId+" > ul .border").css("left",$(this).offset().left+"px")}}})}else{$("#"+tabId+" > ul li").each(function(i){if(i==(current-1)){$(this).addClass("current")}})}$("#"+tabId).siblings(".tab-content").children("div").each(function(i){if(i==(current-1)){$(this).css("display","block")}else{$(this).css("display","none")}});if(settings.isInit){settings.callback({"index":current})}$("#"+tabId+" > ul li").click(function(){$(this).addClass("current").siblings().removeClass("current");if(hasUnderline){$("#"+tabId+" > ul .border").css("left",$(this).offset().left+"px")}$("#"+tabId).siblings(".tab-content").children("div:eq("+$(this).index()+")").show().siblings().hide();$(settings.container).trigger(settings.event);settings.callback({"index":$(this).index()+1})})},date:function(args){var settings=defaults(args);var dateId=settings.id;var now=new Date();var yearList='';for(var i=1900;i<=parseInt(now.getFullYear()+50);i++){yearList+=''+i+' '}var monthList='';for(var i=1;i<=12;i++){if(i<10){i="0"+i}monthList+=''+i+' '}var dayList='';for(var i=1;i<=31;i++){if(i<10){i="0"+i}dayList+=''+i+' '}var dateHtml='';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='';dateHtml+='';dateHtml+='年 ';dateHtml+='月 ';dateHtml+='日 ';dateHtml+=' ';dateHtml+=' ';dateHtml+='';dateHtml+='';dateHtml+='';dateHtml+='';dateHtml+='
';dateHtml+='
';dateHtml+=' ';dateHtml+='';dateHtml+='';dateHtml+='
';dateHtml+='
';dateHtml+=' ';dateHtml+='';dateHtml+='';dateHtml+='
';dateHtml+='
';dateHtml+=' ';dateHtml+=' ';dateHtml+=' ';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='取消 ';dateHtml+='确定 ';dateHtml+='
';dateHtml+='
';dateHtml+='
';dateHtml+='
';$(document.body).append(dateHtml);$("#date-box-"+dateId+" table ul").after('');var isStart=true;var isMove=false;var isEnd=false;var startY=0;var lastY=0;var nowElement=null;var liLength=0;var nY=0;var mY=0;var endY=0;var maxY=0;var minY=0;var nowY=0;var liHeight=$(".mask-mid").height();var year="";var month="";var day="";var lastMoveTime=0;var lastMoveStart=0;var totalDistance=0;var stopInertiaMove=false;init();if(settings.date==""||settings.date==null||settings.date==undefined){}else{close(true)}$("#"+dateId).bind("click",function(){init();$("#date-box-"+dateId).show();return});$("#date-ok-"+dateId).bind("click",function(){close(true);settings.callback({"date":$("#final-date-text-"+dateId).text()});return});$("#date-cancel-"+dateId).bind("click",function(){close();return});function init(){$("#year-"+dateId+" ul").empty();$("#month-"+dateId+" ul").empty();$("#day-"+dateId+" ul").empty();$("#year-"+dateId+" ul").html(yearList);$("#month-"+dateId+" ul").html(monthList);$("#day-"+dateId+" ul").html(dayList);var date=$("#final-date-value-"+dateId).val();if(date==""||date==null||date==undefined){if(settings.date==""||settings.date==null||settings.date==undefined){}else{var arr=settings.date.split("-");now=new Date(arr[0],arr[1]-1,arr[2])}}else{var arr=date.split("-");now=new Date(arr[0],arr[1]-1,arr[2])}year=now.getFullYear();month=((now.getMonth()+1)<10?"0":"")+(now.getMonth()+1);day=(now.getDate()<10?"0":"")+now.getDate();var curMonthDays=new Date(year,month,0).getDate();var dif=curMonthDays-31;if(dif<0){var moveY=getTranslateY($("#day-"+dateId+" .date-ul"));for(var i=0;i>dif;i--){$("#day-"+dateId+" .date-ul > li:eq("+[31-1+i]+")").removeClass("date-show").addClass("date-hide")}}$("#year-"+dateId+" .date-ul .date-li").each(function(){if(parseInt($(this).text())==parseInt(year)){var positionY=-($(this).index()-2)*liHeight;$(this).parent().css("transform","translate(0, "+positionY+"px)")}});$("#month-"+dateId+" .date-ul .date-li").each(function(){if(parseInt($(this).text())==parseInt(month)){var positionY=-($(this).index()-2)*liHeight;$(this).parent().css("transform","translate(0, "+positionY+"px)")}});$("#day-"+dateId+" .date-ul .date-li").each(function(){if(parseInt($(this).text())==parseInt(day)){var positionY=-($(this).index()-2)*liHeight;$(this).parent().css("transform","translate(0, "+positionY+"px)")}});$("#final-date-text-"+dateId).html(year+"-"+month+"-"+day)}var oScrollList=document.querySelectorAll("#date-box-"+dateId+" .mask-data");for(var i=0;i300){lastMoveTime=nowTime;lastMoveStart=mY}},false);oScrollList[i].addEventListener("touchend",function(event){event.preventDefault();endY=event.changedTouches[0].clientY;maxY=liHeight*2;minY=-(liLength-3)*liHeight;if(isEnd){isMove=false;isEnd=false;isStart=true;nY=-(nY-(mY-startY));nowY=endY;if(nY>maxY){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)")}else if(nY0?-1:1;var deceleration=dir*0.0006;function inertiaMove(){if(stopInertiaMove){return}var nowTime=new Date().getTime();var t=nowTime-lastMoveTime;var nowV=v+t*deceleration;var moveY=(v+nowV)/2*t;if(dir*nowV>0){if(totalDistance>maxY){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)")}else if(totalDistance(maxY+(liHeight*2))){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)");return}else if(totalDistance<(minY-(liHeight*2))){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+minY+"px)");return}nowElement.css("transform","translate(0, "+totalDistance+"px)");setTimeout(function(){fillDate()},500);setTimeout(inertiaMove,10)}inertiaMove()})(v,endTime,nY)}setTimeout(function(){fillDate()},500)}},false)}function fillDate(id){var currentY=0;$("#date-box-"+dateId+" .date-ul").each(function(index){currentY=getTranslateY(this);var value="";if(currentY==0){value=$($(this).find(".date-li")[2]).text()}else{value=$($(this).find(".date-li")[Math.round(currentY/liHeight)+2]).text()}if(index==0){year=value}else if(index==1){month=value}else if(index==2){day=value}});if(id!=undefined&&id!=null){if(id=="year-"+dateId||id=="month-"+dateId){var curMonthDays=new Date(year,month,0).getDate();var curDays=$("#day-"+dateId+" .date-ul .date-show").length;var dif=curMonthDays-curDays;if(dif>0){for(var i=0;i li:eq("+[curDays+i]+")").removeClass("date-hide").addClass("date-show")}}else if(dif<0){var moveY=getTranslateY($("#day-"+dateId+" .date-ul"));for(var i=0;i>dif;i--){$("#day-"+dateId+" .date-ul > li:eq("+[curDays-1+i]+")").removeClass("date-show").addClass("date-hide")}if(moveY>(curMonthDays-1-2)*liHeight){$("#day-"+dateId+" .date-ul").css("transition","all 0s");$("#day-"+dateId+" .date-ul").css("transform","translate(0, "+-(curMonthDays-1-2)*liHeight+"px)");day=curMonthDays}}}}$("#final-date-text-"+dateId).html(year+"-"+month+"-"+day);$("#final-date-value-"+dateId).val(year+"-"+month+"-"+day)}function getTranslateY(element){var matrix=$(element).css("transform");var translateY=0;if(matrix!="none"){var arr=matrix.split(",");translateY=-(arr[5].split(")")[0])}return translateY}function close(isOk){if(isOk){$("#final-date-value-"+dateId).val(year+"-"+month+"-"+day);var obj=document.getElementById(dateId);if(obj&&obj.tagName=="INPUT"){$("#"+dateId).val($("#final-date-text-"+dateId).text())}else{$("#"+dateId).html($("#final-date-text-"+dateId).text())}}$("#date-box-"+dateId).css("display","none")}},firstIndex:0,lastIndex:0,isSearchInit:false,select:function(args){var settings=defaults(args);var selectId=settings.id;var obj=document.getElementById("input-"+selectId);if(obj==null){$("#"+selectId).before(' ')}$("#"+selectId).hide();var selectHtml='';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='取消 ';selectHtml+='确定 ';selectHtml+='
';selectHtml+='
';selectHtml+='
';selectHtml+='
';$(document.body).append(selectHtml);$("#select-box-"+selectId+" ul").after('');var isStart=true;var isMove=false;var isEnd=false;var startY=0;var lastY=0;var nowElement=null;var liLength=0;var nY=0;var mY=0;var endY=0;var maxY=0;var minY=0;var nowY=0;var liHeight=$(".mask-mid").height();var lastMoveTime=0;var lastMoveStart=0;var totalDistance=0;var stopInertiaMove=false;var selectValue=$("#"+selectId).val();var selectName="";init();close(true);$("#input-"+selectId).bind("click",function(){init();$("#select-box-"+selectId).show();return});$("#select-ok-"+selectId).bind("click",function(){close(true);return});$("#select-cancel-"+selectId).bind("click",function(){close();return});function init(){$("#opt-select-"+selectId+" ul").empty();$("#opt-select-"+selectId+" ul").html($("#"+selectId).html());$("#opt-select-"+selectId+" option").addClass("select-option option-show");$("#opt-select-"+selectId+" option").each(function(){if($(this).attr("value")==selectValue){var positionY=-($(this).index()-2)*liHeight;$(this).parent().css("transform","translate(0, "+positionY+"px)")}});selectName=$("#"+selectId).find("option:selected").text();info.firstIndex=0;info.lastIndex=$("#opt-select-"+selectId+" ul option").length-1}var oScroll=document.getElementById("mask-data-"+selectId);oScroll.addEventListener("touchstart",function(event){event.preventDefault();startY=event.touches[0].clientY;lastY=startY;nowElement=$(this).prev(".select-ul");liLength=nowElement.find(".option-show").length;nY=getTranslateY(nowElement);if(!isMove&&isEnd){return false}isStart=false;isMove=false;lastMoveStart=lastY;lastMoveTime=new Date().getTime();stopInertiaMove=true},false);oScroll.addEventListener("touchmove",function(event){event.preventDefault();mY=event.touches[0].clientY;if(!isStart){isMove=true;isEnd=true}if(isMove){nowElement.css("transition","none");nowElement.css("transform","translate(0, "+-(nY-(mY-startY))+"px)")}var nowTime=new Date().getTime();stopInertiaMove=true;if((nowTime-lastMoveTime)>300){lastMoveTime=nowTime;lastMoveStart=mY}},false);oScroll.addEventListener("touchend",function(event){event.preventDefault();endY=event.changedTouches[0].clientY;maxY=-(info.firstIndex-2)*liHeight;minY=-(info.lastIndex-2)*liHeight;if(isEnd){isMove=false;isEnd=false;isStart=true;nY=-(nY-(mY-startY));nowY=endY;if(nY>maxY){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)")}else if(nY0?-1:1;var deceleration=dir*0.0006;function inertiaMove(){if(stopInertiaMove){return}var nowTime=new Date().getTime();var t=nowTime-lastMoveTime;var nowV=v+t*deceleration;var moveY=(v+nowV)/2*t;if(dir*nowV>0){if(totalDistance>maxY){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)")}else if(totalDistance(maxY+(liHeight*2))){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+maxY+"px)");return}else if(totalDistance<(minY-(liHeight*2))){nowElement.css("transition","all .5s");nowElement.css("transform","translate(0, "+minY+"px)");return}nowElement.css("transform","translate(0, "+totalDistance+"px)");setTimeout(function(){setSelectValue()},500);setTimeout(inertiaMove,10)}inertiaMove()})(v,endTime,nY)}setTimeout(function(){setSelectValue()},500)}},false);function getTranslateY(element){var matrix=$(element).css("transform");var translateY=0;if(matrix!="none"){var arr=matrix.split(",");translateY=-(arr[5].split(")")[0])}return translateY}function setSelectValue(){var currentY=0;$("#opt-select-"+selectId+" .select-ul").each(function(index){currentY=getTranslateY(this);var value="";var name="";if(currentY==0){value=$($(this).find(".select-option")[2]).attr("value");name=$($(this).find(".select-option")[2]).text()}else{value=$($(this).find(".select-option")[Math.round(currentY/liHeight)+2]).attr("value");name=$($(this).find(".select-option")[Math.round(currentY/liHeight)+2]).text()}if(index==0){selectValue=value;selectName=name}info.isSearchInit=false})}function close(isOk){if(isOk){if(info.isSearchInit){selectValue=$($("#opt-select-"+selectId+" .select-ul").find(".select-option")[info.firstIndex]).attr("value");selectName=$($("#opt-select-"+selectId+" .select-ul").find(".select-option")[info.firstIndex]).text()}$("#"+selectId).val(selectValue);if(selectValue==""){$("#input-"+selectId).val("")}else{$("#input-"+selectId).val(selectName)}settings.callback({"selectValue":selectValue,"selectName":selectName})}$("#select-box-"+selectId).css("display","none")}},selectSearch:function(selectId){var keyword=$("#search-"+selectId).val();var count=0;var indexArr=new Array();keyword=keyword.replace(/(^\s*)|(\s*$)/g,"");if(keyword==""){$("#opt-select-"+selectId+" ul option").removeClass("option-hide").addClass("option-show")}else{$("#opt-select-"+selectId+" ul option").each(function(i){if($(this).text().toLowerCase().indexOf(keyword.toLowerCase())==-1){$(this).removeClass("option-show").addClass("option-hide");count++}else{$(this).removeClass("option-hide").addClass("option-show");indexArr.push(i)}});if(indexArr!=""&&indexArr!=null){$("#opt-select-"+selectId+" .select-ul").css("transition","all 0s");var positionY=0;var liHeight=$(".mask-mid").height();info.firstIndex=indexArr[0];info.lastIndex=indexArr[indexArr.length-1];$("#opt-select-"+selectId+" .select-ul").css("transform","translate(0, "+-(info.firstIndex-2)*liHeight+"px)");info.isSearchInit=true}}}};return info};$.belowthefold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=(window.innerHeight?window.innerHeight:$(window).height())+$(window).scrollTop()}else{fold=$(settings.container).offset().top+$(settings.container).height()}return fold<=$(element).offset().top-settings.threshold};$.rightoffold=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$(window).width()+$(window).scrollLeft()}else{fold=$(settings.container).offset().left+$(settings.container).width()}return fold<=$(element).offset().left-settings.threshold};$.abovethetop=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$(window).scrollTop()}else{fold=$(settings.container).offset().top}return fold>=$(element).offset().top+settings.threshold+$(element).height()};$.leftofbegin=function(element,settings){var fold;if(settings.container===undefined||settings.container===window){fold=$(window).scrollLeft()}else{fold=$(settings.container).offset().left}return fold>=$(element).offset().left+settings.threshold+$(element).width()};window.javaex=javaex()})();
diff --git a/src/main/resources/static/javaex/m/lib/jquery-3.3.1.min.js b/src/main/resources/static/javaex/m/lib/jquery-3.3.1.min.js
new file mode 100644
index 0000000000000000000000000000000000000000..4d9b3a258759c53e7bc66b6fc554c51e2434437c
--- /dev/null
+++ b/src/main/resources/static/javaex/m/lib/jquery-3.3.1.min.js
@@ -0,0 +1,2 @@
+/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
+!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=me(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(A=H.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(e){L={apply:A.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function oe(e,t,r,i){var o,s,l,c,f,h,v,m=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==d&&p(t),t=t||d,g)){if(11!==T&&(f=J.exec(e)))if(o=f[1]){if(9===T){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return L.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!y||!y.test(e))){if(1!==T)m=t,v=e;else if("object"!==t.nodeName.toLowerCase()){(c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=a(e)).length;while(s--)h[s]="#"+c+" "+ve(h[s]);v=h.join(","),m=K.test(e)&&ge(t.parentNode)||t}if(v)try{return L.apply(r,m.querySelectorAll(v)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function se(e){return e[b]=!0,e}function ue(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!==d&&9===a.nodeType&&a.documentElement?(d=a,h=d.documentElement,g=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(d.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}: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},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],y=[],(n.qsa=Q.test(d.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||y.push(".#.+[+~]")}),ue(function(e){e.innerHTML=" ";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(n.matchesSelector=Q.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),v.push("!=",W)}),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),x=t||Q.test(h.contains)?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},D=t?function(e,t){if(e===t)return f=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===d||e.ownerDocument===w&&x(w,e)?-1:t===d||t.ownerDocument===w&&x(w,t)?1:c?O(c,e)-O(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===d?-1:t===d?1:i?-1:o?1:c?O(c,e)-O(c,t):0;if(i===o)return ce(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?ce(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&p(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!v||!v.test(t))&&(!y||!y.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,d,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==d&&p(e),x(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&N.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),f){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return c=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,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(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(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(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.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.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",y=t.parentNode,v=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(y){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?y.firstChild:y.lastChild],a&&m){x=(d=(l=(c=(f=(p=y)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&y.childNodes[d];while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)while(p=++d&&p&&p[g]||(x=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===v:1===p.nodeType)&&++x&&(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p===t))break;return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){var r,o=i(e,t),a=o.length;while(a--)e[r=O(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?se(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return U.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.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"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n){for(var r=0,i=t.length;r-1&&(o[l]=!(a[l]=f))}}else v=we(v===a?v.splice(h,v.length):v),i?i(null,a,v,u):L.apply(a,v)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=me(function(e){return e===t},s,!0),f=me(function(e){return O(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u1&&xe(p),u>1&&ve(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u0,i=e.length>0,o=function(o,a,s,u,c){var f,h,y,v=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),E=T+=null==w?1:Math.random()||.1,k=C.length;for(c&&(l=a===d||a||c);m!==k&&null!=(f=C[m]);m++){if(i&&f){h=0,a||f.ownerDocument===d||(p(f),s=!g);while(y=e[h++])if(y(f,a||d,s)){u.push(f);break}c&&(T=E)}n&&((f=!y&&f)&&v--,o&&x.push(f))}if(v+=m,n&&m!==v){h=0;while(y=t[h++])y(x,b,a,s);if(o){if(v>0)while(m--)x[m]||b[m]||(b[m]=j.call(u));b=we(b)}L.apply(u,b),c&&!o&&b.length>0&&v+t.length>1&&oe.uniqueSort(u)}return c&&(T=E,l=w),x};return n?se(o):o}return s=oe.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=a(e)),n=t.length;while(n--)(o=Ce(t[n]))[b]?r.push(o):i.push(o);(o=S(e,Ee(i,r))).selector=e}return o},u=oe.select=function(e,t,n,i){var o,u,l,c,f,p="function"==typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}o=V.needsContext.test(e)?0:u.length;while(o--){if(l=u[o],r.relative[c=l.type])break;if((f=r.find[c])&&(i=f(l.matches[0].replace(Z,ee),K.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&ve(u)))return L.apply(n,i),n;break}}}return(p||s(e,d))(i,t,!g,n,!t||K.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(D).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ue(function(e){return e.innerHTML=" ","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML=" ",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);w.find=E,w.expr=E.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=E.uniqueSort,w.text=E.getText,w.isXMLDoc=E.isXML,w.contains=E.contains,w.escapeSelector=E.escape;var k=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&w(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=w.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,n){return g(t)?w.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return u.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&D.test(e)?w(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),A.test(i[1])&&w.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,q=w(r);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function P(e,t){while((e=e[t])&&1!==e.nodeType);return e}w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,n){return k(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,n){return k(e,"nextSibling",n)},prevUntil:function(e,t,n){return k(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return N(e,"iframe")?e.contentDocument:(N(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,r){var i=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=w.filter(r,i)),this.length>1&&(O[e]||w.uniqueSort(i),H.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function R(e){var t={};return w.each(e.match(M)||[],function(e,n){t[n]=!0}),t}w.Callbacks=function(e){e="string"==typeof e?R(e):w.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1){n=a.shift();while(++s-1)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function I(e){return e}function W(e){throw e}function $(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,u=arguments,l=function(){var e,l;if(!(t=o&&(r!==W&&(s=void 0,u=[e]),n.rejectWith(s,u))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(a(0,e,g(i)?i:I,e.notifyWith)),n[1][3].add(a(0,e,g(t)?t:I)),n[2][3].add(a(0,e,g(r)?r:W))}).promise()},promise:function(e){return null!=e?w.extend(e,i):i}},o={};return w.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=w.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&($(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||g(i[n]&&i[n].then)))return a.then();while(n--)$(i[n],s(n),a.reject);return a.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&B.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();w.fn.ready=function(e){return F.then(e)["catch"](function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(r,[w]))}}),w.ready.then=F.then;function _(){r.removeEventListener("DOMContentLoaded",_),e.removeEventListener("load",_),w.ready()}"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(w.ready):(r.addEventListener("DOMContentLoaded",_),e.addEventListener("load",_));var z=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n)){i=!0;for(s in n)z(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(w(e),n)})),t))for(;s1,null,!0)},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,i=n.shift(),o=w._queueHooks(e,t),a=function(){w.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:w.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n-1)i&&i.push(o);else if(l=w.contains(o.ownerDocument,o),a=ye(f.appendChild(o),"script"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}!function(){var e=r.createDocumentFragment().appendChild(r.createElement("div")),t=r.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),h.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",h.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var be=r.documentElement,we=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Se(){try{return r.activeElement}catch(e){}}function De(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)De(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each(function(){w.event.add(this,t,i,r,n)})}w.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.get(e);if(y){n.handler&&(n=(o=n).handler,i=o.selector),i&&w.find.matchesSelector(be,i),n.guid||(n.guid=w.guid++),(u=y.events)||(u=y.events={}),(a=y.handle)||(a=y.handle=function(t){return"undefined"!=typeof w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;while(l--)d=g=(s=Ce.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=w.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=w.event.special[d]||{},c=w.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&w.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=J.hasData(e)&&J.get(e);if(y&&(u=y.events)){l=(t=(t||"").match(M)||[""]).length;while(l--)if(s=Ce.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){f=w.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||w.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)w.event.remove(e,d+t[l],n,r,!0);w.isEmptyObject(u)&&J.remove(e,"handle events")}},dispatch:function(e){var t=w.event.fix(e),n,r,i,o,a,s,u=new Array(arguments.length),l=(J.get(this,"events")||{})[t.type]||[],c=w.event.special[t.type]||{};for(u[0]=t,n=1;n=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:w.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/
+
+
+
+
+
+
+后台管理
+
+
+
+
+
+
+
+
+
+