diff --git a/app/calendar/css/style.css b/app/calendar/css/style.css new file mode 100644 index 0000000..5d5f574 --- /dev/null +++ b/app/calendar/css/style.css @@ -0,0 +1 @@ +*{margin:0;padding:0;font-style:normal}ul,li{list-style:none}body{font-family:pingfang sc,helvetica neue,helvetica,microsoft yahei,arial,sans-serif;font-size:14px;color:#333}h2{font-weight:400}body{overflow:hidden;width:100%;background-size:cover;background-color:#313131}#calendar{width:910px;margin:0 auto;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#calendar .header{position:relative;width:100%;height:37px;border-bottom:1px solid #b4b2b3;background-color:#e7e5e7;border-top-left-radius:5px;border-top-right-radius:5px}#calendar .header ul{position:absolute;left:420px;top:8px;overflow:hidden;border-radius:3px;font-size:0}#calendar .header ul li{display:inline-block;width:62px;height:24px;line-height:24px;font-size:14px;text-align:center;background-color:#fff;cursor:default}#calendar .header ul li.cur{color:#fff;background-color:#6f6e6f}#calendar .sidebar{float:left;width:167px;height:609px;border-right:1px solid #d4dad3;background-color:rgba(255,255,255,.9)}#calendar .sidebar .wrapper{width:100%;padding:12px 0;border-bottom:1px solid #c8d6c7}#calendar .sidebar .title{position:relative;text-align:center}#calendar .sidebar .btn{padding:0 10px;position:absolute;cursor:default}#calendar .sidebar .btn-prev{left:8px}#calendar .sidebar .btn-next{right:8px}#calendar .sidebar .date{}#calendar .sidebar .week{height:20px;padding-top:10px;line-height:20px;font-size:0;text-align:center}#calendar .sidebar .week li{display:inline-block;font-size:12px;width:22px;height:20px;text-align:center}#calendar .sidebar .day{text-align:center;font-size:0}#calendar .sidebar .day li{display:inline-block;width:18px;height:18px;margin:2px;line-height:18px;font-size:12px;text-align:center;color:#ccc;cursor:default}#calendar .sidebar .day li.cur-month{color:#333}#calendar .sidebar .day li.cur-day{color:#fff;background-color:#ff6d6d;border-radius:50%}#calendar .container{position:relative;float:left;width:742px;height:604px;background-color:#fff}#calendar .container .render{display:none}#calendar .container .render-show{display:block}#renderMonth{padding-top:5px}#renderMonth .title{padding-left:16px;line-height:42px;font-size:30px}#renderMonth .week{height:33px;line-height:33px;border-bottom:1px solid #c8c6cc;font-size:0}#renderMonth .week li{position:relative;right:12px;display:inline-block;width:106px;font-size:18px;text-align:right}#renderMonth .day{font-size:0}#renderMonth .day li{display:inline-block;width:106px;height:88px;padding:6px;border-right:1px solid #e6e5e6;border-bottom:1px solid #e6e5e6;box-sizing:border-box;font-size:14px;vertical-align:top;color:#ccc;background-color:#fff}#renderMonth .day li.cur-month{color:#333}#renderMonth .day li.cur-day{color:#333}#renderMonth .day li.weekend{background-color:#f4f6f7}#renderMonth .day li p{margin-bottom:8px}#renderMonth .day li .info{height:20px}#renderMonth .day li .lunar{float:left}#renderMonth .day li .first-lunarday{position:relative;left:-5px;border-bottom:1px solid #ff6d6d}#renderMonth .day li .first-lunarJanuary{position:relative;left:-5px;border-bottom:2px solid #ff6d6d}#renderMonth .day li .date{float:right}#renderMonth .day li.cur-day .date{}#renderMonth .day li.cur-day .date em{display:inline-block;width:20px;height:20px;line-height:20px;margin-right:2px;text-align:center;color:#fff;background-color:#ff6d6d;border-radius:50%}#renderMonth .day li .festival{display:none;padding-left:10px;height:16px;line-height:16px;color:#333;background-color:#f9d8f8;cursor:default}#renderMonth .day li .festival.show{display:block}#renderMonth .day li .term{display:none;color:#333;height:16px;line-height:16px;padding-left:10px;background-color:#a7d1ed;cursor:default}#renderMonth .day li .term.show{display:block}#renderFullYear{padding-top:5px}#renderFullYear>.title{width:617px;height:42px;padding:0 0 10px 16px}#renderFullYear>.title h2{display:inline-block;line-height:42px;font-size:30px}#renderFullYear>.title p{float:right;margin-top:10px;margin-right:15px}#renderFullYear>.title .lunar-year{}#renderFullYear>.title .lunar-year i{display:inline-block;margin:9px 6px 0 0;width:16px;height:3px;background-color:#ff6d6d;vertical-align:top}#renderFullYear>.title .info{}#renderFullYear>.title .info i{display:inline-block;width:14px;height:1px;margin-top:-3px;margin-right:5px;background-color:#ff6d6d;vertical-align:middle}#renderFullYear .month{font-size:0}#renderFullYear .month .item{display:inline-block;width:25%;padding:0 10px;box-sizing:border-box}#renderFullYear .month .title{padding-left:8px;font-size:18px;color:#ff6d6d}#renderFullYear .month .week{font-size:0;text-align:center}#renderFullYear .month .week li{display:inline-block;width:22px;height:20px;line-height:20px;font-size:12px;color:#ccc}#renderFullYear .month .day{text-align:center;font-size:0}#renderFullYear .month .day li{display:inline-block;width:18px;height:18px;line-height:18px;margin:2px;text-align:center;color:#ccc;font-size:10px;cursor:default}#renderFullYear .month .day li.lunar-first{border-bottom:1px solid #ff6d6d}#renderFullYear .month .day li.lunar-january{border-bottom:2px solid #ff6d6d}#renderFullYear .month .day li.cur-month{color:#333}#renderFullYear .month .day li.cur-day{color:#fff;background-color:#ff6d6d;border-radius:50%}#control{position:absolute;top:16px;right:14px;font-size:0}#control input{display:inline-block;height:19px;text-align:center;border:1px solid #dadada;border-radius:4px;font-size:14px;color:#333;background:#fff;vertical-align:top;outline:0}#control .btn{width:21px}#control .btn-prev{}#control .btn-next{}#control .today{width:52px}#popup{display:none;position:absolute;left:200px;top:100px;width:260px;height:104px;background-color:#f4f6f7;box-shadow:0 0 2px rgba(0,0,0,.3);border-radius:6px;border:1px solid #efefef}#popup.popup-right{}#popup .title{height:43px;padding:0 15px;line-height:43px;margin-bottom:8px;border-bottom:1px solid #d6d6d6}#popup .arrow{display:none;position:absolute;top:36px;width:0;height:0;border-width:14px;border-style:solid}#popup .arrow:after{content:"";position:absolute;top:-14px;width:0;height:0;border-width:14px;border-style:dashed}#popup .arrow-left{left:-29px;border-color:transparent #d6d6d6 transparent transparent}#popup.popup-left .arrow-left{display:block}#popup .arrow-left:after{left:-13px;border-color:transparent #f4f6f7 transparent transparent}#popup .arrow-right{right:-29px;border-color:transparent transparent transparent #d6d6d6}#popup.popup-right .arrow-right{display:block}#popup .arrow-right:after{right:-13px;border-color:transparent transparent transparent #f4f6f7}#popup .date,#popup .lunar{padding:0 15px;line-height:20px} \ No newline at end of file diff --git a/app/calendar/index.html b/app/calendar/index.html new file mode 100644 index 0000000..60bdc2e --- /dev/null +++ b/app/calendar/index.html @@ -0,0 +1,77 @@ + + + + +Document + + + +
+
+ +
+ +
+
+

2017年9月

+
    +
  • 周日
  • +
  • 周一
  • +
  • 周二
  • +
  • 周三
  • +
  • 周四
  • +
  • 周五
  • +
  • 周六
  • +
+
    +
    +
    +
    +

    2017年

    +

    +丁酉鸡年 +农历初一 +

    +
    +
      +
      +
      + + + +
      + +
      +
      + + + + + \ No newline at end of file diff --git a/app/calendar/js/calender.js b/app/calendar/js/calender.js new file mode 100644 index 0000000..0fa8172 --- /dev/null +++ b/app/calendar/js/calender.js @@ -0,0 +1,94 @@ +;(function(window,undefined){var calendar=document.querySelector('#calendar') +var simpleMonth_area=calendar.querySelector('.sidebar') +var simpleMonth_title=simpleMonth_area.querySelector('.date') +var fullMonth_area=calendar.querySelector('#renderFullYear') +var fullMonth_title=fullMonth_area.querySelector('h2') +var fullMonth_lunar=fullMonth_area.querySelector('.lunar-year') +var detailMonth=calendar.querySelector('#renderMonth') +var detailMonth_title=detailMonth.querySelector('.title') +var detailMonth_day=detailMonth.querySelector('.day') +var tab_num=0 +var today=new Date() +var year=today.getFullYear() +var month=today.getMonth() +var calendarObj=ChineseCalendar +renderTab() +initalToday() +function renderTab(){var aTab=calendar.querySelector('.header').querySelectorAll('li') +var aRender=calendar.querySelectorAll('.render') +for(var i=0;i +
      ${monthArr[i]}
      + + + `} +fullYear_month.innerHTML=fullMonth_hmtl +sidebar_day.innerHTML=tools.renderDay(year,month)} +function dateEvent(){var sidebar_prevBtn=simpleMonth_area.querySelector('.btn-prev') +var sidebar_nextBtn=simpleMonth_area.querySelector('.btn-next') +var control=calendar.querySelector('#control') +var control_btnPrev=control.querySelector('.btn-prev') +var control_today=control.querySelector('.today') +var control_btnNext=control.querySelector('.btn-next') +var sidebar_date=simpleMonth_area.querySelectorAll('.day li') +var detail_festival=detailMonth_day.querySelectorAll('.show') +var popup=calendar.querySelector('#popup') +var container=calendar.querySelector('.container') +var dataTime=null +var popupPos={lx:0,lr:0,y:0,w:detail_festival[0].offsetWidth,h:detail_festival[0].offsetHeight} +sidebar_prevBtn.onclick=function(){if(month==0){year-- +month=11}else{month--} +initalToday()} +sidebar_nextBtn.onclick=function(){if(month==11){year++ +month=0}else{month++} +initalToday()} +control_today.onclick=function(){year=today.getFullYear() +month=today.getMonth() +initalToday()} +control_btnPrev.onclick=function(){if(tab_num==0){if(month==0){year-- +month=11}else{month--} +tools.renderDetailMonth(detailMonth_day,year,month)}else{year--} +initalToday()} +control_btnNext.onclick=function(){if(tab_num==0){if(month==11){year++ +month=0}else{month++}}else{year++} +initalToday()} +for(var i=0;i=popup.offsetWidth){popup.style.left=popupPos.lx+'px' +popup.className='popup-left'}else{popup.style.left=popupPos.lr+'px' +popup.className='popup-right'} +tools.renderPopup(this,popup,dateStr) +ev.stopPropagation()}} +document.onclick=function(){popup.style.display='none'}}})(window) \ No newline at end of file diff --git a/app/calendar/js/chinesecalendar.js b/app/calendar/js/chinesecalendar.js new file mode 100644 index 0000000..ab06f75 --- /dev/null +++ b/app/calendar/js/chinesecalendar.js @@ -0,0 +1,26 @@ +var ChineseCalendar={lunarInfo:[0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,0x06ca0,0x0b550,0x15355,0x04da0,0x0a5b0,0x14573,0x052b0,0x0a9a8,0x0e950,0x06aa0,0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558,0x0b540,0x0b6a0,0x195a6,0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570,0x04af5,0x04970,0x064b0,0x074a3,0x0ea50,0x06b58,0x055c0,0x0ab60,0x096d5,0x092e0,0x0c960,0x0d954,0x0d4a0,0x0da50,0x07552,0x056a0,0x0abb7,0x025d0,0x092d0,0x0cab5,0x0a950,0x0b4a0,0x0baa4,0x0ad50,0x055d9,0x04ba0,0x0a5b0,0x15176,0x052b0,0x0a930,0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65,0x0d530,0x05aa0,0x076a3,0x096d0,0x04afb,0x04ad0,0x0a4d0,0x1d0b6,0x0d250,0x0d520,0x0dd45,0x0b5a0,0x056d0,0x055b2,0x049b0,0x0a577,0x0a4b0,0x0aa50,0x1b255,0x06d20,0x0ada0,0x14b63,0x09370,0x049f8,0x04970,0x064b0,0x168a6,0x0ea50,0x06b20,0x1a6c4,0x0aae0,0x0a2e0,0x0d2e3,0x0c960,0x0d557,0x0d4a0,0x0da50,0x05d55,0x056a0,0x0a6d0,0x055d4,0x052d0,0x0a9b8,0x0a950,0x0b4a0,0x0b6a6,0x0ad50,0x055a0,0x0aba4,0x0a5b0,0x052b0,0x0b273,0x06930,0x07337,0x06aa0,0x0ad50,0x14b55,0x04b60,0x0a570,0x054e4,0x0d160,0x0e968,0x0d520,0x0daa0,0x16aa6,0x056d0,0x04ae0,0x0a9d4,0x0a2d0,0x0d150,0x0f252,0x0d520],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhe:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],weekend:['日','一','二','三','四','五','六','七','八','九','十'],lunarStr:['初','十','廿','卅'],lunarMonStr:['正','二','三','四','五','六','七','八','九','十','冬','腊'],sTermInfo:[0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758],wFestive:['0520-母亲节','0630-父亲节','1144-感恩节'],cFestive:['0101-元旦','0214-情人节','0305#1963-雷锋日','0308-妇女节','0312-植树节','0401-愚人节','0501-劳动日','0504-青年节','0512-护士节','0601#1925-儿童节','0701#1997-建党节','0801#1927-建军节','0910-教师节','1001#1949-国庆节','1224-平安夜','1225-圣诞节',],lFestive:['1230-除夕','0101-春节','0102-正月初二','0115-元宵节','0505-端午节','0707-七夕节','0715-中元节','0815-中秋节','0909-重阳节','1208-腊八节','1224-小年'],lunarYearLength:function(y){var sum=12*29;for(var i=0x8000;i>0x8;i=i>>1){sum+=(ChineseCalendar.lunarInfo[y-1900]&i?1:0);} +sum+=ChineseCalendar.leapMonthLengths(y);return sum;},lunarMonthLength:function(y,m){return ChineseCalendar.lunarInfo[y-1900]&(0x10000>>m)?30:29;},isLeapMonth:function(y){return ChineseCalendar.lunarInfo[y-1900]&0xf?true:false;},leapMonth:function(y){if(ChineseCalendar.isLeapMonth(y)){return ChineseCalendar.lunarInfo[y-1900]&0xf;} +return 0;},leapMonthLengths:function(y){if(ChineseCalendar.isLeapMonth(y)){return ChineseCalendar.lunarInfo[y-1900]&0x10000?30:29;} +return 0;},year2GanZhe:function(y){var gan=(y-3)%10;if(gan===0){gan=10;} +var zhe=(y-3)%12;if(zhe===0){zhe=12;} +return ChineseCalendar.Gan[gan-1]+ChineseCalendar.Zhe[zhe-1];},month2GanZhe:function(y,m){var ganY=(y-3)%10;if(ganY===0){ganY=10;} +var month=((ganY-1)%5)*12+m+1;return ChineseCalendar.Gan[month%10]+ChineseCalendar.Zhe[month%12];},day2GanZhe:function(offset){var temp=40+offset;return ChineseCalendar.Gan[temp%10]+ChineseCalendar.Zhe[temp%12];},sTerm:function(y,n){var ms=31556925974.7*(y-1900)+ChineseCalendar.sTermInfo[n]*60000;var base=Date.UTC(1900,0,6,2,5);var date=new Date(ms+base);return date;},isTerm:function(y,m,d){var date=new Date(y,m-1,d);var n=(m-1)*2;var dateTerm=ChineseCalendar.sTerm(y,n);if(ChineseCalendar.isSameDay(dateTerm,date)){return ChineseCalendar.solarTerm[n];} +n=n+1;dateTerm=ChineseCalendar.sTerm(y,n);if(ChineseCalendar.isSameDay(dateTerm,date)){return ChineseCalendar.solarTerm[n];} +return false;},isSameDay:function(date1,date2){return date1.getFullYear()===date2.getFullYear()&&date1.getMonth()===date2.getMonth()&&date1.getDate()===date2.getDate();},getStar:function(month,day){var start=['魔羯','水瓶','双鱼','白羊','金牛','双子','巨蟹','狮子','处女','天秤','天蝎','射手','魔羯'],limit=[20,19,21,21,21,22,23,23,23,23,22,22],result=(month-1)+(day>limit[month-1]?1:0);return start[result]+'座';},toLunarMonth:function(m,flag){if(flag){return '闰'+ChineseCalendar.lunarMonStr[m-1]+'月';} +return ChineseCalendar.lunarMonStr[m-1]+'月';},toLunarDay:function(d){if(d===10){return '初十';} +return ChineseCalendar.lunarStr[Math.floor(d/10)]+(d%10===0?'十':ChineseCalendar.weekend[d%10]);},getAnimal:function(y){return ChineseCalendar.Animals[(y-4)%12];},isTody:function(date){var now=new Date();return date.getFullYear()===now.getFullYear()&&date.getMonth()===now.getMonth()&&date.getDate()===now.getDate();},isFestive:function(y,m,d,ly,lm,ld){var lstr=lm>9?(lm+''):'0'+lm;lstr+=ld>9?(ld+''):'0'+ld;var cstr=m>9?(m+''):'0'+m;cstr+=d>9?(d+''):'0'+d;var festive=ChineseCalendar.lFestive;for(var i=0,l=festive.length;iyear[1]){if(year[0]===cstr){return test[2];}}else if(!year[1]){if(test[1]===cstr){return test[2];}}} +festive=ChineseCalendar.wFestive;var date=new Date(y,m-1,d);for(var i=0,l=festive.length;i9?(m+''):'0'+m;if(str===month&&date.getDay()===parseInt(day)){var temp=ChineseCalendar.theNoWeek(y,m,d);if(temp===parseInt(nWeek)){return test[2];}}} +return false;},theNoWeek:function(y,m,d){var first=new Date(y,m-1,d);first.setDate(1);var date=new Date(y,m-1,d);var day=first.getDay(),current=date.getDate();if(day===0){day=7;} +var head=1,tail=8-day,result=1;while(1){if(current>=head&¤t<=tail){return result;} +result+=1;head=tail+1;tail=head+6;}},isRunYear:function(year){return year%400===0||(year%4===0&&year%100!==0);},getlunarYMD:function(date){var result={year:date.getFullYear(),month:date.getMonth()+1,day:date.getDate()};var offset=(Date.UTC(result.year,result.month-1,result.day)-Date.UTC(1900,0,31))/(60*60*24*1000),temp=0;for(var i=1900;i<2101&&offset>0;i++){temp=ChineseCalendar.lunarYearLength(i);offset-=temp;} +if(offset<0){offset+=temp;i--;} +result.lunarYear=i;var isLear=false,lunarMonth=ChineseCalendar.leapMonth(result.lunarYear);for(var i=1;i<13&&offset>=0;i++){temp=ChineseCalendar.lunarMonthLength(result.lunarYear,i);offset-=temp;isLear=false;if(i===lunarMonth){if(offset<0){i--;isLear=true;}else{temp=ChineseCalendar.leapMonthLengths(result.lunarYear);offset-=temp;}}} +if(offset<0){if(i===lunarMonth&&isLear){offset+=temp;isLear=false;}else if(i===(lunarMonth+1)){offset+=temp;isLear=true;i--;}else{offset+=temp;i--;}} +result.lunarMonth=i;result.lunarMonthChiness=ChineseCalendar.toLunarMonth(result.lunarMonth,isLear);result.lunarDay=offset+1;result.lunarDayChiness=ChineseCalendar.toLunarDay(result.lunarDay);return result;},lunarFestival:function(date){var result=ChineseCalendar.getlunarYMD(date);var festive=ChineseCalendar.isFestive(result.year,result.month,result.day,result.lunarYear,result.lunarMonth,result.lunarDay);var term=ChineseCalendar.isTerm(result.year,result.month,result.day);if(festive){return festive}},lunarTerm:function(date){var result=ChineseCalendar.getlunarYMD(date);var term=ChineseCalendar.isTerm(result.year,result.month,result.day);if(term){return term}},lunarTime:function(date){var result=ChineseCalendar.getlunarYMD(date);return result.lunarDayChiness;},date2lunar:function(date){date=date||new Date();var result={year:date.getFullYear(),month:date.getMonth()+1,day:date.getDate()};var offset=(Date.UTC(result.year,result.month-1,result.day)-Date.UTC(1900,0,31))/(60*60*24*1000),temp=0;result.gzD=ChineseCalendar.day2GanZhe(offset);for(var i=1900;i<2101&&offset>0;i++){temp=ChineseCalendar.lunarYearLength(i);offset-=temp;} +if(offset<0){offset+=temp;i--;} +result.lunarYear=i;var isLear=false,lunarMonth=ChineseCalendar.leapMonth(result.lunarYear);for(var i=1;i<13&&offset>=0;i++){temp=ChineseCalendar.lunarMonthLength(result.lunarYear,i);offset-=temp;isLear=false;if(i===lunarMonth){if(offset<0){i--;isLear=true;}else{temp=ChineseCalendar.leapMonthLengths(result.lunarYear);offset-=temp;}}} +if(offset<0){if(i===lunarMonth&&isLear){offset+=temp;isLear=false;}else if(i===(lunarMonth+1)){offset+=temp;isLear=true;i--;}else{offset+=temp;i--;}} +result.lunarMonth=i;result.lunarMonthChiness=ChineseCalendar.toLunarMonth(result.lunarMonth,isLear);result.lunarDay=offset+1;result.lunarDayChiness=ChineseCalendar.toLunarDay(result.lunarDay);result.animal=ChineseCalendar.getAnimal(result.year);result.week="星期"+ChineseCalendar.weekend[date.getDay()];result.start=ChineseCalendar.getStar(result.month,result.day);result.gzY=ChineseCalendar.year2GanZhe(result.lunarYear);result.isTody=ChineseCalendar.isTody(date);result.gzM=ChineseCalendar.month2GanZhe(result.lunarYear,result.lunarMonth);result.isTerm=ChineseCalendar.isTerm(result.year,result.month,result.day);if(result.isTerm){result.term=result.isTerm;result.isTerm=true;} +result.isFestive=ChineseCalendar.isFestive(result.year,result.month,result.day,result.lunarYear,result.lunarMonth,result.lunarDay);if(result.isFestive){result.festive=result.isFestive;result.isFestive=true;} +return result;}} \ No newline at end of file diff --git a/app/calendar/js/tools.js b/app/calendar/js/tools.js new file mode 100644 index 0000000..1317d11 --- /dev/null +++ b/app/calendar/js/tools.js @@ -0,0 +1,43 @@ +var tools=(function(){var toolsObj={renderPopup:function(festival,obj,str){var title=obj.querySelector('.title') +var date=obj.querySelector('.date') +var lunar=obj.querySelector('.lunar') +var dateFormat=tools.strFormatDate(str) +var lunarObj=ChineseCalendar.date2lunar(dateFormat);console.log(dateFormat) +title.innerHTML=festival.innerHTML +date.innerHTML=dateFormat.getFullYear()+'年'+(dateFormat.getMonth()+1)+'月'+dateFormat.getDate()+'日' +lunar.innerHTML=lunarObj.lunarMonthChiness+lunarObj.lunarDayChiness+' · '+lunarObj.gzY+'年'+lunarObj.gzM+'月'+lunarObj.gzD+'日'},renderDay:function(year,n){var year=year +var month=n +var firstDay=new Date(year,n,1) +var _hmtl=`` +for(var i=0;i<42;i++){var allDay=new Date(year,month,i+1-firstDay.getDay());var allDay_str=tools.returnDateStr(allDay) +var firstDay_str=tools.returnDateStr(firstDay) +var first_lunarday=ChineseCalendar.date2lunar(allDay).lunarDayChiness +var lunarJanuary_month=ChineseCalendar.date2lunar(allDay).lunarMonthChiness +if(tools.returnDateStr(new Date())===allDay_str){if(first_lunarday=='初一'){if(lunarJanuary_month=='正月'){_hmtl+=`
    • ${allDay.getDate()}
    • `}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}else if(firstDay_str.substr(0,6)===allDay_str.substr(0,6)){if(first_lunarday=='初一'){if(lunarJanuary_month=='正月'){_hmtl+=`
    • ${allDay.getDate()}
    • `}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}else{if(first_lunarday=='初一'){if(lunarJanuary_month=='正月'){_hmtl+=`
    • ${allDay.getDate()}
    • `}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}else{_hmtl+=`
    • ${allDay.getDate()}
    • `}}} +return _hmtl},renderDetailMonth:function(dayWrapper,recivedYear,recivedMonth){var array=[] +var recivedDate=new Date() +var _html=`` +var date=new Date(recivedYear,recivedMonth,1) +date.setDate(1) +var week=date.getDay() +date.setDate(1-week) +var month=date.getMonth() +for(var i=0;i<42;i++){if(month!==recivedMonth){if(date.getDay()===0||date.getDay()===6){array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'weekend',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}else{array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}}else if(tools.curDay(date,recivedDate)){if(date.getDay()===0||date.getDay()===6){array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'weekend cur-day',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}else{array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'cur-day',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}}else{if(date.getDay()===0||date.getDay()===6){array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'weekend cur-month',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}else{array.push({day:date.getDate(),first_lunarday:ChineseCalendar.lunarTime(date),lunar:ChineseCalendar.date2lunar(date).lunarMonthChiness,state:'cur-month',festival:ChineseCalendar.lunarFestival(date),term:ChineseCalendar.lunarTerm(date),dateStr:tools.returnDateStr(date)})}} +date.setDate(date.getDate()+1) +month=date.getMonth()} +console.log(array);for(var j=0;j +

      + ${first_lunarday} + ${array[j].day} +

      +

      ${array[j].festival}

      +

      ${array[j].term}

      + `} +dayWrapper.innerHTML=_html},nowDate:function(){return new Date()},returnDateStr:function(date){var year=date.getFullYear();var month=date.getMonth()+1;var day=date.getDate();month=month<=9?('0'+month):(''+month);day=day<=9?('0'+day):(''+day);return year+month+day;},curDay:function(oldTime,nowTime){return oldTime.getFullYear()===nowTime.getFullYear()&&oldTime.getMonth()===nowTime.getMonth()&&oldTime.getDate()===nowTime.getDate()},strFormatDate:function(str){var date=new Date(parseInt(str.substr(0,4)),parseInt(str.substr(4,2)),parseInt(str.substr(6))) +console.log(str) +return date}} +return toolsObj}()) \ No newline at end of file diff --git a/app/finder/images/apps/DesktopScreenEffectsPref.png b/app/finder/images/apps/DesktopScreenEffectsPref.png new file mode 100644 index 0000000..f1ef207 Binary files /dev/null and b/app/finder/images/apps/DesktopScreenEffectsPref.png differ diff --git a/app/finder/images/apps/Dock.png b/app/finder/images/apps/Dock.png new file mode 100644 index 0000000..808f56b Binary files /dev/null and b/app/finder/images/apps/Dock.png differ diff --git a/app/finder/images/apps/Edit.png b/app/finder/images/apps/Edit.png new file mode 100644 index 0000000..74e76ab Binary files /dev/null and b/app/finder/images/apps/Edit.png differ diff --git a/app/finder/images/apps/Finder.png b/app/finder/images/apps/Finder.png new file mode 100644 index 0000000..2259d59 Binary files /dev/null and b/app/finder/images/apps/Finder.png differ diff --git a/app/finder/images/apps/FullTrashIcon.png b/app/finder/images/apps/FullTrashIcon.png new file mode 100644 index 0000000..9e0450f Binary files /dev/null and b/app/finder/images/apps/FullTrashIcon.png differ diff --git a/app/finder/images/apps/GameCenter.png b/app/finder/images/apps/GameCenter.png new file mode 100644 index 0000000..9aa40e6 Binary files /dev/null and b/app/finder/images/apps/GameCenter.png differ diff --git a/app/finder/images/apps/GenericFolderIcon.png b/app/finder/images/apps/GenericFolderIcon.png new file mode 100644 index 0000000..e1961d0 Binary files /dev/null and b/app/finder/images/apps/GenericFolderIcon.png differ diff --git a/app/finder/images/apps/Launchpad.png b/app/finder/images/apps/Launchpad.png new file mode 100644 index 0000000..1519459 Binary files /dev/null and b/app/finder/images/apps/Launchpad.png differ diff --git a/app/finder/images/apps/Movie.png b/app/finder/images/apps/Movie.png new file mode 100644 index 0000000..94b3c3c Binary files /dev/null and b/app/finder/images/apps/Movie.png differ diff --git a/app/finder/images/apps/NSApplicationIcon.png b/app/finder/images/apps/NSApplicationIcon.png new file mode 100644 index 0000000..0a50eff Binary files /dev/null and b/app/finder/images/apps/NSApplicationIcon.png differ diff --git a/app/finder/images/apps/PrefApp.png b/app/finder/images/apps/PrefApp.png new file mode 100644 index 0000000..2d2b59f Binary files /dev/null and b/app/finder/images/apps/PrefApp.png differ diff --git a/app/finder/images/apps/Terminal.png b/app/finder/images/apps/Terminal.png new file mode 100644 index 0000000..71c3444 Binary files /dev/null and b/app/finder/images/apps/Terminal.png differ diff --git a/app/finder/images/apps/TrashIcon.png b/app/finder/images/apps/TrashIcon.png new file mode 100644 index 0000000..d19575b Binary files /dev/null and b/app/finder/images/apps/TrashIcon.png differ diff --git a/app/finder/images/apps/User.png b/app/finder/images/apps/User.png new file mode 100644 index 0000000..b2c8334 Binary files /dev/null and b/app/finder/images/apps/User.png differ diff --git a/app/finder/images/apps/Zip.png b/app/finder/images/apps/Zip.png new file mode 100644 index 0000000..de3ee1c Binary files /dev/null and b/app/finder/images/apps/Zip.png differ diff --git a/app/finder/images/apps/account.png b/app/finder/images/apps/account.png new file mode 100644 index 0000000..8536ac1 Binary files /dev/null and b/app/finder/images/apps/account.png differ diff --git a/app/finder/images/apps/app.png b/app/finder/images/apps/app.png new file mode 100644 index 0000000..965b223 Binary files /dev/null and b/app/finder/images/apps/app.png differ diff --git a/app/finder/images/apps/appstore.png b/app/finder/images/apps/appstore.png new file mode 100644 index 0000000..0abc911 Binary files /dev/null and b/app/finder/images/apps/appstore.png differ diff --git a/app/finder/images/apps/auth.png b/app/finder/images/apps/auth.png new file mode 100644 index 0000000..3009437 Binary files /dev/null and b/app/finder/images/apps/auth.png differ diff --git a/app/finder/images/apps/computer.png b/app/finder/images/apps/computer.png new file mode 100644 index 0000000..8b7f110 Binary files /dev/null and b/app/finder/images/apps/computer.png differ diff --git a/app/finder/images/apps/doc.png b/app/finder/images/apps/doc.png new file mode 100644 index 0000000..17fe232 Binary files /dev/null and b/app/finder/images/apps/doc.png differ diff --git a/app/finder/images/apps/html.png b/app/finder/images/apps/html.png new file mode 100644 index 0000000..5b22bce Binary files /dev/null and b/app/finder/images/apps/html.png differ diff --git a/app/finder/images/apps/iCloud.png b/app/finder/images/apps/iCloud.png new file mode 100644 index 0000000..dda1168 Binary files /dev/null and b/app/finder/images/apps/iCloud.png differ diff --git a/app/finder/images/apps/iMovie.png b/app/finder/images/apps/iMovie.png new file mode 100644 index 0000000..b4b7173 Binary files /dev/null and b/app/finder/images/apps/iMovie.png differ diff --git a/app/finder/images/apps/iTunes.png b/app/finder/images/apps/iTunes.png new file mode 100644 index 0000000..9268bc6 Binary files /dev/null and b/app/finder/images/apps/iTunes.png differ diff --git a/app/finder/images/apps/jpeg.png b/app/finder/images/apps/jpeg.png new file mode 100644 index 0000000..d4b19b7 Binary files /dev/null and b/app/finder/images/apps/jpeg.png differ diff --git a/app/finder/images/apps/mdb.png b/app/finder/images/apps/mdb.png new file mode 100644 index 0000000..6861e9a Binary files /dev/null and b/app/finder/images/apps/mdb.png differ diff --git a/app/finder/images/apps/mp3.png b/app/finder/images/apps/mp3.png new file mode 100644 index 0000000..7832862 Binary files /dev/null and b/app/finder/images/apps/mp3.png differ diff --git a/app/finder/images/apps/office.png b/app/finder/images/apps/office.png new file mode 100644 index 0000000..8f6394c Binary files /dev/null and b/app/finder/images/apps/office.png differ diff --git a/app/finder/images/apps/pdf.png b/app/finder/images/apps/pdf.png new file mode 100644 index 0000000..eeedfb3 Binary files /dev/null and b/app/finder/images/apps/pdf.png differ diff --git a/app/finder/images/apps/png.png b/app/finder/images/apps/png.png new file mode 100644 index 0000000..652921b Binary files /dev/null and b/app/finder/images/apps/png.png differ diff --git a/app/finder/images/apps/ppt.png b/app/finder/images/apps/ppt.png new file mode 100644 index 0000000..c03e665 Binary files /dev/null and b/app/finder/images/apps/ppt.png differ diff --git a/app/finder/images/apps/tv.png b/app/finder/images/apps/tv.png new file mode 100644 index 0000000..c03b073 Binary files /dev/null and b/app/finder/images/apps/tv.png differ diff --git a/app/finder/images/apps/txt.png b/app/finder/images/apps/txt.png new file mode 100644 index 0000000..ee09dc6 Binary files /dev/null and b/app/finder/images/apps/txt.png differ diff --git a/app/finder/images/apps/unknown.png b/app/finder/images/apps/unknown.png new file mode 100644 index 0000000..0613c44 Binary files /dev/null and b/app/finder/images/apps/unknown.png differ diff --git a/app/finder/images/apps/video.png b/app/finder/images/apps/video.png new file mode 100644 index 0000000..2a58dca Binary files /dev/null and b/app/finder/images/apps/video.png differ diff --git a/app/finder/images/apps/word.png b/app/finder/images/apps/word.png new file mode 100644 index 0000000..3eb5afd Binary files /dev/null and b/app/finder/images/apps/word.png differ diff --git a/app/finder/images/apps/xls.png b/app/finder/images/apps/xls.png new file mode 100644 index 0000000..3e36a97 Binary files /dev/null and b/app/finder/images/apps/xls.png differ diff --git a/app/finder/images/apps/zhainan.png b/app/finder/images/apps/zhainan.png new file mode 100644 index 0000000..005aa14 Binary files /dev/null and b/app/finder/images/apps/zhainan.png differ diff --git a/app/finder/images/icons/SidebarDesktopFolder_16x16.png b/app/finder/images/icons/SidebarDesktopFolder_16x16.png new file mode 100644 index 0000000..f5318b5 Binary files /dev/null and b/app/finder/images/icons/SidebarDesktopFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarDocumentsFolder_16x16.png b/app/finder/images/icons/SidebarDocumentsFolder_16x16.png new file mode 100644 index 0000000..7bca925 Binary files /dev/null and b/app/finder/images/icons/SidebarDocumentsFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarDownloadsFolder_16x16.png b/app/finder/images/icons/SidebarDownloadsFolder_16x16.png new file mode 100644 index 0000000..32a4be1 Binary files /dev/null and b/app/finder/images/icons/SidebarDownloadsFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarHomeFolder_16x16.png b/app/finder/images/icons/SidebarHomeFolder_16x16.png new file mode 100644 index 0000000..c8b07d2 Binary files /dev/null and b/app/finder/images/icons/SidebarHomeFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarMoviesFolder_16x16.png b/app/finder/images/icons/SidebarMoviesFolder_16x16.png new file mode 100644 index 0000000..f80f0da Binary files /dev/null and b/app/finder/images/icons/SidebarMoviesFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarMusicFolder_16x16.png b/app/finder/images/icons/SidebarMusicFolder_16x16.png new file mode 100644 index 0000000..a019dde Binary files /dev/null and b/app/finder/images/icons/SidebarMusicFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebarNetwork_16x16.png b/app/finder/images/icons/SidebarNetwork_16x16.png new file mode 100644 index 0000000..3e917b2 Binary files /dev/null and b/app/finder/images/icons/SidebarNetwork_16x16.png differ diff --git a/app/finder/images/icons/SidebarPicturesFolder_16x16.png b/app/finder/images/icons/SidebarPicturesFolder_16x16.png new file mode 100644 index 0000000..8489a0a Binary files /dev/null and b/app/finder/images/icons/SidebarPicturesFolder_16x16.png differ diff --git a/app/finder/images/icons/SidebariCloud_16x16.png b/app/finder/images/icons/SidebariCloud_16x16.png new file mode 100644 index 0000000..c702051 Binary files /dev/null and b/app/finder/images/icons/SidebariCloud_16x16.png differ diff --git a/app/finder/images/icons/StatusBarTrashIcon_16x16.png b/app/finder/images/icons/StatusBarTrashIcon_16x16.png new file mode 100644 index 0000000..7c964c5 Binary files /dev/null and b/app/finder/images/icons/StatusBarTrashIcon_16x16.png differ diff --git a/app/finder/images/icons/app_active_bg.png b/app/finder/images/icons/app_active_bg.png new file mode 100644 index 0000000..c3bd2b5 Binary files /dev/null and b/app/finder/images/icons/app_active_bg.png differ diff --git a/app/finder/images/icons/app_hover_bg.png b/app/finder/images/icons/app_hover_bg.png new file mode 100644 index 0000000..273572e Binary files /dev/null and b/app/finder/images/icons/app_hover_bg.png differ diff --git a/app/finder/images/icons/collection.png b/app/finder/images/icons/collection.png new file mode 100644 index 0000000..21eb10b Binary files /dev/null and b/app/finder/images/icons/collection.png differ diff --git a/app/finder/images/icons/config.png b/app/finder/images/icons/config.png new file mode 100644 index 0000000..2132257 Binary files /dev/null and b/app/finder/images/icons/config.png differ diff --git a/app/finder/images/icons/default.jpg b/app/finder/images/icons/default.jpg new file mode 100644 index 0000000..678a7c1 Binary files /dev/null and b/app/finder/images/icons/default.jpg differ diff --git a/app/finder/images/icons/finder_app_active_bg.png b/app/finder/images/icons/finder_app_active_bg.png new file mode 100644 index 0000000..7fb9639 Binary files /dev/null and b/app/finder/images/icons/finder_app_active_bg.png differ diff --git a/app/finder/images/icons/finder_app_hover_bg.png b/app/finder/images/icons/finder_app_hover_bg.png new file mode 100644 index 0000000..e0686fe Binary files /dev/null and b/app/finder/images/icons/finder_app_hover_bg.png differ diff --git a/app/finder/images/icons/higher.png b/app/finder/images/icons/higher.png new file mode 100644 index 0000000..1e421d4 Binary files /dev/null and b/app/finder/images/icons/higher.png differ diff --git a/app/finder/images/icons/logo.png b/app/finder/images/icons/logo.png new file mode 100644 index 0000000..7fefb51 Binary files /dev/null and b/app/finder/images/icons/logo.png differ diff --git a/app/finder/images/icons/next_prev.png b/app/finder/images/icons/next_prev.png new file mode 100644 index 0000000..2386d18 Binary files /dev/null and b/app/finder/images/icons/next_prev.png differ diff --git a/app/finder/images/icons/search.png b/app/finder/images/icons/search.png new file mode 100644 index 0000000..5bb57bc Binary files /dev/null and b/app/finder/images/icons/search.png differ diff --git a/app/finder/images/icons/sortstyle.png b/app/finder/images/icons/sortstyle.png new file mode 100644 index 0000000..26398a1 Binary files /dev/null and b/app/finder/images/icons/sortstyle.png differ diff --git a/app/finder/images/wallpapers/1.jpg b/app/finder/images/wallpapers/1.jpg new file mode 100644 index 0000000..9bae4d1 Binary files /dev/null and b/app/finder/images/wallpapers/1.jpg differ diff --git a/app/finder/images/wallpapers/10.jpg b/app/finder/images/wallpapers/10.jpg new file mode 100644 index 0000000..a05cf29 Binary files /dev/null and b/app/finder/images/wallpapers/10.jpg differ diff --git a/app/finder/images/wallpapers/11.jpg b/app/finder/images/wallpapers/11.jpg new file mode 100644 index 0000000..93f5c70 Binary files /dev/null and b/app/finder/images/wallpapers/11.jpg differ diff --git a/app/finder/images/wallpapers/12.jpg b/app/finder/images/wallpapers/12.jpg new file mode 100644 index 0000000..d3b4db8 Binary files /dev/null and b/app/finder/images/wallpapers/12.jpg differ diff --git a/app/finder/images/wallpapers/2.jpg b/app/finder/images/wallpapers/2.jpg new file mode 100644 index 0000000..49edf44 Binary files /dev/null and b/app/finder/images/wallpapers/2.jpg differ diff --git a/app/finder/images/wallpapers/3.jpg b/app/finder/images/wallpapers/3.jpg new file mode 100644 index 0000000..fa85f3b Binary files /dev/null and b/app/finder/images/wallpapers/3.jpg differ diff --git a/app/finder/images/wallpapers/4.jpg b/app/finder/images/wallpapers/4.jpg new file mode 100644 index 0000000..3320707 Binary files /dev/null and b/app/finder/images/wallpapers/4.jpg differ diff --git a/app/finder/images/wallpapers/5.jpg b/app/finder/images/wallpapers/5.jpg new file mode 100644 index 0000000..31408b0 Binary files /dev/null and b/app/finder/images/wallpapers/5.jpg differ diff --git a/app/finder/images/wallpapers/6.jpg b/app/finder/images/wallpapers/6.jpg new file mode 100644 index 0000000..fede990 Binary files /dev/null and b/app/finder/images/wallpapers/6.jpg differ diff --git a/app/finder/images/wallpapers/7.jpg b/app/finder/images/wallpapers/7.jpg new file mode 100644 index 0000000..9e94ec5 Binary files /dev/null and b/app/finder/images/wallpapers/7.jpg differ diff --git a/app/finder/images/wallpapers/8-s.jpg b/app/finder/images/wallpapers/8-s.jpg new file mode 100644 index 0000000..40f68ea Binary files /dev/null and b/app/finder/images/wallpapers/8-s.jpg differ diff --git a/app/finder/images/wallpapers/8.jpg b/app/finder/images/wallpapers/8.jpg new file mode 100644 index 0000000..dd824f3 Binary files /dev/null and b/app/finder/images/wallpapers/8.jpg differ diff --git a/app/finder/images/wallpapers/9.jpg b/app/finder/images/wallpapers/9.jpg new file mode 100644 index 0000000..641bb44 Binary files /dev/null and b/app/finder/images/wallpapers/9.jpg differ diff --git a/app/finder/index.css b/app/finder/index.css new file mode 100644 index 0000000..aac3762 --- /dev/null +++ b/app/finder/index.css @@ -0,0 +1,392 @@ +blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul { + margin: 0; + padding: 0; + font-family: PingFang SC, Verdana, Helvetica Neue, Microsoft Yahei, Hiragino Sans GB, Microsoft Sans Serif, WenQuanYi Micro Hei, sans-serif; +} + +body,button,input,select,textarea { + font: 9pt/1.5tahoma,arial,\5b8b\4f53 +} + +h1,h2,h3,h4,h5,h6 { + font-size: 100% +} + +address,cite,dfn,em,var { + font-style: normal +} + +code,kbd,pre,samp { + font-family: couriernew,courier,monospace +} + +small { + font-size: 9pt +} + +ol,ul { + list-style: none +} + +a { + text-decoration: none +} + +a:hover { + text-decoration: underline +} + +sup { + vertical-align: text-top +} + +sub { + vertical-align: text-bottom +} + +legend { + color: #000 +} + +fieldset,img { + border: 0 +} + +button,input,select,textarea { + font-size: 100% +} + +table { + border-collapse: collapse; + border-spacing: 0 +} + +body,html { + height: 100% +} + +body { + overflow: hidden; + margin: 0; + background-size: cover; + background-repeat: no-repeat; + background-attachment: fixed; + -moz-background-size: cover; + -webkit-background-size: cover +} + +a:focus { + outline: 0 +} + +.app-list { + position: relative; + width: 100%; + height: 100% +} + +.clear { + clear: both +} + +.finder-wrapper { + width: 100%; + height: 100% +} + +.finder-wrapper .topbar { + margin-top: 0; + width: 100%; + height: 30px; + border-bottom: 1px solid #9a9a9a; + background: #f6f6f6 +} + +.finder-wrapper .topbar .sortstyle-box { + float: left; + margin-left: 105px; + width: 58px; + height: 24px; + background: url(images/icons/sortstyle.png) no-repeat; + cursor: pointer +} + +.finder-wrapper .topbar .config-button { + float: left; + margin-left: 10px; + width: 40px; + height: 24px; + background: url(images/icons/config.png) no-repeat; + cursor: pointer +} + +.finder-wrapper .topbar .higher-button { + float: left; + margin-left: 10px; + width: 40px; + height: 24px; + background: url(images/icons/higher.png) no-repeat; + cursor: pointer +} + +.finder-wrapper .topbar .collection-button { + float: left; + margin-left: 10px; + width: 40px; + height: 24px; + background: url(images/icons/collection.png) no-repeat; + cursor: pointer +} + +.finder-wrapper .topbar .search-box { + float: right; + margin-top: 2px; + margin-right: 5px; + width: 234px; + height: 24px; + background: url(images/icons/search.png) no-repeat +} + +.finder-wrapper .main .content .app-box { + z-index: 999; + border-radius: 3px; + text-align: center +} + +.finder-wrapper .main .content .middle { + width: 5pc; + height: 75pt +} + +.finder-wrapper .main .content .middle,.trash-wrapper .main .content .middle { + float: left; + margin-top: 10px; + margin-left: 30px +} + +.finder-wrapper .main .content .middle img { + margin-top: 5px; + width: 60px +} + +.finder-wrapper .main .content .middle { + float: left +} + +.finder-wrapper .main .content .middle .app-name { + float: left; + display: block; + overflow: hidden; + margin-top: 6px; + padding-top: 1px; + width: 5pc; + color: #333; + text-overflow: ellipsis; + white-space: nowrap; + font-size: 9pt; + line-height: 1.7em; + transition: none 0s ease 0s; + writing-mode: horizontal-tb; + word-break: keep-all +} + +.finder-wrapper .main .content .active { + background-image: url(images/icons/finder_app_active_bg.png) +} + +.finder-wrapper .main .content .hover { + background-image: url(images/icons/finder_app_hover_bg.png) +} + +.finder-wrapper .topbar .next-prev-box { + float: left; + margin-top: 2px; + margin-left: 5px; + width: 53px; + height: 24px; + background: url(images/icons/next_prev.png) no-repeat; + cursor: pointer +} + +.finder-wrapper .main { + width: 100%; + height: calc(100% - 30px); + background: #fff +} + +.finder-wrapper .main .sidebar { + float: left; + width: 148px; + height: 100%; + border-right: 1px solid #dfdfdf; + background: #f6f6f6 +} + +.finder-wrapper .main .content { + float: left; + overflow-y: auto; + width: 80%; + width: calc(100% - 150px); + height: 100% +} + +.finder-wrapper .main .sidebar ul { + margin: 0; + padding: 0; + padding-top: 5px; + width: 148px; + list-style: none +} + +.finder-wrapper .main .sidebar ul .title { + padding-left: 5px; + width: 100% +} + +.finder-wrapper .main .sidebar ul li,.trash-wrapper .main .sidebar ul li { + float: left; + width: 100% +} + +.finder-wrapper .main .sidebar ul li a { + clear: both; + display: block; + width: 148px; + height: 30px; + color: #444; + text-decoration: none; + line-height: 30px +} + +.finder-wrapper .main .sidebar ul li a .name { + float: left; + display: block; + margin-left: 5px; + font-size: 14px +} + +.finder-wrapper .main .sidebar ul li a .home-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarHomeFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .desktop-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarDesktopFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .documents-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarDocumentsFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .downloads-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarDownloadsFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .movies-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarMoviesFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .music-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarMusicFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .pictures-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarPicturesFolder_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .cloud-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebariCloud_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .network-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/SidebarNetwork_16x16.png) +} + +.finder-wrapper .main .sidebar ul li a .trash-icon { + float: left; + display: block; + margin-top: 7px; + margin-left: 15px; + width: 1pc; + height: 1pc; + background-image: url(images/icons/StatusBarTrashIcon_16x16.png) +} + +.finder-wrapper .main .sidebar ul li .on { + background: #cecece +} + +.finder-wrapper .topbar .next-prev-box .prev { + float: left; + display: block; + width: 25px; + height: 22px +} + +.finder-wrapper .topbar .next-prev-box .next { + float: right; + display: block; + width: 25px; + height: 22px +} + +.rename { + width: 60px; + height: 18px; + border: 0; + background: 0 0; + text-align: center +} \ No newline at end of file diff --git a/app/finder/index.html b/app/finder/index.html new file mode 100644 index 0000000..f1cf150 --- /dev/null +++ b/app/finder/index.html @@ -0,0 +1,32 @@ + + + + + + +
      +
      +
      + + + + +
      + + + +
      +
      + +
      +
      +
      +
      +
      + + + + + \ No newline at end of file diff --git a/app/finder/js/jquery-2.2.4.min.js b/app/finder/js/jquery-2.2.4.min.js new file mode 100644 index 0000000..9249e28 --- /dev/null +++ b/app/finder/js/jquery-2.2.4.min.js @@ -0,0 +1,4 @@ +/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */ +!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c; +}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length",""],thead:[1,"","
      "],col:[2,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],_default:[0,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ja(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]*)\/>/gi,la=/\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("'+ + ''; + } + $("#win10_command_center .command-body.today").html(today).addClass('active'); + } + }, menuOpen: function () { $("#win10-menu").addClass('opened'); $("#win10-menu").removeClass('hidden'); - this._hideShortcut(); + //this._hideShortcut(); //不关闭 $(".win10-open-iframe").addClass('hide'); }, menuToggle: function () { @@ -597,12 +808,12 @@ window.Win10 = { }, commandCenterOpen: function () { $("#win10_command_center").removeClass('hidden_right'); - this._hideShortcut(); + //this._hideShortcut(); $(".win10-open-iframe").addClass('hide'); $("#win10-msg-nof").removeClass('on-new-msg fa-commenting-o'); }, renderShortcuts:function () { - var h=parseInt(($("#win10 #win10-shortcuts")[0].offsetHeight-90)/100); + var h=parseInt(($("#win10 #win10-shortcuts")[0].offsetHeight-85)/100); var x=0,y=0; $("#win10 #win10-shortcuts .shortcut").each(function () { $(this).css({ @@ -668,12 +879,21 @@ window.Win10 = { this.commandCenterClose(); } }, - newMsg: function (title, content,handle_click) { - var e = $('
      ' + - '
      ' + title +'
      '+ - '
      ' + content + '
      ' + - '' + - '
      '); + newMsg: function (title,content,handle_click,app_name='提示消息',app_icon='',is_del=true) { + var msg = '
      ' + + '
      ' + + ''+app_icon+'' + + ''+app_name+''; + if (is_del) { + msg += ''; + } + msg +='
      ' + + '
      ' + + '
      ' + + '
      ' + title +'
      '+ + '
      ' + content + '
      ' + + '
      '; + var e = $(msg); $("#win10_command_center .msgs").prepend(e); e.find('.content:first,.title:first').click(function () { if(handle_click){ @@ -740,7 +960,7 @@ window.Win10 = { } }) }, - openUrl: function (url, title,areaAndOffset) { + openUrl: function (url,icon,title,areaAndOffset) { if(this._countTask>12){ layer.msg("您打开的太多了,歇会儿吧~"); return false; @@ -761,8 +981,8 @@ window.Win10 = { } var area,offset; if (this.isSmallScreen() || areaAndOffset==='max') { - area = ['100%', (document.body.clientHeight - 30) + 'px']; - offset = ['30px', '0']; + area = ['100%', (document.body.clientHeight - 24) + 'px']; + offset = ['24px', '0']; }else if(typeof areaAndOffset ==='object'){ area=areaAndOffset[0]; offset=areaAndOffset[1]; @@ -780,7 +1000,7 @@ window.Win10 = { shadeClose: true, shade: false, maxmin: true, //开启最大化最小化按钮 - title: title, + title: icon + title, content: url, area: area, offset: offset, @@ -800,11 +1020,11 @@ window.Win10 = { }, full:function (layero) { layero.find('.layui-layer-min').css('display','inline-block'); - layero_opened.css('top',30); + layero_opened.css('top',24); }, }); $('#win10_btn_group_middle .btn.active').removeClass('active'); - var btn = $('
      ' + title + '
      '); + var btn = $('
      '+icon+'
      '); var layero_opened=Win10.getLayeroByIndex(index); layero_opened.css('z-index',Win10._countTask+813); Win10._settop(layero_opened); @@ -819,9 +1039,9 @@ window.Win10 = { var height=layero_opened.css('height'); height=parseInt(height.replace('px','')); if (height>=document.body.clientHeight){ - layero_opened.css('height',height-32); - layero_opened.find('.layui-layer-content').css('height',height-72); - layero_opened.find('.layui-layer-content iframe').css('height',height-72); + layero_opened.css('height',height-25); + layero_opened.find('.layui-layer-content').css('height',height-55); + layero_opened.find('.layui-layer-content iframe').css('height',height-55); } },300); diff --git a/js/win10.js b/js/win10.js deleted file mode 100644 index 21eaa5e..0000000 --- a/js/win10.js +++ /dev/null @@ -1,924 +0,0 @@ -/** - * Created by Yuri2 on 2017/7/10. - */ -window.Win10 = { - _version:'v1.1.2.4', - _debug:true, - _bgs:{ - main:'', - mobile:'', - }, - _countTask: 0, - _newMsgCount:0, - _animated_classes:[], - _animated_liveness:0, - _switchMenuTooHurry:false, - _lang:'unknown', - _iframeOnClick :{ - resolution: 200, - iframes: [], - interval: null, - Iframe: function() { - this.element = arguments[0]; - this.cb = arguments[1]; - this.hasTracked = false; - }, - track: function(element, cb) { - this.iframes.push(new this.Iframe(element, cb)); - if (!this.interval) { - var _this = this; - this.interval = setInterval(function() { _this.checkClick(); }, this.resolution); - } - }, - checkClick: function() { - if (document.activeElement) { - var activeElement = document.activeElement; - for (var i in this.iframes) { - var eid=undefined; - if((eid=this.iframes[i].element.id) && !document.getElementById(eid)){ - delete this.iframes[i]; - continue; - } - if (activeElement === this.iframes[i].element) { // user is in this Iframe - if (this.iframes[i].hasTracked === false) { - this.iframes[i].cb.apply(window, []); - this.iframes[i].hasTracked = true; - } - } else { - this.iframes[i].hasTracked = false; - } - } - } - } - }, - _iframe_click_lock_children:{}, - _renderBar:function () { - //调整任务栏项目的宽度 - if(this._countTask<=0){return;} //防止除以0 - var btns=$("#win10_btn_group_middle>.btn"); - btns.css('width',('calc('+(1/this._countTask*100)+'% - 1px )')) - }, - _handleReady:[], - _hideShortcut:function () { - var that=$("#win10 #win10-shortcuts .shortcut"); - that.removeClass('animated flipInX'); - that.addClass('animated flipOutX'); - }, - _showShortcut:function () { - var that=$("#win10 #win10-shortcuts .shortcut"); - that.removeClass('animated flipOutX'); - that.addClass('animated flipInX'); - }, - _checkBgUrls:function () { - var loaders=$('#win10>.img-loader'); - var flag=false; - if(Win10.isSmallScreen()){ - if(Win10._bgs.mobile){ - loaders.each(function () { - var loader=$(this); - if(loader.attr('src')===Win10._bgs.mobile && loader.hasClass('loaded')){ - Win10._setBackgroundImg(Win10._bgs.mobile); - flag=true; - } - }); - if(!flag){ - //没找到加载完毕的图片 - var img=$(''); - $('#win10').append(img); - Win10._onImgComplete(img[0],function () { - img.addClass('loaded'); - Win10._setBackgroundImg(Win10._bgs.mobile); - }) - } - } - }else{ - if(Win10._bgs.main){ - loaders.each(function () { - var loader=$(this); - if(loader.attr('src')===Win10._bgs.main && loader.hasClass('loaded')){ - Win10._setBackgroundImg(Win10._bgs.main); - flag=true; - } - }); - if(!flag){ - //没找到加载完毕的图片 - var img=$(''); - $('#win10').append(img); - Win10._onImgComplete(img[0],function () { - img.addClass('loaded'); - Win10._setBackgroundImg(Win10._bgs.main); - }) - } - } - } - - }, - _startAnimate:function () { - setInterval(function () { - var classes_lenth=Win10._animated_classes.length; - var animated_liveness=Win10._animated_liveness; - if(animated_liveness===0 || classes_lenth===0 || !$("#win10-menu").hasClass('opened')){return;} - $('#win10-menu>.blocks>.menu_group>.block').each(function () { - if(!$(this).hasClass('onAnimate') && Math.random()<=animated_liveness){ - var that=$(this); - var class_animate = Win10._animated_classes[Math.floor((Math.random()*classes_lenth))]; - that.addClass('onAnimate'); - setTimeout(function () { - that.addClass(class_animate); - setTimeout(function () { - that.removeClass('onAnimate'); - that.removeClass(class_animate); - },3000); - },Math.random()*2*1000) - } - }) - },1000); - }, - _onImgComplete:function (img, callback) { - if(!img){return;} - var timer = setInterval(function() { - if (img.complete) { - callback(img); - clearInterval(timer); - } - }, 50) - }, - _setBackgroundImg:function (img) { - $('#win10').css('background-image','url('+img+')') - }, - _settop:function (layero) { - if(!isNaN(layero)){ - layero=this.getLayeroByIndex(layero); - } - //置顶窗口 - var max_zindex=0; - $(".win10-open-iframe").each(function () { - z=parseInt($(this).css('z-index')); - $(this).css('z-index',z-1); - if(z>max_zindex){max_zindex=z;} - }); - layero.css('z-index',max_zindex+1); - }, - _checkTop:function () { - var max_index=0,max_z=0,btn=null; - $("#win10_btn_group_middle .btn.show").each(function () { - var index=$(this).attr('index'); - var layero=Win10.getLayeroByIndex(index); - var z=layero.css('z-index'); - if(z>max_z){ - max_index=index; - max_z=z; - btn=$(this); - } - }); - this._settop(max_index); - $("#win10_btn_group_middle .btn").removeClass('active'); - if(btn){ - btn.addClass('active'); - } - }, - _renderContextMenu:function (x,y,menu,trigger) { - this._removeContextMenu(); - if(menu===true){return;} - var dom = $("
        "); - $('#win10').append(dom); - var ul=dom.find('ul'); - for(var i=0;i')); - continue; - } - if(typeof(item)==='string'){ - ul.append($('
      • '+item+'
      • ')); - continue; - } - if(typeof(item)==='object'){ - var sub=$('
      • '+item[0]+'
      • '); - ul.append(sub); - sub.click(trigger,item[1]); - continue; - } - } - //修正坐标 - if(x+150>document.body.clientWidth){x-=150} - if(y+dom.height()>document.body.clientHeight){y-=dom.height()} - dom.css({ - top:y, - left:x, - }); - }, - _removeContextMenu:function () { - $('.win10-context-menu').remove(); - }, - _closeWin:function (index) { - $("#win10_" + index).remove(); - layer.close(index); - Win10._checkTop(); - Win10._countTask--;//回退countTask数 - Win10._renderBar(); - }, - _fixWindowsHeightAndWidth:function(){ - //此处代码修正全屏切换引起的子窗体尺寸超出屏幕 - var opens=$('.win10-open-iframe'); - var clientHeight=document.body.clientHeight; - opens.each(function () { - var layero_opened=$(this); - var height=layero_opened.css('height'); - height=parseInt(height.replace('px','')); - if (height+40>=clientHeight){ - layero_opened.css('height',clientHeight-40); - layero_opened.find('.layui-layer-content').css('height',clientHeight-83); - layero_opened.find('.layui-layer-content iframe').css('height',clientHeight-83); - } - }) - }, - - /** - * 原 win10_bind_open_windows 子窗口事件自动绑定插件 - * @author:vG - * @修订:Yuri2 - * @version:2.0.1 - * 说明: 所有#win10下的元素加入类win10-open-window即可自动绑定openUrl函数,无须用onclick手动绑定 - */ - _bind_open_windows:function () { - // 注册事件委派 打开url窗口 - $('#win10').on('click', '.win10-open-window', function() { - //>> 获取当前点击的对象 - $this = $(this); - //>> 判断url地址是否为空 如果为空 不予处理 - if($this.data('url') !== "") { - //>> 获取弹窗标题 - var title = $this.data('title')||'', - areaAndOffset; - //>> 判断是否有标题图片 - var bg=$this.data('icon-bg')?$this.data('icon-bg'):''; - if($this.data('icon-image')) { - //>> 加入到标题中 - title = '' + title; - } - if($this.data('icon-font')) { - //>> 加入到标题中 - title = '' + title; - } - if(!title && $this.children('.icon').length===1 && $this.children('.title').length===1){ - title = $this.children('.icon').prop("outerHTML")+$this.children('.title').html(); - } - //>> 判断是否需要 设置 区域宽度高度 - if($this.data('area-offset')) { - areaAndOffset = $this.data('area-offset'); - //>> 判断是否有分隔符 - if(areaAndOffset.indexOf(',')!==-1){ - areaAndOffset = eval(areaAndOffset); - } - } - //>> 调用win10打开url方法 - Win10.openUrl($this.data('url'), title, areaAndOffset); - } - }) - }, - _init:function () { - - //获取语言 - this._lang=(navigator.language || navigator.browserLanguage).toLowerCase(); - - $("#win10_btn_win").click(function () { - Win10.commandCenterClose(); - Win10.menuToggle(); - }); - $("#win10_btn_command").click(function () { - Win10.menuClose(); - Win10.commandCenterToggle(); - }); - $("#win10 .desktop").click(function () { - Win10.menuClose(); - Win10.commandCenterClose(); - }); - $('#win10').on('click',".msg .btn_close_msg", function () { - var msg = $(this).parent(); - $(msg).addClass('animated slideOutRight'); - setTimeout(function () { - msg.remove() - }, 500) - }); - $('#win10_btn_command_center_clean_all').click(function () { - var msgs=$('#win10_command_center .msg'); - msgs.addClass('animated slideOutRight'); - setTimeout(function () { - msgs.remove() - }, 1500); - setTimeout(function () { - Win10.commandCenterClose(); - }, 1000); - }); - $("#win10_btn_show_desktop").click(function () { - $("#win10 .desktop").click(); - Win10.hideWins(); - }); - $("#win10-menu-switcher").click(function () { - if(Win10._switchMenuTooHurry){return;} - Win10._switchMenuTooHurry=true; - var class_name='win10-menu-hidden'; - var list=$("#win10-menu>.list"); - var blocks=$("#win10-menu>.blocks"); - var toggleSlide=function (obj) { - if(obj.hasClass(class_name)){ - obj.addClass('animated slideInLeft'); - obj.removeClass('animated slideOutLeft'); - obj.removeClass(class_name); - }else{ - setTimeout(function () { - obj.addClass(class_name); - },450); - obj.addClass('animated slideOutLeft'); - obj.removeClass('animated slideInLeft'); - } - }; - toggleSlide(list); - toggleSlide(blocks); - setTimeout(function () { - Win10._switchMenuTooHurry=false; - },520) - }); - $("#win10_btn_group_middle").click(function () { - $("#win10 .desktop").click(); - }); - $(document).on('click', '.win10-btn-refresh', function () { - var index = $(this).attr('index'); - var iframe = Win10.getLayeroByIndex(index).find('iframe'); - iframe.attr('src', iframe.attr('src')); - }); - $(document).on('click', '.win10-btn-change-url', function () { - var index = $(this).attr('index'); - var iframe = Win10.getLayeroByIndex(index).find('iframe'); - layer.prompt({ - title: Win10.lang('编辑网址','Edit URL'), - formType: 2, - skin:'win10-layer-open-browser', - value: iframe.attr('src'), - area: ['500px', '200px'], - zIndex:99999999999 - }, function (value, i) { - layer.close(i); - layer.msg(Win10.lang('请稍候...','Hold on please...'),{time:1500},function () { - iframe.attr('src', value); - }); - }); - }); - $(document).on('mousedown','.win10-open-iframe',function () { - var layero=$(this); - Win10._settop(layero); - Win10._checkTop(); - }); - $('#win10_btn_group_middle').on('click','.btn_close',function () { - var index = $(this).parent().attr('index') ; - Win10._closeWin(index); - }); - $('#win10-menu .list').on('click','.item',function () { - var e=$(this); - if(e.hasClass('has-sub-down')){ - $('#win10-menu .list .item.has-sub-up').toggleClass('has-sub-down').toggleClass('has-sub-up'); - $("#win10-menu .list .sub-item").slideUp(); - } - if(e.next().hasClass('sub-item')){ - e.toggleClass('has-sub-down').toggleClass('has-sub-up'); - } - while (e.next().hasClass('sub-item')){ - e.next().slideToggle(); - e=e.next(); - } - }); - $("#win10-btn-browser").click(function () { - // var area = ['100%', (document.body.clientHeight - 40) + 'px']; - // var offset = ['0', '0']; - layer.prompt({ - title: Win10.lang('访问网址','Visit URL'), - formType: 2, - value: '', - skin:'win10-layer-open-browser', - area: ['300px', '150px'], - zIndex:99999999999 - }, function (value, i) { - layer.close(i); - layer.msg(Win10.lang('请稍候...','Hold on please...'),{time:1500},function () { - Win10.openUrl(value,value); - }); - }); - }); - setInterval(function () { - var myDate = new Date(); - var year=myDate.getFullYear(); - var month=myDate.getMonth()+1; - var date=myDate.getDate(); - var hours=myDate.getHours(); - var mins=myDate.getMinutes();if (mins<10){mins='0'+mins} - $("#win10_btn_time").html(hours+':'+mins+'
        '+year+'/'+month+'/'+date); - },1000); - //离开前警告 - document.body.onbeforeunload = function(event){ - var rel = Win10.lang( '系统可能不会保存您所做的更改','The system may not save the changes you have made.'); - if(!window.event){ - event.returnValue=rel; - }else{ - window.event.returnValue=rel; - } - }; - Win10.buildList();//预处理左侧菜单 - Win10._startAnimate();//动画处理 - Win10.renderShortcuts();//渲染图标 - $("#win10-shortcuts").removeClass('shortcuts-hidden');//显示图标 - Win10._showShortcut();//显示图标 - Win10.renderMenuBlocks();//渲染磁贴 - //窗口改大小,重新渲染 - $(window).resize(function() { - Win10.renderShortcuts(); - Win10._checkBgUrls(); - if(!Win10.isSmallScreen()) Win10._fixWindowsHeightAndWidth(); //2017年11月14日修改,加入了if条件 - }); - //细节 - $(document).on('focus',".win10-layer-open-browser textarea",function () { - $(this).attr('spellcheck','false'); - }); - $(document).on('keyup',".win10-layer-open-browser textarea",function (e) { - if(e.keyCode===13){ - $(this).parent().parent().find('.layui-layer-btn0').click(); - } - }); - //打广告 - setTimeout(function () { - console.log(Win10.lang('本页由Win10-UI强力驱动\n更多信息:http://win10ui.yuri2.cn \nWin10-UI,轻松打造别具一格的后台界面 ','The page is strongly driven by Win10-UI.\nFor more info: http://win10ui.yuri2.cn.\n Win10-UI, easy to create a unique background interface.')) - },2000); - //点击清空右键菜单 - $(document).click(function (event) { - if(!event.button) - Win10._removeContextMenu(); - }); - //禁用右键的右键 - $(document).on('contextmenu','.win10-context-menu',function (e) { - e.preventDefault(); - e.stopPropagation(); - }); - //设置默认右键菜单 - Win10.setContextMenu('#win10',true); - Win10.setContextMenu('#win10>.desktop',[ - [' 收藏本页',function () { - var url = window.location; - var title = document.title; - var ua = navigator.userAgent.toLowerCase(); - if (ua.indexOf("360se") > -1) { - layer.alert(Win10.lang('您的浏览器不支持,请按 Ctrl+D 手动收藏!','Your browser does not support, please press Ctrl+D to manual collection!')); - } - else if (ua.indexOf("msie 8") > -1) { - window.external.AddToFavoritesBar(url, title); //IE8 - } - else if (document.all) { - try{ - window.external.addFavorite(url, title); - }catch(e){ - layer.alert(Win10.lang('您的浏览器不支持,请按 Ctrl+D 手动收藏!','Your browser does not support, please press Ctrl+D to manual collection!')); - } - } - else if (window.sidebar) { - window.sidebar.addPanel(title, url, ""); - } - else { - layer.alert(Win10.lang('您的浏览器不支持,请按 Ctrl+D 手动收藏!','Your browser does not support, please press Ctrl+D to manual collection!')); - } - }], - [' '+Win10.lang('进入全屏','Enable Full Screen'),function () {Win10.enableFullScreen()}], - [' '+Win10.lang('退出全屏','Disable Full Screen'),function () {Win10.disableFullScreen()}], - '|', - [' '+Win10.lang('关于','About Us'),function () {Win10.aboutUs()}], - ]); - Win10.setContextMenu('#win10_btn_group_middle',[ - [' '+Win10.lang('全部显示','Show All Windows'),function () {Win10.showWins()}], - [' '+Win10.lang('全部隐藏','Hide All Windows'),function () {Win10.hideWins()}], - [' '+Win10.lang('全部关闭','Close All Windows'),function () {Win10.closeAll()}], - ]); - - //处理消息图标闪烁 - setInterval(function () { - var btn=$("#win10-msg-nof.on-new-msg"); - if(btn.length>0){ - btn.toggleClass('fa-commenting-o'); - } - },600); - - //绑定快捷键 - $("body").keyup(function (e) { - if (e.ctrlKey) - { - switch (e.keyCode){ - case 37://left - $("#win10_btn_win").click(); - break; - case 38://up - Win10.showWins(); - break; - case 39://right - $("#win10_btn_command").click(); - break; - case 40://down - Win10.hideWins(); - break; - } - } - }); - - /** - * WIN10-UI v1.1.2.2 桌面舞台支持补丁 - * WIN10-UI v1.1.2.2之后的版本不需要此补丁 - * @usage 直接引用即可(需要jquery) - * @author Yuri2 - */ - if($("#win10-desktop-scene").length<1) { - $("#win10-shortcuts").css({ - position: 'absolute', - left: 0, - top: 0, - 'z-index': 100, - }); - $("#win10 .desktop").append("
        ") - } - - //属性绑定 - Win10._bind_open_windows(); - }, - setBgUrl:function (bgs) { - this._bgs=bgs; - this._checkBgUrls(); - }, - menuClose: function () { - $("#win10-menu").removeClass('opened'); - $("#win10-menu").addClass('hidden'); - this._showShortcut(); - $(".win10-open-iframe").removeClass('hide'); - }, - menuOpen: function () { - $("#win10-menu").addClass('opened'); - $("#win10-menu").removeClass('hidden'); - this._hideShortcut(); - $(".win10-open-iframe").addClass('hide'); - }, - menuToggle: function () { - if(!$("#win10-menu").hasClass('opened')){ - this.menuOpen(); - }else{ - this.menuClose(); - } - }, - commandCenterClose: function () { - $("#win10_command_center").addClass('hidden_right'); - this._showShortcut(); - $(".win10-open-iframe").removeClass('hide'); - }, - commandCenterOpen: function () { - $("#win10_command_center").removeClass('hidden_right'); - this._hideShortcut(); - $(".win10-open-iframe").addClass('hide'); - $("#win10-msg-nof").removeClass('on-new-msg fa-commenting-o'); - }, - renderShortcuts:function () { - var h=parseInt($("#win10 #win10-shortcuts")[0].offsetHeight/100); - var x=0,y=0; - $("#win10 #win10-shortcuts .shortcut").each(function () { - $(this).css({ - left:x*82+10, - top:y*100+10, - }); - y++; - if(y>=h){ - y=0; - x++; - } - }); - }, - renderMenuBlocks:function () { - var cell_width=44; - var groups=$("#win10-menu .menu_group"); - groups.each(function () { - var group=$(this); - var blocks=group.children('.block'); - var max_height=0; - blocks.each(function () { - var that=$(this); - var loc=that.attr('loc').split(','); - var size=that.attr('size').split(','); - var top=(loc[1]-1)*cell_width+40; - var height=size[1]*cell_width; - var full_height=top+height; - if (full_height>max_height){max_height=full_height} - that.css({ - top:top, - left:(loc[0]-1)*cell_width, - width:size[0]*cell_width, - height:height, - }) - - }); - group.css('height',max_height); - }); - }, - commandCenterToggle: function () { - if($("#win10_command_center").hasClass('hidden_right')){ - this.commandCenterOpen(); - }else{ - this.commandCenterClose(); - } - }, - newMsg: function (title, content,handle_click) { - var e = $('
        ' + - '
        ' + title +'
        '+ - '
        ' + content + '
        ' + - '' + - '
        '); - $("#win10_command_center .msgs").prepend(e); - e.find('.content:first,.title:first').click(function () { - if(handle_click){ - handle_click(e); - } - }); - layer.tips(Win10.lang('新消息:','New message:')+title, '#win10_btn_command', { - tips: [1, '#3c6a4a'], - time: 3000 - }); - if($("#win10_command_center").hasClass('hidden_right')){ - $("#win10-msg-nof").addClass('on-new-msg'); - } - }, - getLayeroByIndex: function (index) { - return $('#' + 'layui-layer' + index) - }, - isSmallScreen: function (size) { - if (!size) { - size = 768 - } - var width = document.body.clientWidth; - return width < size; - }, - enableFullScreen: function () { - var docElm = document.documentElement; - //W3C - if (docElm.requestFullscreen) { - docElm.requestFullscreen(); - } - //FireFox - else if (docElm.mozRequestFullScreen) { - docElm.mozRequestFullScreen(); - } - //Chrome等 - else if (docElm.webkitRequestFullScreen) { - docElm.webkitRequestFullScreen(); - } - //IE11 - else if (docElm.msRequestFullscreen) { - document.body.msRequestFullscreen(); - } - }, - disableFullScreen: function () { - if (document.exitFullscreen) { - document.exitFullscreen(); - } - else if (document.mozCancelFullScreen) { - document.mozCancelFullScreen(); - } - else if (document.webkitCancelFullScreen) { - document.webkitCancelFullScreen(); - } - else if (document.msExitFullscreen) { - document.msExitFullscreen(); - } - }, - buildList:function () { - $("#win10-menu .list .sub-item").slideUp(); - $("#win10-menu .list .item").each(function () { - if($(this).next().hasClass('sub-item')){ - $(this).addClass('has-sub-down'); - $(this).removeClass('has-sub-up'); - } - }) - }, - openUrl: function (url, title,areaAndOffset) { - if(this._countTask>12){ - layer.msg("您打开的太多了,歇会儿吧~"); - return false; - }else{ - this._countTask++; - } - if(!url){url='404'} - url=url.replace(/(^\s*)|(\s*$)/g, ""); - var preg=/^(https?:\/\/|\.\.?\/|\/\/?)/; - if(!preg.test(url)){ - url='http://'+url; - } - if (!url) { - url = '//yuri2.cn'; - } - if (!title) { - title = url; - } - var area,offset; - if (this.isSmallScreen() || areaAndOffset==='max') { - area = ['100%', (document.body.clientHeight - 40) + 'px']; - offset = ['0', '0']; - }else if(typeof areaAndOffset ==='object'){ - area=areaAndOffset[0]; - offset=areaAndOffset[1]; - }else { - area = ['80%', '80%']; - var topset, leftset; - topset = parseInt($(window).height()); - topset = (topset - (topset * 0.8)) / 2 - 41; - leftset = parseInt($(window).width()); - leftset = (leftset - (leftset * 0.8)) / 2 - 120; - offset = [Math.round((this._countTask % 10 * 20) + topset) + 'px', Math.round((this._countTask % 10 * 20 + 100) + leftset) + 'px']; - } - var index = layer.open({ - type: 2, - shadeClose: true, - shade: false, - maxmin: true, //开启最大化最小化按钮 - title: title, - content: url, - area: area, - offset: offset, - isOutAnim: false, - skin:'win10-open-iframe', - cancel: function (index, layero) { - $("#win10_" + index).remove(); - Win10._checkTop(); - Win10._countTask--;//回退countTask数 - Win10._renderBar(); - }, - min: function (layero) { - layero.hide(); - $("#win10_" + index).removeClass('show'); - Win10._checkTop(); - return false; - }, - full:function (layero) { - layero.find('.layui-layer-min').css('display','inline-block'); - }, - }); - $('#win10_btn_group_middle .btn.active').removeClass('active'); - var btn = $('
        ' + title + '
        '); - var layero_opened=Win10.getLayeroByIndex(index); - layero_opened.css('z-index',Win10._countTask+813); - Win10._settop(layero_opened); - layero_opened.find('.layui-layer-setwin').prepend(''); - layero_opened.find('.layui-layer-setwin .layui-layer-max').click(function () { - setTimeout(function () { - var height=layero_opened.css('height'); - height=parseInt(height.replace('px','')); - if (height>=document.body.clientHeight){ - layero_opened.css('height',height-40); - layero_opened.find('.layui-layer-content').css('height',height-83); - layero_opened.find('.layui-layer-content iframe').css('height',height-83); - } - },300); - - }); - $("#win10_btn_group_middle").append(btn); - Win10._renderBar(); - btn.click(function () { - var index = $(this).attr('index'); - var layero = Win10.getLayeroByIndex(index); - var settop=function () { - //置顶窗口 - var max_zindex=0; - $(".win10-open-iframe").each(function () { - z=parseInt($(this).css('z-index')); - $(this).css('z-index',z-1); - if(z>max_zindex){max_zindex=z;} - }); - layero.css('z-index',max_zindex+1); - }; - if ($(this).hasClass('show')) { - if($(this).hasClass('active')){ - $(this).removeClass('active'); - $(this).removeClass('show'); - Win10._checkTop(); - layero.hide(); - }else{ - $('#win10_btn_group_middle .btn.active').removeClass('active'); - $(this).addClass('active'); - Win10._settop(layero); - } - } else { - $(this).addClass('show'); - $('#win10_btn_group_middle .btn.active').removeClass('active'); - $(this).addClass('active'); - Win10._settop(layero); - layero.show(); - } - }); - - - Win10._iframeOnClick.track(layero_opened.find('iframe:first')[0], function() { - if(Object.getOwnPropertyNames(Win10._iframe_click_lock_children).length===0){ - Win10._settop(layero_opened); - Win10._checkTop(); - }else{ - console.log('click locked'); - } - }); - - this.menuClose(); - this.commandCenterClose(); - return index; - }, - closeAll: function() { - $(".win10-open-iframe").remove(); - $("#win10_btn_group_middle").html(""); - Win10._countTask = 0; - Win10._renderBar(); - }, - setAnimated:function (animated_classes,animated_liveness) { - this._animated_classes=animated_classes; - this._animated_liveness=animated_liveness; - }, - exit:function () { - layer.confirm(Win10.lang('确认要关闭本页吗?','Are you sure you want to close this page?'), {icon: 3, title:Win10.lang('提示','Prompt')}, function(index){ - document.body.onbeforeunload = function(){}; - window.location.href="about:blank"; - window.close(); - layer.close(index); - layer.alert(Win10.lang('哎呀,好像失败了呢。','Ops...There seems to be a little problem.'), { - skin: 'layui-layer-lan' - ,closeBtn: 0 - }); - }); - - }, - lang:function (cn,en) { - return this._lang==='zh-cn'||this._lang==='zh-tw'?cn:en; - }, - aboutUs: function() { - //关于我们 - layer.open({ - type: 1, - closeBtn: 1, //不显示关闭按钮 - anim: 2, - skin: 'layui-layer-molv', - title: 'WIN10-UI '+this._version, - shadeClose: true, //开启遮罩关闭 - area: ['320px', '200px'], //宽高 - content: '
        ' + - '

        支持组件:layer、jquery、animated.css、font-awesome

        ' + - '

        尤里2号©版权所有

        ' + - '

        作者邮箱:yuri2peter@qq.com

        ' + - '
        ' - }); - }, - setContextMenu:function (jq_dom, menu) { - if(typeof (jq_dom)==='string'){ - jq_dom=$(jq_dom); - } - jq_dom.unbind('contextmenu'); - jq_dom.on('contextmenu', function(e) { - if(menu){ - Win10._renderContextMenu(e.clientX,e.clientY,menu,this); - if (e.cancelable) { - // 判断默认行为是否已经被禁用 - if (!e.defaultPrevented) { - e.preventDefault(); - } - } - e.stopPropagation(); - } - }); - }, - hideWins:function () { - $('#win10_btn_group_middle>.btn.show').each(function () { - var index = $(this).attr('index'); - var layero = Win10.getLayeroByIndex(index); - $(this).removeClass('show'); - $(this).removeClass('active'); - layero.hide(); - }) - }, - showWins:function () { - $('#win10_btn_group_middle>.btn').each(function () { - var index = $(this).attr('index'); - var layero = Win10.getLayeroByIndex(index); - $(this).addClass('show'); - layero.show(); - }); - Win10._checkTop(); - }, - getDesktopScene:function () { - return $("#win10-desktop-scene"); - }, - onReady:function (handle) { - Win10._handleReady.push(handle); - } -}; - - -$(function () { - Win10._init(); - for(var i in Win10._handleReady){ - var handle=Win10._handleReady[i]; - handle(); - } -}); \ No newline at end of file diff --git a/login.html b/login.html index 51132d5..cc5ae96 100644 --- a/login.html +++ b/login.html @@ -1,4 +1,3 @@ -<<<<<<< HEAD @@ -39,88 +38,4 @@ - -======= - - - - - -iCloud - - - - - - - - - - - - -
        -
        -
        - -
        - -
        -
        - - - - -
        -
        - - ->>>>>>> 6c820125c208f963bce20f07283261761fc8e1c8 + \ No newline at end of file diff --git a/plugins/shortcut-drawer/shortcut-drawer.js b/plugins/shortcut-drawer/shortcut-drawer.js index 36fd28c..d986670 100644 --- a/plugins/shortcut-drawer/shortcut-drawer.js +++ b/plugins/shortcut-drawer/shortcut-drawer.js @@ -10,30 +10,33 @@ Win10.onReady(function () { if($this.data('url') !== "") { //>> 获取弹窗标题 var title = $this.data('title')||'', - areaAndOffset; + areaAndOffset,icon; //>> 判断是否有标题图片 var bg=$this.data('icon-bg')?$this.data('icon-bg'):''; if($this.data('icon-image')) { //>> 加入到标题中 - title = '' + title; + icon = ''; } if($this.data('icon-font')) { //>> 加入到标题中 - title = '' + title; + icon = ''; } if(!title && $this.children('.icon').length===1 && $this.children('.title').length===1){ - title = $this.children('.icon').prop("outerHTML")+$this.children('.title').html(); + title = $this.children('.title').html(); + if(!icon){ + icon = $this.children('.icon').prop("outerHTML"); + } } //>> 判断是否需要 设置 区域宽度高度 if($this.data('area-offset')) { areaAndOffset = $this.data('area-offset'); //>> 判断是否有分隔符 if(areaAndOffset.indexOf(',')!==-1){ - areaAndOffset = eval(areaAndOffset); + areaAndOffset = eval(areaAndOsffset); } } //>> 调用win10打开url方法 - Win10.openUrl($this.data('url'), title, areaAndOffset); + Win10.openUrl($this.data('url'),icon, title, areaAndOffset); } }) })(), diff --git a/plugins/shortcut-drawer/shortcut-drawer.min.js b/plugins/shortcut-drawer/shortcut-drawer.min.js index 59f202b..534d99c 100644 --- a/plugins/shortcut-drawer/shortcut-drawer.min.js +++ b/plugins/shortcut-drawer/shortcut-drawer.min.js @@ -1 +1 @@ -Win10.onReady(function(){(function(){$("body").on("click",".shortcut-drawer.win10-open-window",function(){$this=$(this);if($this.data("url")!==""){var title=$this.data("title")||"",areaAndOffset;var bg=$this.data("icon-bg")?$this.data("icon-bg"):"";if($this.data("icon-image")){title=''+title}if($this.data("icon-font")){title=''+title}if(!title&&$this.children(".icon").length===1&&$this.children(".title").length===1){title=$this.children(".icon").prop("outerHTML")+$this.children(".title").html()}if($this.data("area-offset")){areaAndOffset=$this.data("area-offset");if(areaAndOffset.indexOf(",")!==-1){areaAndOffset=eval(areaAndOffset)}}Win10.openUrl($this.data("url"),title,areaAndOffset)}})})(),$("body").on("click",".win10-drawer",function(){var content=$(this).find(".win10-drawer-box").html();var title=$(this).children(".title").html();var index=layer.open({type:1,shadeClose:true,skin:"drawer",area:[Win10.isSmallScreen()?"80%":"60%","80%"],closeBtn:0,title:title,content:content,});var layero=Win10.getLayeroByIndex(index);layero.find(".shortcut-drawer").click(function(){layer.close(index)})})}); \ No newline at end of file +Win10.onReady(function(){(function(){$('body').on('click','.shortcut-drawer.win10-open-window',function(){$this=$(this);if($this.data('url')!==""){var title=$this.data('title')||'',areaAndOffset,icon;var bg=$this.data('icon-bg')?$this.data('icon-bg'):'';if($this.data('icon-image')){icon=''}if($this.data('icon-font')){icon=''}if(!title&&$this.children('.icon').length===1&&$this.children('.title').length===1){title=$this.children('.title').html();if(!icon){icon=$this.children('.icon').prop("outerHTML")}}if($this.data('area-offset')){areaAndOffset=$this.data('area-offset');if(areaAndOffset.indexOf(',')!==-1){areaAndOffset=eval(areaAndOsffset)}}Win10.openUrl($this.data('url'),icon,title,areaAndOffset)}})})(),$('body').on('click','.win10-drawer',function(){var content=$(this).find('.win10-drawer-box').html();var title=$(this).children('.title').html();var index=layer.open({type:1,shadeClose:true,skin:'drawer',area:[Win10.isSmallScreen()?"80%":"60%","80%"],closeBtn:0,title:title,content:content,});var layero=Win10.getLayeroByIndex(index);layero.find('.shortcut-drawer').click(function(){layer.close(index)})})}); \ No newline at end of file diff --git a/plugins/theme_switcher/bg/bg1.jpg b/plugins/theme_switcher/bg/bg1.jpg index 6d0698b..b08b38c 100644 Binary files a/plugins/theme_switcher/bg/bg1.jpg and b/plugins/theme_switcher/bg/bg1.jpg differ diff --git a/plugins/theme_switcher/bg/bg10.jpg b/plugins/theme_switcher/bg/bg10.jpg index 95a2d5e..5174a5c 100644 Binary files a/plugins/theme_switcher/bg/bg10.jpg and b/plugins/theme_switcher/bg/bg10.jpg differ diff --git a/plugins/theme_switcher/bg/bg10_small.jpg b/plugins/theme_switcher/bg/bg10_small.jpg index 045dbd5..6bcd241 100644 Binary files a/plugins/theme_switcher/bg/bg10_small.jpg and b/plugins/theme_switcher/bg/bg10_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg11.jpg b/plugins/theme_switcher/bg/bg11.jpg index be99b4a..4147c18 100644 Binary files a/plugins/theme_switcher/bg/bg11.jpg and b/plugins/theme_switcher/bg/bg11.jpg differ diff --git a/plugins/theme_switcher/bg/bg11_small.jpg b/plugins/theme_switcher/bg/bg11_small.jpg index 5885022..8128e9d 100644 Binary files a/plugins/theme_switcher/bg/bg11_small.jpg and b/plugins/theme_switcher/bg/bg11_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg12.jpg b/plugins/theme_switcher/bg/bg12.jpg deleted file mode 100644 index d12fbee..0000000 Binary files a/plugins/theme_switcher/bg/bg12.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg12_small.jpg b/plugins/theme_switcher/bg/bg12_small.jpg deleted file mode 100644 index 3c75d2f..0000000 Binary files a/plugins/theme_switcher/bg/bg12_small.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg13.jpg b/plugins/theme_switcher/bg/bg13.jpg deleted file mode 100644 index f0aac0e..0000000 Binary files a/plugins/theme_switcher/bg/bg13.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg13_small.jpg b/plugins/theme_switcher/bg/bg13_small.jpg deleted file mode 100644 index 165f72b..0000000 Binary files a/plugins/theme_switcher/bg/bg13_small.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg14.jpg b/plugins/theme_switcher/bg/bg14.jpg deleted file mode 100644 index aa22d12..0000000 Binary files a/plugins/theme_switcher/bg/bg14.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg14_small.jpg b/plugins/theme_switcher/bg/bg14_small.jpg deleted file mode 100644 index 955841d..0000000 Binary files a/plugins/theme_switcher/bg/bg14_small.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg15.jpg b/plugins/theme_switcher/bg/bg15.jpg deleted file mode 100644 index 9ef0008..0000000 Binary files a/plugins/theme_switcher/bg/bg15.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg15_small.jpg b/plugins/theme_switcher/bg/bg15_small.jpg deleted file mode 100644 index 394ce1d..0000000 Binary files a/plugins/theme_switcher/bg/bg15_small.jpg and /dev/null differ diff --git a/plugins/theme_switcher/bg/bg1_small.jpg b/plugins/theme_switcher/bg/bg1_small.jpg index 962190b..3afdbc0 100644 Binary files a/plugins/theme_switcher/bg/bg1_small.jpg and b/plugins/theme_switcher/bg/bg1_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg2.jpg b/plugins/theme_switcher/bg/bg2.jpg index f78d34f..69555ee 100644 Binary files a/plugins/theme_switcher/bg/bg2.jpg and b/plugins/theme_switcher/bg/bg2.jpg differ diff --git a/plugins/theme_switcher/bg/bg2_small.jpg b/plugins/theme_switcher/bg/bg2_small.jpg index 54090d3..caf3b1e 100644 Binary files a/plugins/theme_switcher/bg/bg2_small.jpg and b/plugins/theme_switcher/bg/bg2_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg3.jpg b/plugins/theme_switcher/bg/bg3.jpg index 4b32ed5..d9f53c8 100644 Binary files a/plugins/theme_switcher/bg/bg3.jpg and b/plugins/theme_switcher/bg/bg3.jpg differ diff --git a/plugins/theme_switcher/bg/bg3_small.jpg b/plugins/theme_switcher/bg/bg3_small.jpg index 4c397d2..317bf38 100644 Binary files a/plugins/theme_switcher/bg/bg3_small.jpg and b/plugins/theme_switcher/bg/bg3_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg4.jpg b/plugins/theme_switcher/bg/bg4.jpg index 54c47c1..0792854 100644 Binary files a/plugins/theme_switcher/bg/bg4.jpg and b/plugins/theme_switcher/bg/bg4.jpg differ diff --git a/plugins/theme_switcher/bg/bg4_small.jpg b/plugins/theme_switcher/bg/bg4_small.jpg index 16842ff..bcd1e7f 100644 Binary files a/plugins/theme_switcher/bg/bg4_small.jpg and b/plugins/theme_switcher/bg/bg4_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg5.jpg b/plugins/theme_switcher/bg/bg5.jpg index 51742c1..86ca2eb 100644 Binary files a/plugins/theme_switcher/bg/bg5.jpg and b/plugins/theme_switcher/bg/bg5.jpg differ diff --git a/plugins/theme_switcher/bg/bg5_small.jpg b/plugins/theme_switcher/bg/bg5_small.jpg index a13f3b6..ff30037 100644 Binary files a/plugins/theme_switcher/bg/bg5_small.jpg and b/plugins/theme_switcher/bg/bg5_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg6.jpg b/plugins/theme_switcher/bg/bg6.jpg index d9ad574..b369864 100644 Binary files a/plugins/theme_switcher/bg/bg6.jpg and b/plugins/theme_switcher/bg/bg6.jpg differ diff --git a/plugins/theme_switcher/bg/bg6_small.jpg b/plugins/theme_switcher/bg/bg6_small.jpg index 25cec1a..87c4284 100644 Binary files a/plugins/theme_switcher/bg/bg6_small.jpg and b/plugins/theme_switcher/bg/bg6_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg7.jpg b/plugins/theme_switcher/bg/bg7.jpg index f1df667..e54e1c1 100644 Binary files a/plugins/theme_switcher/bg/bg7.jpg and b/plugins/theme_switcher/bg/bg7.jpg differ diff --git a/plugins/theme_switcher/bg/bg7_small.jpg b/plugins/theme_switcher/bg/bg7_small.jpg index 4835f19..f965ccc 100644 Binary files a/plugins/theme_switcher/bg/bg7_small.jpg and b/plugins/theme_switcher/bg/bg7_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg8.jpg b/plugins/theme_switcher/bg/bg8.jpg index 07d91bd..7e2cc60 100644 Binary files a/plugins/theme_switcher/bg/bg8.jpg and b/plugins/theme_switcher/bg/bg8.jpg differ diff --git a/plugins/theme_switcher/bg/bg8_small.jpg b/plugins/theme_switcher/bg/bg8_small.jpg index 1b20baa..bfaedd4 100644 Binary files a/plugins/theme_switcher/bg/bg8_small.jpg and b/plugins/theme_switcher/bg/bg8_small.jpg differ diff --git a/plugins/theme_switcher/bg/bg9.jpg b/plugins/theme_switcher/bg/bg9.jpg index a6dba97..c412e0d 100644 Binary files a/plugins/theme_switcher/bg/bg9.jpg and b/plugins/theme_switcher/bg/bg9.jpg differ diff --git a/plugins/theme_switcher/bg/bg9_small.jpg b/plugins/theme_switcher/bg/bg9_small.jpg index 9c94e69..a5c10c4 100644 Binary files a/plugins/theme_switcher/bg/bg9_small.jpg and b/plugins/theme_switcher/bg/bg9_small.jpg differ diff --git a/plugins/theme_switcher/theme_switcher.css b/plugins/theme_switcher/theme_switcher.css index 135b9d4..5fbde8f 100644 --- a/plugins/theme_switcher/theme_switcher.css +++ b/plugins/theme_switcher/theme_switcher.css @@ -16,7 +16,7 @@ div.wallpaper_settingButton, a.theme_setting, div.theme_upload { display: inline; float: left; - margin: 5px 8px 5px 8px; + /*margin: 5px 8px 5px 8px;*/ width: 180px; height: 140px; cursor: pointer; @@ -27,7 +27,7 @@ div.wallpaper_settingButton, a.theme_setting, div.theme_upload { } a.theme_setting { - background: #cbe7fc; + /*background: #cbe7fc; */ transition: all 0.5s; } diff --git a/plugins/theme_switcher/theme_switcher.js b/plugins/theme_switcher/theme_switcher.js index 093273b..2b305d1 100644 --- a/plugins/theme_switcher/theme_switcher.js +++ b/plugins/theme_switcher/theme_switcher.js @@ -6,12 +6,12 @@ $(function () { { "pic": "./plugins/theme_switcher/bg/bg1.jpg", "thumb": "./bg/bg1_small.jpg", - "title": "win10" + "title": " Mojave Night" }, { "pic": "./plugins/theme_switcher/bg/bg2.jpg", "thumb": "./bg/bg2_small.jpg", - "title": "梦幻光影" + "title": "莫哈韦沙漠风景白天" }, { "pic": "./plugins/theme_switcher/bg/bg3.jpg", @@ -21,63 +21,43 @@ $(function () { { "pic": "./plugins/theme_switcher/bg/bg4.jpg", "thumb": "./bg/bg4_small.jpg", - "title": "乡土气息" + "title": "Abstract壁纸" }, { "pic": "./plugins/theme_switcher/bg/bg5.jpg", "thumb": "./bg/bg5_small.jpg", - "title": "绿色清新" + "title": "暗色沙漠壁纸" }, { "pic": "./plugins/theme_switcher/bg/bg6.jpg", "thumb": "./bg/bg6_small.jpg", - "title": "Win8" + "title": "莫哈韦沙漠" }, { "pic": "./plugins/theme_switcher/bg/bg7.jpg", "thumb": "./bg/bg7_small.jpg", - "title": "蓝色海岸" + "title": "沙漠风景" }, { "pic": "./plugins/theme_switcher/bg/bg8.jpg", "thumb": "./bg/bg8_small.jpg", - "title": "冰天雪地" + "title": "沙漠风光" }, { "pic": "./plugins/theme_switcher/bg/bg9.jpg", "thumb": "./bg/bg9_small.jpg", - "title": "繁花满树" + "title": "白天沙漠风景" }, { "pic": "./plugins/theme_switcher/bg/bg10.jpg", "thumb": "./bg/bg10_small.jpg", - "title": "精灵小鸟" + "title": "Sierra风景壁纸" }, { "pic": "./plugins/theme_switcher/bg/bg11.jpg", "thumb": "./bg/bg11_small.jpg", - "title": "炫酷跑车" - }, - { - "pic": "./plugins/theme_switcher/bg/bg12.jpg", - "thumb": "./bg/bg12_small.jpg", - "title": "中国风" - }, - { - "pic": "./plugins/theme_switcher/bg/bg13.jpg", - "thumb": "./bg/bg13_small.jpg", - "title": "Winxp" - }, - { - "pic": "./plugins/theme_switcher/bg/bg14.jpg", - "thumb": "./bg/bg14_small.jpg", - "title": "淡雅唯美" - }, - { - "pic": "./plugins/theme_switcher/bg/bg15.jpg", - "thumb": "./bg/bg15_small.jpg", - "title": "Win7" - }, + "title": "秋天风景" + } ]; var theme_area=$("#theme_area");