a7952983f050239a9176e0d/js/ueditor/dialogs/help/help.html?lang=fi-FI">Suomalainen WEBサイト Go1.6 jiapeng/portal-front - Gogs: Go Git Service

8 次代码提交 (1e0a5af7e0d62df9528ccdc91764b0717731cec7)

作者 SHA1 备注 提交日期
  luyanan 4fa13f251b 用户头像形状改为圆的 7 年之前
  luyanan 20e2b81022 科袖普通版的导航条和新版登录 7 年之前
  luyanan 99001a6699 更换网站logo,更换发现广告二维码 7 年之前
  luyanan 85602e8ae9 可视区域的调整,文字溢出的隐藏 7 年之前
  luyanan d3dde14371 解决ie中图片居中显示问题、修改弹出成功标志、咨询页面状态栏问题 7 年之前
  luyanan 068be14c82 修改企业浏览页面中的企业资质展示样式 7 年之前
  luyanan bdba58b090 发现模块页面 7 年之前
  luyanan 63d1a07dec 企业邀请员工注册科袖 7 年之前
console-front - Gogs: Go Git Service

Нет описания

projectNew.js 3.4KB

    /** * Created by TT on 2017/7/10. */ ; spa_define(function () { return $.use(["spa", "util", "form"], function (spa, util, fb) { return { modal: function (data) { var root = spa.findInModal(".sys_userinfo_project"); var form = fb.build(root.find(".newForm")); var date = new Date(), month = date.getMonth() + 1, myDate = "" + date.getFullYear() + (month > 9 ? month : ("0" + month)); var saveBtn = root.find(".opt-save"), save = function () { if (form.val().projectName) { var projectName = trim(form.val().projectName); if (projectName.length > 50) { util.alert("项目名称不得超过50个字"); return; } } else { util.alert("请填写项目名称"); return; } if (form.val().projectDescp) { var projectDescp = trim(form.val().projectDescp); if (projectDescp.length > 200) { util.alert("项目描述不得超过200个字"); return; } } if (!form.val().projectStart && form.val().projectStop) { util.alert("没有选择开始时间"); return; } if (form.val().projectStart && !form.val().projectStop) { util.alert("没有选择结束时间,则结束时间为“至今”"); form.val({ projectStart: form.val().projectStart.substring(0, 6), projectStop: "至今" }); return; } if (form.val().projectStart && form.val().projectStop) { // if (form.val().projectStart.substring(0, 6) <= form.val().projectStop.substring(0, 6) && form.val().projectStart.substring(0, 6) <= myDate) { form.val({ projectStart: form.val().projectStart.substring(0, 6), projectStop: form.val().projectStop.substring(0, 6) }); // } else { // util.alert("日期输入不正确,开始时间不能晚于结束时间"); // return; // } } var item = form.val(); item.no = data.data.length; data.data.push(item); data.hand(); spa.closeModal(); }; root.find(".modal-ctrl .icon-times").on("click", function () { spa.closeModal(); }); saveBtn.on("click", save); function trim(str) { //删除左右两端的空格    return str.replace(/(^\s*)|(\s*$)/g, ""); } } } }); });
ekexiu.app - Gogs: Go Git Service

No Description

chats.js 22KB

    mui.ready(function() { var obackBtn = document.getElementById("backBtn");//返回按钮 var oconsultTitle = document.getElementById("consultTitle");//咨询标题 var ochatName = document.getElementById("chatName");//与。。聊天 var oconsultCon = document.getElementById("consultCon");//咨询内容 var olookConBtn = document.getElementById("lookConBtn");//查看按钮 var ostatus = document.querySelector('#status');//标记状态,用于返回咨询列表传值 var oconfirm = document.getElementById("confirm");//我的需求,确认完成 var oconfirmBtn = document.getElementById("confirmBtn");//确认完成按钮 var oassessBtn = document.getElementById("assessBtn");//我的需求,去评价按钮 var oassessed = document.getElementById("assessed");//我的需求,已评价(评价星级和评价内容) var omy_starContainer = document.getElementById("my_starContainer");//我的需求,星级容器 var othat_weiassess = document.getElementById("that_weiassess");//收到咨询,未评价状态 var owaying = document.getElementById("waying");//收到咨询,进行中状态 var othat_assessed = document.getElementById("that_assessed");//收到咨询,对方已评价 var ozixunstarContainer = document.getElementById("consult_starContainer");//收到咨询星级容器 var omyNeeAss = document.getElementById("myNeeAss");//我的需求已评价,点击跳转评价详情 var ogetConAss = document.getElementById("getConAss");//收到咨询对方已评价,点击跳转评价详情 var oselfImg = document.getElementById("selfImg")//自己的头像 var othatImg = document.getElementById("thatImg");//对方头像 var omsg_list = document.getElementById("msg-list"); var omsg_text = document.getElementById("msg-text"); var omsg_type = document.getElementById("msg-type"); var ochatFooter = document.getElementById("chatFooter"); //查看咨询内容 (function lookContultCon(){ var flag = true; olookConBtn.addEventListener('tap',function(){ if(flag){ this.innerHTML = '收起'; flag = false; }else { this.innerHTML = '查看咨询内容'; flag = true; } }); })(); function getHeadInfo(manFlag,consultId){ var myData; if(manFlag == 'myNeed'){//我的需求 //我的需求 mui.ajax(baseUrl+'/ajax/consult/qacon',{ data:{"consultId":consultId,"readStatus":"1"}, dataType:'json',//服务器返回json格式数据 type:'get',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ myData = data.data; ochatName.innerHTML = myData["professor"]["name"]; var consultTitle = myData["consultTitle"]; oconsultTitle.innerHTML = consultTitle; oconsultCon.innerHTML = myData['consultContant']; //我的需求进行中 if(myData["consultStatus"] == 0){ oconfirm.classList.remove('displayNone');//我的需求,进行中 ostatus.setAttribute('status','consultStatus='+myData["consultStatus"]); clickConfirm(consultId); }else { ochatFooter.style.display = 'none';//对话底部隐藏 if(myData["assessStatus"] == 0){ oassessBtn.classList.remove('displayNone');//我的需求,未评价 ostatus.setAttribute('status',''); clickweiassess(consultId); ostatus.setAttribute('status','myNeedAssessStatus='+myData["assessStatus"]); }else { oassessed.classList.remove('displayNone');//我的需求,已评价 ostatus.setAttribute('status','myNeedAssessStatus='+myData["assessStatus"]); //评价星级 var starCount = myData["assessStar"]; var starlist = omy_starContainer.children; for(var i = 0; i < starCount; i++) { starlist[i].classList.remove('icon-favor'); starlist[i].classList.add('icon-favorfill'); }; omyNeeAss.addEventListener('tap',function() { clickGodetail(oassessed,consultId,manFlag) }); } } plus.nativeUI.closeWaiting(); plus.webview.currentWebview().show("slide-in-right",150); }, error:function(xhr,type,errorThrown){ plus.nativeUI.toast("服务器链接超时", toastStyle); } }); }else if(manFlag == 'consult'){ mui.ajax(baseUrl+'/ajax/consult/qapro',{ data:{"consultId":consultId,"readStatus":"1"}, dataType:'json',//服务器返回json格式数据 type:'get',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ myData = data.data; ochatName.innerHTML = myData["professor"]["name"]; var consultTitle = '回复:'+ myData["consultTitle"]; oconsultTitle.innerHTML = consultTitle; oconsultCon.innerHTML = myData['consultContant']; //收到咨询进行中 if(myData["consultStatus"] == 0){ owaying.classList.remove('displayNone'); // ochatFooter.classList.remove('displayNone'); }else {//收到咨询已完成 ochatFooter.style.display = 'none';//对话底部隐藏 if(myData["assessStatus"] == 0){//收到咨询未评价 othat_weiassess.classList.remove('displayNone'); }else{//收到咨询已评价(评价星级和评价内容) othat_assessed.classList.remove('displayNone'); //评价星级 var starCount = myData["assessStar"]; var starlist = ozixunstarContainer.children; for(var i = 0; i < starCount; i++) { starlist[i].classList.remove('icon-favor'); starlist[i].classList.add('icon-favorfill'); } ogetConAss.addEventListener('tap',function() { clickGodetail(othat_assessed,consultId,manFlag) // }); } } plus.nativeUI.closeWaiting(); plus.webview.currentWebview().show("slide-in-right",150); }, error:function(xhr,type,errorThrown){ plus.nativeUI.toast("服务器链接超时", toastStyle); } }); }; }; /*点击确认完成*/ function clickConfirm(consultId) { oconfirmBtn.addEventListener('tap', function() { setState(consultId);//点击确认,更新咨询状态 var btnArray = ['确定','取消']; mui.confirm('确认此次咨询已完成?', '', btnArray, function(e) { if (e.index == 0) {//确定 goassessFun(consultId);//进入评价页面 } else {//取消 oconfirm.classList.add('displayNone'); ochatFooter.classList.add('displayNone'); getHeadInfo('myNeed',consultId); } }) }); }; /*打开评价详情函数*/ function goassessDetail(consultId,manFlag) { mui.openWindow({ id:'chat-assess-detail.html', url:'chat-assess-detail.html', extras:{'consultId':consultId,'manFlag':manFlag}//向评价页面传值;咨询id }); } /*点击已评价,进入评价详情*/ function clickGodetail(btn,consultId,manFlag) { btn.addEventListener('tap',function(){ goassessDetail(consultId,manFlag); }); } /*点击未评价,进入评价页面*/ function clickweiassess(consultId){ oassessBtn.addEventListener('tap',function(){ goassessFun(consultId); }); }; /*打开评价页面*/ function goassessFun(consultId) { mui.openWindow({ id:'chat-assess.html', url:'chat-assess.html', extras:{'consultId':consultId}//向评价页面传值;咨询id }); }; /*更改咨询状态,进行中--完成*/ function setState(consultId) { mui.ajax(baseUrl+'/ajax/consult/finishTime',{ data:{ "consultId":consultId, //咨询ID "consultStatus":"1", //咨询状态 0-进行中,1-已完成 }, dataType:'json',//服务器返回json格式数据 type:'post',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ /*console.log("更新咨询状态") console.log(data.data)*/ }, error:function(xhr,type,errorThrown){ plus.nativeUI.toast("服务器链接超时", toastStyle); } }); }; /*评价完成返回 刷新==自定义事件*/ window.addEventListener('refresh',function(event){ //通过event.detail可获得传递过来的参数内容 var self = plus.webview.currentWebview(); var consultId = self.consultId; oconfirm.classList.add('displayNone'); ochatFooter.classList.add('displayNone'); oassessBtn.classList.add('displayNone'); getHeadInfo('myNeed',consultId); }); var MIN_SOUND_TIME = 800; template.config('escape', false); //mui.plusReady=function(fn){fn();}; mui.plusReady(function() { var userid = plus.storage.getItem('userid'); var self = plus.webview.currentWebview(); var consultId = self.consultId; var consultantId = self.consultantId; /*返回咨询列表页*/ obackBtn.addEventListener('tap',function() { /*返回咨询列表*/ var status = ostatus.getAttribute('status'); var consultList = plus.webview.getWebviewById('html/consultlist.html'); // console.log(consultId) // consultList.show(); mui.fire(consultList,'backlist',{'consultId':consultId,'status':status}); }); if(userid == consultantId){//我的需求 //头部信息 var manFlag = 'myNeed'; getHeadInfo(manFlag,consultId); }else {//收到咨询 //头部信息 var manFlag = 'consult'; getHeadInfo(manFlag,consultId); }; //渲染对话内容 chatCon(consultId,userid); //根据咨询id查询消息 function chatCon(consultId,userid) { mui.ajax(baseUrl+'/ajax/tidings/qacon',{ data:{ "consultId":consultId }, dataType:'json',//服务器返回json格式数据 type:'get',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ var myData = data.data; for(var i = 0; i < myData.length; i++ ){ if(myData[i]['professor']['id'] == userid){//自己说话 /*判断是否有头像*/ if(myData[i]['professor']['hasHeadImage'] == 1){ record.push({ sender: 'self', type: 'text', content: myData[i]["tidingsContant"], imgurl:baseUrl + "/images/head/" + myData[i]["professor"].id + "_m.jpg" }); }else { record.push({ sender: 'self', type: 'text', content: myData[i]["tidingsContant"], imgurl:"../images/default-photo.jpg" }); } }else{//对方说话 console.log('对方id=='+myData[i]['professor'].id) /*判断是否有头像*/ if(myData[i]['professor'] != '' && myData[i]['professor'] != undefined){ if(myData[i]['professor']['hasHeadImage'] == 1){ record.push({ sender: 'zs', type: 'text', content: myData[i]["tidingsContant"], imgurl:baseUrl + "/images/head/" + myData[i]["professor"].id + "_m.jpg" }); }else { record.push({ sender: 'zs', type: 'text', content: myData[i]["tidingsContant"], imgurl:"../images/default-photo.jpg" }); } } } } bindMsgList(); }, error:function(xhr,type,errorThrown){ //根据消息id查询消息失败 plus.nativeUI.toast("服务器链接超时", toastStyle); } }); } plus.webview.currentWebview().setStyle({ softinputMode: "adjustResize" }); var showKeyboard = function() { if (mui.os.ios) { var webView = plus.webview.currentWebview().nativeInstanceObject(); webView.plusCallMethod({ "setKeyboardDisplayRequiresUserAction": false }); } else { var Context = plus.android.importClass("android.content.Context"); var InputMethodManager = plus.android.importClass("android.view.inputmethod.InputMethodManager"); var main = plus.android.runtimeMainActivity(); var imm = main.getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED); //var view = ((ViewGroup)main.findViewById(android.R.id.content)).getChildAt(0); imm.showSoftInput(main.getWindow().getDecorView(), InputMethodManager.SHOW_IMPLICIT); //alert("ll"); } }; /*var record = [{ sender: 'zs', type: 'text', content: 'Hi,我是 科袖 小管家!' }];*/ var record = []; var ui = { body: document.querySelector('body'), footer: document.querySelector('footer'), footerRight: document.querySelector('.footer-right'), footerLeft: document.querySelector('.footer-left'), btnMsgType: document.querySelector('#msg-type'), boxMsgText: document.querySelector('#msg-text'), boxMsgSound: document.querySelector('#msg-sound'), btnMsgImage: document.querySelector('#msg-image'), areaMsgList: document.querySelector('#msg-list'), boxSoundAlert: document.querySelector('#sound-alert'), h: document.querySelector('#h'), content: document.querySelector('.mui-content') }; ui.h.style.width = ui.boxMsgText.offsetWidth+'px'; //alert(ui.boxMsgText.offsetWidth ); var footerPadding = ui.footer.offsetHeight - ui.boxMsgText.offsetHeight; var msgItemTap = function(msgItem, event) { var msgType = msgItem.getAttribute('msg-type'); var msgContent = msgItem.getAttribute('msg-content') if (msgType == 'sound') { player = plus.audio.createPlayer(msgContent); var playState = msgItem.querySelector('.play-state'); playState.innerText = '正在播放...'; player.play(function() { playState.innerText = '点击播放'; }, function(e) { playState.innerText = '点击播放'; }); } }; var imageViewer = new mui.ImageViewer('.msg-content-image', { dbl: false }); var bindMsgList = function() { //绑定数据: /*tp.bind({ template: 'msg-template', element: 'msg-list', model: record });*/ ui.areaMsgList.innerHTML = template('msg-template', { "record": record }); var msgItems = ui.areaMsgList.querySelectorAll('.msg-item'); [].forEach.call(msgItems, function(item, index) { item.addEventListener('tap', function(event) { msgItemTap(item, event); }, false); }); imageViewer.findAllImage(); ui.areaMsgList.scrollTop = ui.areaMsgList.scrollHeight + ui.areaMsgList.offsetHeight; }; bindMsgList(); window.addEventListener('resize', function() { ui.areaMsgList.scrollTop = ui.areaMsgList.scrollHeight + ui.areaMsgList.offsetHeight; }, false); /*var send = function(msg) { record.push(msg); bindMsgList(); toRobot(msg.content); };*/ function getSelfImg (consultId,userid) { var selfImgUrl; mui.ajax(baseUrl+'/ajax/tidings/qacon',{ data:{ "consultId":consultId }, dataType:'json',//服务器返回json格式数据 async:false, type:'get',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ var myData = data.data; console.log() for(var i = 0; i < myData.length; i++ ){ if(myData[i]['professor']['id'] == userid){ if(myData[i]['professor']['hasHeadImage'] == 1){ selfImgUrl = baseUrl + "/images/head/" + myData[i]["professor"].id + "_m.jpg"; }else { selfImgUrl = "../images/default-photo.jpg"; } } } }, error:function(xhr,type,errorThrown){ //根据消息id查询消息失败 plus.nativeUI.toast("服务器链接超时", toastStyle); } }); return selfImgUrl; }; var send = function(msg) { record.push(msg); bindMsgList(); toRobot(msg.content); }; var toRobot = function(info) { var apiUrl = baseUrl+"/ajax/tidings";//保存消息接口 mui.ajax(apiUrl,{ data:{ "tidingsContant":ui.boxMsgText.value, //消息内容 "senderId":userid, //发送者ID "consultId":consultId //咨询ID }, dataType:'json',//服务器返回json格式数据 type:'post',//HTTP请求类型 timeout:10000,//超时时间设置为10秒; success:function(data){ console.log('消息成功'+data.data); //alert(JSON.stringify(data)); }, error:function(xhr,type,errorThrown){ //保存消息失败 plus.nativeUI.toast("抱歉,咨询失败", toastStyle); } }); }; function msgTextFocus() { ui.boxMsgText.focus(); setTimeout(function() { ui.boxMsgText.focus(); }, 150); } //解决长按“发送”按钮,导致键盘关闭的问题; ui.footerRight.addEventListener('touchstart', function(event) { // if (ui.btnMsgType.classList.contains('mui-icon-paperplane')) { msgTextFocus(); // event.preventDefault(); // } }); //解决长按“发送”按钮,导致键盘关闭的问题; ui.footerRight.addEventListener('touchmove', function(event) { // if (ui.btnMsgType.classList.contains('mui-icon-paperplane')) { msgTextFocus(); // event.preventDefault(); // } }); // ui.footerRight.addEventListener('touchcancel', function(event) { // if (ui.btnMsgType.classList.contains('mui-icon-paperplane')) { // msgTextFocus(); // event.preventDefault(); // } // }); // ui.footerRight.addEventListener('touchend', function(event) { // if (ui.btnMsgType.classList.contains('mui-icon-paperplane')) { // msgTextFocus(); // event.preventDefault(); // } // }); ui.footerRight.addEventListener('release', function(event) { // if (ui.btnMsgType.classList.contains('mui-icon-paperplane')) {//发送 //showKeyboard(); ui.boxMsgText.focus(); setTimeout(function() { ui.boxMsgText.focus();//获取焦点 }, 150); // event.detail.gesture.preventDefault(); //执行是否有头像 console.log(getSelfImg(consultId,userid)); send({ sender: 'self', type: 'text', content: ui.boxMsgText.value.replace(new RegExp('\n', 'gm'), '<br/>'), imgurl:getSelfImg (consultId,userid) }); ui.boxMsgText.value = ''; mui.trigger(ui.boxMsgText, 'input', null); //发送消息向后台传数据 /*} else if (ui.btnMsgType.classList.contains('mui-icon-mic')) {//说话功能 ui.btnMsgType.classList.add('mui-icon-compose'); ui.btnMsgType.classList.remove('mui-icon-mic'); ui.boxMsgText.style.display = 'none'; ui.boxMsgSound.style.display = 'block'; ui.boxMsgText.blur(); document.body.focus(); } else if (ui.btnMsgType.classList.contains('mui-icon-compose')) {//编辑 ui.btnMsgType.classList.add('mui-icon-mic'); ui.btnMsgType.classList.remove('mui-icon-compose'); ui.boxMsgSound.style.display = 'none'; ui.boxMsgText.style.display = 'block'; //-- //showKeyboard(); ui.boxMsgText.focus(); setTimeout(function() { ui.boxMsgText.focus(); }, 150); }*/ }, false); /*ui.footerLeft.addEventListener('tap', function(event) { var btnArray = [{ title: "拍照" }, { title: "从相册选择" }]; plus.nativeUI.actionSheet({ title: "选择照片", cancel: "取消", buttons: btnArray }, function(e) { var index = e.index; switch (index) { case 0: break; case 1: var cmr = plus.camera.getCamera(); cmr.captureImage(function(path) { send({ sender: 'self', type: 'image', content: "file://" + plus.io.convertLocalFileSystemURL(path) }); }, function(err) {}); break; case 2: plus.gallery.pick(function(path) { send({ sender: 'self', type: 'image', content: path }); }, function(err) {}, null); break; } }); }, false); */ var setSoundAlertVisable=function(show){ if(show){ ui.boxSoundAlert.style.display = 'block'; ui.boxSoundAlert.style.opacity = 1; }else{ ui.boxSoundAlert.style.opacity = 0; //fadeOut完成再真正隐藏 setTimeout(function(){ ui.boxSoundAlert.style.display = 'none'; },200); } }; var recordCancel = false; var recorder = null; var audio_tips = document.getElementById("audio_tips"); var startTimestamp = null; var stopTimestamp = null; var stopTimer = null; ui.boxMsgSound.addEventListener('hold', function(event) { recordCancel = false; if(stopTimer)clearTimeout(stopTimer); audio_tips.innerHTML = "手指上划,取消发送"; ui.boxSoundAlert.classList.remove('rprogress-sigh'); setSoundAlertVisable(true); recorder = plus.audio.getRecorder(); if (recorder == null) { plus.nativeUI.toast("不能获取录音对象"); return; } startTimestamp = (new Date()).getTime(); recorder.record({ filename: "_doc/audio/" }, function(path) { if (recordCancel) return; send({ sender: 'self', type: 'sound', content: path }); }, function(e) { plus.nativeUI.toast("录音时出现异常: " + e.message); }); }, false); ui.body.addEventListener('drag', function(event) { //console.log('drag'); if (Math.abs(event.detail.deltaY) > 50) { if (!recordCancel) { recordCancel = true; if (!audio_tips.classList.contains("cancel")) { audio_tips.classList.add("cancel"); } audio_tips.innerHTML = "松开手指,取消发送"; } } else { if (recordCancel) { recordCancel = false; if (audio_tips.classList.contains("cancel")) { audio_tips.classList.remove("cancel"); } audio_tips.innerHTML = "手指上划,取消发送"; } } }, false); ui.boxMsgSound.addEventListener('release', function(event) { //console.log('release'); if (audio_tips.classList.contains("cancel")) { audio_tips.classList.remove("cancel"); audio_tips.innerHTML = "手指上划,取消发送"; } // stopTimestamp = (new Date()).getTime(); if (stopTimestamp - startTimestamp < MIN_SOUND_TIME) { audio_tips.innerHTML = "录音时间太短"; ui.boxSoundAlert.classList.add('rprogress-sigh'); recordCancel = true; stopTimer=setTimeout(function(){ setSoundAlertVisable(false); },800); }else{ setSoundAlertVisable(false); } recorder.stop(); }, false); ui.boxMsgSound.addEventListener("touchstart", function(e) { //console.log("start...."); e.preventDefault(); }); ui.boxMsgText.addEventListener('input', function(event) { ui.btnMsgType.classList[ui.boxMsgText.value == '' ? 'remove' : 'add']('mui-icon-paperplane'); ui.btnMsgType.setAttribute("for", ui.boxMsgText.value == '' ? '' : 'msg-text'); ui.h.innerText = ui.boxMsgText.value.replace(new RegExp('\n', 'gm'), '\n-') || '-'; ui.footer.style.height = (ui.h.offsetHeight + footerPadding) + 'px'; ui.content.style.paddingBottom = ui.footer.style.height; }); ui.boxMsgText.addEventListener('tap', function(event) { ui.boxMsgText.focus(); setTimeout(function() { ui.boxMsgText.focus(); }, 0); }, false); }); })
portal-front - Gogs: Go Git Service

portal html css js resource

home_icon_woshizhuanjia_nor.png 1.4KB

console-front - Gogs: Go Git Service

Brak opisu

count.js 9.5KB

    /** * Created by TT on 2017/9/20. */ ; spa_define(function () { return $.use(["spa", "code", "form", "util", "dict"], function (spa, code, form, util, dict) { return { modal: function (data) { var root = spa.findInModal(".sys_article_count"); // var cr = code.parseCode(root.find(".dt-tpl")); var myChart = echarts.init(document.getElementById('type')); var tableData = {data: []}, allData = []; var $data = {tn: "article", id:data.id}; // cr.shell("count", function (env) { // var v = env.cd[this.k]; // if (v === 0) { // return 0; // } // return v; // }); // var query = function () { // if(allData != null) { // var td = tableData.data = []; // for(var i = allData.length-7; i < allData.length; ++i) { // var item = allData[i]; // if(item) { // td.push(item); // } // } // } else { // tableData.data = allData; // } // cr.val(tableData.data); // }; /* 用户流量统计表格 时间倒序 */ // var query = function () { // if(allData != null) { // var td = tableData.data = []; // for(var i = allData.length; i >= allData.length-7; --i) { // var item = allData[i]; // if(item) { // td.push(item); // } // } // } else { // tableData.data = allData; // } // cr.val(tableData.data); // }; root.find(".modal-ctrl .icon-times").on("click", function () { spa.closeModal(); }); var dayList = function () { var dayList = []; var now = new Date(); var day1 = new Date(); day1.setMonth(now.getMonth() - 1); day1.setDate(1); var day2 = new Date(); day2.setDate(day2.getDate()); // var s1 = day1.format("yyyy-MM-dd"); // var s2 = day2.format("yyyy-MM-dd"); // console.log(s1, s2); var days = (day2 - day1) / (24 * 60 * 60 * 1000); dayList[0] = {time: day1.format("yyyy-MM-dd")}; for (var i = 1; i < days + 1; i++) { day1.setDate(day1.getDate() + 1); dayList[i] = {time: day1.format("yyyy-MM-dd")}; } return dayList; }; var load = function () { $.ajax({ type: "GET", url: "http://www.ekexiu.com:8082/log/jsonp/qm", data:$data, dataType: "jsonp", success: function (data) { allData = dayList(); allData.forEach(function (day) { var time = (JSON.stringify(day.time)).replace(/\-|^\"|\"$/g, ""); day.pc = 0; day.app = 0; day.h5 = 0; day.wx = 0; data.data.forEach(function (log) { if (time == log.day) { if (log.source == 1) { day.pc = log.pv; } if (log.source == 2) { day.app = log.pv; } if (log.source == 3) { day.h5 = log.pv; } if (log.source == 4) { day.wx = log.pv; } } day.num = day.pc + day.app + day.h5 + day.wx; }) }); var colors = ["#660099", '#c23531', "#91C7AE",'#FFDE33','#003366']; var option = { color: colors, title: { text: '文章流量分析', subtext: '分渠道' }, tooltip: { trigger: 'axis' }, legend: { data: ['PC端', '移动端APP', '移动端H5','小程序','合计'] }, xAxis: { data: allData.map(function (item) { return item.time; }), boundaryGap: false }, yAxis: { splitLine: { show: false }, boundaryGap: false, type: "value", // interval: 1, min: 0 }, toolbox: { show: true, feature: { dataZoom: { yAxisIndex: 'none' }, dataView: {readOnly: false}, magicType: {type: ['line', 'bar']}, restore: {}, saveAsImage: {} } }, dataZoom: [{ startValue: allData[allData.length - 7].time }, { type: 'inside' }], visualMap: { top: 10, right: 10 }, series: [ { name: 'PC端', type: 'line', data: allData.map(function (item) { return item.pc; }) }, { name: '移动端APP', type: 'line', data: allData.map(function (item) { return item.app; }) }, { name: '移动端H5', type: 'line', data: allData.map(function (item) { return item.h5; }) },{ name:'小程序', type:'line', data:allData.map(function (item) { return item.wx; }) }, { name: '合计', type: 'line', label: { normal: { show: true, position: 'top' } }, data: allData.map(function (item) { return item.num; }) } ] }; myChart.setOption(option); } }); }; // cr.listen(dict.doTransfer); load(); } }; }); });
console-front - Gogs: Go Git Service

Aucune description

putup2.js 2.5KB

    /** * Created by TT on 2017/8/28. */ ; spa_define(function () { return $.use(["spa", "util", "form", "code"], function (spa, util, fb, code) { return { modal: function () { var root = spa.findInModal(".sys_disbanner_putup2"); var form = fb.build(root.find(".newForm")); var cr = code.parseCode(root.find(".dt-tpl")); var allData = []; allData.push({location: 1}); allData.push({location: 2}); allData.push({location: 3}); allData.push({location: 4}); allData.push({location: 5}); cr.val(allData); var saveBtn = root.find(".opt-save"), save = function () { var $banner = root.find("td"); if ($banner.length) { var ret = []; $banner.forEach(function () { ret.push($(".xmtt").val()); }); } }; root.find(".modal-ctrl .icon-times").on("click", function () { spa.closeModal(); }); root.on("focusout", ".xmtt", function () { var $e = $(this); if ($e.val()) { util.get("../ajax/disBanner/id/" + $e.val(), null, function (banner) { if (banner) { $e.parent().parent().parent().find("td").eq(2).text(banner.title); $e.parent().parent().parent().find("td").eq(3).text(dictBanner(banner.banner)); } }); } }); var dictBanner = function (i) { if (i == 0) return "未设置"; if (i == 1) return "个人原创"; if (i == 2) return "企业原创"; if (i == 3) return "前沿动态"; if (i == 4) return "学术经验"; if (i == 5) return "分析检测"; if (i == 6) return "会议培训"; if (i == 7) return "科袖访谈"; if (i == 8) return "招聘招生"; if (i == 9) return "重大新闻"; }; saveBtn.on("click", function () { save(); }); } } }); });
portal-front - Gogs: Go Git Service

portal html css js resource

Uploader.swf 48KB

suryee - Gogs: Go Git Service

赛亿官网

calendar.js 22KB

    /* * My97 DatePicker 4.8 Beta4 * License: http://www.my97.net/dp/license.asp */ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('l($4o.44){$f={};1b(q p 4r $2s)l(6p $2s[p]=="6o"){$f[p]={};1b(q 4G 4r $2s[p])$f[p][4G]=$2s[p][4G]}t $f[p]=$2s[p]}t $f=$2s;1b(p 4r $4o)$f[p]=$4o[p];q $c;l($69){6x.3J.7l("6U",n($){l(!$)h.2m();u $});6x.3J.7k("5I",n(){q $=h.5B;36($.5t!=1)$=$.7b;u $})}n 5C(){$c=h;h.3n=[];$d=1L.7i("z");$d.1e="4P";$d.1M="<z 1G=7s><z Y=\\"3W 7p\\"><a></a></z><z Y=\\"3W 7r\\"><a></a></z><z 1d=\\"3q:2E\\"><z Y=\\"2T 7q\\"></z><1z Y=47></z><z 1d=\\"3q:2E\\"><z Y=\\"2T 76\\"></z><1z Y=47></z><z Y=\\"3W 78\\"><a></a></z><z Y=\\"3W 7x\\"><a></a></z><z 1d=\\"3q:62\\"></z></z><z 1d=\\"80:7W;7S:6q\\"></z><z></z><z 1G=7V><z Y=\\"2T 7U\\"></z><z Y=\\"2T 81\\"></z><z Y=\\"2T 87\\"></z><1x 2q=0 2o=0 2C=0><1j><19 8a=2><4w 1G=89></4w>&42;<1z Y=83 4s=2><1z 1i=\\":\\" Y=6K 6t><1z Y=6u 4s=2><1z 1i=\\":\\" Y=6K 6t><1z Y=6u 4s=2></19><19><1S 1G=7R></1S></19></1j><1j><19><1S 1G=7E></1S></19></1j></1x></z><z 1G=7F></z><z 1G=7C><1z Y=4v 1G=7y 3k=1S><1z Y=4v 1G=7N 3k=1S><1z Y=4v 1G=7K 3k=1S></z>";71($d,n(){3x()});A();h.5D();$f.1X=[1L,$d.1P,$d.1y,$d.2w,$d.3a,$d.2r,$d.2V,$d.2j,$d.1U];1b(q B=0;B<$f.1X.x;B++){q b=$f.1X[B];b.3e=B==$f.1X.x-1?$f.1X[1]:$f.1X[B+1];$f.3A(b,"4k",5a)}$();55("y,M,H,m,s");$d.72.1s=n(){5g(1)};$d.75.1s=n(){5g(-1)};$d.4y.1s=n(){l($d.1H.1d.2a!="6G"){$c.4Q();3G($d.1H)}t 1o($d.1H)};1L.6R.4O($d);n A(){q b=$("a");1q=$("z"),1J=$("1z"),4t=$("1S"),5G=$("4w");$d.3M=b[0];$d.3K=b[1];$d.3L=b[3];$d.3N=b[2];$d.4b=1q[9];$d.1P=1J[0];$d.1y=1J[1];$d.4A=1q[0];$d.4f=1q[4];$d.2R=1q[6];$d.1H=1q[10];$d.2Z=1q[11];$d.34=1q[12];$d.5N=1q[13];$d.6P=1q[14];$d.73=1q[15];$d.4y=1q[16];$d.4e=1q[17];$d.2w=1J[2];$d.3a=1J[4];$d.2r=1J[6];$d.2V=1J[7];$d.2j=1J[8];$d.1U=1J[9];$d.72=4t[0];$d.75=4t[1];$d.5L=5G[0];n $($){u $d.74($)}}n $(){$d.3M.1s=n(){$1O=$1O<=0?$1O-1:-1;l($1O%5==0){$d.1y.22();u}$d.1y.1i=$o.y-1;$d.1y.2x()};$d.3K.1s=n(){$o.1V("M",-1);$d.1P.2x()};$d.3L.1s=n(){$o.1V("M",1);$d.1P.2x()};$d.3N.1s=n(){$1O=$1O>=0?$1O+1:1;l($1O%5==0){$d.1y.22();u}$d.1y.1i=$o.y+1;$d.1y.2x()}}}5C.3J={5D:n(){$1O=0;$f.5b=h;l($f.3S&&$f.Z.3S!=1h){$f.Z.3S=1c;$f.Z.4M()}h.4q();$o=h.4D=1a 1D();$1C=1a 1D();$1v=h.2B=1a 1D();$f.2N=0;h.1B=h.2P($f.1B);h.2X=$f.2X==1h?($f.18.2g&&$f.18.2g?1p:1c):$f.2X;$f.3y=$f.3y==1h?($f.4z&&$f.18.d?1p:1c):$f.3y;h.4m=h.35("7L");h.6m=h.35("7I");h.6d=h.35("7J");h.5s=h.35("7M");h.20=h.3I($f.20,$f.20!=$f.5J?$f.1T:$f.2F,$f.5J);h.1Z=h.3I($f.1Z,$f.1Z!=$f.5M?$f.1T:$f.2F,$f.5M);l(h.20.2z(h.1Z)>0)$f.4u=$1l.7Q;l(h.25()){h.5y();h.3j=$f.Z[$f.1E]}t h.3p(1p,2);3H($o);$d.5L.1M=$1l.7O;$d.2V.1i=$1l.7H;$d.2j.1i=$1l.7A;$d.1U.1i=$1l.7B;$d.1U.2e=!$c.1A($1v);h.6l();h.6V();l($f.4u)7z($f.4u);h.4B();l($f.Z.5t==1&&$f.Z["3V"]===4p){$f.3A($f.Z,"4k",5a);$f.3A($f.Z,"2x",n(){l($f&&$f.1K.1d.2a=="2u"){$c.3c();l(!$f.2N&&$f.5b.3j!=$f.Z[$f.1E]&&$f.Z.7G)5l($f.Z,"7D")}});$f.Z["3V"]=1p}$c.1k=$f.Z;3x()},5y:n(){q b=h.2S();l(b!=0){q $;l(b>0)$=h.1Z;t $=h.20;l($f.18.3Y){$o.y=$.y;$o.M=$.M;$o.d=$.d}l($f.18.2g){$o.H=$.H;$o.m=$.m;$o.s=$.s}}},3h:n(K,C,R,F,B,H,G,L,M){q $;l(K&&K.25)$=K;t{$=1a 1D();l(K!=""){C=C||$f.1B;q I,D,Q=0,P,A=/3i|2H|3l|y|2I|3o|3R|M|1K|d|%2l|53|H|4V|m|4U|s|3u|D|4T|W|w/g,b=C.2J(A);A.2t=0;l(M)P=K.4c(/\\W+/);t{q E=0,N="^";36((P=A.2U(C))!==1h){l(E>=0){D=C.1F(E,P.3Z);l(D&&"-/\\\\".1n(D)>=0)D="[\\\\-/]";N+=D}E=A.2t;2Y(P[0]){1f"3i":N+="(\\\\d{4})";1g;1f"2H":N+="(\\\\d{3})";1g;1f"2I":1f"3o":1f"3u":1f"D":N+="(\\\\D+)";1g;5v:N+="(\\\\d\\\\d?)";1g}}N+=".*$";P=1a 3v(N).2U(K);Q=1}l(P){1b(I=0;I<b.x;I++){q J=P[I+Q];l(J)2Y(b[I]){1f"2I":1f"3o":$.M=O(b[I],J);1g;1f"y":1f"3l":J=3z(J,0);l(J<50)J+=5z;t J+=84;$.y=J;1g;1f"2H":$.y=3z(J,0)+$f.5w;1g;5v:$[b[I].4X(-1)]=J;1g}}}t $.d=32}}$.6Y(R,F,B,H,G,L);u $;n O(A,$){q b=A=="2I"?$1l.5u:$1l.2k;1b(q B=0;B<12;B++)l(b[B].3C()==$.5O(0,b[B].x).3C())u B+1;u-1}},35:n(b){q B,$=$f[b],A="";l($&&$.x>0){1b(B=0;B<$.x;B++){A+=h.2P($[B]);l(B!=$.x-1)A+="|"}A=A?1a 3v("(?:"+A+")"):1h}t A=1h;u A},3d:n($){l($===4p)$=h.4F();l($f.Z[$f.1E]!=$)$f.Z[$f.1E]=$;h.4l()},4l:n($){q b=$f.$($f.86),$=3r($,h.4F($f.1T));l(b)b.1i=$;$f.Z["3E"]=$},2P:n(s){q 3T="3m",1r,2v,6n=/#?\\{(.*?)\\}/;s=s+"";1b(q i=0;i<3T.x;i++)s=s.1m("%"+3T.1Q(i),h.1W(3T.1Q(i),1h,$1C));l(s.1F(0,3)=="#F{"){s=s.1F(3,s.x-1);l(s.1n("u ")<0)s="u "+s;s=$f.51.4d("1a 88(\\""+s+"\\");");s=s()}36((1r=6n.2U(s))!=1h){1r.2t=1r.3Z+1r[1].x+1r[0].x-1r[1].x-1;2v=2n(4d(1r[1]));l(2v<0)2v="2f"+(-2v);s=s.1F(0,1r.3Z)+2v+s.1F(1r.2t+1)}u s},3I:n(A,B,b){q $;A=h.2P(A);l(!A||A=="")A=b;l(6p A=="6o")$=A;t{$=h.3h(A,B,1h,1h,1,0,0,0,1c);$.y=(""+$.y).1m(/^2f/,"-");$.M=(""+$.M).1m(/^2f/,"-");$.d=(""+$.d).1m(/^2f/,"-");$.H=(""+$.H).1m(/^2f/,"-");$.m=(""+$.m).1m(/^2f/,"-");$.s=(""+$.s).1m(/^2f/,"-");l(A.1n("%2l")>=0){A=A.1m(/%2l/g,"0");$.d=0;$.M=2n($.M)+1}$.1Y()}u $},25:n(){q A=$f.Z[$f.1E],$=h.1B,b=$f.18;l($f.7T||($f.6j!=""&&A=="")){A=h.2P($f.6j);$=$f.1T}$o.2h(h.3h(A,$));l(A!=""){q B=1;l(b.3Y&&!h.4n($o)){$o.y=$1C.y;$o.M=$1C.M;$o.d=$1C.d;B=0}l(b.2g&&!h.4h($o)){$o.H=$1C.H;$o.m=$1C.m;$o.s=$1C.s;B=0}u B&&h.1A($o)}l(!b.H)$o.H=0;l(!b.m)$o.m=0;l(!b.s)$o.s=0;u 1},4n:n($){l($.y!=1h)$=2W($.y,4)+"-"+$.M+"-"+$.d;u $.2J(/^((\\d{2}(([6i][7Z])|([5V][26]))[\\-\\/\\s]?((((0?[5S])|(1[5R]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[5Z])))|(((0?[66])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])))))|(\\d{2}(([6i][7X])|([5V][7Y]))[\\-\\/\\s]?((((0?[5S])|(1[5R]))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(3[5Z])))|(((0?[66])|(11))[\\-\\/\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\-\\/\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))(\\s(((0?[0-9])|([1-2][0-3]))\\:([0-5]?[0-9])((\\s)|(\\:([0-5]?[0-9])))))?$/)},4h:n($){l($.H!=1h)$=$.H+":"+$.m+":"+$.s;u $.2J(/^([0-9]|([0-1][0-9])|([2][0-3])):([0-9]|([0-5][0-9])):([0-9]|([0-5][0-9]))$/)},2S:n($,A){$=$||$o;q b=$.2z(h.20,A);l(b>0){b=$.2z(h.1Z,A);l(b<0)b=0}u b},1A:n($,A,B){A=A||$f.18.43;q b=h.2S($,A);l(b==0){b=1;l(A=="d"&&B==1h)B=1I.5T((1a 1u($.y,$.M-1,$.d).1N()-$f.3U+7)%7);b=!h.5W(B)&&!h.5U($,A)}t b=0;u b},65:n(){q b=$f.Z,A=h,$=$f.Z[$f.1E];l($f.3O>=0&&$f.3O<=2&&$!=1h){l($!="")A.2B.2h(A.3h($,$f.1B));l($==""||(A.4n(A.2B)&&A.4h(A.2B)&&A.1A(A.2B))){l($!=""){A.4D.2h(A.2B);A.3d()}t A.4l("")}t u 1p}u 1c},3c:n($){3x();l(h.65()){h.3p(1c);$f.1o()}t{l($){2O($);h.3p(1p,2)}t h.3p(1p);$f.21()}},4a:n(){q E,C,D,K,A,H=1a 2A(),F=$1l.6e,G=$f.3U,I="",$="",b=1a 1D($o.y,$o.M,$o.d,2,0,0),J=b.y,B=b.M;A=1-1a 1u(J,B-1,1).1N()+G;l(A>1)A-=7;H.a("<1x Y=64 33=3s% 2C=0 2q=0 2o=0>");H.a("<1j Y=61 4R=5H>");l($f.63)H.a("<19>"+F[0]+"</19>");1b(E=0;E<7;E++)H.a("<19>"+F[(G+E)%7+1]+"</19>");H.a("</1j>");1b(E=1,C=A;E<7;E++){H.a("<1j>");1b(D=0;D<7;D++){b.25(J,B,C++);b.1Y();l(b.M==B){K=1c;l(b.2z($1v,"d")==0)I="7e";t l(b.2z($1C,"d")==0)I="7d";t I=($f.67&&(0==(G+D)%7||6==(G+D)%7)?"7a":"77");$=($f.67&&(0==(G+D)%7||6==(G+D)%7)?"7o":"7v")}t l($f.5A){K=1c;I="7t";$="7h"}t K=1p;l($f.63&&D==0&&(E<4||K))H.a("<19 Y=7f>"+4E(b,$f.3U==0?1:0)+"</19>");H.a("<19 ");l(K){l(h.1A(b,"d",D)){l(h.5r(1I.5T((1a 1u(b.y,b.M-1,b.d).1N()-$f.3U+7)%7))||h.6c(b))I="7j";H.a("1s=\\"3b("+b.y+","+b.M+","+b.d+");\\" ");H.a("2G=\\"h.1e=\'"+$+"\'\\" ");H.a("2D=\\"h.1e=\'"+I+"\'\\" ")}t I="7m";H.a("Y="+I);H.a(">"+b.d+"</19>")}t H.a("></19>")}H.a("</1j>")}H.a("</1x>");u H.j()},5U:n(b,A){q $=h.4j(b,h.4m,A);u(h.4m&&$f.4x)?!$:$},5W:n($){u h.4i($,h.6m)},6c:n($){u h.4j($,h.6d)},5r:n($){u h.4i($,h.5s)},4j:n($,C,A){q b=A=="d"?$f.4N:$f.1T;l(A=="d"&&$f.18.d&&$f.4x){C=(C+"").1m(/^\\/\\(\\?:(.*)\\)\\/.*/,"$1");q B=C.1n($f.5X);l(B>=0)C=C.5O(0,B);C=1a 3v(C)}u C?C.52(h.3P(b,$)):0},4i:n(b,$){u $?$.52(b):0},3f:n(p,2Q,c,r,e,1R){q s=1a 2A(),4L=1R?"r"+p:p;l(1R)$o.1V("M",1);5E=$o[p];s.a("<1x 2q=0 2o=3 2C=0");1b(q i=0;i<r;i++){s.a("<1j 2K=\\"2K\\">");1b(q j=0;j<c;j++){s.a("<19 2K ");$o[p]=4d(e);l($o[p]>2Q)s.a("Y=\'1w\'");t l(h.1A($o,p)||($f.4x&&"4Z".1n(p)==-1&&h.2S($o,p)==0)){s.a("Y=\'1w\' 2G=\\"h.1e=\'2M\'\\" 2D=\\"h.1e=\'1w\'\\" 3X=\\"");s.a("1o($d."+p+"D);$d."+4L+"I.1i="+$o[p]+";$d."+4L+"I.4M();\\"")}t s.a("Y=\'4I\'");s.a(">");l($o[p]<=2Q)s.a(p=="M"?$1l.2k[$o[p]-1]:$o[p]);s.a("</19>")}s.a("</1j>")}s.a("</1x>");$o[p]=5E;l(1R)$o.1V("M",-1);u s.j()},4J:n($,b){l($){q A=$.4S;l($6B)A=$.7g().2E;b.1d.2E=A}},7u:n($){h.4J($,$d.4f);$d.4f.1M=h.3f("M",12,2,6,"i+j*6+1",$==$d.2c)},4K:n(b,B,A){q $=1a 2A();A=A||b==$d.2y;B=3r(B,$o.y-5);$.a(h.3f("y",7w,2,5,B+"+i+j*5",A));$.a("<1x 2q=0 2o=3 2C=0 4R=5H><1j><19 ");$.a(h.20.y<B?"Y=\'1w\' 2G=\\"h.1e=\'2M\'\\" 2D=\\"h.1e=\'1w\'\\" 3X=\'l(2d.2m)2d.2m();2d.5e=1c;$c.4K(0,"+(B-10)+","+A+")\'":"Y=\'4I\'");$.a(">\\79</19><19 Y=\'1w\' 2G=\\"h.1e=\'2M\'\\" 2D=\\"h.1e=\'1w\'\\" 3X=\\"1o($d.2R);$d.1y.4M();\\">\\7c</19><19 ");$.a(h.1Z.y>=B+10?"Y=\'1w\' 2G=\\"h.1e=\'2M\'\\" 2D=\\"h.1e=\'1w\'\\" 3X=\'l(2d.2m)2d.2m();2d.5e=1c;$c.4K(0,"+(B+10)+","+A+")\'":"Y=\'4I\'");$.a(">\\8Y</19></1j></1x>");h.4J(b,$d.2R);$d.2R.1M=$.j()},41:n(A,$){q B=$f.6Z[A],C=B[0],b=B[1];$d[A+"D"].1M=h.3f(A,$-1,b,1I.6C($/C/b),"i*"+b+"*"+C+"+j*"+C)},8U:n(){h.41("H",24)},92:n(){h.41("m",60)},8O:n(){h.41("s",60)},4Q:n(C,A){h.6y();q $=A?[">a/<8K","8L 8S","M>8T=8R \\"8P:9e\\"=9g \\"9c.95.w","98//:99\\"=94 a<"].4H("").4c("").9d().4H(""):$1l.9b,B=h.3n,E=B.1d,b=1a 2A();b.a("<1x Y=64 33=3s% 2i=3s% 2C=0 2q=0 2o=0>");b.a("<1j Y=61><19><z 1d=\\"3q:2E\\">"+$+"</z>");l(!C)b.a("<z 1d=\\"3q:62;9f:8m\\" 1s=\\"1o($d.1H);\\">X&42;</z>");b.a("</19></1j>");1b(q D=0;D<B.x;D++)l(B[D]){b.a("<1j><19 1d=\'5m-4R:2E\' 2K=\'2K\' Y=\'1w\' 2G=\\"h.1e=\'2M\'\\" 2D=\\"h.1e=\'1w\'\\" 1s=\\"");b.a("3b("+B[D].y+", "+B[D].M+", "+B[D].d+","+B[D].H+","+B[D].m+","+B[D].s+");\\">");b.a("&42;"+h.3P(1h,B[D]));b.a("</19></1j>")}t b.a("<1j><19 Y=\'1w\'>&42;</19></1j>");b.a("</1x>");$d.1H.1M=b.j()},4q:n(){b(/w/);b(/4T|W/);b(/3u|D/);b(/3i|2H|3l|y/);b(/2I|3o|3R|M/);b(/1K|d/);b(/53|H/);b(/4V|m/);b(/4U|s/);$f.18.3Y=($f.18.y||$f.18.M||$f.18.d)?1c:1p;$f.18.2g=($f.18.H||$f.18.m||$f.18.s)?1c:1p;q $=$f.2F.2J(/%1u(.*)%5Y/);$f.5X=$?$[1]:" ";$f.2F=$f.2F.1m(/%1u/,$f.4N).1m(/%5Y/,$f.6k);l($f.18.3Y){l($f.18.2g)$f.1T=$f.2F;t $f.1T=$f.4N}t $f.1T=$f.6k;n b(b){q $=(b+"").4X(1,2);$f.18[$]=b.2U($f.1B)?($f.18.43=$,1c):1p}},6l:n(){q $=0;$f.18.y?($=1,21($d.1y,$d.3M,$d.3N)):1o($d.1y,$d.3M,$d.3N);$f.18.M?($=1,21($d.1P,$d.3K,$d.3L)):1o($d.1P,$d.3K,$d.3L);$?21($d.4A):1o($d.4A);l($f.18.2g){21($d.34);3D($d.2w,$f.18.H);3D($d.3a,$f.18.m);3D($d.2r,$f.18.s)}t 1o($d.34);3g($d.2V,$f.6h);3g($d.2j,$f.6b);3g($d.1U,$f.4z);3g($d.4y,!$f.5q&&$f.18.d&&$f.8f);l($f.44||!($f.6h||$f.6b||$f.4z))1o($d.4e);t 21($d.4e)},3p:n(B,D){q A=$f.Z,b=$69?"Y":"1e";l($f.3O==-1)u;t l(B)C(A);t{l(D==1h)D=$f.3O;2Y(D){1f 0:l(8s($1l.8E)){A[$f.1E]=h.3j||"";C(A)}t $(A);1g;1f 1:A[$f.1E]=h.3j||"";C(A);1g;1f 2:$(A);1g}}n C(A){q B=A.1e;l(B){q $=B.1m(/6g/g,"");l(B!=$)A.6f(b,$)}}n $($){$.6f(b,$.1e+" 6g")}},1W:n(D,b,$){$=$||$1v;q H,C=[D+D,D],E,A=$[D],F=n($){u 2W(A,$.x)};2Y(D){1f"w":A=1N($);1g;1f"D":q G=1N($)+1;F=n($){u $.x==2?$1l.8F[G]:$1l.6e[G]};1g;1f"W":A=4E($);1g;1f"y":C=["3i","2H","3l","y"];b=b||C[0];F=n(b){u 2W((b.x<4)?(b.x<3?$.y%3s:($.y+5z-$f.5w)%8D):A,b.x)};1g;1f"M":C=["2I","3o","3R","M"];F=n($){u($.x==4)?$1l.5u[A-1]:($.x==3)?$1l.2k[A-1]:2W(A,$.x)};1g}b=b||D+D;l("3m".1n(D)>-1&&D!="y"&&!$f.18[D])l("4Z".1n(D)>-1)A=0;t A=1;q B=[];1b(H=0;H<C.x;H++){E=C[H];l(b.1n(E)>=0){B[H]=F(E);b=b.1m(1a 3v(E,"g"),"{"+H+"}")}}1b(H=0;H<B.x;H++)b=b.1m(1a 3v("\\\\{"+H+"\\\\}","g"),B[H]);u b},3P:n(b,$){$=$||h.3h($f.Z[$f.1E],h.1B)||$1v;b=b||h.1B;l(b.1n("%2l")>=0){q A=1a 1D();A.2h($);A.d=0;A.M=2n(A.M)+1;A.1Y();b=b.1m(/%2l/g,A.d)}q B="8J";1b(q D=0;D<B.x;D++){q C=B.1Q(D);b=h.1W(C,b,$)}l(b.1n("D")>=0){b=b.1m(/3u/g,"%1K").1m(/D/g,"%d");b=h.1W("M",b,$);b=b.1m(/\\%1K/g,h.1W("D","3u")).1m(/\\%d/g,h.1W("D","D"))}t b=h.1W("M",b,$);u b},8H:n(b,$){u h.1W(b,$,$o)},4F:n($){u h.3P($,h.4D)},4B:n(){$c.4q();$d.4b.1M="";l($f.5q){$c.2X=1c;$f.5A=1p;$d.1e="4P 8v";q $=1a 2A();$.a("<1x Y=8t 33=3s% 2q=0 2o=0 2C=1><1j><19 5K=5P>");$.a(h.4a());$.a("</19><19 5K=5P>");$o.1V("M",1);$.a(h.4a());$d.2c=$d.1P.5Q(1c);$d.2y=$d.1y.5Q(1c);$d.4b.4O($d.2c);$d.4b.4O($d.2y);$d.2c.1i=$1l.2k[$o.M-1];$d.2c["3E"]=$o.M;$d.2y.1i=$o.y;55("6L,6M");$d.2c.1e=$d.2y.1e="47";$o.1V("M",-1);$.a("</19></1j></1x>");$d.2Z.1M=$.j()}t{$d.1e="4P";$d.2Z.1M=h.4a()}l(!$f.18.d||$f.8x){h.4Q(1c);3G($d.1H)}t 1o($d.1H);h.5F()},5F:n(){q b=8A.1L.74("8z");1b(q C=0;C<b.x;C++){q $=$d.1d.2i;$d.1d.2i="";q A=$d.2p;l(b[C].8u==8w&&A){b[C].1d.33=$d.4W+"6W";q B=$d.34.2p;l(B&&$d.4e.1d.2a=="2u"&&$d.34.1d.2a!="2u"&&1L.6R.8I-A>=B){A+=B;$d.1d.2i=A}t $d.1d.2i=$;b[C].1d.2i=1I.2Q(A,$d.2p)+"6W"}}$d.1H.1d.33=$d.2Z.4W;$d.1H.1d.2i=$d.2Z.2p},5c:n(){$o.d=1I.6J(1a 1u($o.y,$o.M,0).3t(),$o.d);$1v.2h($o);$f.2N=0;h.3d();l(!$f.44)l(h.1A($o)){4C();1o($f.1K)}l($f.6T)2b("6T")},6V:n(){$d.2V.1s=n(){l(!2b("8i")){$f.2N=0;$c.3d("");4C();1o($f.1K);l($f.6Q)2b("6Q")}};$d.1U.1s=n(){3b()};l(h.1A($1C)){$d.2j.2e=1p;$d.2j.1s=n(){$o.2h($1C);3b()}}t $d.2j.2e=1c},6y:n(){q H,G,A,F,C=[],$=5,E=$f.6z.x,b=$f.18.43;l(E>$)E=$;t l(b=="m"||b=="s")C=[-60,-30,0,30,60,-15,15,-45,45];t 1b(H=0;H<$+9;H++)C[H]=$o[b]-2+H;1b(H=G=0;H<E;H++){A=h.3I($f.6z[H]);l(h.1A(A))h.3n[G++]=A}q B="3m",D=[1,1,1,0,0,0];1b(H=0;H<=B.1n(b);H++)D[H]=$o[B.1Q(H)];1b(H=0;G<$;H++)l(H<C.x){A=1a 1D(D[0],D[1],D[2],D[3],D[4],D[5]);A[b]=C[H];A.1Y();l(h.1A(A))h.3n[G++]=A}t h.3n[G++]=1h}};n 4C(){q b=$f.Z;6F{l(b.1d.2a!="2u"&&b.3k!="6q"&&(b.6v.3C()=="1z"||b.6v.3C()=="8d")){b["3V"]=1c;b.22()}}6s($){}8j(n(){b["3V"]=1p},8p)}n 2A(){h.s=1a 8o();h.i=0;h.a=n($){h.s[h.i++]=$};h.j=n(){u h.s.4H("")}}n 4E($,C){C=C||0;q A=1a 1u($.y,$.M-1,$.d+C);l($f.8X=="8q"){A.6N(A.3t()-(A.1N()+6)%7+3);q B=A.3F();A.8l(0);A.6N(4);u 1I.6E((B-A.3F())/(7*6D))+1}t{q b=1a 1u($.y,0,1);A=1I.6E((A.3F()-b.3F())/6D);u 1I.6C((A+(b.1N()+1))/7)}}n 1N($){q b=1a 1u($.y,$.M-1,$.d);u b.1N()}n 21(){3w(2L,"")}n 3G(){3w(2L,"6G")}n 1o(){3w(2L,"2u")}n 3w(b,$){1b(i=0;i<b.x;i++)b[i].1d.2a=$}n 3g(b,$){$?21(b):1o(b)}n 3D(b,$){l($)b.2e=1p;t{b.2e=1c;b.1i="8n"}}n c(b,A){q $=A;l(b=="M")$=3B(A,1,12);t l(b=="H")$=3B(A,0,23);t l("68".1n(b)>=0)$=3B(A,0,59);l(A==$+1)$=$1v[b];l($1v[b]!=$&&!2b(b+"9a")){q B=$c.2S();l(B==0)28(b,$);t l(B<0)3H($c.20);t l(B>0)3H($c.1Z);$d.1U.2e=!$c.1A($1v);l("8M".1n(b)>=0)$c.4B();2b(b+"90")}}n 3H($){28("y",$.y);28("M",$.M);28("d",$.d);28("H",$.H);28("m",$.m);28("s",$.s)}n 3b(F,B,b,D,C,A){q $=1a 1D($o.y,$o.M,$o.d,$o.H,$o.m,$o.s);$o.25(F,B,b,D,C,A);l(!2b("93")){q E=$.y==F&&$.M==B&&$.d==b;l(!E&&2L.x!=0){c("y",F);c("M",B);c("d",b);$c.1k=$f.Z;49()}l($c.2X||E||2L.x==0)$c.5c()}t $o=$}n 49(){l($f.3y){$c.3d();$f.Z.22()}}n 2b($){q b;l($f[$])b=$f[$].5d($f.Z,$f);u b}n 28(b,$){l($==1h)$=$o[b];$1v[b]=$o[b]=$;l("8W".1n(b)>=0)$d[b+"I"].1i=$;l(b=="M"){$d.1P["3E"]=$;$d.1P.1i=$1l.2k[$-1]}}n 3B(b,$,A){l(b<$)b=$;t l(b>A)b=A;u b}n 71($,b){$f.3A($,"4k",n($){$=$||2d,k=($.56==4p)?$.54:$.56;l(k==9)b()})}n 2W($,b){$=$+"";36($.x<b)$="0"+$;u $}n 3x(){1o($d.2R,$d.4f,$d.5N,$d.6P,$d.73)}n 5g(b){q A=$c.1k,$=$f.6Z;l(A!=$d.2w&&A!=$d.3a&&A!=$d.2r)A=$d.2w;2Y(A){1f $d.2w:c("H",$o.H+b*$.H[0]);1g;1f $d.3a:c("m",$o.m+b*$.m[0]);1g;1f $d.2r:c("s",$o.s+b*$.s[0]);1g}49()}n 1D(D,A,$,C,B,b){h.25(D,A,$,C,B,b)}1D.3J={25:n(E,B,b,D,C,A){q $=1a 1u();h.y=1t(E,h.y,$.5k());h.M=1t(B,h.M,$.5h()+1);h.d=$f.18.d?1t(b,h.d,$.3t()):1;h.H=1t(D,h.H,$.5p());h.m=1t(C,h.m,$.5i());h.s=1t(A,h.s,$.5n())},2h:n($){l($)h.25($.y,$.M,$.d,$.H,$.m,$.s)},6Y:n(E,B,b,D,C,A){q $=1a 1u();h.y=1t(h.y,E,$.5k());h.M=1t(h.M,B,$.5h()+1);h.d=$f.18.d?1t(h.d,b,$.3t()):1;h.H=1t(h.H,D,$.5p());h.m=1t(h.m,C,$.5i());h.s=1t(h.s,A,$.5n())},2z:n($,C){q A="3m",b,B;C=A.1n(C);C=C>=0?C:5;1b(q D=0;D<=C;D++){B=A.1Q(D);b=h[B]-$[B];l(b>0)u 1;t l(b<0)u-1}u 0},1Y:n(){q $=1a 1u(h.y,h.M-1,h.d,h.H,h.m,h.s);h.y=$.5k();h.M=$.5h()+1;h.d=$.3t();h.H=$.5p();h.m=$.5i();h.s=$.5n();u!6w(h.y)},1V:n(b,$){l("3m".1n(b)>=0){q A=h.d;l(b=="M")h.d=1;h[b]+=$;h.1Y();h.d=A}}};n 2n($){u 8V($,10)}n 3z($,b){u 3r(2n($),b)}n 1t($,A,b){u 3z($,3r(A,b))}n 3r($,b){u $==1h||6w($)?b:$}n 5l(A,$){l($6B)A.5l("91"+$);t{q b=1L.8Z("8N");b.8Q($,1c,1c);A.97(b)}}n 4g($){q A,B,b="y,M,H,m,s,6M,6L".4c(",");1b(B=0;B<b.x;B++){A=b[B];l($d[A+"I"]==$)u A.4X(A.x-1,A.x)}u 0}n 6X($){q A=4g(h),b=$d[A+"D"];l(!A)u;$c.1k=h;l(A=="y")h.1e="6H";t l(A=="M"){h.1e="6H";h.1i=h["3E"]}6F{h.5o()}6s($){}$c["3f"+A](h);3G(b);l("4Z".1n(A)>=0){b.1d.8k=1I.6J(h.4S,$d.2r.4S+60-b.4W);b.1d.8e=h.8b-b.2p-2}}n 3Q(70){q p=4g(h),1R,5f,v=h.1i,6A=$o[p];l(p==0)u;$o[p]=6r(v)>=0?6r(v):$o[p];l(p=="y"){1R=h==$d.2y;l(1R&&$o.M==12)$o.y-=1}t l(p=="M"){1R=h==$d.2c;l(1R){5f=$1l.2k[$o[p]-1];l(6A==12)$o.y+=1;$o.1V("M",-1)}l($1v.M==$o.M)h.1i=5f||$1l.2k[$o[p]-1];l(($1v.y!=$o.y))c("y",$o.y)}4d("c(\\""+p+"\\","+$o[p]+")");l(70!==1c){l(p=="y"||p=="M")h.1e="47";1o($d[p+"D"])}49()}n 2O($){l($.2m){$.2m();$.8g()}t{$.5e=1c;$.6U=1p}l($5x)$.54=0}n 55($){q A=$.4c(",");1b(q B=0;B<A.x;B++){q b=A[B]+"I";$d[b].8C=6X;$d[b].2x=3Q}}n 5a(M){q H=M.5I||M.5B,Q=M.56||M.54;5j=$f.44?1c:$f.1K.1d.2a!="2u";$f.2N=1;l(Q>=96&&Q<=8y)Q-=48;l($f.8r&&5j){l(!H.3e){H.3e=$f.1X[1];$c.1k=$f.Z}l(H==$f.Z)$c.1k=$f.Z;l(Q==27)l(H==$f.Z){$c.3c();u}t $f.Z.22();l(Q>=37&&Q<=40){q U;l($c.1k==$f.Z||$c.1k==$d.1U)l($f.18.d){U="d";l(Q==38)$o[U]-=7;t l(Q==39)$o[U]+=1;t l(Q==37)$o[U]-=1;t $o[U]+=7;$o.1Y();c("y",$o["y"]);c("M",$o["M"]);c("d",$o[U]);2O(M);u}t{U=$f.18.43;$d[U+"I"].22()}U=U||4g($c.1k);l(U){l(Q==38||Q==39)$o[U]+=1;t $o[U]-=1;$o.1Y();$c.1k.1i=$o[U];3Q.5d($c.1k,1c);$c.1k.5o()}}t l(Q==9){q D=H.3e;1b(q R=0;R<$f.1X.x;R++)l(D.2e==1c||D.2p==0)D=D.3e;t 1g;l($c.1k!=D){$c.1k=D;D.22()}}t l(Q==13){3Q.5d($c.1k);l($c.1k.3k=="1S")$c.1k.8B();t l($f.5b.3j==$f.Z[$f.1E])$c.5c();t $c.3c();$c.1k=$f.Z}}t l(Q==9&&H==$f.Z)$c.3c();l($f.8G&&!$5x&&!$f.3S&&$c.1k==$f.Z&&(Q>=48&&Q<=57)){q T=$f.Z,S=T.1i,F=E(T),I={29:"",1r:[]},R=0,K,N=0,X=0,O=0,J,b=/3i|2H|3l|y|3R|M|1K|d|%2l|53|H|4V|m|4U|s|4T|W|w/g,L=$f.1B.2J(b),B,A,$,V,W,G,J=0;l(S!=""){O=S.2J(/[0-9]/g);O=O==1h?0:O.x;1b(R=0;R<L.x;R++)O-=1I.2Q(L[R].x,2);O=O>=0?1:0;l(O==1&&F>=S.x)F=S.x-1}S=S.1F(0,F)+8h.8c(Q)+S.1F(F+O);F++;1b(R=0;R<S.x;R++){q C=S.1Q(R);l(/[0-9]/.52(C))I.29+=C;t I.1r[R]=1}S="";b.2t=0;36((K=b.2U($f.1B))!==1h){X=K.3Z-(K[0]=="%2l"?1:0);l(N>=0){S+=$f.1B.1F(N,X);l(F>=N+J&&F<=X+J)F+=X-N}N=b.2t;G=N-X;B=I.29.1F(0,G);A=K[0].1Q(0);$=2n(B.1Q(0));l(I.29.x>1){V=I.29.1Q(1);W=$*10+2n(V)}t{V="";W=$}l(I.1r[X+1]||A=="M"&&W>12||A=="d"&&W>31||A=="H"&&W>23||"68".1n(A)>=0&&W>59){l(K[0].x==2)B="0"+$;t B=$;F++}t l(G==1){B=W;G++;J++}S+=B;I.29=I.29.1F(G);l(I.29=="")1g}T.1i=S;P(T,F);2O(M)}l(5j&&$c.1k!=$f.Z&&!((Q>=48&&Q<=57)||Q==8||Q==46))2O(M);n E(A){q b=0;l($f.51.1L.6a){q B=$f.51.1L.6a.82(),$=B.5m.x;B.6I("4Y",-A.1i.x);b=B.5m.x-$}t l(A.58||A.58=="0")b=A.58;u b}n P(b,A){l(b.6S){b.22();b.6S(A,A)}t l(b.6O){q $=b.6O();$.7P(1c);$.85("4Y",A);$.6I("4Y",A);$.5o()}}}1L.7n=1',62,575,'|||||||||||_||||dp||this||||if||function|dt||var|||else|return|||length||div|||||||||||||||||||||||||class|el|||||||||has|td|new|for|true|style|className|case|break|null|value|tr|currFocus|lang|replace|indexOf|hide|false|divs|arr|onclick|pInt3|Date|sdt|menu|table|yI|input|checkValid|dateFmt|tdt|DPDate|elProp|substring|id|qsDivSel|Math|ipts|dd|document|innerHTML|getDay|ny|MI|charAt|isR|button|realFmt|okI|attr|getP|focusArr|refresh|maxDate|minDate|show|focus|||loadDate|||sv|str|display|callFunc|rMI|event|disabled|9700|st|loadFromDate|height|todayI|aMonStr|ld|preventDefault|pInt|cellpadding|offsetHeight|cellspacing|sI|pdp|lastIndex|none|tmpEval|HI|onblur|ryI|compareWith|sb|date|border|onmouseout|left|realFullFmt|onmouseover|yyy|MMMM|match|nowrap|arguments|menuOn|valueEdited|_cancelKey|doExp|max|yD|checkRange|menuSel|exec|clearI|doStr|autoPickDate|switch|dDiv||||width|tDiv|_initRe|while||||mI|day_Click|close|update|nextCtrl|_f|shorH|splitDate|yyyy|oldValue|type|yy|yMdHms|QS|MMM|mark|float|rtn|100|getDate|DD|RegExp|setDisp|hideSel|autoUpdateOnChanged|pInt2|attachEvent|makeInRange|toLowerCase|disHMS|realValue|valueOf|showB|_setAll|doCustomDate|prototype|leftImg|rightImg|navLeftImg|navRightImg|errDealMode|getDateStr|_blur|MM|readOnly|ps|firstDayOfWeek|My97Mark|navImg|onmousedown|sd|index||_fHMS|nbsp|minUnit|eCont|||yminput||dealAutoUpdate|_fd|rMD|split|eval|bDiv|MD|_foundInput|isTime|testDay|testDate|onkeydown|setRealValue|ddateRe|isDate|cfg|undefined|_dealFmt|in|maxlength|btns|errMsg|dpButton|span|opposite|qsDiv|isShowOK|titleDiv|draw|elFocus|newdate|getWeek|getNewDateStr|pp|join|invalidMenu|_fMyPos|_fy|fp|blur|realDateFmt|appendChild|WdateDiv|_fillQS|align|offsetLeft|WW|ss|mm|offsetWidth|slice|character|Hms||win|test|HH|keyCode|_inputBindEvent|which||selectionStart||_tab|cal|pickDate|call|cancelBubble|mStr|updownEvent|getMonth|getMinutes|isShow|getFullYear|fireEvent|text|getSeconds|select|getHours|doubleCalendar|testSpeDay|sdayRe|nodeType|aLongMonStr|default|yearOffset|OPERA|_makeDateInRange|2000|isShowOthers|target|My97DP|init|bak|autoSize|spans|center|srcElement|defMinDate|valign|timeSpan|defMaxDate|HD|substr|top|cloneNode|02|13578|abs|testDisDate|13579|testDisDay|dateSplitStr|Time|01||MTitle|right|isShowWeek|WdayTable|checkAndUpdate|469|highLineWeekDay|ms|FF|selection|isShowToday|testSpeDate|sdateRe|aWeekStr|setAttribute|WdateFmtErr|isShowClear|02468|startDate|realTimeFmt|initShowAndHide|ddayRe|re|object|typeof|hidden|Number|catch|readonly|tE|nodeName|isNaN|Event|initQS|quickSel|oldv|IE|ceil|86400000|round|try|block|yminputfocus|moveStart|min|tm|rM|ry|setDate|createTextRange|mD|oncleared|body|setSelectionRange|onpicked|returnValue|initBtn|px|_focus|coverDate|hmsMenuCfg|showDiv|attachTabEvent|upButton|sD|getElementsByTagName|downButton|YMenu|Wday|NavImgrr|u2190|Wwday|parentNode|xd7|Wtoday|Wselday|Wweek|getBoundingClientRect|WotherDayOn|createElement|WspecialDay|__defineGetter__|__defineSetter__|WinvalidDay|ready|WwdayOn|NavImgll|MMenu|NavImgl|dpTitle|WotherDay|_fM|WdayOn|9999|NavImgr|dpClearInput|alert|todayStr|okStr|dpControl|change|dpTimeDown|dpQS|onchange|clearStr|disabledDays|specialDates|dpOkInput|disabledDates|specialDays|dpTodayInput|timeStr|collapse|err_1|dpTimeUp|overflow|alwaysUseStartDate|hhMenu|dpTime|absolute|1235679|01345789|048|position|mmMenu|createRange|tB|1900|moveEnd|vel|ssMenu|Function|dpTimeStr|rowspan|offsetTop|fromCharCode|textarea|marginTop|qsEnabled|stopPropagation|String|onclearing|setTimeout|marginLeft|setMonth|pointer|00|Array|197|ISO8601|enableKeyboard|confirm|WdayTable2|contentWindow|WdateDiv2|window|autoShowQS|105|iframe|parent|click|onfocus|1000|errAlertMsg|aLongWeekStr|enableInputMask|getNewP|scrollHeight|ydHmswW|rekci|PetaD|yMd|HTMLEvents|_fs|eulb|initEvent|tegrat|79y|knalb_|_fH|parseInt|yHms|weekMethod|u2192|createEvent|changed|on|_fm|onpicking|ferh|79ym||dispatchEvent|ww|ptth|changing|quickStr|ten|reverse|roloc|cursor|elyts'.split('|'),0,{}))
suryee - Gogs: Go Git Service

赛亿官网

webuploader.withoutimage.min.js 42KB

    /* WebUploader 0.1.5 */!function(a,b){var c,d={},e=function(a,b){var c,d,e;if("string"==typeof a)return h(a);for(c=[],d=a.length,e=0;d>e;e++)c.push(h(a[e]));return b.apply(null,c)},f=function(a,b,c){2===arguments.length&&(c=b,b=null),e(b||[],function(){g(a,c,arguments)})},g=function(a,b,c){var f,g={exports:b};"function"==typeof b&&(c.length||(c=[e,g.exports,g]),f=b.apply(null,c),void 0!==f&&(g.exports=f)),d[a]=g.exports},h=function(b){var c=d[b]||a[b];if(!c)throw new Error("`"+b+"` is undefined");return c},i=function(a){var b,c,e,f,g,h;h=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)};for(b in d)if(c=a,d.hasOwnProperty(b)){for(e=b.split("/"),g=h(e.pop());f=h(e.shift());)c[f]=c[f]||{},c=c[f];c[g]=d[b]}return a},j=function(c){return a.__dollar=c,i(b(a,f,e))};"object"==typeof module&&"object"==typeof module.exports?module.exports=j():"function"==typeof define&&define.amd?define(["jquery"],j):(c=a.WebUploader,a.WebUploader=j(),a.WebUploader.noConflict=function(){a.WebUploader=c})}(window,function(a,b,c){return b("dollar-third",[],function(){var b=a.__dollar||a.jQuery||a.Zepto;if(!b)throw new Error("jQuery or Zepto not found!");return b}),b("dollar",["dollar-third"],function(a){return a}),b("promise-third",["dollar"],function(a){return{Deferred:a.Deferred,when:a.when,isPromise:function(a){return a&&"function"==typeof a.then}}}),b("promise",["promise-third"],function(a){return a}),b("base",["dollar","promise"],function(b,c){function d(a){return function(){return h.apply(a,arguments)}}function e(a,b){return function(){return a.apply(b,arguments)}}function f(a){var b;return Object.create?Object.create(a):(b=function(){},b.prototype=a,new b)}var g=function(){},h=Function.call;return{version:"0.1.5",$:b,Deferred:c.Deferred,isPromise:c.isPromise,when:c.when,browser:function(a){var b={},c=a.match(/WebKit\/([\d.]+)/),d=a.match(/Chrome\/([\d.]+)/)||a.match(/CriOS\/([\d.]+)/),e=a.match(/MSIE\s([\d\.]+)/)||a.match(/(?:trident)(?:.*rv:([\w.]+))?/i),f=a.match(/Firefox\/([\d.]+)/),g=a.match(/Safari\/([\d.]+)/),h=a.match(/OPR\/([\d.]+)/);return c&&(b.webkit=parseFloat(c[1])),d&&(b.chrome=parseFloat(d[1])),e&&(b.ie=parseFloat(e[1])),f&&(b.firefox=parseFloat(f[1])),g&&(b.safari=parseFloat(g[1])),h&&(b.opera=parseFloat(h[1])),b}(navigator.userAgent),os:function(a){var b={},c=a.match(/(?:Android);?[\s\/]+([\d.]+)?/),d=a.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return c&&(b.android=parseFloat(c[1])),d&&(b.ios=parseFloat(d[1].replace(/_/g,"."))),b}(navigator.userAgent),inherits:function(a,c,d){var e;return"function"==typeof c?(e=c,c=null):e=c&&c.hasOwnProperty("constructor")?c.constructor:function(){return a.apply(this,arguments)},b.extend(!0,e,a,d||{}),e.__super__=a.prototype,e.prototype=f(a.prototype),c&&b.extend(!0,e.prototype,c),e},noop:g,bindFn:e,log:function(){return a.console?e(console.log,console):g}(),nextTick:function(){return function(a){setTimeout(a,1)}}(),slice:d([].slice),guid:function(){var a=0;return function(b){for(var c=(+new Date).toString(32),d=0;5>d;d++)c+=Math.floor(65535*Math.random()).toString(32);return(b||"wu_")+c+(a++).toString(32)}}(),formatSize:function(a,b,c){var d;for(c=c||["B","K","M","G","TB"];(d=c.shift())&&a>1024;)a/=1024;return("B"===d?a:a.toFixed(b||2))+d}}}),b("mediator",["base"],function(a){function b(a,b,c,d){return f.grep(a,function(a){return!(!a||b&&a.e!==b||c&&a.cb!==c&&a.cb._cb!==c||d&&a.ctx!==d)})}function c(a,b,c){f.each((a||"").split(h),function(a,d){c(d,b)})}function d(a,b){for(var c,d=!1,e=-1,f=a.length;++e<f;)if(c=a[e],c.cb.apply(c.ctx2,b)===!1){d=!0;break}return!d}var e,f=a.$,g=[].slice,h=/\s+/;return e={on:function(a,b,d){var e,f=this;return b?(e=this._events||(this._events=[]),c(a,b,function(a,b){var c={e:a};c.cb=b,c.ctx=d,c.ctx2=d||f,c.id=e.length,e.push(c)}),this):this},once:function(a,b,d){var e=this;return b?(c(a,b,function(a,b){var c=function(){return e.off(a,c),b.apply(d||e,arguments)};c._cb=b,e.on(a,c,d)}),e):e},off:function(a,d,e){var g=this._events;return g?a||d||e?(c(a,d,function(a,c){f.each(b(g,a,c,e),function(){delete g[this.id]})}),this):(this._events=[],this):this},trigger:function(a){var c,e,f;return this._events&&a?(c=g.call(arguments,1),e=b(this._events,a),f=b(this._events,"all"),d(e,c)&&d(f,arguments)):this}},f.extend({installTo:function(a){return f.extend(a,e)}},e)}),b("uploader",["base","mediator"],function(a,b){function c(a){this.options=d.extend(!0,{},c.options,a),this._init(this.options)}var d=a.$;return c.options={},b.installTo(c.prototype),d.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(a,b){c.prototype[a]=function(){return this.request(b,arguments)}}),d.extend(c.prototype,{state:"pending",_init:function(a){var b=this;b.request("init",a,function(){b.state="ready",b.trigger("ready")})},option:function(a,b){var c=this.options;return arguments.length>1?void(d.isPlainObject(b)&&d.isPlainObject(c[a])?d.extend(c[a],b):c[a]=b):a?c[a]:c},getStats:function(){var a=this.request("get-stats");return a?{successNum:a.numOfSuccess,progressNum:a.numOfProgress,cancelNum:a.numOfCancel,invalidNum:a.numOfInvalid,uploadFailNum:a.numOfUploadFailed,queueNum:a.numOfQueue,interruptNum:a.numofInterrupt}:{}},trigger:function(a){var c=[].slice.call(arguments,1),e=this.options,f="on"+a.substring(0,1).toUpperCase()+a.substring(1);return b.trigger.apply(this,arguments)===!1||d.isFunction(e[f])&&e[f].apply(this,c)===!1||d.isFunction(this[f])&&this[f].apply(this,c)===!1||b.trigger.apply(b,[this,a].concat(c))===!1?!1:!0},destroy:function(){this.request("destroy",arguments),this.off()},request:a.noop}),a.create=c.create=function(a){return new c(a)},a.Uploader=c,c}),b("runtime/runtime",["base","mediator"],function(a,b){function c(b){this.options=d.extend({container:document.body},b),this.uid=a.guid("rt_")}var d=a.$,e={},f=function(a){for(var b in a)if(a.hasOwnProperty(b))return b;return null};return d.extend(c.prototype,{getContainer:function(){var a,b,c=this.options;return this._container?this._container:(a=d(c.container||document.body),b=d(document.createElement("div")),b.attr("id","rt_"+this.uid),b.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),a.append(b),a.addClass("webuploader-container"),this._container=b,this._parent=a,b)},init:a.noop,exec:a.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),c.orders="html5,flash",c.addRuntime=function(a,b){e[a]=b},c.hasRuntime=function(a){return!!(a?e[a]:f(e))},c.create=function(a,b){var g,h;if(b=b||c.orders,d.each(b.split(/\s*,\s*/g),function(){return e[this]?(g=this,!1):void 0}),g=g||f(e),!g)throw new Error("Runtime Error");return h=new e[g](a)},b.installTo(c.prototype),c}),b("runtime/client",["base","mediator","runtime/runtime"],function(a,b,c){function d(b,d){var f,g=a.Deferred();this.uid=a.guid("client_"),this.runtimeReady=function(a){return g.done(a)},this.connectRuntime=function(b,h){if(f)throw new Error("already connected!");return g.done(h),"string"==typeof b&&e.get(b)&&(f=e.get(b)),f=f||e.get(null,d),f?(a.$.extend(f.options,b),f.__promise.then(g.resolve),f.__client++):(f=c.create(b,b.runtimeOrder),f.__promise=g.promise(),f.once("ready",g.resolve),f.init(),e.add(f),f.__client=1),d&&(f.__standalone=d),f},this.getRuntime=function(){return f},this.disconnectRuntime=function(){f&&(f.__client--,f.__client<=0&&(e.remove(f),delete f.__promise,f.destroy()),f=null)},this.exec=function(){if(f){var c=a.slice(arguments);return b&&c.unshift(b),f.exec.apply(this,c)}},this.getRuid=function(){return f&&f.uid},this.destroy=function(a){return function(){a&&a.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var e;return e=function(){var a={};return{add:function(b){a[b.uid]=b},get:function(b,c){var d;if(b)return a[b];for(d in a)if(!c||!a[d].__standalone)return a[d];return null},remove:function(b){delete a[b.uid]}}}(),b.installTo(d.prototype),d}),b("lib/dnd",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},d.options,a),a.container=e(a.container),a.container.length&&c.call(this,"DragAndDrop")}var e=a.$;return d.options={accept:null,disableGlobalDnd:!1},a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})}}),b.installTo(d.prototype),d}),b("widgets/widget",["base","uploader"],function(a,b){function c(a){if(!a)return!1;var b=a.length,c=e.type(a);return 1===a.nodeType&&b?!0:"array"===c||"function"!==c&&"string"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){this.owner=a,this.options=a.options}var e=a.$,f=b.prototype._init,g=b.prototype.destroy,h={},i=[];return e.extend(d.prototype,{init:a.noop,invoke:function(a,b){var c=this.responseMap;return c&&a in c&&c[a]in this&&e.isFunction(this[c[a]])?this[c[a]].apply(this,b):h},request:function(){return this.owner.request.apply(this.owner,arguments)}}),e.extend(b.prototype,{_init:function(){var a=this,b=a._widgets=[],c=a.options.disableWidgets||"";return e.each(i,function(d,e){(!c||!~c.indexOf(e._name))&&b.push(new e(a))}),f.apply(a,arguments)},request:function(b,d,e){var f,g,i,j,k=0,l=this._widgets,m=l&&l.length,n=[],o=[];for(d=c(d)?d:[d];m>k;k++)f=l[k],g=f.invoke(b,d),g!==h&&(a.isPromise(g)?o.push(g):n.push(g));return e||o.length?(i=a.when.apply(a,o),j=i.pipe?"pipe":"then",i[j](function(){var b=a.Deferred(),c=arguments;return 1===c.length&&(c=c[0]),setTimeout(function(){b.resolve(c)},1),b.promise()})[e?j:"done"](e||a.noop)):n[0]},destroy:function(){g.apply(this,arguments),this._widgets=null}}),b.register=d.register=function(b,c){var f,g={init:"init",destroy:"destroy",name:"anonymous"};return 1===arguments.length?(c=b,e.each(c,function(a){return"_"===a[0]||"name"===a?void("name"===a&&(g.name=c.name)):void(g[a.replace(/[A-Z]/g,"-$&").toLowerCase()]=a)})):g=e.extend(g,b),c.responseMap=g,f=a.inherits(d,c),f._name=g.name,i.push(f),f},b.unRegister=d.unRegister=function(a){if(a&&"anonymous"!==a)for(var b=i.length;b--;)i[b]._name===a&&i.splice(b,1)},d}),b("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(a,b,c){var d=a.$;return b.options.dnd="",b.register({name:"dnd",init:function(b){if(b.dnd&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{disableGlobalDnd:b.disableGlobalDnd,container:b.dnd,accept:b.accept});return this.dnd=e=new c(h),e.once("ready",g.resolve),e.on("drop",function(a){f.request("add-file",[a])}),e.on("accept",function(a){return f.owner.trigger("dndAccept",a)}),e.init(),g.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})}),b("lib/filepaste",["base","mediator","runtime/client"],function(a,b,c){function d(a){a=this.options=e.extend({},a),a.container=e(a.container||document.body),c.call(this,"FilePaste")}var e=a.$;return a.inherits(c,{constructor:d,init:function(){var a=this;a.connectRuntime(a.options,function(){a.exec("init"),a.trigger("ready")})}}),b.installTo(d.prototype),d}),b("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(a,b,c){var d=a.$;return b.register({name:"paste",init:function(b){if(b.paste&&"html5"===this.request("predict-runtime-type")){var e,f=this,g=a.Deferred(),h=d.extend({},{container:b.paste,accept:b.accept});return this.paste=e=new c(h),e.once("ready",g.resolve),e.on("paste",function(a){f.owner.request("add-file",[a])}),e.init(),g.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})}),b("lib/blob",["base","runtime/client"],function(a,b){function c(a,c){var d=this;d.source=c,d.ruid=a,this.size=c.size||0,this.type=!c.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?"image/"+("jpg"===this.ext?"jpeg":this.ext):c.type||"application/octet-stream",b.call(d,"Blob"),this.uid=c.uid||this.uid,a&&d.connectRuntime(a)}return a.inherits(b,{constructor:c,slice:function(a,b){return this.exec("slice",a,b)},getSource:function(){return this.source}}),c}),b("lib/file",["base","lib/blob"],function(a,b){function c(a,c){var f;this.name=c.name||"untitled"+d++,f=e.exec(c.name)?RegExp.$1.toLowerCase():"",!f&&c.type&&(f=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(c.type)?RegExp.$1.toLowerCase():"",this.name+="."+f),this.ext=f,this.lastModifiedDate=c.lastModifiedDate||(new Date).toLocaleString(),b.apply(this,arguments)}var d=1,e=/\.([^.]+)$/;return a.inherits(b,c)}),b("lib/filepicker",["base","runtime/client","lib/file"],function(b,c,d){function e(a){if(a=this.options=f.extend({},e.options,a),a.container=f(a.id),!a.container.length)throw new Error("按钮指定错误");a.innerHTML=a.innerHTML||a.label||a.container.html()||"",a.button=f(a.button||document.createElement("div")),a.button.html(a.innerHTML),a.container.html(a.button),c.call(this,"FilePicker",!0)}var f=b.$;return e.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file"},b.inherits(c,{constructor:e,init:function(){var c=this,e=c.options,g=e.button;g.addClass("webuploader-pick"),c.on("all",function(a){var b;switch(a){case"mouseenter":g.addClass("webuploader-pick-hover");break;case"mouseleave":g.removeClass("webuploader-pick-hover");break;case"change":b=c.exec("getFiles"),c.trigger("select",f.map(b,function(a){return a=new d(c.getRuid(),a),a._refer=e.container,a}),e.container)}}),c.connectRuntime(e,function(){c.refresh(),c.exec("init",e),c.trigger("ready")}),this._resizeHandler=b.bindFn(this.refresh,this),f(a).on("resize",this._resizeHandler)},refresh:function(){var a=this.getRuntime().getContainer(),b=this.options.button,c=b.outerWidth?b.outerWidth():b.width(),d=b.outerHeight?b.outerHeight():b.height(),e=b.offset();c&&d&&a.css({bottom:"auto",right:"auto",width:c+"px",height:d+"px"}).offset(e)},enable:function(){var a=this.options.button;a.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var a=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),a.addClass("webuploader-pick-disable")},destroy:function(){var b=this.options.button;f(a).off("resize",this._resizeHandler),b.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),e}),b("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(a,b,c){var d=a.$;return d.extend(b.options,{pick:null,accept:null}),b.register({name:"picker",init:function(a){return this.pickers=[],a.pick&&this.addBtn(a.pick)},refresh:function(){d.each(this.pickers,function(){this.refresh()})},addBtn:function(b){var e=this,f=e.options,g=f.accept,h=[];if(b)return d.isPlainObject(b)||(b={id:b}),d(b.id).each(function(){var i,j,k;k=a.Deferred(),i=d.extend({},b,{accept:d.isPlainObject(g)?[g]:g,swf:f.swf,runtimeOrder:f.runtimeOrder,id:this}),j=new c(i),j.once("ready",k.resolve),j.on("select",function(a){e.owner.request("add-file",[a])}),j.init(),e.pickers.push(j),h.push(k.promise())}),a.when.apply(a,h)},disable:function(){d.each(this.pickers,function(){this.disable()})},enable:function(){d.each(this.pickers,function(){this.enable()})},destroy:function(){d.each(this.pickers,function(){this.destroy()}),this.pickers=null}})}),b("file",["base","mediator"],function(a,b){function c(){return f+g++}function d(a){this.name=a.name||"Untitled",this.size=a.size||0,this.type=a.type||"application/octet-stream",this.lastModifiedDate=a.lastModifiedDate||1*new Date,this.id=c(),this.ext=h.exec(this.name)?RegExp.$1:"",this.statusText="",i[this.id]=d.Status.INITED,this.source=a,this.loaded=0,this.on("error",function(a){this.setStatus(d.Status.ERROR,a)})}var e=a.$,f="WU_FILE_",g=0,h=/\.([^.]+)$/,i={};return e.extend(d.prototype,{setStatus:function(a,b){var c=i[this.id];"undefined"!=typeof b&&(this.statusText=b),a!==c&&(i[this.id]=a,this.trigger("statuschange",a,c))},getStatus:function(){return i[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete i[this.id]}}),b.installTo(d.prototype),d.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},d}),b("queue",["base","mediator","file"],function(a,b,c){function d(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0},this._queue=[],this._map={}}var e=a.$,f=c.Status;return e.extend(d.prototype,{append:function(a){return this._queue.push(a),this._fileAdded(a),this},prepend:function(a){return this._queue.unshift(a),this._fileAdded(a),this},getFile:function(a){return"string"!=typeof a?a:this._map[a]},fetch:function(a){var b,c,d=this._queue.length;for(a=a||f.QUEUED,b=0;d>b;b++)if(c=this._queue[b],a===c.getStatus())return c;return null},sort:function(a){"function"==typeof a&&this._queue.sort(a)},getFiles:function(){for(var a,b=[].slice.call(arguments,0),c=[],d=0,f=this._queue.length;f>d;d++)a=this._queue[d],(!b.length||~e.inArray(a.getStatus(),b))&&c.push(a);return c},removeFile:function(a){var b=this._map[a.id];b&&(delete this._map[a.id],a.destroy(),this.stats.numofDeleted++)},_fileAdded:function(a){var b=this,c=this._map[a.id];c||(this._map[a.id]=a,a.on("statuschange",function(a,c){b._onFileStatusChange(a,c)}))},_onFileStatusChange:function(a,b){var c=this.stats;switch(b){case f.PROGRESS:c.numOfProgress--;break;case f.QUEUED:c.numOfQueue--;break;case f.ERROR:c.numOfUploadFailed--;break;case f.INVALID:c.numOfInvalid--;break;case f.INTERRUPT:c.numofInterrupt--}switch(a){case f.QUEUED:c.numOfQueue++;break;case f.PROGRESS:c.numOfProgress++;break;case f.ERROR:c.numOfUploadFailed++;break;case f.COMPLETE:c.numOfSuccess++;break;case f.CANCELLED:c.numOfCancel++;break;case f.INVALID:c.numOfInvalid++;break;case f.INTERRUPT:c.numofInterrupt++}}}),b.installTo(d.prototype),d}),b("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(a,b,c,d,e,f){var g=a.$,h=/\.\w+$/,i=d.Status;return b.register({name:"queue",init:function(b){var d,e,h,i,j,k,l,m=this;if(g.isPlainObject(b.accept)&&(b.accept=[b.accept]),b.accept){for(j=[],h=0,e=b.accept.length;e>h;h++)i=b.accept[h].extensions,i&&j.push(i);j.length&&(k="\\."+j.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),m.accept=new RegExp(k,"i")}return m.queue=new c,m.stats=m.queue.stats,"html5"===this.request("predict-runtime-type")?(d=a.Deferred(),this.placeholder=l=new f("Placeholder"),l.connectRuntime({runtimeOrder:"html5"},function(){m._ruid=l.getRuid(),d.resolve()}),d.promise()):void 0},_wrapFile:function(a){if(!(a instanceof d)){if(!(a instanceof e)){if(!this._ruid)throw new Error("Can't add external files.");a=new e(this._ruid,a)}a=new d(a)}return a},acceptFile:function(a){var b=!a||!a.size||this.accept&&h.exec(a.name)&&!this.accept.test(a.name);return!b},_addFile:function(a){var b=this;return a=b._wrapFile(a),b.owner.trigger("beforeFileQueued",a)?b.acceptFile(a)?(b.queue.append(a),b.owner.trigger("fileQueued",a),a):void b.owner.trigger("error","Q_TYPE_DENIED",a):void 0},getFile:function(a){return this.queue.getFile(a)},addFile:function(a){var b=this;a.length||(a=[a]),a=g.map(a,function(a){return b._addFile(a)}),b.owner.trigger("filesQueued",a),b.options.auto&&setTimeout(function(){b.request("start-upload")},20)},getStats:function(){return this.stats},removeFile:function(a,b){var c=this;a=a.id?a:c.queue.getFile(a),this.request("cancel-file",a),b&&this.queue.removeFile(a)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(a,b){var c,d,e,f=this;if(a)return a=a.id?a:f.queue.getFile(a),a.setStatus(i.QUEUED),void(b||f.request("start-upload"));for(c=f.queue.getFiles(i.ERROR),d=0,e=c.length;e>d;d++)a=c[d],a.setStatus(i.QUEUED);f.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new c,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})}),b("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(a,b){return a.support=function(){return b.hasRuntime.apply(b,arguments)},a.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var a,c,d=this.options.runtimeOrder||b.orders,e=this.type;if(!e)for(d=d.split(/\s*,\s*/g),a=0,c=d.length;c>a;a++)if(b.hasRuntime(d[a])){this.type=e=d[a];break}return e}})}),b("lib/transport",["base","runtime/client","mediator"],function(a,b,c){function d(a){var c=this;a=c.options=e.extend(!0,{},d.options,a||{}),b.call(this,"Transport"),this._blob=null,this._formData=a.formData||{},this._headers=a.headers||{},this.on("progress",this._timeout),this.on("load error",function(){c.trigger("progress",1),clearTimeout(c._timer)})}var e=a.$;return d.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},e.extend(d.prototype,{appendBlob:function(a,b,c){var d=this,e=d.options;d.getRuid()&&d.disconnectRuntime(),d.connectRuntime(b.ruid,function(){d.exec("init")}),d._blob=b,e.fileVal=a||e.fileVal,e.filename=c||e.filename},append:function(a,b){"object"==typeof a?e.extend(this._formData,a):this._formData[a]=b},setRequestHeader:function(a,b){"object"==typeof a?e.extend(this._headers,a):this._headers[a]=b},send:function(a){this.exec("send",a),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var a=this,b=a.options.timeout;b&&(clearTimeout(a._timer),a._timer=setTimeout(function(){a.abort(),a.trigger("error","timeout")},b))}}),c.installTo(d.prototype),d}),b("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(a,b,c,d){function e(a,b){var c,d,e=[],f=a.source,g=f.size,h=b?Math.ceil(g/b):1,i=0,j=0;for(d={file:a,has:function(){return!!e.length},shift:function(){return e.shift()},unshift:function(a){e.unshift(a)}};h>j;)c=Math.min(b,g-i),e.push({file:a,start:i,end:b?i+c:g,total:g,chunks:h,chunk:j++,cuted:d}),i+=c;return a.blocks=e.concat(),a.remaning=e.length,d}var f=a.$,g=a.isPromise,h=c.Status;f.extend(b.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,threads:3,formData:{}}),b.register({name:"upload",init:function(){var b=this.owner,c=this;this.runing=!1,this.progress=!1,b.on("startUpload",function(){c.progress=!0}).on("uploadFinished",function(){c.progress=!1}),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=a.bindFn(this._tick,this),b.on("uploadComplete",function(a){a.blocks&&f.each(a.blocks,function(a,b){b.transport&&(b.transport.abort(),b.transport.destroy()),delete b.transport}),delete a.blocks,delete a.remaning})},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(b){var c=this;if(f.each(c.request("get-files",h.INVALID),function(){c.request("remove-file",this)}),b)if(b=b.id?b:c.request("get-file",b),b.getStatus()===h.INTERRUPT)f.each(c.pool,function(a,c){c.file===b&&c.transport&&c.transport.send()}),b.setStatus(h.QUEUED);else{if(b.getStatus()===h.PROGRESS)return;b.setStatus(h.QUEUED)}else f.each(c.request("get-files",[h.INITED]),function(){this.setStatus(h.QUEUED)});c.runing||(c.runing=!0,f.each(c.pool,function(a,b){var d=b.file;d.getStatus()===h.INTERRUPT&&(d.setStatus(h.PROGRESS),c._trigged=!1,b.transport&&b.transport.send())}),b||f.each(c.request("get-files",h.INTERRUPT),function(){this.setStatus(h.PROGRESS)}),c._trigged=!1,a.nextTick(c.__tick),c.owner.trigger("startUpload"))},stopUpload:function(b,c){var d=this;if(b===!0&&(c=b,b=null),d.runing!==!1){if(b){if(b=b.id?b:d.request("get-file",b),b.getStatus()!==h.PROGRESS&&b.getStatus()!==h.QUEUED)return;return b.setStatus(h.INTERRUPT),f.each(d.pool,function(a,c){c.file===b&&(c.transport&&c.transport.abort(),d._putback(c),d._popBlock(c))}),a.nextTick(d.__tick)}d.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(h.INTERRUPT),c&&f.each(d.pool,function(a,b){b.transport&&b.transport.abort(),b.file.setStatus(h.INTERRUPT)}),d.owner.trigger("stopUpload")}},cancelFile:function(a){a=a.id?a:this.request("get-file",a),a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),a.setStatus(h.CANCELLED),this.owner.trigger("fileDequeued",a)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(a,b){a=a.id?a:this.request("get-file",a),a.setStatus(b||h.COMPLETE),a.skipped=!0,a.blocks&&f.each(a.blocks,function(a,b){var c=b.transport;c&&(c.abort(),c.destroy(),delete b.transport)}),this.owner.trigger("uploadSkip",a)},_tick:function(){var b,c,d=this,e=d.options;return d._promise?d._promise.always(d.__tick):void(d.pool.length<e.threads&&(c=d._nextBlock())?(d._trigged=!1,b=function(b){d._promise=null,b&&b.file&&d._startSend(b),a.nextTick(d.__tick)},d._promise=g(c)?c.always(b):b(c)):d.remaning||d._getStats().numOfQueue||d._getStats().numofInterrupt||(d.runing=!1,d._trigged||a.nextTick(function(){d.owner.trigger("uploadFinished")}),d._trigged=!0))},_putback:function(a){var b;a.cuted.unshift(a),b=this.stack.indexOf(a.cuted),~b||this.stack.unshift(a.cuted)},_getStack:function(){for(var a,b=0;a=this.stack[b++];){if(a.has()&&a.file.getStatus()===h.PROGRESS)return a;(!a.has()||a.file.getStatus()!==h.PROGRESS&&a.file.getStatus()!==h.INTERRUPT)&&this.stack.splice(--b,1)}return null},_nextBlock:function(){var a,b,c,d,f=this,h=f.options;return(a=this._getStack())?(h.prepareNextFile&&!f.pending.length&&f._prepareNextFile(),a.shift()):f.runing?(!f.pending.length&&f._getStats().numOfQueue&&f._prepareNextFile(),b=f.pending.shift(),c=function(b){return b?(a=e(b,h.chunked?h.chunkSize:0),f.stack.push(a),a.shift()):null},g(b)?(d=b.file,b=b[b.pipe?"pipe":"then"](c),b.file=d,b):c(b)):void 0},_prepareNextFile:function(){var a,b=this,c=b.request("fetch-file"),d=b.pending;c&&(a=b.request("before-send-file",c,function(){return c.getStatus()===h.PROGRESS||c.getStatus()===h.INTERRUPT?c:b._finishFile(c)}),b.owner.trigger("uploadStart",c),c.setStatus(h.PROGRESS),a.file=c,a.done(function(){var b=f.inArray(a,d);~b&&d.splice(b,1,c)}),a.fail(function(a){c.setStatus(h.ERROR,a),b.owner.trigger("uploadError",c,a),b.owner.trigger("uploadComplete",c)}),d.push(a))},_popBlock:function(a){var b=f.inArray(a,this.pool);this.pool.splice(b,1),a.file.remaning--,this.remaning--},_startSend:function(b){var c,d=this,e=b.file;return e.getStatus()!==h.PROGRESS?void(e.getStatus()===h.INTERRUPT&&d._putback(b)):(d.pool.push(b),d.remaning++,b.blob=1===b.chunks?e.source:e.source.slice(b.start,b.end),c=d.request("before-send",b,function(){e.getStatus()===h.PROGRESS?d._doSend(b):(d._popBlock(b),a.nextTick(d.__tick))}),void c.fail(function(){1===e.remaning?d._finishFile(e).always(function(){b.percentage=1,d._popBlock(b),d.owner.trigger("uploadComplete",e),a.nextTick(d.__tick)}):(b.percentage=1,d._popBlock(b),a.nextTick(d.__tick))}))},_doSend:function(b){var c,e,g=this,i=g.owner,j=g.options,k=b.file,l=new d(j),m=f.extend({},j.formData),n=f.extend({},j.headers);b.transport=l,l.on("destroy",function(){delete b.transport,g._popBlock(b),a.nextTick(g.__tick)}),l.on("progress",function(a){var c=0,d=0;c=b.percentage=a,b.chunks>1&&(f.each(k.blocks,function(a,b){d+=(b.percentage||0)*(b.end-b.start)}),c=d/k.size),i.trigger("uploadProgress",k,c||0)}),c=function(a){var c;return e=l.getResponseAsJson()||{},e._raw=l.getResponse(),c=function(b){a=b},i.trigger("uploadAccept",b,e,c)||(a=a||"server"),a},l.on("error",function(a,d){b.retried=b.retried||0,b.chunks>1&&~"http,abort".indexOf(a)&&b.retried<j.chunkRetry?(b.retried++,l.send()):(d||"server"!==a||(a=c(a)),k.setStatus(h.ERROR,a),i.trigger("uploadError",k,a),i.trigger("uploadComplete",k))}),l.on("load",function(){var a;return(a=c())?void l.trigger("error",a,!0):void(1===k.remaning?g._finishFile(k,e):l.destroy())}),m=f.extend(m,{id:k.id,name:k.name,type:k.type,lastModifiedDate:k.lastModifiedDate,size:k.size}),b.chunks>1&&f.extend(m,{chunks:b.chunks,chunk:b.chunk}),i.trigger("uploadBeforeSend",b,m,n),l.appendBlob(j.fileVal,b.blob,k.name),l.append(m),l.setRequestHeader(n),l.send()},_finishFile:function(a,b,c){var d=this.owner;return d.request("after-send-file",arguments,function(){a.setStatus(h.COMPLETE),d.trigger("uploadSuccess",a,b,c)}).fail(function(b){a.getStatus()===h.PROGRESS&&a.setStatus(h.ERROR,b),d.trigger("uploadError",a,b)}).always(function(){d.trigger("uploadComplete",a)})}})}),b("widgets/validator",["base","uploader","file","widgets/widget"],function(a,b,c){var d,e=a.$,f={};return d={addValidator:function(a,b){f[a]=b},removeValidator:function(a){delete f[a]}},b.register({name:"validator",init:function(){var b=this;a.nextTick(function(){e.each(f,function(){this.call(b.owner)})})}}),d.addValidator("fileNumLimit",function(){var a=this,b=a.options,c=0,d=parseInt(b.fileNumLimit,10),e=!0;d&&(a.on("beforeFileQueued",function(a){return c>=d&&e&&(e=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,a),setTimeout(function(){e=!0},1)),c>=d?!1:!0}),a.on("fileQueued",function(){c++}),a.on("fileDequeued",function(){c--}),a.on("reset",function(){c=0}))}),d.addValidator("fileSizeLimit",function(){var a=this,b=a.options,c=0,d=parseInt(b.fileSizeLimit,10),e=!0;d&&(a.on("beforeFileQueued",function(a){var b=c+a.size>d;return b&&e&&(e=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,a),setTimeout(function(){e=!0},1)),b?!1:!0}),a.on("fileQueued",function(a){c+=a.size}),a.on("fileDequeued",function(a){c-=a.size}),a.on("reset",function(){c=0}))}),d.addValidator("fileSingleSizeLimit",function(){var a=this,b=a.options,d=b.fileSingleSizeLimit;d&&a.on("beforeFileQueued",function(a){return a.size>d?(a.setStatus(c.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",d,a),!1):void 0})}),d.addValidator("duplicate",function(){function a(a){for(var b,c=0,d=0,e=a.length;e>d;d++)b=a.charCodeAt(d),c=b+(c<<6)+(c<<16)-c;return c}var b=this,c=b.options,d={};c.duplicate||(b.on("beforeFileQueued",function(b){var c=b.__hash||(b.__hash=a(b.name+b.size+b.lastModifiedDate));return d[c]?(this.trigger("error","F_DUPLICATE",b),!1):void 0}),b.on("fileQueued",function(a){var b=a.__hash;b&&(d[b]=!0)}),b.on("fileDequeued",function(a){var b=a.__hash;b&&delete d[b]}),b.on("reset",function(){d={}}))}),d}),b("runtime/compbase",[],function(){function a(a,b){this.owner=a,this.options=a.options,this.getRuntime=function(){return b},this.getRuid=function(){return b.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return a}),b("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a={},d=this,e=this.destroy;c.apply(d,arguments),d.type=f,d.exec=function(c,e){var f,h=this,i=h.uid,j=b.slice(arguments,2);return g[c]&&(f=a[i]=a[i]||new g[c](h,d),f[e])?f[e].apply(f,j):void 0},d.destroy=function(){return e&&e.apply(this,arguments)}}var f="html5",g={};return b.inherits(c,{constructor:e,init:function(){var a=this;setTimeout(function(){a.trigger("ready")},1)}}),e.register=function(a,c){var e=g[a]=b.inherits(d,c);return e},a.Blob&&a.FileReader&&a.DataView&&c.addRuntime(f,e),e}),b("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(a,b){return a.register("Blob",{slice:function(a,c){var d=this.owner.source,e=d.slice||d.webkitSlice||d.mozSlice; return d=e.call(d,a,c),new b(this.getRuid(),d)}})}),b("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(a,b,c){var d=a.$,e="webuploader-dnd-";return b.register("DragAndDrop",{init:function(){var b=this.elem=this.options.container;this.dragEnterHandler=a.bindFn(this._dragEnterHandler,this),this.dragOverHandler=a.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=a.bindFn(this._dragLeaveHandler,this),this.dropHandler=a.bindFn(this._dropHandler,this),this.dndOver=!1,b.on("dragenter",this.dragEnterHandler),b.on("dragover",this.dragOverHandler),b.on("dragleave",this.dragLeaveHandler),b.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).on("dragover",this.dragOverHandler),d(document).on("drop",this.dropHandler))},_dragEnterHandler:function(a){var b,c=this,d=c._denied||!1;return a=a.originalEvent||a,c.dndOver||(c.dndOver=!0,b=a.dataTransfer.items,b&&b.length&&(c._denied=d=!c.trigger("accept",b)),c.elem.addClass(e+"over"),c.elem[d?"addClass":"removeClass"](e+"denied")),a.dataTransfer.dropEffect=d?"none":"copy",!1},_dragOverHandler:function(a){var b=this.elem.parent().get(0);return b&&!d.contains(b,a.currentTarget)?!1:(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,a),!1)},_dragLeaveHandler:function(){var a,b=this;return a=function(){b.dndOver=!1,b.elem.removeClass(e+"over "+e+"denied")},clearTimeout(b._leaveTimer),b._leaveTimer=setTimeout(a,100),!1},_dropHandler:function(a){var b,f,g=this,h=g.getRuid(),i=g.elem.parent().get(0);if(i&&!d.contains(i,a.currentTarget))return!1;a=a.originalEvent||a,b=a.dataTransfer;try{f=b.getData("text/html")}catch(j){}return f?void 0:(g._getTansferFiles(b,function(a){g.trigger("drop",d.map(a,function(a){return new c(h,a)}))}),g.dndOver=!1,g.elem.removeClass(e+"over"),!1)},_getTansferFiles:function(b,c){var d,e,f,g,h,i,j,k=[],l=[];for(d=b.items,e=b.files,j=!(!d||!d[0].webkitGetAsEntry),h=0,i=e.length;i>h;h++)f=e[h],g=d&&d[h],j&&g.webkitGetAsEntry().isDirectory?l.push(this._traverseDirectoryTree(g.webkitGetAsEntry(),k)):k.push(f);a.when.apply(a,l).done(function(){k.length&&c(k)})},_traverseDirectoryTree:function(b,c){var d=a.Deferred(),e=this;return b.isFile?b.file(function(a){c.push(a),d.resolve()}):b.isDirectory&&b.createReader().readEntries(function(b){var f,g=b.length,h=[],i=[];for(f=0;g>f;f++)h.push(e._traverseDirectoryTree(b[f],i));a.when.apply(a,h).then(function(){c.push.apply(c,i),d.resolve()},d.reject)}),d.promise()},destroy:function(){var a=this.elem;a&&(a.off("dragenter",this.dragEnterHandler),a.off("dragover",this.dragOverHandler),a.off("dragleave",this.dragLeaveHandler),a.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(d(document).off("dragover",this.dragOverHandler),d(document).off("drop",this.dropHandler)))}})}),b("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(a,b,c){return b.register("FilePaste",{init:function(){var b,c,d,e,f=this.options,g=this.elem=f.container,h=".*";if(f.accept){for(b=[],c=0,d=f.accept.length;d>c;c++)e=f.accept[c].mimeTypes,e&&b.push(e);b.length&&(h=b.join(","),h=h.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=h=new RegExp(h,"i"),this.hander=a.bindFn(this._pasteHander,this),g.on("paste",this.hander)},_pasteHander:function(a){var b,d,e,f,g,h=[],i=this.getRuid();for(a=a.originalEvent||a,b=a.clipboardData.items,f=0,g=b.length;g>f;f++)d=b[f],"file"===d.kind&&(e=d.getAsFile())&&h.push(new c(i,e));h.length&&(a.preventDefault(),a.stopPropagation(),this.trigger("paste",h))},destroy:function(){this.elem.off("paste",this.hander)}})}),b("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(){var a,b,d,e,f=this.getRuntime().getContainer(),g=this,h=g.owner,i=g.options,j=this.label=c(document.createElement("label")),k=this.input=c(document.createElement("input"));if(k.attr("type","file"),k.attr("name",i.name),k.addClass("webuploader-element-invisible"),j.on("click",function(){k.trigger("click")}),j.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),i.multiple&&k.attr("multiple","multiple"),i.accept&&i.accept.length>0){for(a=[],b=0,d=i.accept.length;d>b;b++)a.push(i.accept[b].mimeTypes);k.attr("accept",a.join(","))}f.append(k),f.append(j),e=function(a){h.trigger(a.type)},k.on("change",function(a){var b,d=arguments.callee;g.files=a.target.files,b=this.cloneNode(!0),b.value=null,this.parentNode.replaceChild(b,this),k.off(),k=c(b).on("change",d).on("mouseenter mouseleave",e),h.trigger("change")}),j.on("mouseenter mouseleave",e)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})}),b("runtime/html5/transport",["base","runtime/html5/runtime"],function(a,b){var c=a.noop,d=a.$;return b.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var b,c,e,f=this.owner,g=this.options,h=this._initAjax(),i=f._blob,j=g.server;g.sendAsBinary?(j+=(/\?/.test(j)?"&":"?")+d.param(f._formData),c=i.getSource()):(b=new FormData,d.each(f._formData,function(a,c){b.append(a,c)}),b.append(g.fileVal,i.getSource(),g.filename||f._formData.name||"")),g.withCredentials&&"withCredentials"in h?(h.open(g.method,j,!0),h.withCredentials=!0):h.open(g.method,j),this._setRequestHeader(h,g.headers),c?(h.overrideMimeType&&h.overrideMimeType("application/octet-stream"),a.os.android?(e=new FileReader,e.onload=function(){h.send(this.result),e=e.onload=null},e.readAsArrayBuffer(c)):h.send(c)):h.send(b)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var a=this._xhr;a&&(a.upload.onprogress=c,a.onreadystatechange=c,a.abort(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var a=this,b=new XMLHttpRequest,d=this.options;return!d.withCredentials||"withCredentials"in b||"undefined"==typeof XDomainRequest||(b=new XDomainRequest),b.upload.onprogress=function(b){var c=0;return b.lengthComputable&&(c=b.loaded/b.total),a.trigger("progress",c)},b.onreadystatechange=function(){return 4===b.readyState?(b.upload.onprogress=c,b.onreadystatechange=c,a._xhr=null,a._status=b.status,b.status>=200&&b.status<300?(a._response=b.responseText,a.trigger("load")):b.status>=500&&b.status<600?(a._response=b.responseText,a.trigger("error","server")):a.trigger("error",a._status?"http":"abort")):void 0},a._xhr=b,b},_setRequestHeader:function(a,b){d.each(b,function(b,c){a.setRequestHeader(b,c)})},_parseJson:function(a){var b;try{b=JSON.parse(a)}catch(c){b={}}return b}})}),b("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(b,c,d){function e(){var a;try{a=navigator.plugins["Shockwave Flash"],a=a.description}catch(b){try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(c){a="0.0"}}return a=a.match(/\d+/g),parseFloat(a[0]+"."+a[1],10)}function f(){function d(a,b){var c,d,e=a.type||a;c=e.split("::"),d=c[0],e=c[1],"Ready"===e&&d===j.uid?j.trigger("ready"):f[d]&&f[d].trigger(e.toLowerCase(),a,b)}var e={},f={},g=this.destroy,j=this,k=b.guid("webuploader_");c.apply(j,arguments),j.type=h,j.exec=function(a,c){var d,g=this,h=g.uid,k=b.slice(arguments,2);return f[h]=g,i[a]&&(e[h]||(e[h]=new i[a](g,j)),d=e[h],d[c])?d[c].apply(d,k):j.flashExec.apply(g,arguments)},a[k]=function(){var a=arguments;setTimeout(function(){d.apply(null,a)},1)},this.jsreciver=k,this.destroy=function(){return g&&g.apply(this,arguments)},this.flashExec=function(a,c){var d=j.getFlash(),e=b.slice(arguments,2);return d.exec(this.uid,a,c,e)}}var g=b.$,h="flash",i={};return b.inherits(c,{constructor:f,init:function(){var a,c=this.getContainer(),d=this.options;c.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),a='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+d.swf+'" ',b.browser.ie&&(a+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),a+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+d.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',c.html(a)},getFlash:function(){return this._flash?this._flash:(this._flash=g("#"+this.uid).get(0),this._flash)}}),f.register=function(a,c){return c=i[a]=b.inherits(d,g.extend({flashExec:function(){var a=this.owner,b=this.getRuntime();return b.flashExec.apply(a,arguments)}},c))},e()>=11.4&&c.addRuntime(h,f),f}),b("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(a,b){var c=a.$;return b.register("FilePicker",{init:function(a){var b,d,e=c.extend({},a);for(b=e.accept&&e.accept.length,d=0;b>d;d++)e.accept[d].title||(e.accept[d].title="Files");delete e.button,delete e.id,delete e.container,this.flashExec("FilePicker","init",e)},destroy:function(){this.flashExec("FilePicker","destroy")}})}),b("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(b,c,d){var e=b.$;return c.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var a,b=this.owner,c=this.options,d=this._initAjax(),f=b._blob,g=c.server;d.connectRuntime(f.ruid),c.sendAsBinary?(g+=(/\?/.test(g)?"&":"?")+e.param(b._formData),a=f.uid):(e.each(b._formData,function(a,b){d.exec("append",a,b)}),d.exec("appendBlob",c.fileVal,f.uid,c.filename||b._formData.name||"")),this._setRequestHeader(d,c.headers),d.exec("send",{method:c.method,url:g,forceURLStream:c.forceURLStream,mimeType:"application/octet-stream"},a)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var a=this._xhr;a&&(a.exec("abort"),a.destroy(),this._xhr=a=null)},destroy:function(){this.abort()},_initAjax:function(){var b=this,c=new d("XMLHttpRequest");return c.on("uploadprogress progress",function(a){var c=a.loaded/a.total;return c=Math.min(1,Math.max(0,c)),b.trigger("progress",c)}),c.on("load",function(){var d,e=c.exec("getStatus"),f=!1,g="";return c.off(),b._xhr=null,e>=200&&300>e?f=!0:e>=500&&600>e?(f=!0,g="server"):g="http",f&&(b._response=c.exec("getResponse"),b._response=decodeURIComponent(b._response),d=a.JSON&&a.JSON.parse||function(a){try{return new Function("return "+a).call()}catch(b){return{}}},b._responseJson=b._response?d(b._response):{}),c.destroy(),c=null,g?b.trigger("error",g):b.trigger("load")}),c.on("error",function(){c.off(),b._xhr=null,b.trigger("error","http")}),b._xhr=c,c},_setRequestHeader:function(a,b){e.each(b,function(b,c){a.exec("setRequestHeader",b,c)})}})}),b("preset/withoutimage",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/transport","runtime/flash/filepicker","runtime/flash/transport"],function(a){return a}),b("webuploader",["preset/withoutimage"],function(a){return a}),c("webuploader")});
console-front - Gogs: Go Git Service

Nav apraksta

count.js 7.9KB

    /** * Created by TT on 2018/2/1. */ ; spa_define(function () { return $.use(["spa", "code", "form", "util", "dict"], function (spa, code, form, util, dict) { return { modal: function (data) { var root = spa.findInModal(".sys_answer_count"); // var cr = code.parseCode(root.find(".dt-tpl")); var myChart = echarts.init(document.getElementById('type')); var tableData = {data: []}, allData = []; var $data = {tn: "ans", id:data.id}; root.find(".modal-ctrl .icon-times").on("click", function () { spa.closeModal(); }); var dayList = function () { var dayList = []; var now = new Date(); var day1 = new Date(); day1.setMonth(now.getMonth() - 1); day1.setDate(1); var day2 = new Date(); day2.setDate(day2.getDate()); // var s1 = day1.format("yyyy-MM-dd"); // var s2 = day2.format("yyyy-MM-dd"); // console.log(s1, s2); var days = (day2 - day1) / (24 * 60 * 60 * 1000); dayList[0] = {time: day1.format("yyyy-MM-dd")}; for (var i = 1; i < days + 1; i++) { day1.setDate(day1.getDate() + 1); dayList[i] = {time: day1.format("yyyy-MM-dd")}; } return dayList; }; var load = function () { $.ajax({ type: "GET", url: "http://www.ekexiu.com:8082/log/jsonp/qm", data:$data, dataType: "jsonp", success: function (data) { allData = dayList(); allData.forEach(function (day) { var time = (JSON.stringify(day.time)).replace(/\-|^\"|\"$/g, ""); day.pc = 0; day.app = 0; day.h5 = 0; day.wx = 0; data.data.forEach(function (log) { if (time == log.day) { if (log.source == 1) { day.pc = log.pv; } if (log.source == 2) { day.app = log.pv; } if (log.source == 3) { day.h5 = log.pv; } if (log.source == 4) { day.wx = log.pv; } } day.num = day.pc + day.app + day.h5 + day.wx; }) }); var colors = ["#660099", '#c23531', "#91C7AE",'#FFDE33','#003366']; var option = { color: colors, title: { text: '回答流量分析', subtext: '分渠道' }, tooltip: { trigger: 'axis' }, legend: { data: ['PC端', '移动端APP', '移动端H5','小程序','合计'] }, xAxis: { data: allData.map(function (item) { return item.time; }), boundaryGap: false }, yAxis: { splitLine: { show: false }, boundaryGap: false, type: "value", // interval: 1, min: 0 }, toolbox: { show: true, feature: { dataZoom: { yAxisIndex: 'none' }, dataView: {readOnly: false}, magicType: {type: ['line', 'bar']}, restore: {}, saveAsImage: {} } }, dataZoom: [{ startValue: allData[allData.length - 7].time }, { type: 'inside' }], visualMap: { top: 10, right: 10 }, series: [ { name: 'PC端', type: 'line', data: allData.map(function (item) { return item.pc; }) }, { name: '移动端APP', type: 'line', data: allData.map(function (item) { return item.app; }) }, { name: '移动端H5', type: 'line', data: allData.map(function (item) { return item.h5; }) },{ name:'小程序', type:'line', data:allData.map(function (item) { return item.wx; }) }, { name: '合计', type: 'line', label: { normal: { show: true, position: 'top' } }, data: allData.map(function (item) { return item.num; }) } ] }; myChart.setOption(option); } }); }; // cr.listen(dict.doTransfer); load(); } }; }); });
portal-front - Gogs: Go Git Service

portal html css js resource

resourceInfo.js 6.8KB

    $(document).ready(function() { loginStatus();//判断个人是否登录 /*获取资源ID*/ var resourceId = GetQueryString("resourceId"); var professorId; var userid = $.cookie("userid"); //填充学术领域 var subjectShow = function(data) { if(data != undefined && data.length != 0) { var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); } else { subs[0] = data; } if(subs.length > 0) { for(var i = 0; i < subs.length; i++) { $("#subjectList").append("<li>" + subs[i] + "</li>") }; } } } //填充应用行业 var industryShow = function(data) { if(data != undefined && data.length != 0) { var subs = new Array(); if(data.indexOf(',')) { subs = data.split(','); } else { subs[0] = data; } if(subs.length > 0) { for(var i = 0; i < subs.length; i++) { $("#industryList").append("<li>" + subs[i] + "</li>") }; } } } /*获取资源的数据的函数*/ var resourceData = function() { $.ajax({ "url": "/ajax/resource/resourceInfo", data: { 'resourceId': resourceId }, "type": "get", "async": true, "success": function(info) { if(info.success) { //console.log(info) var $info = info.data; $(".h2Font").text($info.resourceName); $("#application").text($info.supportedServices); professorId = $info.professorId; if(userid==professorId){ $("#consultin,.attentBtn").hide() } if($info.subject) { subjectShow($info.subject) } else { $("span:contains('学术领域')").hide(); } if($info.industry) { industryShow($info.industry) } else { $("span:contains('应用行业')").hide(); } if($info.cooperationNotes) { $("#cooperationNote").text($info.cooperationNotes); } else { $("span:contains('合作备注')").hide(); } if(!$info.subject && !$info.industry && !$info.cooperationNotes) { $(".resAbout").hide(); } if($info.images.length) { $("#resouImg").attr("src", "/images/resource/" + $info.resourceId + ".jpg") } if($info.descp) { $(".resMore").html($info.descp); var pWidth = $(".resMore").find("p").width(); var leng = $(".resMore").find("img").length; for(var i = 0; i < leng; i++) { (function(i) { $(".resMore").find("img").eq(i).load(function() { var imgWidth = $(".resMore").find("img").eq(i).width(); if(imgWidth > pWidth) { $(".resMore").find("img").eq(i).css({ "width": "100%" }) } }) })(i) } } else { $(".resBottom").hide(); } $("#nameS").text($info.editProfessor.name); if($info.editProfessor.title) { if($info.editProfessor.office) { $("#title").text($info.editProfessor.title + ","); } else { $("#title").text($info.editProfessor.title); } } if($info.editProfessor.office) { $("#office").text($info.editProfessor.office); } if($info.editProfessor.department) { $("#department").text($info.editProfessor.department); } if($info.editProfessor.orgName) { $("#orgName").text($info.editProfessor.orgName); } if($info.editProfessor.address) { $("#address").text($info.editProfessor.address); } if($info.editProfessor.hasHeadImage) { $("#headImg").attr("src", "/images/head/" + $info.professorId + "_l.jpg") } var resourcetitle = $info.resourceName + "-科袖网"; window.setInterval(function() { document.title = resourcetitle; }, 500); //专家相关资源 relevantResource($info.professorId, $info.resourceId) } else { $.MsgBox.Alert('消息提醒', info.msg); } }, "error": function() { $.MsgBox.Alert('message', 'failed') } }); } /*资源信息*/ resourceData(); /*点击专家头像进入专家页面*/ $("#headImg").on("click", function() { location.href = "information-brow.html?professorId=" + professorId; }); /*点击咨询*/ $("#consultin").on("click", function() { clickResouceConsultHandler(); }); /*咨询函数*/ function clickResouceConsultHandler() { if(userid && userid != "null" && userid != null) { ConsultApply(); concultProInfo(professorId); //专家信息common.js中 //默认选中资源咨询和标题 for(var i = 0; i < $("ul.menucon").children().length; i++) { $("ul.menucon").children().eq(i).removeClass("clicknow"); $("ul.menucon").children().eq(1).addClass("clicknow"); } var consultTitleVal = $(".h2Font").text(); $("#consultTitle").val("关于" + consultTitleVal + "的咨询"); //点击的发送 $("#sendConsultBtn").click(function() { sendConsultHandler(professorId); //common.js中 }); } else { $.MsgBox.Alert("消息提醒", "请先登录再进行咨询"); $("#mb_btn_ok").val("去登录"); var aele = document.createElement('a'); $("#mb_btnbox").append(aele); $("#mb_btnbox a").css({ 'display': "block", 'width': '100%', 'height': '40px', 'position': 'absolute', 'bottom': '-6px', 'left': '0' }); aele.setAttribute('href', '../login.html'); } }; /*专家相关资源*/ var relevantResource = function(id, reid) { $.ajax({ "url": "/ajax/resource/qapro", "type": "get", "data": { "professorId": id }, "async": true, "success": function(data) { if(data.success) { var $info = data.data; var reId = reid; var j = 0; for(var i = 0; i < $info.length; i++) { if($info[i].resourceId != reId) { var string = "" string += '<li>' string += '<a class="resoumag" href="resourceInfo.html?resourceId=' + $info[i].resourceId + '">' string += '<div class="ResImgBox resourceImgBox">' if($info[i].images.length) { string += '<img class="resImg headRadius resourceImg" src="/images/resource/' + $info[i].resourceId + '.jpg" />' } else { string += '<img class="resImg headRadius resourceImg" src="images/default-resource.jpg" />' } string += '</div>' string += '<h2>' + $info[i].resourceName + '</h2>' string += '</a>' string += '</li>' j++; if(j == 4) { return; } $(".otherRes").append(string); } if($info.length == 1) { $("#relaResou").hide() } } } else { $.MsgBox.Alert("消息", data.msg); } }, "error": function() { $.MsgBox.Alert('message', 'fail') } }); } })
portal-front - Gogs: Go Git Service

portal html css js resource

privacy.html 27KB

    <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>用户协议-科袖网</title> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.png" media="screen" /> <link rel="stylesheet" href="css/bootstrap.min.css" > <link rel="stylesheet" href="css/reset.css" /> <link type="text/css" href="css/common.css" rel="stylesheet"> <script type="text/javascript" src="js/jquery-1.11.1.js"></script> </head> <body> <header id="header"> <script src="js/header.js"></script> </header> <div id="container"> <div class="containerCon"> <div class="contentCon" style="padding-top:80px;"> <div class="single-column"> <div class="single-white-wrap"> <h2 class="faq-title">用户协议</h2> <div class="faq-content"> <h3 class="faq-sub-title">「科袖」是一个创新的研发资源共享及科技成果转化平台。</h3> <p>我们致力于帮助企业在研发过程中,找到能解决问题的专家;让专家的知识、技能、经验、成果和身边的仪器设备,更有效地帮助企业进行研发,让专家的科研价值变现。</p> </div> <div class="faq-content"> <p> “科袖”是一个为企业与专家提供在科技研发领域交流与合作的平台,隶属于北京科袖科技有限公司(以下简称“科袖公司”)。当企业对研发技术或资源有需求时,可以在这里找到能够提供解决方案的科研专家,展开交流与合作。 </p> </div> <div class="faq-content"> <p> “科袖”由网站“科袖网”和移动客户端“科袖app”构成。在“科袖”,用户协议是用户与“科袖”网站和移动客户端之间就相关事宜所订立的契约,包含用户(包括但不限于“专家用户”、“企业用户”、“学生用户”)和“科袖”之间所有的条款和条件。 </p> </div> <div class="faq-content"> <p> 此用户协议版本为平台第一次更新版,科袖公司严格遵循《互联网信息服务管理办法》、《互联网用户帐号名称管理规定》、《互联网新闻信息服务管理规定》等国家法律、法规的精神及内容,对原有版本进行此次修订更新。作为平台用户,在注册“科袖”网站和移动客户端前,必须事先认真阅读本用户协议,认可并同意本用户协议更新版的全部内容。特别是本协议中免除、减轻或者限制科袖公司责任的全部协议内容以及含有限制用户权利内容的协议内容。希望各位用户能在严格遵守国家法律、法规及平台相关规章制度的前提下,使用“科袖”网站和移动客户端。 </p> </div> <div class="faq-content"> <p> 如果您同意本用户协议,或者您事实上存在使用行为,将被视为您完全接受本用户协议的全部内容及条款,包括接受“科袖”和移动客户端对用户协议随时所做的任何修改及更新。同时也表示您同意“科袖”和移动客户端所发布或随时更新的隐私声明,本协议即构成对双方均具有约束力的法律文件。如您不同意本用户协议,您应不得使用或主动取消“科袖”和移动客户端所提供的服务。 </p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第一条 协议内容及生效</h3> <p>1.1 本用户协议内容包括以下所有正文及“科袖”网站和移动客户端已经发布或将来可能发布的各类规则、解释、声明、通告等。所有上述规则、解释、声明及通告等都被视为本用户协议的组成部分,具有同等的法律效力。</p> <p>1.2 用户下载、注册、登录、使用及连接“科袖”网站和移动客户端服务均被视为用户已完全了解、接受并同意遵守本用户协议的所有内容。“科袖”网站和移动客户端有权在必要时单方修改用户协议,并通过网站和/或者客户端发布修改变更,不再另行单独通知。修改后的协议一经发布即代替旧版本协议,自动更新为用户与“科袖”网站和移动客户端之间的适用协议。如在用户协议更新并生效后,用户继续使用“科袖”服务,则视为您已完全了解、接受用户协议的更新并同意遵守更新后的用户协议。如用户不接受“科袖”网站和移动客户端更新后的用户协议,请立即停止使用“科袖”网站和移动客户端。</p> <p>1.3 “科袖”网站和移动客户端所有服务的所有权、运作权和解释权均归科袖公司所有。用户同意本用户协议内容并完成注册程序,即成为“科袖”网站和移动客户端的正式用户,即被视为用户确认自己具有独立的行为能力,明确自己所享有的相应权利,能够独立承担法律责任。</p> <p>1.4 如果您未满18周岁,必须在父母或者监护人监护之下使用“科袖”网站和移动客户端。</p> <p>1.5 用户特此声明,已经完全理解本用户协议所有内容,并不存在任何重大误解;同时,认可本用户协议并不存在显失公平的情形。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第二条 用户信息</h3> <p>2.1 用户个人信息。用户注册“科袖”平台帐号,需按照实名制原则,先行通过真实身份信息认证。用户个人信息包括但不限于:用户真实姓名、证件号码、职称、职位、头像、手机电话、银行账号、第三方支付账号、电子邮件、教育背景、工作经历等。</p> <p>2.2 非用户个人信息。用户在“科袖”网站和移动客户端服务器上,包括用户咨询记录、操作状态、操作历史记录、使用习惯等在内的全部记录信息。除本条第1款所列用户个人信息范围外的其他所有信息,均视为非用户个人信息。</p> <p>2.3 注册信息。用户向“科袖”网站和移动客户端所提交的帐号、头像等内容不得出现违法及不良信息。对含有此类违法及不良信息的帐号,科袖公司有权不予注册。同时,为保护用户个人信息及公民隐私,“科袖”将自觉接受社会监督,及时处理公众举报的帐号、头像等注册信息中的违法和不良信息。</p> <p>2.4 第三方平台记录信息。用户通过新浪微博、腾讯微信等第三方平台账号注册、登陆、使用“科袖”网站和移动客户端的,将被视为用户完全理解、同意并接受“科袖”已包括但不限于收集、统计、分析等方式使用其在新浪微博、腾讯微信等第三方平台填写、登记、公布、记录的全部信息。用户一旦使用第三方平台账号注册、登陆、使用“科袖”网站和移动客户端,“科袖”网站和移动客户端对该第三方记录信息的任何使用,均被视为已经获得了用户本人的完全同意并接受。</p> <p>2.5 用户在“科袖”网站和移动客户端所涉及的包括个人真实姓名、手机电话、电子邮件、通信地址等在内的用户个人信息、非用户个人信息、注册信息以及第三方平台记录信息, “科袖”网站和移动客户端在此承诺,均予以严格保密,除非经用户明确授权或者法律另有规定之外,“科袖”网站和移动客户端不会向任何第三方 / 第三人披露上述用户隐私信息。“科袖”网站和移动客户端尊重用户的合法权利,不会以违反法律、行政法规以及本协议约定的方式收集、保存、使用用户信息。</p> <p>2.6 用户应本着诚实守信的原则,自行向“科袖”网站和移动客户端提供个人信息、非用户个人信息、注册信息以及相关的其他必要信息,所提供的信息必须在合法基础上保证真实、准确、完整,并保证及时更新以上信息。如因用户自行提供的信息存在非法、抄袭、错误等问题,用户需承担因此引发的相应的法律责任及后果,且“科袖”网站和移动客户端保留终止用户使用“科袖”网站和移动客户端各项服务的权利,且“科袖”网站和移动客户端可以保留向被侵权的第三方披露此类用户的个人信息之相关权利。用户以虚假信息骗取账户名称注册,或其帐号、头像等注册内容存在违法和不良信息的,“科袖”和移动客户端有权采取通知限期改正、暂停使用、注销登记等处理措施。</p> <p>2.7 用户应自行维护个人的“科袖”网站和移动客户端上的帐号和密码安全,并对此帐户在 “科袖”网站和移动客户端上的所有行为负完全责任。用户不得将帐户转借给他人使用,否则应承担由此可能产生的全部责任,并与实际使用人承担连带责任。用户应对任何人利用您的帐号和密码所进行的活动负完全责任,“科袖”无法对非法或未经您授权使用您的帐号和密码的行为做出甄别,因此“科袖”不承担任何责任。当密码或者帐号遭到未获授权使用,或者发生任何安全问题时,用户有责任及时有效地通知“科袖”并向当地公安机关报案。</p> <p>2.8 用户信息使用。用户在使用过程中发现任何不妥或者不满意之处,有权向“科袖”网站和移动客户端后台服务团队以邮件或者电话方式提出申请,进行相关信息删除等处理:“科袖”网站和移动客户端不承担主动删除、销毁用户信息的责任。</p> <p>2.9 向用户提供服务。“科袖”网站和移动客户端将在合理范围内使用用户个人信息、非用户个人信息、注册信息以及第三方平台记录信息。用户一旦注册、登录、使用“科袖”网站和移动客户端服务,将被视为“科袖”网站和移动客户端已包括但不限于收集、统计、分析、商业用途等方式使用用户信息。“科袖”网站和移动客户端对用户信息的使用无需向用户支付任何费用。</p> <p>2.10 用户同意接受“科袖”网站和移动客户端通过短信、电话、电子邮件、即时通信的客户端(网页)或者其他合法方式,向“科袖” 网站和移动客户端用户发送包括合作提醒、合作推荐、促销活动等信息。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第三条 “科袖”与用户双方的权利和义务</h3> <p class="text_indentP">“科袖”提供平台,专家用户可在“科袖”网站或者移动客户端通过咨询的形式向学员提供自愿付费的研发技术与资源咨询服务(以下简称“服务”);企业用户和学生用户通过“科袖”网站或者移动客户端自愿付费获得专家提供的研发技术与资源咨询服务(以下简称“服务”)。</p> <p>3.1 作为交流与合作平台,“科袖”不直接参与用户之间的交流与合作。基于纠纷、技术原因等因素,“科袖”保有复制、审查交流与合作过程及内容的权利。</p> <p>3.2 “科袖”有义务对相关数据、所有的申请行为以及与咨询有关的其它事项进行审查,有权根据不同情况选择保留或删除相关信息或继续、停止对该用户提供服务,并追究相关法律责任。</p> <p>3.3 “科袖”不对以下结果进行保证:</p> <ul> <li>1)不保证各平台上任何用户所提供资料的真实、准确、安全、合法等问题,由此引发的纠纷,用户自行承担风险;</li> <li>2)“科袖”所承载的内容均为传播资讯目的,不对其真实性、科学性、严肃性做任何形式保证;</li> <li>3)“科袖”不保证专家所提供服务的意愿和能力,以及是否适用于企业的实际需求;</li> <li>4)“科袖”不保证企业用户对于专家服务的满意度,以及企业用户对于专家的反馈及评价;</li> <li>5) 因企业用户对专家服务质量不满所引起的任何纠纷,“科袖”对此不负有任何赔偿责任。</li> </ul> <p>3.4 为便于企业用户和学生用户与专家用户的交流与合作,"科袖"公司有义务维护平台服务的正常运行,提升及改进技术。</p> <p>3.5 如本条第3款所确认的,"科袖"不对专家服务质量做任何保证,也不对因专家服务质量所引起的任何纠纷负有经济赔偿义务。但企业用户和学生用户对专家服务内容若不满意,则有权利向"科袖"提出投诉或进行申诉,"科袖"有义务依据实际情况开展协调沟通。如因在"科袖"上发生服务纠纷,"科袖"有义务向双方了解相关信息,进行沟通、调解;用户通过司法部门或行政部门依照法定程序要求"科袖"提供相关数据,"科袖"将积极配合并提供有关资料。</p> <p>3.6 为保证服务质量,"科袖"提供客服电话服务、在线交流等功能。为保证服务质量,保障交易过程及内容的可追溯性,"科袖"保有客服与用户服务过程中全程录音的权利,"科袖"承诺不主动将录音内容泄露给第三方,但基于交易纠纷、技术原因等因素,"科袖"保有复制、审查服务过程中录音内容的权利。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第四条 用户言行</h3> <p>4.1 用户同意在使用"科袖"和移动客户端服务过程中,遵守国家法律、法规,严格注意自身所发布的言论及内容。所有用户不得发布如下言论及内容,一经违反,"科袖"及移动客户端将予以严肃处理:</p> <ul> <li>1)发布反对我国宪法所确定的基本原则或我国法律法规所规定的言论及内容;</li> <li>2)发布危害国家安全、泄露国家秘密、颠覆国家政权以及破坏国家统一的言论及内容;</li> <li>3)发布损害国家荣誉、国家利益及公共利益的言论及内容;</li> <li>4)发布煽动民族仇恨、民族歧视,破坏民族团结的言论;</li> <li>5)发布破坏国家宗教政策,宣扬邪教和封建迷信的言论及内容;</li> <li>6)散布不实谣言,扰乱社会秩序、破坏社会稳定的言论及内容;</li> <li>7)发布涉及国家历任领导人及点评时政的相关言论及内容;</li> <li>8)发布侮辱或诽谤他人,侵害他人合法利益的言论及内容;</li> <li>9)发布对未成年人有不良影响的言论及内容;</li> <li>10)散布淫秽、色情、赌博、暴力、凶杀、恐怖、非法宗教或者教唆犯罪的行为;</li> <li>11)利用"科袖"及移动客户端平台从事洗钱、窃取商业秘密、窃取其他用户个人信息等违法犯罪活动;</li> <li>12)侵入本站及国家计算机信息系统,传播病毒、特洛依木马、定时炸弹等可能对"科袖"网站、移动客户端造成伤害或影响其正常运转的恶意病毒或程序;</li> <li>13)不得从事非经"科袖"和移动客户端同意的所有牟利性经营活动;</li> <li>14)不得侵犯第三方权利,特别是他人著作权、商标权等知识产权或者合法权利。</li> </ul> <p>4.2 除本条第1款中所列情况外,若用户有其他发布违法信息、不良信息、严重违背社会公德、以及其他违反法律禁止性规定的行为,还有例如提供的个人资料不真实、或与注册时信息不一致又未能提供合理证明、依据监管部门的要求、出于安全的原因或其他必要的情形等,"科袖"保有删除各类不符合法律政策或者不真实信息内容而无须通知用户的权利。若用户未遵守以上约定,"科袖"有权立即终止对用户提供服务,采取降权、暂停或者关闭用户账户等措施。"科袖"再次严正声明,所有用户须对自己的言论和行为负法律责任。</p> <p>4.3 有关于本条中第1款及第2款所涉及的不当言论及内容的判定,由"科袖"和移动客户端的专门审核人员所负责,科袖公司对此拥有最终解释权。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第五条 知识产权协议</h3> <p>5.1 对于用户通过"科袖"和移动客户端所发布的任何公开信息,用户在此确认并同意"科袖"和移动客户端在全球范围内对上述公开信息享有免费的、永久性的、不可撤销的、非独家的和完全再许可的权利和许可,并以使用、复制、修改、改编、汇编、出版、翻译、据以创作衍生作品、传播、表演和公开展示此等内容(整体或部分),和/或将此等内容编入当前已知的或以后开发的其他任何形式的作品、媒体或技术中。</p> <p>5.2 除法律规定外,未经"科袖"和移动客户端书面形式的明确许可,任何单位或个人不得以任何方式全部或部分复制、转载、引用、链接、抓取或以其他方式使用"科袖"网站、移动客户端的信息内容(包括但不限于:源程序和文档、用户界面设计、文案等)。科袖公司在此严正声明,如有违反本条协议者,一经调查及核实,科袖公司将决不姑息,坚决追究其法律责任,并要求其赔偿因其行为所造成的任何经济损失。</p> <p>5.3 用户在"科袖"和移动客户端所发布的内容及其他智力成果,必须保证其已经拥有必要的知识产权权利或得到明确授权以进行该内容或智力成果的提供、发布、提交等行为。用户在此同意并承诺,在"科袖"和移动客户端平台上的内容及其他智力成果不构成对他人知识产权或其他权利的侵犯。因用户违反上述承诺,所造成或引起的任何形式的法律纠纷,由用户个人承担法律责任,"科袖"不承担任何相应法律及经济责任。</p> <p>5.4 本用户协议已经构成《中华人民共和国著作权法》及相关法律规定的著作权财产性权利(包括但不限于:复制权、发行权、出租权、展览权、表演权、广播权、信息网络传播权、改编权、摄制权、翻译权、汇编权等)的转让书面协议,其效力及于用户在"科袖"网站和移动客户端上发布的任何受著作权法保护的作品内容。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第六条 隐私声明</h3> <p>"科袖"非常重视对您(所有用户)个人隐私的保护。您所提供的个人信息等资料以及"科袖"所保留的用户个人资料,将受到中国有关隐私的法律以及"科袖"隐私政策的特别保护。</p> <p>特定情况下"科袖"需要某些信息才能为您提供所请求的特定服务,本隐私声明针对这些情况下的数据收集和使用情况。 </p> <p>作为"科袖"网站和移动客户端用户,如果同意接受"科袖"网站和移动客户端用户协议及隐私声明,表明您授权"科袖"网站和移动客户端对任何您所提供的、或者"科袖"和移动客户端所收集到的信息有权进行处理、传播、使用。 </p> <p>本隐私声明条款适用于"科袖"网站和移动客户端的所有服务,随着服务的变化,"科袖"和移动客户端有权对隐私条款不时进行修改更新,且不再另行通知。更新后的隐私声明一旦在网页或者移动客户端上公布即有效代替旧版本的隐私声明,您在访问和使用"科袖"的网站或者移动客户端时,即表示您已同意遵守并接受最新的隐私政策。科袖公司在此特别建议您经常关注隐私条款的变更。 </p> <p>6.1 "科袖"隐私信息范围</p> <ul> <li>1)个人信息 <p>在使用"科袖"网站和移动客户端时,通常情况下,您能在匿名的状态下访问"科袖"并获取信息。您在"科袖"网站或者移动客户端注册时所提交的个人信息,包括姓名、手机号码、电子邮件、第三方帐号信息等。</p></li> <li>2)帐号信息 <p>用户为获得某些付费服务时,必须提供基本必要的财务信息,如姓名、银行帐户、第三方支付帐户信息;专家用户接收费用时,亦必须提供基本必要的个人财务信息,如姓名、银行帐户、第三方支付帐户信息等。</p></li> <li>3)交流信息 <p>"科袖"通过网站和移动客户端,在用户与"科袖"客服之间,用户与用户之间,通过电话、评价反馈体系、在线交流等方式产生信息交流。</p></li> </ul> <p>6.2 信息隐私的保护</p> <p>"科袖"严格保护您个人信息的安全。我们使用各种安全技术和程序来保护您的个人信息不被未经授权的访问、使用或泄露。</p> <p>当用户对科袖公司的网站或者移动客户端的服务表示兴趣时,或者当向用户提供服务出现问题或者困难时,我们将使用这些信息来联系用户。</p> <p>未经用户同意,"科袖"不会对用户之间的交流信息,包括评价、交流文本和图片内容进行编辑、筛选、篡改。</p> <p>如果有明确证据表明您所提供的信息存在不符合法律政策或者不真实情况,我们有权无须通知您对信息进行删除、更改等处理。</p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第七条 免责说明</h3> <p>7.1 就下列相关事宜的发生,"科袖"在此声明不承担任何法律责任:</p> <ul> <li>1)用户应遵守国家的有关法律、法规和行政规章制度。如有用户违反国家法律法规或本用户协议,"科袖"有权停止向用户提供任务而不需要承担任何责任;如用户的不法使用行为导致"科袖"遭受任何损害或者遭受任何来自第三方的纠纷、诉讼、索赔要求等,用户须向"科袖"赔偿相应的损失,用户需对其违反用户协议所产生的一切后果承担全部法律责任;</li> <li>2)由于您将用户密码告知他人或与他人共享注册帐号,由此导致的任何个人信息的泄露,或其他非因"科袖"方面原因导致的个人信息的泄露;</li> <li>3)根据法律规定或政府相关政策要求提供您的个人信息;</li> <li>4)任何通过黑客攻击、电脑病毒侵入等非法截取、访问等方式从我们网站上获取的信息;</li> <li>5)因台风、地震、海啸、洪水、停电、战争、恐怖袭击等国际通用不可抗力因素导致的任何后果。</li> </ul> <p>7.2 本协议下的服务行为涉及到互联网及移动通讯等服务,可能受各个环节不稳定因素的影响,比如不可抗力、计算机病毒或者黑客攻击等造成的服务中断或不能满足用户要求的风险,用户须理解和认可,并承担以上风险。基于上述已经提及的可能发生的各环节不稳定因素影响,"科袖"和移动客户端在此声明对服务的及时性、安全性、准确性不作担保,对因此导致用户不能接收信息,或者传递错误等问题不承担任何责任,此点用户须理解并认可。</p> <p>7.3 如因"科袖"网站或移动客户端的自有系统发生故障而影响到本服务的正常运行,"科袖"承诺第一时间内与相关单位配合,及时处理并进行修复。但用户因此而产生的经济损失,"科袖"不承担责任。此外,"科袖"保留不经事先通知为维修保养、升级或其他目的暂停本服务任何部分的权利。</p> <p>7.4 在使用本协议下服务的过程中,可能会遇到网络信息或其他用户的行为所带来的风险,"科袖"不对任何信息的真实性、适用性、合法性承担责任,也不对因侵权行为给您造成的损害负责。这些风险包括但不限于:</p> <ul> <li>1)来自他人匿名或冒名的含有威胁、诽谤、令人反感或非法内容的信息;</li> <li>2)因使用本协议项下的服务,遭受他人误导、欺骗或其他导致或可能导致的任何心理、生理上的伤害以及经济上的损失;</li> <li>3)其他因网络信息或用户行为引起的风险。</li> </ul> </div> <div class="faq-content"> <h3 class="faq-sub-title">第八条 适用法律框架以及争议解决途径</h3> <p>本协议的订立、执行、解释及争议的解决均应适用中华人民共和国法律及法规。如发生本协议部分内容与适用法律、法规相抵触时,此部分协议抵触内容应以适用法律为准。同时此部分协议抵触内容不影响协议其他部分的效力,即协议其他部分继续有效。如协议缔约双方就本协议内容或其执行发生任何争议,双方应共同勉力友好协商解决;协商不成时,任何一方均可向有管辖权的中华人民共和国法院提起诉讼。 </p> </div> <div class="faq-content"> <h3 class="faq-sub-title">第九条 其他</h3> <p>9.1 为了更多用户的利益及实现共享经济的本质,"科袖"将不定期的举行各类用户回馈活动(包括但不限于:如限时礼品折扣、合作交易折扣等),平台所有用户在此确认并同意,许可"科袖"开展此类活动,平台将不再予以特别通知。 </p> <p>9.2 科袖公司在此明确,"科袖"平台目前仅支持中文语种,对于其他语种的相关功能及需求暂不支持。"科袖"鼓励并支持用户使用中文参与平台各类活动、使用平台各类功能,实现共享知识经济的良好初衷。 </p> <p>9.3 如您在中国大陆以外的国家或地区访问或使用"科袖"网站、移动客户端,您将有责任严格遵守所在国家或地区内有关在线行为和可接受内容的法律规制。 </p> <p>9.4 本协议下的服务之所有权、运作权和一切解释权归科袖公司所有。科袖公司有权在必要时修改并更新用户协议,并通过网站或者移动客户端发布修改、变更消息,且不再另行通知。如果在修改更新生效后用户继续使用服务,则视为您接受用户协议的变动并遵守最新用户协议。 </p> </div> <div style="overflow:hidden;margin:30px 10px;color:#888;font-size:13px;"><span style="float:left">如果您对用户协议有任何疑问,请联系 <b style="color:#ff9900;">service@ekexiu.com</b></span><span style="float:right">2016年12月更新版</span></div> </div> </div> </div> </div> </div> <footer> <script type="text/javascript" src="js/footer.js"></script> </footer> <script type="text/javascript" src="js/jquery.cookie.js"></script> <script type="text/javascript" src="js/public/baseUtil.js"></script> <script type="text/javascript" src="js/public/genCom.js"></script> </body> </html>