123 |
- function move(e,t,i){clearInterval(e.timer),e.timer=setInterval(function(){var n=!0;for(var l in t){var a=null;a="opacity"==l?100*getStyle(e,l):parseInt(getStyle(e,l))||0;var c=t[l],r=.2*(c-a);r=r>0?Math.ceil(r):Math.floor(r),a!=c&&("opacity"==l?(e.style.filter="alpha(opacity = "+(a+r)+")",e.style[l]=(a+r)/100):e.style[l]=a+r+"px",n=!1)}n&&(clearInterval(e.timer),i&&i.call(e))},100/3)}function getStyle(e,t){return e.currentStyle?e.currentStyle[t]:getComputedStyle(e,null)[t]}Namespace.register("U.MD.UI.slider"),U.MD.UI.slider=function(e,t,i){function n(){h=++h%f,g++,g%=v,h==f-1?move(I,{left:-_*h},function(){h=1,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),l(g),s&&s(g+1)}function l(e){for(var t=0;t<v;t++)y[t].className="";y[e].className="U_MD_UI_slider_On"}var a=i.speed,c=i.arrow,r=i.dot,s=i.moveFun,U=$$("ul",{className:"U_MD_UI_slider_ImgList"},e);for(t.unshift(t[t.length-1]),t.push(t[1]),E=0;E<t.length;E++){var o=$$("li",{className:""},U);$$("img",{className:"",src:t[E]},o)}var d=$$("ul",{className:"U_MD_UI_slider_Btn"},e),u=($$("li",{className:"U_MD_UI_slider_Left",innerHTML:"<"},d),$$("li",{className:"U_MD_UI_slider_Right",innerHTML:">"},d),$$("ul",{className:"U_MD_UI_slider_Point"},e));for(E=0;E<t.length-3;E++)0==E&&$$("li",{className:"U_MD_UI_slider_On"},u)[0],$$("li",{className:""},u)[E];var _=e.offsetWidth,p=e.offsetHeight,I=e.getElementsByClassName("U_MD_UI_slider_ImgList")[0],D=(o=I.getElementsByTagName("li"),document.getElementsByClassName("U_MD_UI_slider_Btn")[0]),M=e.getElementsByClassName("U_MD_UI_slider_Point")[0],m=D.getElementsByTagName("li"),f=I.getElementsByTagName("li").length,h=1,y=M.getElementsByTagName("li"),v=y.length,g=0,x=null;M.style.display=r?"block":"none";for(var C=I.getElementsByTagName("li"),E=0;E<C.length;E++)C[E].style.width=_+"px",C[E].style.height=p+"px";I.style.width=_*t.length+"px",I.style.left=-_+"px",D.style.width=_+"px",e.onmouseover=function(){D.style.display=c?"block":"none",clearInterval(x)},e.onmouseout=function(){D.style.display="none",x=setInterval(n,a)};var P=new Date;m[0].onclick=function(){var e=new Date;e-P>500&&(h--,g--,0==h?move(I,{left:-_*h},function(){h=f-2,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),g=-1==g?v-1:g,l(g),s&&s(g+1)),P=new Date},m[1].onclick=function(){var e=new Date;e-P>500&&(h++,g++,g%=v,h==f-1?move(I,{left:-_*h},function(){h=1,this.style.left=-h*_+"px"}):move(I,{left:-_*h}),l(g),s&&s(g+1)),P=new Date},x=setInterval(n,a),0==g&&console.log(g+1);for(E=0;E<v;E++)y[E]._listindex=E,y[E].onclick=function(){g=this._listindex,h=g+1,move(I,{left:-_*h}),l(g)}},Namespace.register("U.MD.UI.calendar"),U.MD.UI.Calendar=U.MD.UI.calendar=function(e,t,i){e&&(U.MD.UI.calendar.datetimeformat="boolean"!=typeof i||0!=i||i,U.MD.UI.calendar.create(e,t))},U.MD.UI.calendar.NOW=new Date,U.MD.UI.calendar.CURRENTYEAR=U.MD.UI.calendar.NOW.getFullYear(),U.MD.UI.calendar.CURRENTMONTH=U.MD.UI.calendar.NOW.getMonth(),U.MD.UI.calendar.CURRENTDAY=U.MD.UI.calendar.NOW.getDate(),U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR,U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH,U.MD.UI.calendar.day=U.MD.UI.calendar.CURRENTDAY,U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",U.MD.UI.calendar.datetimeformat=!0,U.MD.UI.calendar.fouseinp=null,U.MD.UI.calendar.board=null,U.MD.UI.calendar.tit=null,U.MD.UI.calendar.mark=1,U.MD.UI.calendar.template=['<div class="U_MD_UI_calendar_features"><div class="U_MD_UI_calendar_closeBtn" id="U_MD_UI_calendar_closeBtn">关闭</div><div class="U_MD_UI_calendar_features_a"><div class="U_MD_UI_calendar_prev U_MD_UI_calendar_btn" id="prevDate"></div><div class="U_MD_UI_calendar_tit" id="calendar_tit"></div><input type="text" id="calendar_tit_btn" style="display: none;"><div class="U_MD_UI_calendar_next U_MD_UI_calendar_btn" id="nextDate"></div></div><i></i></div>','<div id="calendar_day"><ul class="U_MD_UI_calendar_week"><li>日</li><li>一</li><li>二</li><li>三</li><li>四</li><li>五</li><li>六</li></ul><ul class="U_MD_UI_calendar_c" id="calendar_week_c"></ul></div>','<div class="U_MD_UI_calendar_month" id="calendar_month" style="display: none"><ul class="U_MD_UI_calendar_month_c"><li><span>1月</span></li><li><span>2月</span></li><li><span>3月</span></li><li><span>4月</span></li><li><span>5月</span></li><li><span>6月</span></li><li><span>7月</span></li><li><span>8月</span></li><li><span>9月</span></li><li><span>10月</span></li><li><span>11月</span></li><li><span>12月</span></li></ul></div>','<div id="calendar_year" class="U_MD_UI_calendar_month" style="display: none"><ul class="U_MD_UI_calendar_month_c"><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li></ul></div>','<span id="U_MD_UI_calendar_timeText" class="U_MD_UI_calendar_timeText">选择时间</span><div class="U_MD_UI_calendar_timeBox"><div id="U_MD_UI_calendar_clearText" class="U_MD_UI_calendar_timeBtn">清空</div><div id="U_MD_UI_calendar_nowTime" class="U_MD_UI_calendar_timeBtn">现在</div><div id="U_MD_UI_calendar_okBtn" class="U_MD_UI_calendar_timeBtn">确定</div></div>','<div id="calendar_timeChoose" class="U_MD_UI_calendar_timeChoose" style="display: none"></div>'],U.MD.UI.calendar.create=function(e,t){if(e!=U.MD.UI.calendar.fouseinp||"block"!=U.MD.UI.calendar.board.style.display){t&&U.MD.UI.calendar.board&&(U.MD.UI.calendar.board.parentNode.removeChild(U.MD.UI.calendar.board),U.MD.UI.calendar.board=null);var i=document.documentElement.scrollTop||document.body.scrollTop,n=document.documentElement.scrollLeft||document.body.scrollLeft,l=[Math.abs(e.getBoundingClientRect().left)+n,Math.abs(e.getBoundingClientRect().top)+i];U.MD.UI.calendar.fouseinp=e,U.MD.UI.calendar.board?U.MD.UI.calendar.resetData(l):U.MD.UI.calendar.showBoard(e,l,t),U.MD.UI.calendar.showDay()}},U.MD.UI.calendar.toggleChooseText=function(e){var t=U.selectEl(".U_MD_UI_calendar_c_a")[0].children,i=t.length;if("返回日期"==e.innerText)return U.MD.UI.calendar.changeDisplay(_lastTemplate,t[i-1]),e.innerText="选择时间",void U.selectEl(e).removeClass("U_MD_UI_calendar_timeTextClick");for(var n=0;n<i-1;n++)"none"!=t[n].style.display&&(t[n].style.display="none",_lastTemplate=t[n]);t[i-1].style.display="block",e.innerText="返回日期",U.selectEl(e).addClass("U_MD_UI_calendar_timeTextClick")},U.MD.UI.calendar.resetData=function(e){U.MD.UI.calendar.board.style.display="block",U.MD.UI.calendar.mark=1,U.selectEl("#calendar_day")[0].style.display="block",U.selectEl("#calendar_month")[0].style.display="none",U.selectEl("#calendar_year")[0].style.display="none",U.MD.UI.calendar.board.style.left=e[0]+"px",U.MD.UI.calendar.board.style.top=e[1]+U.MD.UI.calendar.fouseinp.clientHeight+10+"px",U.MD.UI.calendar.year=U.MD.UI.calendar.CURRENTYEAR,U.MD.UI.calendar.month=U.MD.UI.calendar.CURRENTMONTH,U.MD.UI.calendar.ChooseDefault(!0)},U.MD.UI.calendar.createChooseTime=function(e){for(var t=[["时","分","秒"],[24,60,60],["hour","minute","second"]],i=$$("div",{id:"calendar_time",className:"U_MD_UI_calendar_time",innerHTML:U.MD.UI.calendar.template[4]},U.MD.UI.calendar.board),n=0;n<t[0].length;n++){var l=$$("div",{className:"U_MD_UI_calendar_timeRow"},e);$$("span",{className:"U_MD_UI_calendar_timeRowText",innerText:t[0][n]},l);for(var a=$$("div",{className:"U_MD_UI_calendar_timeRowCon"},l),c=$$("ul",{className:"U_MD_UI_calendar_timeRowUl",name:t[2][n]},a),r=0;r<t[1][n];r++){var s=1==r.toString().length?"0"+r:r;$$("li",{innerText:s,onclick:function(){var e=this.parentNode,t=e.querySelector(".U_MD_UI_calendar_timeRowActive");switch(U.selectEl(t).removeClass("U_MD_UI_calendar_timeRowActive"),U.selectEl(this).addClass("U_MD_UI_calendar_timeRowActive"),e.name){case"hour":U.MD.UI.calendar.hour=this.innerText;break;case"minute":U.MD.UI.calendar.minute=this.innerText;break;case"second":U.MD.UI.calendar.second=this.innerText}}},c)}}U.MD.UI.calendar.datetimeformat||(i.style.display="none"),U.selectEl("#U_MD_UI_calendar_timeText")[0].onclick=function(){U.MD.UI.calendar.toggleChooseText(this)},U.selectEl("#U_MD_UI_calendar_clearText")[0].onclick=function(){U.MD.UI.calendar.fouseinp.value?U.MD.UI.calendar.fouseinp.value="":U.MD.UI.calendar.fouseinp.innerText="",U.MD.UI.calendar.ChooseDefault(!0),U.MD.UI.calendar.board.style.display="none"},U.selectEl("#U_MD_UI_calendar_nowTime")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!0)},U.selectEl("#U_MD_UI_calendar_okBtn")[0].onclick=function(){U.MD.UI.calendar.outPutDate(!1)}},U.MD.UI.calendar.showBoard=function(e,t,i){var n=U.MD.UI.calendar.template,l=i||document.body,a=n[1]+n[2]+n[3]+n[5];U.MD.UI.calendar.board=i?$$("div",{className:"U_MD_UI_calendar_bigboard"},i):$$("div",{className:"U_MD_UI_calendar_bigboard",style:{left:t[0]+"px",top:t[1]+e.clientHeight+10+"px"}},l),U.MD.UI.calendar.board.innerHTML=n[0],_dayC=$$("div",{className:"U_MD_UI_calendar_c_a",innerHTML:a},U.MD.UI.calendar.board),U.MD.UI.calendar.tit=U.selectEl("#calendar_tit")[0],_mc=U.selectEl("#calendar_month > ul > li"),_titInp=U.selectEl("#calendar_tit_btn")[0],_timer=null,U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0]),U.MD.UI.calendar.tit.onclick=function(){clearTimeout(_timer),1==U.MD.UI.calendar.mark?(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year,U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],U.selectEl("#calendar_day")[0]),U.MD.UI.calendar.mark=2,U.MD.UI.calendar.ChooseDefault()):2==U.MD.UI.calendar.mark&&(_timer=setTimeout(function(){U.MD.UI.calendar.changeDisplay($("#calendar_year")[0],U.selectEl("#calendar_month")[0]),U.MD.UI.calendar.dateTenYear(),U.MD.UI.calendar.mark=3,U.MD.UI.calendar.ChooseDefault()},250))},U.MD.UI.calendar.tit.ondblclick=function(){clearTimeout(_timer),2===U.MD.UI.calendar.mark&&(_obj=U.MD.UI.calendar.changeDisplay(_titInp,this,"inline-block"),_obj[0].value=this.innerText,_obj[0].focus())},_titInp.onkeydown=function(e){switch(e.keyCode){case 13:var t=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");t[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)}},_titInp.onblur=function(){var e=U.MD.UI.calendar.changeDisplay(U.MD.UI.calendar.tit,this,"inline-block");e[0].innerText=U.MD.UI.calendar.year=isNaN(parseInt(this.value))?U.MD.UI.calendar.CURRENTYEAR:parseInt(this.value)},U.selectEl("#prevDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_lessNum=-1:2==U.MD.UI.calendar.mark?_lessNum=-12:3==U.MD.UI.calendar.mark&&(_lessNum=-120),U.MD.UI.calendar.fullDate(_lessNum,!1)},U.selectEl("#nextDate")[0].onclick=function(){1==U.MD.UI.calendar.mark?_addNum=1:2==U.MD.UI.calendar.mark?_addNum=12:3==U.MD.UI.calendar.mark&&(_addNum=120),U.MD.UI.calendar.fullDate(_addNum,!0)};for(var c=0;c<_mc.length;c++)_mc[c].onclick=function(){U.MD.UI.calendar.changeDisplay($("#calendar_day")[0],U.selectEl("#calendar_month")[0]),U.MD.UI.calendar.month=parseInt(this.innerText)-1,U.MD.UI.calendar.showDay(),U.MD.UI.calendar.mark=1};U.selectEl("#U_MD_UI_calendar_closeBtn")[0].onclick=function(){U.UF.EV.stopBubble(),U.MD.UI.calendar.board.style.display="none"}},U.MD.UI.calendar.showDay=function(){_monthFristDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,1).getDay(),_lastMonthDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,0).getDate(),_fullDay=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month+1,0).getDate(),_totalDay=(_t=_monthFristDay+_fullDay)%7==0?_t:_t+(7-_t%7),_dayC=U.selectEl("#calendar_week_c")[0],_dayC.innerHTML="";for(var e=0;e<_totalDay;e++)if(_li=$$("li",{},_dayC),e<_monthFristDay)$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_lastMonthDay-_monthFristDay+e+1},_li);else if(e<_fullDay+_monthFristDay){var t=e-_monthFristDay+1,i=new Date(U.MD.UI.calendar.year,U.MD.UI.calendar.month,t).getDay(),n=U.MD.UI.calendar.NOW.getDate()===t&&U.MD.UI.calendar.CURRENTMONTH===U.MD.UI.calendar.month&&U.MD.UI.calendar.CURRENTYEAR===U.MD.UI.calendar.year;_dayV=t,6===i||0===i?n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today U_MD_UI_calendar_weekend",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_weekend",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):n?$$("span",{className:"U_MD_UI_calendar_day U_MD_UI_calendar_today",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li):$$("span",{className:"U_MD_UI_calendar_day",innerText:t,onclick:function(){U.MD.UI.calendar.day=this.innerText,U.MD.UI.calendar.outPutDate()}},_li)}else $$("span",{className:"U_MD_UI_calendar_unavailable",innerText:e-(_fullDay+_monthFristDay)+1},_li);U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year+"-"+(U.MD.UI.calendar.month+1)+"月"},U.MD.UI.calendar.fullDate=function(e,t){var i=(_n=Math.abs(e)/12)>=1?_n>>>0:0,n=Math.abs(e)%12;!t&&(n=-n),!t&&(i=-i),U.MD.UI.calendar.month+=n,U.MD.UI.calendar.year+=i,t?U.MD.UI.calendar.month>11&&(U.MD.UI.calendar.month=0,U.MD.UI.calendar.year++):U.MD.UI.calendar.month<0&&(U.MD.UI.calendar.month=11,U.MD.UI.calendar.year--),1==U.MD.UI.calendar.mark&&U.MD.UI.calendar.showDay(),2==U.MD.UI.calendar.mark&&(U.MD.UI.calendar.tit.innerText=U.MD.UI.calendar.year),3==U.MD.UI.calendar.mark&&U.MD.UI.calendar.dateTenYear()},U.MD.UI.calendar.formartDate=function(e,t){var i,n,l,a,c,r;i=e||"-",n=t?U.MD.UI.calendar.CURRENTYEAR:U.MD.UI.calendar.year,c=t?U.MD.UI.calendar.CURRENTMONTH+1:U.MD.UI.calendar.month+1,l=t?U.MD.UI.calendar.CURRENTDAY:U.MD.UI.calendar.day,c=c.toString()[1]?c:"0"+c,l=l.toString()[1]?l:"0"+l;var s=n+i+c+i+l;if("boolean"==typeof U.MD.UI.calendar.datetimeformat&&U.MD.UI.calendar.datetimeformat){if(t){var o=new Date;U.MD.UI.calendar.hour=o.getHours(),U.MD.UI.calendar.minute=o.getMinutes(),U.MD.UI.calendar.second=o.getSeconds()}a=U.MD.UI.calendar.hour.toString()[1]?U.MD.UI.calendar.hour:"0"+U.MD.UI.calendar.hour,c=U.MD.UI.calendar.minute.toString()[1]?U.MD.UI.calendar.minute:"0"+U.MD.UI.calendar.minute,r=U.MD.UI.calendar.second.toString()[1]?U.MD.UI.calendar.second:"0"+U.MD.UI.calendar.second,s+=" "+a+":"+c+":"+r}return s},U.MD.UI.calendar.outPutDate=function(e){"INPUT"===U.MD.UI.calendar.fouseinp.tagName?U.MD.UI.calendar.fouseinp.value=U.MD.UI.calendar.formartDate("-",e):U.MD.UI.calendar.fouseinp.innerText=U.MD.UI.calendar.formartDate("-",e),U.MD.UI.calendar.CheckedDay&&U.MD.UI.calendar.CheckedDay(),U.MD.UI.calendar.board.style.display="none"},U.MD.UI.calendar.changeDisplay=function(e,t,i){return i=i||"block",e&&"object"==typeof e&&e.setAttribute("style","display:"+i),t&&"object"==typeof t&&t.setAttribute("style","display:none"),[e,t]},U.MD.UI.calendar.dateTenYear=function(){_yearArr=U.selectEl("#calendar_year > ul > li"),_startYear=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10;for(var e=0;e<_yearArr.length;e++)_yearArr[e].onclick=function(){U.MD.UI.calendar.mark=2,U.MD.UI.calendar.year=parseInt(this.innerText),U.MD.UI.calendar.changeDisplay($("#calendar_month")[0],U.selectEl("#calendar_year")[0]),U.MD.UI.calendar.tit.innerText=this.innerText},_yearArr[e].innerHTML="",0==e||e==_yearArr.length-1?$$("span",{className:"U_MD_UI_calendar_unavailable",innerText:_startYear+e-1},_yearArr[e]):_startYear+e-1===U.MD.UI.calendar.CURRENTYEAR?$$("span",{style:{"background-color":"#eed1bc"},innerText:_startYear+e-1},_yearArr[e]):$$("span",{innerText:_startYear+e-1},_yearArr[e]);U.MD.UI.calendar.tit.innerText=(t=U.MD.UI.calendar.year-U.MD.UI.calendar.year%10)+"-"+(t+9)},U.MD.UI.calendar.ChooseDefault=function(e){U.MD.UI.calendar.datetimeformat?(e&&(U.MD.UI.calendar.hour="00",U.MD.UI.calendar.minute="00",U.MD.UI.calendar.second="00",U.selectEl(U.MD.UI.calendar.board).find(".U_MD_UI_calendar_timeRowActive").removeClass("U_MD_UI_calendar_timeRowActive"),!$("#U_MD_UI_calendar_timeText").length&&U.MD.UI.calendar.createChooseTime($("#calendar_timeChoose")[0])),U.selectEl("#calendar_time")[0].style.display="block",U.selectEl("#calendar_timeChoose")[0].style.display="none",U.selectEl("#U_MD_UI_calendar_timeText")[0].innerText="选择时间",U.selectEl("#U_MD_UI_calendar_timeText").removeClass("U_MD_UI_calendar_timeTextClick")):(U.selectEl("#calendar_time")[0].style.display="none",U.selectEl("#calendar_timeChoose")[0].style.display="none")},U.MD.UI.calendar.SetCallBack=function(e,t){if("function"!=typeof t||!"CheckedDay ".match(e+" "))return 0;U.MD.UI.calendar[e]=t},Namespace.register("U.MD.UI.city"),U.MD.UI.city=function(e){if(U.UF.EV.stopBubble(),e&&e.tagName){if(_cityBox=U.selectEl("#U_MD_UI_city_cityBox")[0]){var t=e.getBoundingClientRect();return _cityBox.style.top=t.top+t.height+document.documentElement.scrollTop+"px",_cityBox.style.left=t.left+document.documentElement.scrollLeft+"px",U.selectEl(_cityBox).removeClass("U_MD_UI_city_hidden"),void(U.MD.UI.city.Attr.inputNode=e)}var i=U.MD.UI.city;i.create(e),i.Attr={inputNode:e},i.init()}},U.MD.UI.city.Attr={},U.MD.UI.city.usedCity=null,U.MD.UI.city.province=null,U.MD.UI.city.city={},U.MD.UI.city.area={},U.MD.UI.city.htmlTemplate=' <ul class="U_MD_UI_city_menuBox"> <!--控件的头部-->\n\n <!--U_MD_UI_city_menuChecked 选中菜单的按钮时所用的"className":红色-->\n <!--U_MD_UI_city_filled 表示待填写class 为增删class占位置 防出错 以下都是-->\n <!--U_MD_UI_city_menuoChecked 选择城市后所添加的class 红色小圆点-->\n <li id="U_MD_UI_city_usedCityMenu" data-city-mark="U_MD_UI_city_usedCityCont" class="U_MD_UI_city_menuChecked" data-city-res="">\n <span>常用市</span>\n </li>\n\n <li id="U_MD_UI_city_provinceMenu" data-city-mark="U_MD_UI_city_provinceCont" class="U_MD_UI_city_filled" data-city-res="">\n <span>省/直辖市</span>\n </li>\n\n <li id="U_MD_UI_city_cityMenu" data-city-mark="U_MD_UI_city_cityCont" class="U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res="">\n <span>请选择</span>\n </li>\n\n <li id="U_MD_UI_city_areaMenu" data-city-mark="U_MD_UI_city_areaCont" class="U_MD_UI_city_filled U_MD_UI_city_hidden" data-city-res="">\n <span>请选择</span>\n </li>\n </ul>\n\n\n <!--以下为主要内容区域-->\n <!-- ----------------------------------------------------------------------------- -->\n <ul id="U_MD_UI_city_usedCityCont" class="U_MD_UI_city_filled U_MD_UI_city_Cont"> <!-- <!–常用城市盒子节点–> -->\n <li id="U_MD_UI_city_liTemplate"><span>光明新区</span></li>\n <!-- U_MD_UI_city_liTemplate 为内容区域的li的模板 可无视 已display为none -->\n <!--U_MD_UI_city_Cont_ochecked 选中城市的按钮时所用的"className":红色-->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_provinceCont"> <!-- <!–存放省的盒子节点–> -->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_cityCont"> <!-- <!–存放市的盒子节点–> -->\n </ul>\n\n\n <ul class="U_MD_UI_city_filled U_MD_UI_city_Cont U_MD_UI_city_hidden" id="U_MD_UI_city_areaCont"> <!-- <!–存放地区的盒子节点–> -->\n </ul>',U.MD.UI.city.create=function(e){var t=$$("div",{id:"U_MD_UI_city_cityBox",className:"U_MD_UI_city_cityBox U_MD_UI_city_hidden"},document.body);t.innerHTML+=U.MD.UI.city.htmlTemplate;var i=e.getBoundingClientRect();t.style.top=i.top+i.height+document.documentElement.scrollTop+"px",t.style.left=i.left+document.documentElement.scrollLeft+"px",U.MD.UI.city.Attr.inputNode=e,U.selectEl(t).removeClass("U_MD_UI_city_hidden")},U.MD.UI.city.init=function(){var e=U.MD.UI.city;e.getUsedCity(),e.inputEvent(),e.menuEvent()},U.MD.UI.city.inputEvent=function(){var e=U.MD.UI.city,t=(e.Attr,"U_MD_UI_city_hidden"),i=U.selectEl("#U_MD_UI_city_cityBox")[0];U.selectEl(document).bind("click",function(){U.selectEl(i).addClass(t)},!1),U.selectEl(i).bind("click",function(e){U.UF.EV.stopBubble(e)}),U.selectEl("#U_MD_UI_city_areaCont")[0].onclick=function(){$("#U_MD_UI_city_areaCont")[0]&&(U.selectEl("#U_MD_UI_city_cityBox")[0].style.display="none")}},U.MD.UI.city.menuEvent=function(){for(var e=U.MD.UI.city,t=(e.Attr,U.selectEl("[data-city-mark]")),i="U_MD_UI_city_hidden",n=0,l=t.length;n<l;n++){var a=t[n];U.selectEl(a).bind("click",function(){e.menuClassControl(this,"U_MD_UI_city_menuChecked","data-city-mark",i)}),"U_MD_UI_city_provinceMenu"===a.id&&U.selectEl(a).bind("click",function(){e.getProvince()})}},U.MD.UI.city.getUsedCity=function(){var e=U.MD.UI.city,t=(e.Attr,U.selectEl("#U_MD_UI_city_usedCityMenu")[0]),i=U.selectEl("#U_MD_UI_city_liTemplate")[0],n=U.selectEl("#U_MD_UI_city_usedCityCont")[0];e.usedCity||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_UsedCity"],function(l){e.usedCity=l.value,e.allDataPrint(t,e.usedCity,i,"usedCity",n)})},U.MD.UI.city.getProvince=function(){var e=U.MD.UI.city,t=(e.Attr,U.selectEl("#U_MD_UI_city_provinceMenu")[0]),i=U.selectEl("#U_MD_UI_city_liTemplate")[0],n=U.selectEl("#U_MD_UI_city_provinceCont")[0];e.province||U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_Province"],function(l){e.province=l.value,e.allDataPrint(t,e.province,i,"province",n)})},U.MD.UI.city.getCity=function(e){var t=U.MD.UI.city,i=(t.Attr,U.selectEl("#U_MD_UI_city_cityMenu")[0]),n=U.selectEl("#U_MD_UI_city_liTemplate")[0],l=U.selectEl("#U_MD_UI_city_cityCont")[0],a="U_MD_UI_city_hidden";t.city[e]?(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",a),t.allDataPrint(i,t.city[e],n,"city",l)):(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",a),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",e,1],function(a){t.city[e]=a.value,t.allDataPrint(i,t.city[e],n,"city",l)}))},U.MD.UI.city.getarea=function(e){var t=U.MD.UI.city,i=(t.Attr,U.selectEl("#U_MD_UI_city_areaMenu")[0]),n="U_MD_UI_city_hidden",l=U.selectEl("#U_MD_UI_city_liTemplate")[0],a=U.selectEl("#U_MD_UI_city_areaCont")[0];t.area[e]?(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",n),t.allDataPrint(i,t.area[e],l,"area",a)):(t.menuClassControl(i,"U_MD_UI_city_menuChecked","data-city-mark",n),U.A.Request("http://cd.1473.cn/php",["db.1473.cn","UseStudio_Controls","City_PidFind",e,2],function(n){t.area[e]=n.value,t.allDataPrint(i,t.area[e],l,"area",a)}))},U.MD.UI.city.allDataPrint=function(e,t,i,n,l){for(var a=U.MD.UI.city,c=(a.Attr,U.selectEl("#U_MD_UI_city_usedCityMenu")[0]),r=U.selectEl("#U_MD_UI_city_provinceMenu")[0],s=t.length,o=e,d=0;d<s;d++){var u=a.dataPrint(t[d],i,n,l);u.onclick=function(){var e=U.selectEl(this).attr("data-city-type"),t=U.selectEl(this).attr("data-city-code");switch(U.selectEl(o.children[0]).addClass("U_MD_UI_city_menuoChecked"),o.children[0].innerText=this.innerText,U.selectEl(o).attr("data-city-res",this.innerText),a.contClassControl(this,"U_MD_UI_city_Cont_ochecked"),e){case"province":a.getCity(t),a.initAllClass(c);break;case"usedCity":"重庆"===this.innerText?a.getCity(t):a.getarea(t),a.initAllClass(r);break;case"city":a.getarea(t);break;case"area":a.getRes("data-city-res")}}}},U.MD.UI.city.dataPrint=function(e,t,i,n){var l=U.MD.UI.city,a=l.clone(t),c=a.children[0],r=e.short_name,s=e.name;return a.id=i+e.id,c.innerText=r,"北京"!==r&&"上海"!==r&&"天津"!==r&&"重庆"!==r||"U_MD_UI_city_cityCont"===n.id&&(c.innerText=s),"U_MD_UI_city_areaCont"===n.id&&(c.innerText=s),c.id="span_"+i+e.id,U.selectEl(c).attr("data-city-code",e.id),U.selectEl(c).attr("data-city-type",i),n.appendChild(a),c},U.MD.UI.city.menuClassControl=function(e,t,i,n){var l=U.MD.UI.city,a=(l.Attr,U.selectEl("#U_MD_UI_city_cityMenu")[0]),c=U.selectEl("#U_MD_UI_city_areaMenu")[0],r=U.selectEl("#U_MD_UI_city_cityCont")[0],s=U.selectEl("#U_MD_UI_city_areaCont")[0],o=U.selectEl("."+t)[0];o&&U.selectEl(o).removeClass(t),U.selectEl(e).addClass(t);var d=U.selectEl("#"+U.selectEl(o).attr(i))[0],u=U.selectEl("#"+U.selectEl(e).attr(i))[0];U.selectEl(d).addClass(n),U.selectEl(u).removeClass(n);var _=e.id;switch(_){case"U_MD_UI_city_usedCityMenu":case"U_MD_UI_city_provinceMenu":U.selectEl(a).addClass(n),U.selectEl(c).addClass(n),U.selectEl(r).addClass(n),U.selectEl(s).addClass(n),a.children[0].innerText="请选择",c.children[0].innerText="请选择",r.innerHTML="",s.innerHTML="",U.selectEl(a).attr("data-city-res",""),U.selectEl(c).attr("data-city-res","");break;case"U_MD_UI_city_cityMenu":U.selectEl(e).removeClass(n),U.selectEl(c).addClass(n),U.selectEl(s).addClass(n),c.children[0].innerText="请选择",s.innerHTML="";break;case"U_MD_UI_city_areaMenu":U.selectEl(e).removeClass(n)}},U.MD.UI.city.contClassControl=function(e,t){U.MD.UI.city;for(var i=U.selectEl("."+t),n=U.selectEl(e).attr("data-city-type"),l=0,a=i.length;l<a;l++){var c=U.selectEl(i[l]).attr("data-city-type");i[l]&&c===n&&U.selectEl(i[l]).removeClass(t)}U.selectEl(e).addClass(t)},U.MD.UI.city.initAllClass=function(e){U.MD.UI.city;e.className="U_MD_UI_city_filled",e.children[0].className="",U.selectEl(e).attr("data-city-res","");for(var t=U.selectEl(".U_MD_UI_city_Cont_ochecked"),i=0;i<t.length;i++)U.selectEl(t[i]).removeClass("U_MD_UI_city_Cont_ochecked");"U_MD_UI_city_provinceMenu"===e.id&&(e.children[0].innerText="省/直辖市"),"U_MD_UI_city_usedCityMenu"===e.id&&(e.children[0].innerText="常用市")},U.MD.UI.city.getRes=function(e){for(var t=U.MD.UI.city,i=t.Attr,n=i.inputNode,l=U.selectEl("#U_MD_UI_city_cityBox")[0],a="U_MD_UI_city_hidden",c=U.selectEl("["+e+"]"),r=[],s=0,o=c.length;s<o;s++){var d=U.selectEl(c[s]).attr(e);d&&r.push(d)}n.value=r.join("-"),U.selectEl(l).addClass(a)},U.MD.UI.city.clone=function(e){for(var t=e.cloneNode(),i=e.children,n=0;n<i.length;n++){var l=i[n].cloneNode();t.appendChild(l)}return t},Namespace.register("U.MD.UI.ColorPicker"),U.MD.UI.colorPicker=U.MD.UI.ColorPicker=function(e,t){var i,n,l=$$("div",{style:{width:"180px",height:"140px",border:"1px solid #CDCDCD",backgroundColor:" #FFF",padding:"10px 10px 10px 5px",zIndex:1},className:"MD_ColorPicker"},e),a=["#ffffff","#ffccc9","#ffce93","#fffc9e","#ffffc7","#9aff99","#96fffb","#cdffff","#cbcefb","#cfcfcf","#fd6864","#fe996b","#fffe65","#fcff2f","#67fd9a","#38fff8","#68fdff","#9698ed","#c0c0c0","#fe0000","#f8a102","#ffcc67","#f8ff00","#34ff34","#68cbd0","#34cdf9","#6665cd","#9b9b9b","#cb0000","#f56b00","#ffcb2f","#ffc702","#32cb00","#00d2cb","#3166ff","#6434fc","#656565","#9a0000","#ce6301","#cd9934","#999903","#009901","#329a9d","#3531ff","#6200c9","#343434","#680100","#963400","#986536","#646809","#036400","#34696d","#00009b","#303498","#000000","#330001","#643403","#663234","#343300","#013300","#003532","#010066","#340096"];for(i=0;i<a.length;i++)n=$$("button",{style:{background:a[i],width:"15px",height:"15px",float:"left",margin:"5px 0 0 5px",border:" 1px solid transparent"}},l),n.onclick=function(e){l.style.display="none",U.UF.EV.stopBubble(e),t(this.style.background)};return U.selectEl(document).bind("click",function(){"none"!=l.style.display&&(l.style.display="none")}),U.UF.EV.stopBubble(),l},Namespace.register("U.MD.UI.Font"),Namespace.register("U.MD.UI.WordSize"),U.MD.UI.Font=function(){var e=$$("select",{style:{fontFamily:"宋体",fontSize:"16px"},className:"MD_fontFamily"});return $$("option",{value:"宋体",style:{fontFamily:"宋体"},innerHTML:"宋体"},e),$$("option",{value:"sans-serif",style:{fontFamily:"sans-serif"},innerHTML:"sans-serif"},e),$$("option",{value:"微软雅黑",style:{fontFamily:"微软雅黑"},innerHTML:"微软雅黑"},e),$$("option",{value:"楷体",style:{fontFamily:"楷体"},innerHTML:"楷体"},e),$$("option",{value:"黑体",style:{fontFamily:"黑体"},innerHTML:"黑体"},e),$$("option",{value:"隶书",style:{fontFamily:"隶书"},innerHTML:"隶书"},e),$$("option",{value:"andale mono",style:{fontFamily:"andale mono"},innerHTML:"andale mono"},e),$$("option",{value:"arial black",style:{fontFamily:"arial black"},innerHTML:"arial black"},e),e},U.MD.UI.WordSize=function(){var e=$$("select",{className:"MD_fontSize"});return $$("option",{value:"56px",style:{fontSize:"14px"},innerHTML:"初号"},e),$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"小初"},e),$$("option",{value:"34.7px",style:{fontSize:"14px"},innerHTML:"一号"},e),$$("option",{value:"32px",style:{fontSize:"14px"},innerHTML:"小一"},e),$$("option",{value:"29.3px",style:{fontSize:"14px"},innerHTML:"二号"},e),$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"小二"},e),$$("option",{value:"21.3px",style:{fontSize:"14px"},innerHTML:"三号"},e),$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"小三"},e),$$("option",{value:"18.7px",style:{fontSize:"14px"},innerHTML:"四号"},e),$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"小四"},e),$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"五号"},e),$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"小五"},e),$$("option",{value:"10px",style:{fontSize:"14px"},innerHTML:"10"},e),$$("option",{value:"12px",style:{fontSize:"14px"},innerHTML:"12"},e),$$("option",{value:"14px",style:{fontSize:"14px"},innerHTML:"14"},e),$$("option",{value:"16px",style:{fontSize:"14px"},innerHTML:"16"},e),$$("option",{value:"18px",style:{fontSize:"14px"},innerHTML:"18"},e),$$("option",{value:"20px",style:{fontSize:"14px"},innerHTML:"20"},e),$$("option",{value:"22px",style:{fontSize:"14px"},innerHTML:"22"},e),$$("option",{value:"24px",style:{fontSize:"14px"},innerHTML:"24"},e),$$("option",{value:"26px",style:{fontSize:"14px"},innerHTML:"26"},e),$$("option",{value:"28px",style:{fontSize:"14px"},innerHTML:"28"},e),$$("option",{value:"36px",style:{fontSize:"14px"},innerHTML:"36"},e),$$("option",{value:"42px",style:{fontSize:"14px"},innerHTML:"42"},e),$$("option",{value:"48px",style:{fontSize:"14px"},innerHTML:"48"},e),$$("option",{value:"72px",style:{fontSize:"14px"},innerHTML:"72"},e),e},Namespace.register("U.UF.UI"),U.UF.UI.Confirm=U.UF.UI.confirm=function(e,t,i){var n=$$("div",{style:{cssText:"width: 100%; background: rgb(255,255,255);overflow:hidden; "}}),l=$$("div",{style:{cssText:"width: 100%;"}},n);U.UF.C.isElement(e)?U.selectEl(l).append(e):(l.style.cssText="text-align: center; margin: 10px;",l.innerHTML=e||"内容");var a=$$("div",{style:{cssText:"height:28px; margin:14px 0;"}},n);$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); float: right; margin-right:29px; "},innerHTML:"确定",onclick:function(){var e=!0;U.UF.C.isFunction(t)&&(e=t()),!1!==e&&U.UF.F.closeWindow(c.form)}},a),$$("div",{style:{cssText:"text-align: center; color: rgb(255,255,255); width: 92px; line-height:28px; background: rgb(48,126,208); background: rgb(170,170,170); float: right; margin-right:21px;margin-left:29px;"},innerHTML:"取消",onclick:function(){U.UF.C.isFunction(i)&&i(),U.UF.F.closeWindow(c.form)}},a);var c=new U.UF.UI.form("提示",n,{style:{cssText:"font-size: 14px; background: rgb(255,255,255); width: 310px; position: absolute; box-shadow: 0 0 10px 3px rgb(0,0,0); "}},{istop:!0,isenlarge:!1,isstretching:!1,isnarrow:!1},{style:{cssText:" background: rgb(59,88,120); padding: 5px; color: rgb(255,255,255); "}});return c},U.UF.UI.Dialog=U.UF.UI.Dialog=function(e,t){var i=$$("div",{style:{cssText:"width: 100%; background: #fff; overflow:hidden; "}}),n=$$("div",{style:{cssText:"text-align: center; margin: 30px 20px 30px 20px; "}},i);U.UF.C.isElement(e)?U.selectEl(n).append(e):n.innerHTML=e||"内容";var l=$$("div",{style:{cssText:"height:45px;"}},i),a=new U.UF.UI.form("提示框",i,{style:{cssText:"font-size: 14px; width: 300px; background:#fff; position: absolute; top: 100px; left: 40%; box-shadow: 0 0 10px 3px black; "}},null,{style:{cssText:"background: #3b5878; padding: 10px; color:#fff;"}});$$("div",{style:{cssText:"text-align: center; color: #fff; width: 30%; padding: 5px; background: #307ed0; float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.C.isFunction(t)&&t(),U.UF.F.closeWindow(a.form)}},l)},U.UF.UI.alertClick=function(e,t){var i=$$("div",{class:"USBalert_text",style:{width:"100%"}});U.UF.C.isElement(e)?U.selectEl(i).append(e):$$("div",{style:{cssText:"text-align:center;padding:10px; margin:10px auto; word-break:break-word;"},innerHTML:e||"内容"},i);var n=$$("div",{class:"USBalert_onclicks",style:{height:"43px"}
- },i),l=new U.UF.UI.form("提示框",i,{style:{cssText:"font-size: 16px; width:320px; background: rgb(255,255,255);box-shadow: 0 0 10px 3px rgb(0,0,0); "}},{isnarrow:!1,isenlarge:!1,isstretching:!1},{style:{cssText:"background: rgb(59,88,120); padding: 10px; color: rgb(255,255,255);"}});$$("div",{style:{cssText:"text-align: center; color: #fff; width: 30%;max-width:150px; padding: 5px; background: #307ed0; float: right; margin: 0 12px 12px 0;"},innerHTML:"确定",onclick:function(){U.UF.F.closeWindow(l.form)}},n)},U.Alert=U.alert=function(e,t){!t&&(t=3e3);var i=$$("div",{style:{cssText:"padding: 12px 25px 12px 25px;font-size: 16px;max-width:300px;min-width:100px;color: rgba(255,255,255,1);background: rgba(0,0,0,0.75);border-radius: 10px;position: absolute;top:20%;left:0px;right:0px;margin:0px auto;text-align:center; word-break: break-word; "},innerHTML:e},document.body);U.UF.F.topWindow(i),setTimeout(function(){i.parentNode.removeChild(i)},t)},Namespace.register("U.MD.UI.email"),U.MD.UI.email=function(){},Namespace.register("U.MD.UI.face"),U.MD.UI.face=function(e,t){var i,n,l;if($("#U_MD_UI_face")[0])"none"==$("#U_MD_UI_face")[0].style.display?U.selectEl("#U_MD_UI_face")[0].style.display="block":U.selectEl("#U_MD_UI_face")[0].style.display="none";else{var a=$$("div",{style:{position:"relative"}},U.selectEl(e)[0]);for(n=$$("div",{id:"U_MD_UI_face",className:"U_MD_UI_face",onmousedown:U.UF.EV.stopBubble},a),l=$$("div",{className:"U_MD_UI_face_H"},n),i=0;i<=104;i++)$$("button",{className:"U_MD_UI_face_C",style:{opacity:"0"},onclick:U.UF.C.closure(function(e){U.UF.EV.stopBubble(),U.MD.UI.face.printEmoticon(n,e,U.UF.E.getRangeAt(),t)},[i])},l);U.selectEl("body").unbind("click",U.MD.UI.face.externalClick),U.selectEl("body").bind("click",U.MD.UI.face.externalClick)}t.focus()},U.MD.UI.face.externalClick=function(e){"BUTTON"!=window.event.srcElement.tagName&&U.selectEl("#U_MD_UI_face")[0]&&(U.selectEl("#U_MD_UI_face")[0].style.display="none")},U.MD.UI.face.printEmoticon=function(e,t,i,n){var l="/img/ChatingFaceGif/[face]("+t+").gif";if(i){var a='<img contentEditable="true" src="'+l+'">';U.UF.E.addRange(a,null,!0)}else $$("img",{onerror:U.MD.C.imgError,src:l,contentEditable:"true"},U.selectEl(n)[0]);U.selectEl(e)[0].style.display="none"},Namespace.register("U.UF.UI"),U.UF.UI.form=function(e,t,i,n,l,a,c,r){var s=this;if(i&&U.UF.UI.form.allForm[i.id])s=U.UF.UI.form.allForm[i.id];else this.id=i&&i.id?i.id:Guid.newGuid(),U.UF.UI.form.allForm[this.id]=this;return s.ififrame=U.UF.C.isElement(s.content)&&("IFRAME"==s.content.tagName&&s.content.src==t.src||$("iframe",s.content)[0]&&$("iframe",s.content)[0].src==$("iframe",t)[0].src),s.form,s.header,s.middle,s.title=e,s.content=s.ififrame?s.content:t,s.formattr=i,s.headattr=l,s.contentattr=a,s.headbottomattr=c,null==n&&(n={}),s.istop=null,null!=n.istop&&(s.istop=n.istop),s.isdrag=!0,null!=n.isdrag&&(s.isdrag=n.isdrag),s.isstretching=!0,null!=n.isstretching&&(s.isstretching=n.isstretching),s.isenlarge=!0,null!=n.isenlarge&&(s.isenlarge=n.isenlarge),s.isnarrow=!0,s.narrowcallback=n.narrowcallback,null!=n.isnarrow&&(s.isnarrow=n.isnarrow),s.isclose=!0,s.closecallback=n.closecallback,null!=n.isclose&&(s.isclose=n.isclose),s.parentel=r||document.body,s.create(),s},U.UF.UI.form.allForm={},U.UF.UI.form.prototype={create:function(){var e,t,i,n,l,a,c,r,s,o,d=this.formattr||{},u=this.headattr||{},_=this.contentattr||{},p=U.UF.UI.form.allForm[d.id]?U.UF.UI.form.allForm[d.id].form:null;if(this.ififrame)I=p;else{d.style?(d.style.cssText=d.style.cssText||"",d.style.cssText="width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz- -webkit- border-radius:5px;"+d.style.cssText):d.style={cssText:"width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz- -webkit- border-radius:5px;"},d.close=U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form)}),d.usform="true",d.id=d.id||"",d.style=d.style||{},d.onresize?(t=d.onresize,o=d.onmousedown,d.onresize=U.UF.C.apply(this,function(){this.size(),t&&t()}),d.onmousedown=U.UF.C.apply(this,function(){!1!==this.istop&&this.top(),o&&o()})):!1!==d.onresize&&(d.onresize=U.UF.C.apply(this,function(){this.size()}));var I=$$("div",this.formattr);if(!0===this.istop?(I.style.zIndex="9999",I.__top__="false"):!1===this.istop&&(I.__top__="false"),this.form=I,!1!==this.title&&(u.style?(u.style.cssText=u.style.cssText||"",u.style.cssText="text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 36px; background-color: rgb(48 48 48); overflow: hidden; color: White; font-size: 14px; overflow: hidden; "+u.style.cssText):u.style={cssText:"text-indent: 10px; color: White; line-height: inherit; font-size: 14px; height: 30px; line-height: 36px; background-color: rgb(48 48 48); overflow: hidden; color: White; font-size: 14px; overflow: hidden; "},this.isdrag&&(u.onmousedown=function(){U.UF.F.drag(I)}),i=$$("div",u,I),U.UF.C.isString(this.title)?i.innerHTML=this.title:U.UF.C.isElement(this.title)&&i.appendChild(this.title),this.header=i),n=$$("div",{style:{cssText:"width: 100%; position: relative;"}},I),_.usbody="true",_.style?(_.style.cssText=_.style.cssText||"",_.style.cssText="text-align: left; overflow: hidden;"+_.style.cssText):_.style={cssText:"text-align: left; "},l=$$("div",_,n),U.UF.C.isString(this.content)?l.innerHTML=this.content:U.UF.C.isElement(this.content)&&l.appendChild(this.content),this.middle=l,!1===this.title&&this.isdrag&&(n.onmousedown=function(){U.UF.F.drag(I)}),!1!==this.isstretching)for(e in a=$$("div",{style:{cssText:"display: block;"}},I),c={top:"cursor: n-resize; left: 0px; top: 0px; width: 100%; height: 5px;",rightTop:"cursor: ne-resize; right: -2px; top: -2px; width: 12px; height: 12px;",leftTop:"cursor: nw-resize; top: 0px; left: 0px; width: 12px; height: 12px;",left:"cursor: w-resize; left: 0px; top: 0px; width: 5px; height: 100%;",right:"cursor: e-resize; right: 0px; top: 0px; width: 5px; height: 100%;",bottom:"cursor: s-resize; left: 0px; bottom: 0px; width: 100%; height: 5px;",leftBottom:"cursor: sw-resize; left: -2px; bottom: -2px; width: 12px; height: 12px;",rightBottom:"cursor: se-resize; right: -2px; bottom: -2px; width: 12px; height: 12px;"},c)$$("div",{style:{cssText:"position: absolute; overflow: hidden; display: block; z-index: 10;"+c[e]},onmousedown:U.UF.C.closure(function(e,t){U.UF.F.stretching(I,t,U.UF.C.apply(e,e.size))},[this,e])},a);!1!==this.title&&(r=$$("div",{style:{cssText:"position: absolute; top: 5px; right: 0px; width: 80px; display: table-cell; vertical-align: middle;"}},I)),!1!==this.isclose&&$$("div",{style:{cssText:"background-image:url(../../../img/close.png); _background-image:url(/img/close.png);width: 14px; height: 14px; background-repeat: no-repeat; background-size: 100%; float: right; margin-right: 5px;margin-top:6px; cursor: pointer;"},title:"点击关闭",onmousedown:U.UF.EV.stopBubble,onclick:U.UF.C.apply(this,function(){U.UF.F.closeWindow(this.form);try{U.MD.D.T.taskbar.close&&(U.MD.D.T.taskbar.close({forms:I}),U.MD.N.urlWrite("","智慧课堂平台"))}catch(e){}U.UF.C.isFunction(this.closecallback)&&this.closecallback()})},r),!1!==this.isenlarge&&(s=$$("div",{style:{cssText:"background-image:url(../../../img/max.png); _background-image:url(/img/max.png); background-size: 100%; float: right; margin-right: 10px; width: 17px; height: 17px; cursor: pointer;margin-top: 4px;"},title:"最大化",onmousedown:U.UF.EV.stopBubble,onclick:function(){U.UF.F.windowZooming(I)}},r),i&&(i.ondblclick=U.UF.C.apply(i,function(){U.UF.EV.stopBubble(event),(event.srcElement==this||U.UF.EL.isChild(this,event.srcElement))&&s.onclick()}))),!1!==this.isnarrow&&$$("div",{style:{cssText:"background-image:url(../../../img/min.png); _background-image:url(/img/min.png);background-size: 100%; float: right; margin-right: 10px; margin-top: 3px; width: 20px; height: 20px; cursor: pointer;background-repeat: no-repeat;"},title:"最小化",onmousedown:U.UF.EV.stopBubble,onclick:U.UF.C.apply(this,function(){U.UF.F.windowMinimize(I),U.UF.C.isFunction(this.narrowcallback)&&this.narrowcallback()})},r),p&&null!=p.parentNode?p.parentNode.replaceChild(I,p):this.parentel.appendChild(I)}""==I.style.top&&""==I.style.left&&""==I.style.right&&""==I.style.bottom?U.UF.F.windowTopCenter(I):U.UF.F.topWindow(I),this.size()},top:function(){U.UF.F.topWindow(this.form)},size:function(){this.header&&this.header.clientHeight,this.header?this.middle.style.height=this.form.clientHeight-this.header.clientHeight+"px":this.middle.style.height=this.form.clientHeight+"px"}},U.UF.UI.form.windowResize=function(){var e,t,i,n,l,a=US.width,c=US.height,r=U.UF.UI.form.allForm;for(e in r)l=r[e].form,"none"!=$(l).css("display")&&(t={},i=U.selectEl(l).css("width"),n=U.selectEl(l).css("height"),i=i.indexOf("%")>-1?i.toInt()/100:l.offsetWidth/a,n=n.indexOf("%")>-1?n.toInt()/100:l.offsetWidth/c,""!=l.style.right&&"auto"!=l.style.right||(t.left=l.offsetLeft+(document.body.offsetWidth-a)*((1-i)/2)+"px"),""!=l.style.bottom&&"auto"!=l.style.bottom||(t.top=l.offsetTop+(document.body.offsetHeight-c)*((1-n)/2)+"px"),U.selectEl(l).addAttrArray({style:t}))},U.UF.UI.form.closeWindows=function(){var e;for(e in U.UF.UI.form.allForm)U.UF.UI.form.allForm[e].isclose&&U.UF.UI.form.allForm[e].form.close()},Namespace.register("U.MD.UI.music"),U.MD.UI.music=function(e,t,i,n){var l,a=U.MD.UI.music;(l=U.selectEl("#U_MD_UI_music_musicBox")[0])&&l.remove(),a.create(n),a.Attr={musicList:e,musicIndex:t,autoplay:i,currentTime:null,endTime:null},a.init()},U.MD.UI.music.Attr=null,U.MD.UI.music.htmlTemplate=' <div class="U_MD_UI_music_leftCont">\n <div class="U_MD_UI_music_CoverBox">\n <img src="/img/Controls/Audio/pc/电脑图标.png" alt="" id="U_MD_UI_music_Cover">\n </div> <!-- 音乐封面图片 -->\n </div>\n <div class="U_MD_UI_music_rightCont">\n <div class="U_MD_UI_music_Name" id="U_MD_UI_music_Name"></div> <!-- 音乐名字 -->\n <div class="U_MD_UI_music_leftBtn" id="U_MD_UI_music_leftBtn"></div> <!-- 左按钮 -->\n <div class="U_MD_UI_music_pauseBtn U_MD_UI_music_playBtn" id="U_MD_UI_music_playBtn"></div> <!-- 播放/暂停 按钮 -->\n <div class="U_MD_UI_music_rightBtn" id="U_MD_UI_music_rightBtn"></div> <!-- 右按钮 -->\n <div class="U_MD_UI_music_soundOpen" id="U_MD_UI_music_soundSwitch"></div> <!-- 声音开关按钮 -->\n <div class="U_MD_UI_music_soundBox" id="U_MD_UI_music_soundBox"> <!-- 声音条盒子节点 -->\n <div class="U_MD_UI_music_soundBar" id="U_MD_UI_music_soundBar" style="width: 31px;"></div> <!-- 声音条 -->\n <div class="U_MD_UI_music_soundBall" id="U_MD_UI_music_soundBall" style="left: 31px;"></div> <!-- 声音球 -->\n </div>\n <div class="U_MD_UI_music_listBtn"></div> <!-- 右上角的列表按钮 -->\n <div class="U_MD_UI_music_shrinkBtn" id="U_MD_UI_music_shrinkBtn"></div> <!-- 右上角的缩小按钮 -->\n <div class="U_MD_UI_music_closeBtn" id="U_MD_UI_music_closeBtn"></div> <!-- 右上角的关闭按钮 -->\n </div>\n <div class="U_MD_UI_music_progressBox" id="U_MD_UI_music_progressBox"> <!-- 时间条盒子节点 -->\n <div class="U_MD_UI_music_progressBar" id="U_MD_UI_music_progressBar" style="width: 0.64px;"></div> <!-- 时间条 -->\n <div class="U_MD_UI_music_progressBall" id="U_MD_UI_music_progressBall" style="left: 0.64px;"></div> <!-- 时间球 -->\n </div>\n <audio id="U_MD_UI_music_audio" autoplay="" src=""></audio>',U.MD.UI.music.create=function(e){e||document.body;var t={style:{border:"none"},id:"U_MD_UI_music_musicBox",className:"U_MD_UI_music_musicBox"},i={isclose:!1,isstretching:!1,isenlarge:!1,isnarrow:!1},n={style:{height:"13px","background-color":"#cc5b5b"}};U.MD.UI.music.player=new U.UF.UI.form(!1,U.MD.UI.music.htmlTemplate,t,i,n),U.selectEl("#U_MD_UI_music_musicBox")[0].style.overflow=""},U.MD.UI.music.init=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=t.musicList,l=t.musicIndex;i[0].src=n[l].src;U.selectEl("#U_MD_UI_music_playBtn");var a=U.selectEl("#U_MD_UI_music_Name");U.selectEl("#U_MD_UI_music_Cover");t.autoplay||i[0].pause(),e.openBtnEvent(),e.shrinkBtnEvent(),e.soundControl(),e.playEvent(),e.switchMusic(),e.progressControl(),i.bind("durationchange",function(){t.endTime=this.duration,l=t.musicIndex,a[0].innerText=n[l].title}),i.bind("ended",function(){l=t.musicIndex;var e=n.length-1;l===e?(t.musicIndex=0,l=t.musicIndex,i[0].src=n[l].src):(t.musicIndex++,l=t.musicIndex,i[0].src=n[l].src)})},U.MD.UI.music.openBtnEvent=function(){var e=U.MD.UI.music;U.selectEl("#U_MD_UI_music_closeBtn").bind("click",function(){var t=U.selectEl("#U_MD_UI_music_audio");t[0].paused||(U.selectEl("#U_MD_UI_music_playBtn").addClass("U_MD_UI_music_playBtn"),t[0].pause()),U.UF.F.closeWindow(e.player.form),U.selectEl("#U_MD_D_T_taskbar_music").remove()})},U.MD.UI.music.shrinkBtnEvent=function(){U.selectEl("#U_MD_UI_music_shrinkBtn").bind("click",function(){U.UF.F.windowMinimize(U.MD.UI.music.player.form)})},U.MD.UI.music.playEvent=function(){var e=U.MD.UI.music,t=(e.Attr,U.selectEl("#U_MD_UI_music_playBtn")),i=U.selectEl("#U_MD_UI_music_audio");t.bind("click",function(){i[0].paused?(t.removeClass("U_MD_UI_music_playBtn"),i[0].play()):(t.addClass("U_MD_UI_music_playBtn"),i[0].pause())})},U.MD.UI.music.switchMusic=function(){var e=U.MD.UI.music,t=e.Attr,i=U.selectEl("#U_MD_UI_music_audio"),n=U.selectEl("#U_MD_UI_music_rightBtn"),l=U.selectEl("#U_MD_UI_music_leftBtn"),a=t.musicList,c=t.musicIndex,r=a.length-1;n.bind("click",function(){c=t.musicIndex,c===r?(t.musicIndex=0,c=t.musicIndex,i[0].src=a[c].src):(t.musicIndex++,c=t.musicIndex,i[0].src=a[c].src)}),l.bind("click",function(){c=t.musicIndex,0===c?(t.musicIndex=r,c=t.musicIndex,i[0].src=a[c].src):(t.musicIndex--,c=t.musicIndex,i[0].src=a[c].src)})},U.MD.UI.music.soundControl=function(){var e=U.MD.UI.music,t=U.selectEl("#U_MD_UI_music_audio"),i=U.selectEl("#U_MD_UI_music_soundBox"),n=U.selectEl("#U_MD_UI_music_soundBall"),l=U.selectEl("#U_MD_UI_music_soundBar"),a=i[0].clientWidth,c=.5,r=U.selectEl("#U_MD_UI_music_soundSwitch");t[0].volume=c,n[0].style.left=a*c+"px",l[0].style.width=a*c+"px",r.bind("click",function(){if(e.toggleClass(this,"U_MD_UI_music_soundClose"),$(this).hasClass("U_MD_UI_music_soundClose"))this._volume=t[0].volume,this._soundBallX=parseFloat(n.css("left")),this._soundBarW=parseFloat(l.css("width")),n[0].style.left=0,l[0].style.width=0,t[0].volume=0;else{if(!this._volume)return;t[0].volume=this._volume,n[0].style.left=this._soundBallX+"px",l[0].style.width=this._soundBarW+"px"}}),i.bind("mousedown",function(i){var s=e.getOffsetLeft(this),U=s+a,o=i.pageX;o=Math.max(o,s),o=Math.min(o,U);var d=o-s;c=Math.round(100*parseFloat(d/a))/100,n[0].style.left=a*c+"px",l[0].style.width=a*c+"px",t[0].volume=c,t[0].volume<=0?r.addClass("U_MD_UI_music_soundClose"):r.removeClass("U_MD_UI_music_soundClose")}),n.bind("mousedown",function(e){U.UF.EV.stopBubble(e);var i=e.pageX,s=function(e){U.UF.EV.stopDefault(e);var s=e.pageX,o=s-i+d;o=Math.max(0,o),o=Math.min(a,o),n[0].style.left=o+"px",l[0].style.width=o+"px",c=Math.round(100*parseFloat(o/a))/100,t[0].volume=c,t[0].volume<=0?r.addClass("U_MD_UI_music_soundClose"):r.removeClass("U_MD_UI_music_soundClose")},o=function(){U.selectEl(document).unbind("mousemove",s),U.selectEl(document).unbind("mouseup",o)},d=parseFloat(n.css("left"));U.selectEl(document).bind("mousemove",s),U.selectEl(document).bind("mouseup",o)})},U.MD.UI.music.progressControl=function(){var e,t=U.MD.UI.music,i=t.Attr,n=U.selectEl("#U_MD_UI_music_audio"),l=U.selectEl("#U_MD_UI_music_progressBox"),a=U.selectEl("#U_MD_UI_music_progressBall"),c=U.selectEl("#U_MD_UI_music_progressBar"),r=U.selectEl("#U_MD_UI_music_playBtn"),s=l[0].clientWidth,o=!0;n.bind("timeupdate",function(){if(this.paused?r.addClass("U_MD_UI_music_playBtn"):r.removeClass("U_MD_UI_music_playBtn"),o){e=this.currentTime;var t=Math.round(1e4*parseFloat(e/i.endTime))/1e4;a[0].style.left=s*t+"px",c[0].style.width=s*t+"px"}}),l.bind("mousedown",function(e){var l=t.getOffsetLeft(this),r=l+s,U=e.pageX;U=Math.max(U,l),U=Math.min(U,r);var o=U-l;_speed=Math.round(1e4*parseFloat(o/s))/1e4,a[0].style.left=s*_speed+"px",c[0].style.width=s*_speed+"px",n[0].currentTime=i.endTime*_speed}),a.bind("mousedown",function(t){o=!1,U.UF.EV.stopBubble(t);var l=t.pageX,r=function(t){U.UF.EV.stopDefault(t);var n=t.pageX,r=n-l+u;r=Math.max(0,r),r=Math.min(s,r),a[0].style.left=r+"px",c[0].style.width=r+"px",_speed=Math.round(1e4*parseFloat(r/s))/1e4,a[0].style.left=s*_speed+"px",c[0].style.width=s*_speed+"px",e=i.endTime*_speed},d=function(){o=!0,n[0].currentTime=e,U.selectEl(document).unbind("mousemove",r),U.selectEl(document).unbind("mouseup",d)},u=parseFloat(a.css("left"));U.selectEl(document).bind("mousemove",r),U.selectEl(document).bind("mouseup",d)})},U.MD.UI.music.getOffsetLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.music.secondToDate=function(e){var t=Math.floor(e/60%60),i=Math.floor(e%60);return t<10&&(t="0"+t),i<10&&(i="0"+i),t+":"+i},U.MD.UI.music.toggleClass=function(e,t){$(e).hasClass(t)?U.selectEl(e).removeClass(t):U.selectEl(e).addClass(t)},Namespace.register("U.UF.P"),U.UF.P.apply=function(e,t,i){return function(){e.apply(i,t)}},U.UF.P.pagepId=0,U.UF.P.PPage=U.UF.P.page=function(e,t,i,n,l){this.PageNum=0,this.Index=0,this.Pageall=0,this.init(e,t,i,n,l)},U.UF.P.page.prototype={init:function(e,t,i,n,l){this.PageNum=n,this.Index=n-1;var a=U.selectEl(e)[0],c=Math.ceil(t/i);if(this.Pageall=c,a.getElementsByClassName("U_MD_F_Y")[0])return!1;U.UF.P.pagepId++;var r,s=$$("div",{className:"U_MD_F_Y"},a),o=$$("div",{className:"U_MD_F_YL"},s),d=$$("div",{className:"U_MD_F_YLO U_MD_F_Y_Button",innerHTML:"首页",title:"首页",pid:U.UF.P.pagepId+"1"},o),u=$$("div",{className:"U_MD_F_YLT U_MD_F_Y_Button",title:"上一页",pid:U.UF.P.pagepId+"3"},o),_=$$("div",{className:"U_MD_F_YN"},o),p=Math.min(c,Math.max(n+5,10));for(r=Math.max(1,Math.min(n-5,c-10));r<=p;r++)(function(e,t){var i=$$("div",{innerHTML:e,pid:U.UF.P.pagepId+"5"},_);e==n&&(i.className="U_MD_F_Y_Button_Active"),i.onclick=U.UF.P.apply(function(e){U.UF.P.centerEle(t,i)},[r],t)})(r,this);var I=$$("div",{className:"U_MD_F_YLS U_MD_F_Y_Button",title:"下一页",pid:U.UF.P.pagepId+"4"},o),D=$$("div",{className:"U_MD_F_YLF U_MD_F_Y_Button",innerHTML:"尾页",title:"尾页",pid:U.UF.P.pagepId+"2"},o),M=$$("div",{className:"U_MD_F_YR"},s);$$("span",{innerHTML:"到"},M);var m=$$("input",{type:"text"},M);$$("span",{innerHTML:"页"},M);var f=$$("div",{className:"U_MD_F_YRZ",pid:U.UF.P.pagepId+"6",innerHTML:"确定"},M);if(this.PageNum<c+1)for(var h=U.selectEl(".list"+U.UF.P.pagepId),y=1;y<h.length+1;y++)this.PageNum==y&&U.selectEl(h[this.PageNum-1]).addClass("U_MD_F_Y_Button_Active");d.onclick=U.UF.P.apply(this.fPage,[d,c,l],this),u.onclick=U.UF.P.apply(this.fPage,[u,c,l],this),U.UF.P.centerEle=function(e,t){U.UF.P.apply(e.fPage,[t,c,l],e)()},I.onclick=U.UF.P.apply(this.fPage,[I,c,l],this),D.onclick=U.UF.P.apply(this.fPage,[D,c,l],this),f.onclick=U.UF.P.apply(this.fPage,[f,c,l,m],this),m.onkeyup=function(){"13"==event.keyCode&&f.onclick()}},fPage:function(e,t,i,n){if(_el1=e.pid,_el=_el1.charAt(_el1.length-1),5==_el?_list=U.selectEl($(e).Parent()).Parent().children[2].children:6==_el?_list=U.selectEl($(e).Parent()).Parent().children[0].children[2].children:_list=U.selectEl(e).Parent().children[2].children,U.selectEl(".U_MD_F_Y_Button_Active",U.selectEl(e).Parent(3)).removeClass("U_MD_F_Y_Button_Active"),1==_el){if(0==this.Index&&this.Index++,this.PageNum>1)return U.selectEl(_list[0]).addClass("U_MD_F_Y_Button_Active"),this.Index=0,this.PageNum=1,this.pagefun(this.PageNum,_list,e),void i(this.PageNum);U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(2==_el){if(this.PageNum<this.Pageall)return this.Index=t,this.PageNum=this.Pageall,this.pagefun(this.PageNum,_list,e),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(3==_el){if(this.Index>0)return U.selectEl(_list[--this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum--,this.pagefun(this.PageNum,_list,e),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else if(4==_el){if(this.PageNum<this.Pageall)return U.selectEl(_list[++this.Index]).addClass("U_MD_F_Y_Button_Active"),this.PageNum++,this.pagefun(this.PageNum,_list,e),void i(this.PageNum);U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")}else{if(5==_el)return this.pagefun(e,_list,e),void i(this.PageNum);if(6==_el){var l=new RegExp("^[0-9]*$");n.value.match(l)&&(n.value>=1&&n.value<=this.Pageall?(this.PageNum=n.value,this.pagefun(this.PageNum,_list,e),i(this.PageNum)):(U.alert("无效的输入"),U.selectEl(_list[this.Index]).addClass("U_MD_F_Y_Button_Active")))}}},pagefun:function(e,t,i){var n=t,l=parseInt(e.innerHTML)||e;U.selectEl(".U_MD_F_Y_Button_Active",i).removeClass("U_MD_F_Y_Button_Active");var a,c=Math.ceil(n.length/2),r=(this.Index,null),s=parseInt($(n)[$(n).length-1].innerText);if(l<c||l>this.Pageall-c&&l<=this.Pageall)if(l>this.Pageall-c&&l<=this.Pageall){var o=this;[].__proto__.forEach.apply($(n),[function(e,t,i){e.innerText=o.Pageall+1-i.length+t}])}else l<c&&[].__proto__.forEach.apply($(n),[function(e,t,i){e.innerText=t+1}]);else Math.ceil(s/l)<s-l||this.Index,r=l-parseInt(n[c-1].innerText),[].__proto__.forEach.apply($(n),[function(e,t,i){e.innerText=parseInt(e.innerText)+r}]),this.Index=c-1;[].__proto__.forEach.apply(n,[function(e,t,i){parseInt(e.innerHTML)==l&&(a=t)}]),this.Index=a,this.PageNum=l,U.selectEl(n[this.Index]).addClass("U_MD_F_Y_Button_Active")}},Namespace.register("U.MD.UI.picture"),U.MD.UI.picture=function(e,t){if($("#U_MD_UI_PictureForm")[0])return"none"===$("#U_MD_UI_PictureForm")[0].style.display&&(U.selectEl("#U_MD_UI_PictureForm")[0].style.display="block"),U.MD.UI.picture.DIVBOX={USERPICS:e,PICAREA:U.selectEl("#U_MD_UI_Picture_picArea")[0],PICBOX:U.selectEl("#U_MD_UI_Picture_picBox")[0],FA:U.selectEl("#U_MD_UI_Picture_fa")[0]},void U.MD.UI.picture.initloadPic(e,t);e.length&&(U.MD.UI.picture.create(e,t),U.MD.UI.picture.DIVBOX.PICAREA.onmousedown=function(e){U.MD.UI.picture.mDown(U.MD.UI.picture.DIVBOX.PICAREA,U.MD.UI.picture.DIVBOX.PICBOX,e)},U.MD.UI.picture.wheel())},U.MD.UI.picture.FA=[{src:"/img/pictureView/add.png",id:"U_MD_UI_Picture_add"},{src:"/img/pictureView/narrow.png",id:"U_MD_UI_Picture_narrow"},{src:"/img/pictureView/prev.png",id:"U_MD_UI_Picture_prev"},{src:"/img/pictureView/next.png",id:"U_MD_UI_Picture_next"},{src:"/img/pictureView/turnLeft.png",id:"U_MD_UI_Picture_turnLeft"},{src:"/img/pictureView/turnRight.png",id:"U_MD_UI_Picture_turnRight"}],U.MD.UI.picture.picnumber=0,U.MD.UI.picture.rotatenum=0,U.MD.UI.picture.originalSize=[],U.MD.UI.picture.pics=[],U.MD.UI.picture.scalingvalue=50,U.MD.UI.picture.focuspicsrc="",U.MD.UI.picture.focuspicsize="",U.MD.UI.picture.create=function(e,t){var i=$$("div",{style:{height:"100%",overflow:"hidden"},id:"U_MD_UI_Picture_bossBox"}),n=$$("div",{id:"U_MD_UI_Picture_picBox",className:"U_MD_UI_Picture_picBox"},i);$$("div",{id:"U_MD_UI_Picture_picArea",className:"U_MD_UI_Picture_picArea"},n);$$("div",{style:{height:"60px",width:"100%",position:"absolute",bottom:"0","background-color":"#ffffff","text-align":"center"},id:"U_MD_UI_Picture_fa"},i);new U.UF.UI.form("<span id='U_MD_UI_Picture_imgInfo'></span> - <span id='U_MD_UI_Picture_r'>100%</span>",i,{style:{width:document.documentElement.clientWidth/1.5+"px",height:document.documentElement.clientHeight/1.5+"px",position:"absolute"},id:"U_MD_UI_PictureForm"},{isdrag:!0,isstretching:!0,isenlarge:!0,isclose:!0,isnarrow:!0},{style:{padding:"10px","background-color":"#22508c"}}),n.style.height=n.clientHeight-60+"px",U.MD.UI.picture.DIVBOX={USERPICS:e,PICAREA:U.selectEl("#U_MD_UI_Picture_picArea")[0],PICBOX:U.selectEl("#U_MD_UI_Picture_picBox")[0],FA:U.selectEl("#U_MD_UI_Picture_fa")[0]};for(var l=$$("div",{style:{display:"inline-block","line-height":"40px","margin-top":"10px"}},U.MD.UI.picture.DIVBOX.FA),a=0;a<U.MD.UI.picture.FA.length;a++)$$("span",{style:{"background-image":"url("+U.MD.UI.picture.FA[a].src+")",width:"40px",height:"40px",display:"inline-block",margin:"0 15px"},id:U.MD.UI.picture.FA[a].id},l);U.MD.UI.picture.initloadPic(null,t),U.selectEl("#U_MD_UI_Picture_add")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)}),U.selectEl("#U_MD_UI_Picture_narrow")[0].onclick=U.UF.C.apply(this,function(){this.changeSize(-U.MD.UI.picture.scalingvalue,U.MD.UI.picture.rotatenum)}),U.selectEl("#U_MD_UI_Picture_prev")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(0)}),U.selectEl("#U_MD_UI_Picture_next")[0].onclick=U.UF.C.apply(this,function(){this.prevPic(1)}),U.selectEl("#U_MD_UI_Picture_turnLeft")[0].onclick=U.UF.C.apply(this,function(){this.turn(1)}),U.selectEl("#U_MD_UI_Picture_turnRight")[0].onclick=U.UF.C.apply(this,function(){this.turn(0)}),i.onresize=function(){n.style.height=i.clientHeight-60+"px"},n.onresize=function(){U.MD.UI.picture.checkHeight()}},U.MD.UI.picture.initloadPic=function(e,t){e?(U.MD.UI.picture.DIVBOX.PICAREA.innerHTML="",U.MD.UI.picture.DIVBOX.PICAREA.style=null,U.MD.UI.picture.picnumber=t||0,U.MD.UI.picture.rotatenum=0,U.MD.UI.picture.DIVBOX.USERPICS=e):U.MD.UI.picture.picnumber=t>=0?t:0,U.MD.UI.picture.createPic(),U.MD.UI.picture.pics=U.selectEl("#U_MD_UI_Picture_picArea > ul > li > img"),U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].onload=U.UF.C.apply(this,function(){this.originalSize=this.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]),this.checkHeight()})},U.MD.UI.picture.createPic=function(){for(var e=$$("ul",{id:"ul"},U.MD.UI.picture.DIVBOX.PICAREA),t=0;t<U.MD.UI.picture.DIVBOX.USERPICS.length;t++){var i=$$("li",{},e);"object"==typeof U.MD.UI.picture.DIVBOX.USERPICS[t]?t===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t].src},i),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[t].src,U.MD.UI.picture.DIVBOX.USERPICS[t].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[t].size)):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t].src,style:{display:"none"}},i):"string"==typeof U.MD.UI.picture.DIVBOX.USERPICS[t]&&(t===U.MD.UI.picture.picnumber?($$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t]},i),U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[t]):$$("img",{onerror:U.MD.C.imgError,src:U.MD.UI.picture.DIVBOX.USERPICS[t],style:{display:"none"}},i))}},U.MD.UI.picture.turn=function(e){e?(U.MD.UI.picture.rotatenum--,U.MD.UI.picture.rotatenum<0?U.MD.UI.picture.rotatenum=3:U.MD.UI.picture.rotatenum):(U.MD.UI.picture.rotatenum++,U.MD.UI.picture.rotatenum>3?U.MD.UI.picture.rotatenum=0:U.MD.UI.picture.rotatenum),U.MD.UI.picture.rotating()},U.MD.UI.picture.rotating=function(){var e="rotate("+90*U.MD.UI.picture.rotatenum+"deg)";U.MD.UI.picture.rotatenum%2!=0?(U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-20+"px",U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,e),U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+10+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px",("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&(U.MD.UI.picture.DIVBOX.PICAREA.style.top="10px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px")):(U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.compatibleRotate(U.MD.UI.picture.DIVBOX.PICAREA,e),U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150?"1290px":U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+150,U.MD.UI.picture.checkHeight()),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"},U.MD.UI.picture.compatibleRotate=function(e,t){e.style.webkitTransform=t,e.style.MozTransform=t,e.style.mturnsTransform=t,e.style.OTransform=t,e.style.transform=t,("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&(e.style.filter="progid:DXImageTransform.Microsoft.BasicImage(rotation="+Math.abs(U.MD.UI.picture.rotatenum)+")")},U.MD.UI.picture.prevPic=function(e){U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="none",e?(U.MD.UI.picture.picnumber++,U.MD.UI.picture.picnumber>U.MD.UI.picture.pics.length-1&&(U.MD.UI.picture.picnumber=0)):(U.MD.UI.picture.picnumber--,U.MD.UI.picture.picnumber<0&&(U.MD.UI.picture.picnumber=U.MD.UI.picture.pics.length-1)),U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size&&(U.MD.UI.picture.focuspicsize=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].size),U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src&&(U.MD.UI.picture.focuspicsrc=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].src),U.MD.UI.picture.pics[U.MD.UI.picture.picnumber].style.display="block",U.MD.UI.picture.originalSize=U.MD.UI.picture.getImgNaturalDimensions(U.MD.UI.picture.pics[U.MD.UI.picture.picnumber]),U.MD.UI.picture.DIVBOX.PICAREA.setAttribute("style",""),U.MD.UI.picture.checkHeight(),U.MD.UI.picture.rotatenum=0},U.MD.UI.picture.checkHeight=function(){var e=U.MD.UI.picture.originalSize[0]/U.MD.UI.picture.originalSize[1];U.MD.UI.picture.originalSize[1]>U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40||U.MD.UI.picture.originalSize[0]>U.MD.UI.picture.DIVBOX.PICBOX.clientWidth?U.MD.UI.picture.DIVBOX.PICAREA.style.width=Math.floor((U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-40)*e)+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.width=U.MD.UI.picture.originalSize[0]+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=(U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px","object"==typeof U.MD.UI.picture.DIVBOX.USERPICS[0]?U.selectEl("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.focuspicsrc.toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px "+U.MD.UI.picture.focuspicsize+")":"string"==typeof U.MD.UI.picture.DIVBOX.USERPICS[0]&&(U.selectEl("#U_MD_UI_Picture_imgInfo")[0].innerText=U.MD.UI.picture.DIVBOX.USERPICS[U.MD.UI.picture.picnumber].toLowerCase().split("/").splice(-1)[0]+"("+U.MD.UI.picture.originalSize[0]+"*"+U.MD.UI.picture.originalSize[1]+"px)"),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.round(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/U.MD.UI.picture.originalSize[1]*100)+"%"},U.MD.UI.picture.getImgNaturalDimensions=function(e){var t,i;if(e.naturalWidth)t=e.naturalWidth,i=e.naturalHeight;else{var n=new Image;n.src=e.src,t=n.width,i=n.height}return[t,i]},U.MD.UI.picture.drag=function(e,t){e.onmousedown=function(i){U.MD.UI.picture.mDown(e,t,i)}},U.MD.UI.picture.mDown=function(e,t,i){i=i||window.event;var n=i.clientX-e.offsetLeft,l=i.clientY-e.offsetTop;t.onmousemove=function(i){U.MD.UI.picture.mMove(e,t,n,l,i)},t.onmouseup=function(e){t.onmousemove=null,
- t.onmouseup=null},i.preventDefault?i.preventDefault():(e.ondragstart=function(){return!1},e.onselectstart=function(){return!1})},U.MD.UI.picture.mMove=function(e,t,i,n,l){l=l||window.event;var a=l.clientX-i,c=l.clientY-n;a=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientWidth-t.clientWidth/8,a):Math.min(t.clientWidth-t.clientWidth/8-e.clientWidth/2+e.clientHeight/2,a),a=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientWidth+t.clientWidth/8,a):Math.max(-e.clientWidth+t.clientWidth/8+e.clientWidth/2-e.clientHeight/2,a),c=U.MD.UI.picture.rotatenum%2==0?Math.min(t.clientHeight-t.clientHeight/8,c):Math.min(t.clientHeight-t.clientHeight/8+(e.clientWidth-e.clientHeight)/2,c),c=U.MD.UI.picture.rotatenum%2==0?Math.max(-e.clientHeight+t.clientHeight/8,c):Math.max(-e.clientHeight+t.clientHeight/8-(e.clientWidth-e.clientHeight)/2,c),e.style.left=a+"px",e.style.top=c+"px"},U.MD.UI.picture.wheel=function(){U.MD.UI.picture.DIVBOX.PICBOX.onmousewheel=function(){this.getWheelDalta()}.bind(this)},U.MD.UI.picture.getWheelDalta=function(e){function t(e){e.preventDefault?e.preventDefault():e.returnValue=!1}e=e||window.event;var i=0;e.wheelDelta?(i=e.wheelDelta/120,window.opera&&(i=-i)):e.detail&&(i=-e.detail/3),i>0?U.MD.UI.picture.changeSize(U.MD.UI.picture.scalingvalue):U.MD.UI.picture.changeSize(-U.MD.UI.picture.scalingvalue),t(event)},U.MD.UI.picture.changeSize=function(e){var t,i,n;if(i=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight,n=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth,t=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+e,!(t/U.MD.UI.picture.originalSize[0]*100<20&&t<200||(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+e)/U.MD.UI.picture.originalSize[1]*100>1e3)){U.MD.UI.picture.DIVBOX.PICAREA.style.width=t+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(U.MD.UI.picture.DIVBOX.PICAREA.clientHeight-i)/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-e/2+"px",("Microsoft Internet Explorer"==navigator.appName&&"8."==navigator.appVersion.match(/8./i)||"Microsoft Internet Explorer"==navigator.appName&&"7."==navigator.appVersion.match(/7./i))&&U.MD.UI.picture.rotatenum%2!=0&&(U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2+"px",U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/2-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/2+"px");var l=U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+U.MD.UI.picture.DIVBOX.PICAREA.offsetTop<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&U.MD.UI.picture.rotatenum%2!=0,a=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop>=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8||Math.abs(U.MD.UI.picture.DIVBOX.PICBOX.clientHeight-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetTop)<=U.MD.UI.picture.DIVBOX.PICBOX.clientHeight/8&&U.MD.UI.picture.rotatenum%2!=0,c=U.MD.UI.picture.DIVBOX.PICAREA.clientWidth+U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICAREA.clientHeight+(U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight/2)<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&U.MD.UI.picture.rotatenum%2!=0,r=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft>=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8||U.MD.UI.picture.DIVBOX.PICBOX.clientWidth-(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2-U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft<=U.MD.UI.picture.DIVBOX.PICBOX.clientWidth/8&&U.MD.UI.picture.rotatenum%2!=0;l&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),a&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.top=U.MD.UI.picture.DIVBOX.PICAREA.offsetTop-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px"),c&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft+(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),r&&(U.MD.UI.picture.rotatenum%2==0?U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(n-U.MD.UI.picture.DIVBOX.PICAREA.clientWidth)/2+"px":U.MD.UI.picture.DIVBOX.PICAREA.style.left=U.MD.UI.picture.DIVBOX.PICAREA.offsetLeft-(i-U.MD.UI.picture.DIVBOX.PICAREA.clientHeight)/2+"px"),U.selectEl("#U_MD_UI_Picture_r")[0].innerText=Math.floor(U.MD.UI.picture.DIVBOX.PICAREA.clientWidth/U.MD.UI.picture.originalSize[0]*100)+"%"}},Namespace.register("U.MD.UI.video"),U.MD.UI.video=function(e,t,i,n,l){var a=n||!1,c=null,r=null,s=!1,o=!1,d=U.MD.UI.video.appendEle(e,t,i,a,l);return U.MD.UI.video.addEvent(d,c,r,s,i,t,o),d},U.MD.UI.video.appendEle=function(e,t,i,n,l){var a={};return a.videoDiv=$$("div",{className:"U_MD_UI_video_VideoDiv",style:{width:t+"px",height:i+"px"}},l),a.video=$$("video",{src:e,className:"U_MD_UI_video_VideoMain",autoplay:n,preload:"auto"},a.videoDiv),a.controls=$$("div",{className:"U_MD_UI_video_VideoControls"},a.videoDiv),a.playPauseBtn=$$("div",{className:"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"},a.controls),a.currentTimeDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00"},a.controls),a.progress=$$("div",{className:"U_MD_UI_video_Progress"},a.controls),a.progressCurrentTime=$$("div",{className:"U_MD_UI_video_ProgressCurrentTime"},a.progress),a.progressCircle=$$("div",{className:"U_MD_UI_video_ProgressCircle"},a.progressCurrentTime),a.DurationDiv=$$("div",{className:"U_MD_UI_video_Time",innerHTML:"00:00",onselectstart:"return false;"},a.controls),a.soundControls=$$("div",{className:"U_MD_UI_video_SoundControls"},a.controls),a.soundProgress=$$("div",{className:"U_MD_UI_video_SoundProgress"},a.controls),a.soundProgressCurrent=$$("div",{className:"U_MD_UI_video_SoundProgressCurrent",style:{width:"100%"}},a.soundProgress),a.fullScreenBtn=$$("div",{className:"U_MD_UI_video_FullScreen"},a.controls),a},U.MD.UI.video.addEvent=function(e,t,i,n,l,a,c){e.playPauseBtn.onclick=function(t){U.MD.UI.playPauseBtnClick(t,e)},void 0!==e.videoDiv.onwebkitfullscreenchange?e.videoDiv.onwebkitfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(c,l,a,e);c=t[0],l=t[1],a=t[2]}:void 0!==e.videoDiv.onfullscreenchange?e.videoDiv.onfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(c,l,a,e);c=t[0],l=t[1],a=t[2]}:void 0!==e.videoDiv.onmozfullscreenchange&&(e.videoDiv.onmozfullscreenchange=function(){var t=U.MD.UI.video.fullscreenChange(c,l,a,e);c=t[0],l=t[1],a=t[2]}),e.fullScreenBtn.onclick=function(){U.MD.UI.video.fullscreenClick(c,e)},e.progressCircle.onmousedown=function(t){U.MD.UI.video.circleMove(t,n,e)},e.soundProgress.onmousedown=function(t){U.MD.UI.video.soundProgressMove(t,e,n)},e.progress.onmousedown=function(t){U.MD.UI.video.progressMove(t,e,n)},e.video.onpause=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon",clearInterval(t)},e.video.onplay=function(){e.playPauseBtn.className="U_MD_UI_video_PlayPauseButton U_MD_UI_video_PauseIcon",t=U.MD.UI.video.setInterval(n,e)},e.video.oncanplay=function(){U.MD.UI.video.flushInfo(n,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)},e.soundControls.onclick=function(){i=U.MD.UI.video.muteClick(e,i,n)},e.videoDiv.onclick=function(){}},U.MD.UI.video.displayControls=function(e,t){var i=e.target;i!==t.video&&i!==t.videoDiv||("none"===t.controls.style.display?t.controls.style.display="block":t.controls.style.display="none")},U.MD.UI.playPauseBtnClick=function(e,t){var i=e.target;"U_MD_UI_video_PlayPauseButton U_MD_UI_video_PlayIcon"===i.className?t.video.play():t.video.pause()},U.MD.UI.video.muteClick=function(e,t,i){return 0!==e.video.volume?(t=e.video.volume,e.video.volume=0,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)):0===e.video.volume&&null!==t&&(e.video.volume=t,t=null,U.MD.UI.video.flushInfo(i,e.currentTimeDiv,e.DurationDiv,e.progressCurrentTime,e.soundProgressCurrent,e.video)),t},U.MD.UI.video.fullscreenClick=function(e,t){e?document.exitFullScreen?document.exitFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozExitFullScreen&&document.mozExitFullScreen():t.videoDiv.requestFullScreen?t.videoDiv.requestFullScreen():t.videoDiv.webkitRequestFullScreen?t.videoDiv.webkitRequestFullScreen():t.videoDiv.mozRequestFullScreen&&t.videoDiv.mozRequestFullScreen()},U.MD.UI.video.fullscreenChange=function(e,t,i,n){return e?(n.videoDiv.style.height=t+"px",n.videoDiv.style.width=i+"px",n.videoDiv.style.position="",n.videoDiv.style.top="",n.videoDiv.style.left="",n.videoDiv.style.zIndex=""):(n.videoDiv.style.height="100vh",n.videoDiv.style.width="100vw",n.videoDiv.style.position="absolute",n.videoDiv.style.top="0",n.videoDiv.style.left="0",n.videoDiv.style.zIndex="999"),e=!e,[e,t,i]},U.MD.UI.video.timeFormat=function(e){var t=parseInt(e%60),i=parseInt(parseInt(e)/60);return t<10&&(t="0"+t),i<10&&(i="0"+i),i+":"+t},U.MD.UI.video.flushInfo=function(e,t,i,n,l,a){e||(t.innerHTML=U.MD.UI.video.timeFormat(a.currentTime),i.innerHTML=U.MD.UI.video.timeFormat(a.duration),n.style.width=a.currentTime/a.duration*100+"%",l.style.width=100*a.volume+"%")},U.MD.UI.video.getScreenLeft=function(e){for(var t=e.offsetLeft,i=e.offsetParent;null!=i;)t+=i.offsetLeft,i=i.offsetParent;return t},U.MD.UI.video.setInterval=function(e,t){return setInterval(function(){U.MD.UI.video.flushInfo(e,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video)},500)},U.MD.UI.video.circleMove=function(e,t,i){var n=e,l=e.currentTarget,a=n.pageX,c=l.parentElement,r=c.parentElement;i.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(r)<0||e.pageX-U.MD.UI.video.getScreenLeft(r)>r.offsetWidth)){var t=e.pageX-a;!(c.offsetWidth+t>r.offsetWidth||c.offsetWidth+t<0)&&e.currentTarget.children[0].offsetWidth<=e.currentTarget.children[0].offsetWidth&&(c.style.width=(c.offsetWidth+t)/r.offsetWidth*100+"%",i.video.currentTime=(c.offsetWidth+t)/r.offsetWidth*i.video.duration),a=e.pageX}},i.videoDiv.onmouseup=function(){!1,i.videoDiv.onmousemove=function(){},i.videoDiv.onmouseup=function(){}}},U.MD.UI.video.soundProgressMove=function(e,t,i){e.preventDefault();var n=e,l=e.currentTarget,a=n.pageX,c=t.soundProgressCurrent,r=e.offsetX,s=l.offsetWidth;t.video.volume=r/s,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.soundProgress)>t.soundProgress.offsetWidth)){var i=e.pageX-a;c.offsetWidth+i>l.offsetWidth||c.offsetWidth+i<0||(c.style.width=(c.offsetWidth+i)/l.offsetWidth*100+"%",t.video.volume=c.offsetWidth/l.offsetWidth),a=e.pageX}},t.videoDiv.onmouseup=function(e){t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}},U.MD.UI.video.progressMove=function(e,t,i){if(e.preventDefault(),"U_MD_UI_video_ProgressCircle"!==e.target.className){var n=e,l=e.currentTarget,a=n.pageX,c=t.progressCurrentTime,r=e.layerX||e.offsetX,s=l.offsetWidth;t.video.currentTime=t.video.duration*(r/s),U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(e){if(!(e.pageX-U.MD.UI.video.getScreenLeft(t.progress)<0||e.pageX-U.MD.UI.video.getScreenLeft(t.progress)>t.progress.offsetWidth)){i=!0;var n=e.pageX-a;c.offsetWidth+n>t.progress.offsetWidth||c.offsetWidth+n<0||(c.style.width=(c.offsetWidth+n)/t.progress.offsetWidth*100+"%",t.video.currentTime=(c.offsetWidth+n)/t.progress.offsetWidth*t.video.duration),a=e.pageX}},t.videoDiv.onmouseup=function(){i=!1,U.MD.UI.video.flushInfo(i,t.currentTimeDiv,t.DurationDiv,t.progressCurrentTime,t.soundProgressCurrent,t.video),t.videoDiv.onmousemove=function(){},t.videoDiv.onmouseup=function(){}}}};
|