diff --git a/css/index.css b/css/index.css index cf90a52..6ffb5c2 100644 --- a/css/index.css +++ b/css/index.css @@ -734,6 +734,7 @@ body .mac-btn_refresh { } .mac-open-iframe .layui-layer-setwin { + width: 10rem; /*需要定义长度避免影响拖动 多预留一个button位置*/ position: absolute; left: 0; top: 0; diff --git a/css/index.min.css b/css/index.min.css index 718a2eb..e21c19a 100644 --- a/css/index.min.css +++ b/css/index.min.css @@ -1 +1 @@ -@charset "utf-8";a,body,div,em,h1,h2,h3,h4,h5,h6,li,p,ul{font-family:PingFang SC,Verdana,Helvetica Neue,Microsoft Yahei,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif}html{height:100%}ul{list-style:none;padding:0;margin:0}body{padding:0;margin:0;height:100%;overflow:hidden}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{box-shadow:inset 0 0 0 rgba(240,240,240,.5);border-radius:10px;background-color:rgba(50,50,50,.1)}::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 0 rgba(240,240,240,.5);background-color:rgba(50,50,50,.3)}#mac *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#mac-login{background:#000 no-repeat fixed;width:100%;height:100%;background-size:100% 100%;position:fixed;z-index:-1;top:0;left:0}#mac{width:100%;height:100%;background:#000 no-repeat fixed;background-size:100% 100%;position:relative}#mac .blur{-webkit-filter:blur(8px);-moz-filter:blur(8px);-ms-filter:blur(8px);filter:blur(8px);transition:filter .3s;transition:-webkit-filter .3s;transition:-moz-filter .3s;transition:-ms-filter .3s}#mac .backgroud_blur{-webkit-backdrop-filter:blur(20px);backdrop-filter:saturate(180%) blur(20px);transition:filter .3s;transition:-webkit-filter .3s;transition:-moz-filter .3s;transition:-ms-filter .3s}#mac .desktop .background{position:absolute;width:100%;height:100%;top:0;left:0;z-index:-999;transform:scale3d(1.1,1.1,1);background-size:100% 100%;background-position:center center}#mac *{scrollbar-arrow-color:#5e6a5c;scrollbar-face-color:#5e6a5c;scrollbar-3dlight-color:#5e6a5c;scrollbar-highlight-color:#5e6a5c;scrollbar-shadow-color:#5e6a5c;scrollbar-darkshadow-color:#5e6a5c;scrollbar-track-color:rgba(74,84,78,.41);scrollbar-base-color:#5e6a5c}#mac hr{height:0;border-top:1px solid #999;border-right:0;border-bottom:0;border-left:0}#mac .desktop{width:100%;height:100%;position:fixed;top:0}#mac_task_bar{width:100%;position:fixed;top:0;height:24px;line-height:24px;background-color:rgba(255,255,255,.5);-webkit-box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);-moz-box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);z-index:1000}#mac .btn_group{height:100%}#mac .btn_group .btn{float:left;color:#333;font-weight:700;text-align:center;height:100%;line-height:24px;text-overflow:ellipsis;overflow:hidden;transition:background-color .3s}#mac .btn_group .btn:hover{color:#fff;background-color:rgba(49,156,241,.71);cursor:pointer}#mac_btn_group_left{float:left;overflow:auto;max-width:200px;padding-left:.5%}#mac_btn_group_middle{overflow:auto;display:inline-block}#mac_btn_group_middle .btn_title{display:inline-block;padding:0 4px;text-align:center;margin:0 auto;text-overflow:clip;overflow:hidden;white-space:nowrap}#mac_btn_group_middle::-webkit-scrollbar{width:2px}#mac_btn_group_middle::-webkit-scrollbar-track{background-color:grey}#mac_btn_group_middle::-webkit-scrollbar-thumb{background-color:rgba(30,39,34,.41)}#mac_btn_group_right{float:right;max-width:200px;overflow:auto}#mac_btn_group_left .btn,#mac_btn_group_middle .btn{height:100%;width:35px;overflow:hidden;font-size:14px}#mac_btn_group_right .btn{height:100%;min-width:4px;padding:0 10px;font-size:12px}#mac_btn_show_desktop{border-left:grey 1px solid;width:4px;margin-left:3px;padding:0!important}#mac_btn_time{font-size:14px}#mac-menu{position:fixed;top:24px;left:.5rem;background-color:rgba(255,255,255,.55);box-shadow:1px 1px 5px #909090;-moz-box-shadow:1px 1px 5px #909090;-webkit-box-shadow:1px 1px 5px #909090;height:auto;width:12rem;max-width:880px;overflow:auto;z-index:1000;overflow-y:hidden;transition:bottom .5s;border-radius:0 0 3px 3px}#mac-menu.hidden{top:-70%}#mac-menu .list::-webkit-scrollbar,#mac_command_center::-webkit-scrollbar{width:0;height:0}#mac-menu .list::-webkit-scrollbar-track,#mac_command_center::-webkit-scrollbar-track{background-color:rgba(74,84,78,.41)}#mac-menu .list::-webkit-scrollbar-thumb,#mac_command_center::-webkit-scrollbar-thumb{background-color:#6a6a6a}#mac-menu .list{float:left;width:180px;height:100%;overflow:auto;-webkit-animation-duration:.5s;animation-duration:.5s}#mac-menu .list{width:100%;padding:5px 0 0;font-size:12px;height:100%}#mac-menu .list .item.has-sub-down::after{font:normal normal normal 14px/1 FontAwesome;content:"\f107";line-height:inherit;float:right}#mac-menu .list .item.has-sub-up::after{font:normal normal normal 14px/1 FontAwesome;content:"\f106";line-height:inherit;float:right}#mac-menu .list .item,.sub-item{color:#333;margin:1px 0;line-height:2em;padding:0 10px;text-overflow:ellipsis;overflow:hidden;transition:background-color .3s;position:relative;width:calc(100% - 20px)}#mac-menu .list .item>.icon,#mac-menu .list .sub-item>.icon,.sub-item>.icon{line-height:2em;font-size:1.2em;float:left;margin-right:.5em;position:relative}#mac-menu .list .sub-item{padding-left:30px;width:calc(100% - 40px)}#mac-menu .list .item:hover,.sub-item:hover{background-color:rgba(49,156,241,.71);cursor:pointer}#mac-menu-switcher{position:absolute;height:100%;border-left:1px solid grey;top:0;right:0;display:none;width:30px;cursor:pointer}#mac-menu-switcher:active{background-color:rgba(92,109,92,.81)}#mac-menu .menu_group{float:left;width:300px;color:#fff;position:relative;overflow:hidden;margin-bottom:20px}#mac-menu .menu_group .title{padding:12px 5px 5px;font-size:13px}#mac-menu .menu_group:hover .title::after{font:normal normal normal 14px/1 FontAwesome;content:"\f0c9";line-height:inherit;float:right;margin-right:17px;color:grey}#mac-shortcuts{height:100%;width:100%;position:absolute;left:0;top:0;z-index:100}#mac-shortcuts .shortcuts-hidden .shortcut{display:none}#mac-shortcuts .shortcut{width:80px;overflow:hidden;cursor:pointer;padding:0;position:absolute;transition:all .5s}#mac-shortcuts .shortcut:hover{background-color:rgba(255,255,255,.11)}#mac .shortcut>.icon{width:50px;height:50px;overflow:hidden;color:#fff;box-sizing:border-box;margin:5px auto;text-align:center;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block;font-size:37px;line-height:50px}#mac .shortcut .title{color:#fff;font-size:12px;text-align:center;line-height:18px;margin-bottom:5px}#mac_command_center{position:fixed;right:0;top:25px;width:300px;background-color:rgba(255,255,255,.6);-moz-box-shadow:0 .3125rem .3125rem -.3125rem rgba(0,0,0,.117);box-shadow:0 .3125rem .3125rem -.3125rem rgba(0,0,0,.117);height:calc(100% - 25px);overflow-x:hidden;overflow-y:auto;color:#333;box-sizing:border-box;z-index:1000}#mac_command_center.hidden_right{right:-300px}#mac_command_center>.title{position:absolute;top:0;left:0;width:100%;padding-left:10px;transition:background-color .5s}#mac_command_center>.title:hover{background-color:rgba(255,255,255,.19)}#mac_command_center .command-header{height:50px;text-align:center;border-bottom:1px outset}#mac_command_center .command-header .item{width:45%;height:20px;margin:15px 0;display:inline-block;font-size:14px;color:#eaeaea;background-color:rgba(121,121,121,.5)}#mac_command_center .command-header div{width:45%;height:20px;margin:15px 0;display:inline-block;font-size:14px;color:#eaeaea;background-color:rgba(121,121,121,.5);border-radius:2px}#mac_command_center .command-header div:hover{cursor:pointer}#mac_command_center .command-header div.active{background-color:rgba(255,255,255,.5);color:#000}#mac_command_center .command-body{position:relative;height:calc(100% - 70px);overflow-y:auto}#mac_command_center .command-body .command-body-calendar{margin:15px 0}#mac_command_center .command-body .command-body-calendar .command-body-calendar-date{padding:0 33px;color:#585858}#mac_command_center .command-body .command-body-calendar .normal-date{font-size:30px}#mac_command_center .command-body .notice{width:100%;margin:5px 0}#mac_command_center .command-body .notice .notice-header{background-color:rgba(255,255,255,.8);height:25px;border-radius:5px 5px 0 0;line-height:25px}#mac_command_center .command-body .notice-header-icon{margin:2px 5px;vertical-align:middle}#mac_command_center .command-body .notice-header-icon>img{width:15px;height:15px}#mac_command_center .command-body .notice-header-title{font-size:10px;margin:0 5px;vertical-align:middle}#mac_command_center .command-body .notice .notice-body{background-color:rgba(255,255,255,.6);border-radius:0 0 5px 5px}#mac_command_center .command-body .notice .weather-item{height:50px}#mac_command_center .command-body .notice .weather-item div{display:inline-block;text-align:center}#mac_command_center .command-body .notice .weather-city{float:left}#mac_command_center .command-body .notice .weather-city .weather-city-time{display:block;font-size:10px;font-weight:400;text-align:left;margin:5px 0 2px 10px;color:#868585}#mac_command_center .command-body .notice .weather-city .weather-city-text{font-size:15px;font-weight:400;display:block;text-align:left;margin:0 0 5px 10px}#mac_command_center .command-body .notice .weather-type{position:absolute;right:70px}#mac_command_center .command-body .notice .weather-type img{width:30px;margin:5px}#mac_command_center .command-body .notice .weather-temperature{float:right;font-size:35px;font-weight:200;margin-right:10px}#mac_command_center .command-body .notice .notice-header,.notice .notice-body{width:95%;margin:0 auto}#mac_command_center .command-body .notice .notice-header .notice-header-icon img{width:15px;height:15px}#mac_btn_group_right #mac_btn_command{font-size:14px}#mac_btn_command .msgNof{position:fixed;right:0;bottom:20px;border:1px solid red;background-color:red;color:#fff;border-radius:3px}#mac_btn_command_center_clean_all{color:#777;text-align:right;font-size:12px;float:right;margin-top:40px;margin-right:24px;transition:color .5s}#mac_btn_command_center_clean_all:hover{cursor:pointer;color:#333}#mac_command_center .msgs{position:absolute;top:60px;left:0;width:100%;overflow:hidden;display:none}#mac_command_center .btn_close_msg{line-height:inherit;transition:color .5s}#mac_command_center .msgs .msg{width:calc(100% - 20px);min-height:40px;padding:10px;transition:background-color .5s;position:relative}#mac_command_center .msgs .msg.animated{-webkit-animation-duration:.5s;animation-duration:.5s}#mac_command_center .command-body .notice:hover .notice-body{color:#333}#mac_command_center .command-body .notice:hover>.notice-header .btn_close_msg{color:grey}#mac_command_center .msgs .msg>.title{font-size:14px;line-height:28px}#mac_command_center .command-body .notice .notice-header>.btn_close_msg{cursor:pointer;color:transparent;margin-right:8px;font-size:15px;display:block;float:right}#mac_command_center .msgs .msg>.btn_close_msg:hover{color:#fff}#mac_command_center .msgs .msg>.content{font-size:12px;padding-bottom:5px}#mac_btn_group_middle .btn.active{background:rgba(255,255,255,.6)}#mac_btn_group_middle .btn:hover{cursor:pointer}body .mac-open-iframe{background-color:transparent;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.4);-moz-box-shadow:0 0 20px 0 rgba(0,0,0,.4);box-shadow:0 0 20px 0 rgba(0,0,0,.4);border-radius:6px!important;-webkit-border-radius:6px!important;-moz-border-radius:6px!important}body .mac-open-iframe .layui-layer-content{background-color:#fff;max-height:calc(100% - 24px)}body .mac-open-iframe .layui-layer-title{box-sizing:border-box;background:rgba(250,250,250,.9);padding-left:120px;border-radius:4px 4px 0 0;color:#333;text-align:center}body .mac-open-iframe.hide{display:none}body .mac-btn_refresh{float:right}.mac-open-iframe .layui-layer-ico{background:url(../img/frame/assets.png) no-repeat;background-size:144px}.mac-open-iframe .layui-layer-setwin{position:absolute;left:0;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:0;height:30px;line-height:30px}.mac-open-iframe .layui-layer-setwin a{width:1rem;height:1rem;font-size:13px;overflow:hidden;margin-left:10px}.mac-open-iframe .layui-layer-title{line-height:30px;height:30px}#mac_btn_group_middle .btn_title .icon,.mac-open-iframe .layui-layer-title .icon{font-size:15px;padding:1px;width:20px;height:20px;line-height:20px;display:inline-block;border-radius:3px;text-align:center}#mac_btn_group_middle .btn_title img.icon,.mac-open-iframe .layui-layer-title img.icon{width:20px;position:relative}.mac-open-iframe .layui-layer-title img.icon{top:5px}.mac-open-iframe .layui-layer-min cite{display:none}body .mac-open-iframe .layui-layer-setwin .layui-layer-min{background:url(../img/frame/assets.png) no-repeat -3px -26px;background-size:144px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover{background:url(../img/frame/assets.png) no-repeat -3px -49px;background-size:144px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin a.layui-layer-close{background-position:-37px -26px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover{background-position:-37px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-max{background-position:-20px -26px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover{background-position:-20px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin{background-position:-55px -25px;cursor:pointer}body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-55px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh{background-position:-83px -25px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover{background-position:-83px -48px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url{background-position:-55px -25px;cursor:pointer}body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover{background-position:-83px -49px;cursor:pointer}.layui-layer-change-url,.layui-layer-close,.layui-layer-max,.layui-layer-refresh,.mac-open-iframe .layui-layer-min{text-decoration:none}#mac .img-loader{display:none}#mac .mac-context-menu{left:0;top:0;position:fixed;width:150px;height:auto;background-color:rgba(255,255,255,.45);display:block;border-radius:5px;z-index:99999999}#mac .mac-context-menu ul{margin:0;padding:0}#mac .mac-context-menu ul li{transition:background-color .5s;cursor:default;padding:0 1em;list-style:none;line-height:25px;height:25px;margin:3px 0;font-size:13px}#mac .mac-context-menu ul li:hover{background-color:rgba(49,156,241,.71);cursor:pointer}#mac .mac-context-menu ul li a{text-decoration:none;display:block;height:100%;color:#333;outline:0}#mac .mac-context-menu ul hr{margin:0;height:0;border:0;border-bottom:rgba(121,121,121,.24) 1px solid;border-top:none}#mac-menu>.list>.item img.icon,#mac-menu>.list>.sub-item img.icon{width:36px;height:36px;position:relative;top:2px}#mac-desktop-scene{width:100%;height:100%;position:absolute;left:0;top:0;z-index:0;background-color:transparent}#dock{height:60px;width:100%;position:fixed;bottom:0;text-align:center;z-index:100}#dock .dock-container{height:100%;line-height:60px;display:inline-block;background-color:rgba(247,244,244,.117);-webkit-box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);-moz-box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);border-radius:5px 5px 0 0;z-index:100}@media \0screen\,screen\9{#dock .dock-container{height:100%;line-height:60px;background-color:#fff;display:inline-block;border-radius:5px;filter:Alpha(opacity=.45);position:static}.demo ul{position:relative}}#dock .dock-container ul{display:inline-block}#dock .dock-container img{z-index:222;width:50px;height:50px}#dock .dock-container ul li{float:left;width:60px;margin:5px auto;outline:0;cursor:pointer}#dock .dock-container ul li:focus{-webkit-animation:bounce 1s;animation:bounce 1s}#dock .dock-container .dock-tips{color:#333;font-size:.5em;font-weight:700;border-radius:5px;background:rgba(255,255,255,.5);height:20px;width:70px;line-height:20px;display:none;padding:0 5px;margin-top:-35px;margin-bottom:15px;margin-left:-10px;flex-direction:column;align-items:center}#dock .dock-container .dock-tips .arrow{opacity:.5;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(255,255,255,.5);border-bottom:5px solid transparent;width:0;height:0}#launchpad{position:fixed;width:100%;height:100%;overflow-y:auto;display:block;top:0;z-index:1001}#launchpad.hidden{display:none}#launchpad .app-serach-box{position:relative;margin:3vh auto 20px;height:1.75rem;width:16rem;background-color:transparent;font-size:14px;line-height:20px}.search .serach-box{position:relative}.search label{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAALFQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t5hynAAAADt0Uk5TABqT4f/1u0487ui5zf6bARv6agInexLmEOPqeVS+THTz02JntjPAKkLZHoS18pFzyhXnq9wEW1Ecxze6XPngAAAAhUlEQVR4nE2MWRKCUAwEAw4C+hAEcVcEdxH3/f4HMxCknI+e6lQSItL0Goy6SRLLRqOpHLTc3Dy77QdEHYUwVx1+sdTtGX2uwTCQoxHGTEzKH1NEzFlcaoI5c4Gl6Apr5gbbHZebYl9MU2SH5HgC4rMcXQA419vP79bjqdGrcgn7m/5dfb4TpgmCJFVbRAAAAABJRU5ErkJggg==) no-repeat 0 50%;color:#fff;left:50%;position:absolute;transform:translate(-50%,-50%);top:50%;transition:left .4s,transform .4s;padding-left:1.25em}.search .input-search{-webkit-appearance:textfield;background-color:rgba(229,231,235,.2);border-radius:.25em;border-color:rgba(229,231,235,.3);border-width:1px;border-style:solid;display:block;padding:.5em 1.75em;width:100%;outline:0}.search .input-search:focus+label,.search .input-search:valid+label{left:.5em;transform:translate(0,-50%)}.search .input-search:valid+label{text-indent:-9999px}.search .input-search :before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#ebe6e5}.search .input-search,.search .input-search:hover{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity))}#launchpad .app-shortcuts{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:stretch;align-items:flex-start;position:fixed;width:calc(100% - 90px);height:100%;margin:0 auto;padding:0 45px}#launchpad .shortcut{width:75px;height:75px;order:1;align-self:auto;flex-basis:auto;flex-grow:0;padding:.625rem;flex-shrink:1}#mac .black-green,.mac-open-iframe .black-green{background:#009688!important}#mac .green,.mac-open-iframe .green{background:#5fb878!important}#mac .black,.mac-open-iframe .black{background:#393d49!important}#mac .blue,.mac-open-iframe .blue{background:#1e9fff!important}#mac .orange,.mac-open-iframe .orange{background:#f7b824!important}#mac .red,.mac-open-iframe .red{background:#ff5722!important}#mac .dark,.mac-open-iframe .dark{background:#2f4056!important}#mac .purple,.mac-open-iframe .purple{background:#b074e6!important}@media screen and (max-width:768px){#mac-menu{width:100%;top:24px;left:0;height:calc(100% - 25px);border-radius:0 0 2px 2px}#mac-menu.hidden{top:calc(-100% + 25px)}#mac_command_center{top:24px;width:100%}#mac_command_center.hidden_right{right:-100%}.layui-layer-setwin .layui-layer-max{display:none}#mac_btn_group_left .btn{height:100%;width:40px;overflow:hidden;font-size:16px}#mac_btn_group_right .btn{height:100%;min-width:4px;padding:0 10px;font-size:16px!important}#mac_btn_show_desktop{border-left:grey 1px solid;width:15px;margin-left:3px;padding:0!important}#mac_btn_group_left{max-width:100px}#mac_btn_group_middle{width:calc(100% - 160px)}#mac_btn_group_right{max-width:150px}#mac-menu .list{position:absolute;width:100%;left:0;top:0}#mac-menu .menu_group{width:90%;float:none;margin:0 auto;clear:both}#mac-menu .list .item,.sub-item{width:calc(100% - 20px)}#mac_btn_time{display:none}#mac-menu-switcher{display:none}#dock{bottom:10px}body .mac-open-iframe{background-color:transparent;border:none;box-shadow:none}}@media (min-width:768px) and (max-width:1024px){#dock{bottom:10px}#dock .dock-container{border-radius:8px}}@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){#dock{bottom:6px}#dock .dock-container{border-radius:6px}}@media (min-width:481px) and (max-width:767px){#dock{bottom:6px}#dock .dock-container{border-radius:6px;-webkit-box-shadow:0 0 0 0 rgba(0,0,0,.8);-moz-box-shadow:0 0 0 0 rgba(0,0,0,.8);box-shadow:0 0 0 0 rgba(0,0,0,.8)}}@media screen and (max-width:480px){#dock{bottom:0}#dock .dock-container{width:100%;border-radius:0;-webkit-box-shadow:0 0 0 0 rgba(0,0,0,.8);-moz-box-shadow:0 0 0 0 rgba(0,0,0,.8);box-shadow:0 0 0 0 rgba(0,0,0,.8)}#mac-menu .list .item,.sub-item{width:calc(100% - 20px)}}@-webkit-keyframes bounce{0%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}25%{-webkit-transform:translateY(-40px) translateX(.1px);transform:translateY(-40px) translateX(.1px)}50%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}75%{-webkit-transform:translateY(-20px) translateX(.1px);transform:translateY(-20px) translateX(.1px)}100%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}}@keyframes bounce{0%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}25%{-webkit-transform:translateY(-40px) translateX(.1px);transform:translateY(-40px) translateX(.1px)}50%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}75%{-webkit-transform:translateY(-20px) translateX(.1px);transform:translateY(-20px) translateX(.1px)}100%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}} \ No newline at end of file +@charset "utf-8";a,body,div,em,h1,h2,h3,h4,h5,h6,li,p,ul{font-family:PingFang SC,Verdana,Helvetica Neue,Microsoft Yahei,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif}html{height:100%}ul{list-style:none;padding:0;margin:0}body{padding:0;margin:0;height:100%;overflow:hidden}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-track{box-shadow:inset 0 0 0 rgba(240,240,240,.5);border-radius:10px;background-color:rgba(50,50,50,.1)}::-webkit-scrollbar-thumb{border-radius:10px;box-shadow:inset 0 0 0 rgba(240,240,240,.5);background-color:rgba(50,50,50,.3)}#mac *{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#mac-login{background:#000 no-repeat fixed;width:100%;height:100%;background-size:100% 100%;position:fixed;z-index:-1;top:0;left:0}#mac{width:100%;height:100%;background:#000 no-repeat fixed;background-size:100% 100%;position:relative}#mac .blur{-webkit-filter:blur(8px);-moz-filter:blur(8px);-ms-filter:blur(8px);filter:blur(8px);transition:filter .3s;transition:-webkit-filter .3s;transition:-moz-filter .3s;transition:-ms-filter .3s}#mac .backgroud_blur{-webkit-backdrop-filter:blur(20px);backdrop-filter:saturate(180%) blur(20px);transition:filter .3s;transition:-webkit-filter .3s;transition:-moz-filter .3s;transition:-ms-filter .3s}#mac .desktop .background{position:absolute;width:100%;height:100%;top:0;left:0;z-index:-999;transform:scale3d(1.1,1.1,1);background-size:100% 100%;background-position:center center}#mac *{scrollbar-arrow-color:#5e6a5c;scrollbar-face-color:#5e6a5c;scrollbar-3dlight-color:#5e6a5c;scrollbar-highlight-color:#5e6a5c;scrollbar-shadow-color:#5e6a5c;scrollbar-darkshadow-color:#5e6a5c;scrollbar-track-color:rgba(74,84,78,.41);scrollbar-base-color:#5e6a5c}#mac hr{height:0;border-top:1px solid #999;border-right:0;border-bottom:0;border-left:0}#mac .desktop{width:100%;height:100%;position:fixed;top:0}#mac_task_bar{width:100%;position:fixed;top:0;height:24px;line-height:24px;background-color:rgba(255,255,255,.5);-webkit-box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);-moz-box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);box-shadow:0 .3125rem .07rem -.3125rem rgba(0,0,0,.42);z-index:1000}#mac .btn_group{height:100%}#mac .btn_group .btn{float:left;color:#333;font-weight:700;text-align:center;height:100%;line-height:24px;text-overflow:ellipsis;overflow:hidden;transition:background-color .3s}#mac .btn_group .btn:hover{color:#fff;background-color:rgba(49,156,241,.71);cursor:pointer}#mac_btn_group_left{float:left;overflow:auto;max-width:200px;padding-left:.5%}#mac_btn_group_middle{overflow:auto;display:inline-block}#mac_btn_group_middle .btn_title{display:inline-block;padding:0 4px;text-align:center;margin:0 auto;text-overflow:clip;overflow:hidden;white-space:nowrap}#mac_btn_group_middle::-webkit-scrollbar{width:2px}#mac_btn_group_middle::-webkit-scrollbar-track{background-color:grey}#mac_btn_group_middle::-webkit-scrollbar-thumb{background-color:rgba(30,39,34,.41)}#mac_btn_group_right{float:right;max-width:200px;overflow:auto}#mac_btn_group_left .btn,#mac_btn_group_middle .btn{height:100%;width:35px;overflow:hidden;font-size:14px}#mac_btn_group_right .btn{height:100%;min-width:4px;padding:0 10px;font-size:12px}#mac_btn_show_desktop{border-left:grey 1px solid;width:4px;margin-left:3px;padding:0!important}#mac_btn_time{font-size:14px}#mac-menu{position:fixed;top:24px;left:.5rem;background-color:rgba(255,255,255,.55);box-shadow:1px 1px 5px #909090;-moz-box-shadow:1px 1px 5px #909090;-webkit-box-shadow:1px 1px 5px #909090;height:auto;width:12rem;max-width:880px;overflow:auto;z-index:1000;overflow-y:hidden;transition:bottom .5s;border-radius:0 0 3px 3px}#mac-menu.hidden{top:-70%}#mac-menu .list::-webkit-scrollbar,#mac_command_center::-webkit-scrollbar{width:0;height:0}#mac-menu .list::-webkit-scrollbar-track,#mac_command_center::-webkit-scrollbar-track{background-color:rgba(74,84,78,.41)}#mac-menu .list::-webkit-scrollbar-thumb,#mac_command_center::-webkit-scrollbar-thumb{background-color:#6a6a6a}#mac-menu .list{float:left;width:180px;height:100%;overflow:auto;-webkit-animation-duration:.5s;animation-duration:.5s}#mac-menu .list{width:100%;padding:5px 0 0;font-size:12px;height:100%}#mac-menu .list .item.has-sub-down::after{font:normal normal normal 14px/1 FontAwesome;content:"\f107";line-height:inherit;float:right}#mac-menu .list .item.has-sub-up::after{font:normal normal normal 14px/1 FontAwesome;content:"\f106";line-height:inherit;float:right}#mac-menu .list .item,.sub-item{color:#333;margin:1px 0;line-height:2em;padding:0 10px;text-overflow:ellipsis;overflow:hidden;transition:background-color .3s;position:relative;width:calc(100% - 20px)}#mac-menu .list .item>.icon,#mac-menu .list .sub-item>.icon,.sub-item>.icon{line-height:2em;font-size:1.2em;float:left;margin-right:.5em;position:relative}#mac-menu .list .sub-item{padding-left:30px;width:calc(100% - 40px)}#mac-menu .list .item:hover,.sub-item:hover{background-color:rgba(49,156,241,.71);cursor:pointer}#mac-menu-switcher{position:absolute;height:100%;border-left:1px solid grey;top:0;right:0;display:none;width:30px;cursor:pointer}#mac-menu-switcher:active{background-color:rgba(92,109,92,.81)}#mac-menu .menu_group{float:left;width:300px;color:#fff;position:relative;overflow:hidden;margin-bottom:20px}#mac-menu .menu_group .title{padding:12px 5px 5px;font-size:13px}#mac-menu .menu_group:hover .title::after{font:normal normal normal 14px/1 FontAwesome;content:"\f0c9";line-height:inherit;float:right;margin-right:17px;color:grey}#mac-shortcuts{height:100%;width:100%;position:absolute;left:0;top:0;z-index:100}#mac-shortcuts .shortcuts-hidden .shortcut{display:none}#mac-shortcuts .shortcut{width:80px;overflow:hidden;cursor:pointer;padding:0;position:absolute;transition:all .5s}#mac-shortcuts .shortcut:hover{background-color:rgba(255,255,255,.11)}#mac .shortcut>.icon{width:50px;height:50px;overflow:hidden;color:#fff;box-sizing:border-box;margin:5px auto;text-align:center;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:block;font-size:37px;line-height:50px}#mac .shortcut .title{color:#fff;font-size:12px;text-align:center;line-height:18px;margin-bottom:5px}#mac_command_center{position:fixed;right:0;top:25px;width:300px;background-color:rgba(255,255,255,.6);-moz-box-shadow:0 .3125rem .3125rem -.3125rem rgba(0,0,0,.117);box-shadow:0 .3125rem .3125rem -.3125rem rgba(0,0,0,.117);height:calc(100% - 25px);overflow-x:hidden;overflow-y:auto;color:#333;box-sizing:border-box;z-index:1000}#mac_command_center.hidden_right{right:-300px}#mac_command_center>.title{position:absolute;top:0;left:0;width:100%;padding-left:10px;transition:background-color .5s}#mac_command_center>.title:hover{background-color:rgba(255,255,255,.19)}#mac_command_center .command-header{height:50px;text-align:center;border-bottom:1px outset}#mac_command_center .command-header .item{width:45%;height:20px;margin:15px 0;display:inline-block;font-size:14px;color:#eaeaea;background-color:rgba(121,121,121,.5)}#mac_command_center .command-header div{width:45%;height:20px;margin:15px 0;display:inline-block;font-size:14px;color:#eaeaea;background-color:rgba(121,121,121,.5);border-radius:2px}#mac_command_center .command-header div:hover{cursor:pointer}#mac_command_center .command-header div.active{background-color:rgba(255,255,255,.5);color:#000}#mac_command_center .command-body{position:relative;height:calc(100% - 70px);overflow-y:auto}#mac_command_center .command-body .command-body-calendar{margin:15px 0}#mac_command_center .command-body .command-body-calendar .command-body-calendar-date{padding:0 33px;color:#585858}#mac_command_center .command-body .command-body-calendar .normal-date{font-size:30px}#mac_command_center .command-body .notice{width:100%;margin:5px 0}#mac_command_center .command-body .notice .notice-header{background-color:rgba(255,255,255,.8);height:25px;border-radius:5px 5px 0 0;line-height:25px}#mac_command_center .command-body .notice-header-icon{margin:2px 5px;vertical-align:middle}#mac_command_center .command-body .notice-header-icon>img{width:15px;height:15px}#mac_command_center .command-body .notice-header-title{font-size:10px;margin:0 5px;vertical-align:middle}#mac_command_center .command-body .notice .notice-body{background-color:rgba(255,255,255,.6);border-radius:0 0 5px 5px}#mac_command_center .command-body .notice .weather-item{height:50px}#mac_command_center .command-body .notice .weather-item div{display:inline-block;text-align:center}#mac_command_center .command-body .notice .weather-city{float:left}#mac_command_center .command-body .notice .weather-city .weather-city-time{display:block;font-size:10px;font-weight:400;text-align:left;margin:5px 0 2px 10px;color:#868585}#mac_command_center .command-body .notice .weather-city .weather-city-text{font-size:15px;font-weight:400;display:block;text-align:left;margin:0 0 5px 10px}#mac_command_center .command-body .notice .weather-type{position:absolute;right:70px}#mac_command_center .command-body .notice .weather-type img{width:30px;margin:5px}#mac_command_center .command-body .notice .weather-temperature{float:right;font-size:35px;font-weight:200;margin-right:10px}#mac_command_center .command-body .notice .notice-header,.notice .notice-body{width:95%;margin:0 auto}#mac_command_center .command-body .notice .notice-header .notice-header-icon img{width:15px;height:15px}#mac_btn_group_right #mac_btn_command{font-size:14px}#mac_btn_command .msgNof{position:fixed;right:0;bottom:20px;border:1px solid red;background-color:red;color:#fff;border-radius:3px}#mac_btn_command_center_clean_all{color:#777;text-align:right;font-size:12px;float:right;margin-top:40px;margin-right:24px;transition:color .5s}#mac_btn_command_center_clean_all:hover{cursor:pointer;color:#333}#mac_command_center .msgs{position:absolute;top:60px;left:0;width:100%;overflow:hidden;display:none}#mac_command_center .btn_close_msg{line-height:inherit;transition:color .5s}#mac_command_center .msgs .msg{width:calc(100% - 20px);min-height:40px;padding:10px;transition:background-color .5s;position:relative}#mac_command_center .msgs .msg.animated{-webkit-animation-duration:.5s;animation-duration:.5s}#mac_command_center .command-body .notice:hover .notice-body{color:#333}#mac_command_center .command-body .notice:hover>.notice-header .btn_close_msg{color:grey}#mac_command_center .msgs .msg>.title{font-size:14px;line-height:28px}#mac_command_center .command-body .notice .notice-header>.btn_close_msg{cursor:pointer;color:transparent;margin-right:8px;font-size:15px;display:block;float:right}#mac_command_center .msgs .msg>.btn_close_msg:hover{color:#fff}#mac_command_center .msgs .msg>.content{font-size:12px;padding-bottom:5px}#mac_btn_group_middle .btn.active{background:rgba(255,255,255,.6)}#mac_btn_group_middle .btn:hover{cursor:pointer}body .mac-open-iframe{background-color:transparent;-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.4);-moz-box-shadow:0 0 20px 0 rgba(0,0,0,.4);box-shadow:0 0 20px 0 rgba(0,0,0,.4);border-radius:6px!important;-webkit-border-radius:6px!important;-moz-border-radius:6px!important}body .mac-open-iframe .layui-layer-content{background-color:#fff;max-height:calc(100% - 24px)}body .mac-open-iframe .layui-layer-title{box-sizing:border-box;background:rgba(250,250,250,.9);padding-left:120px;border-radius:4px 4px 0 0;color:#333;text-align:center}body .mac-open-iframe.hide{display:none}body .mac-btn_refresh{float:right}.mac-open-iframe .layui-layer-ico{background:url(../img/frame/assets.png) no-repeat;background-size:144px}.mac-open-iframe .layui-layer-setwin{width:10rem;position:absolute;left:0;top:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:0;height:30px;line-height:30px}.mac-open-iframe .layui-layer-setwin a{width:1rem;height:1rem;font-size:13px;overflow:hidden;margin-left:10px}.mac-open-iframe .layui-layer-title{line-height:30px;height:30px}#mac_btn_group_middle .btn_title .icon,.mac-open-iframe .layui-layer-title .icon{font-size:15px;padding:1px;width:20px;height:20px;line-height:20px;display:inline-block;border-radius:3px;text-align:center}#mac_btn_group_middle .btn_title img.icon,.mac-open-iframe .layui-layer-title img.icon{width:20px;position:relative}.mac-open-iframe .layui-layer-title img.icon{top:5px}.mac-open-iframe .layui-layer-min cite{display:none}body .mac-open-iframe .layui-layer-setwin .layui-layer-min{background:url(../img/frame/assets.png) no-repeat -3px -26px;background-size:144px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-min:hover{background:url(../img/frame/assets.png) no-repeat -3px -49px;background-size:144px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin a.layui-layer-close{background-position:-37px -26px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin a.layui-layer-close:hover{background-position:-37px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-max{background-position:-20px -26px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-max:hover{background-position:-20px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-maxmin{background-position:-55px -25px;cursor:pointer}body .mac-open-iframe.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-55px -49px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh{background-position:-83px -25px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-refresh:hover{background-position:-83px -48px;cursor:pointer}body .mac-open-iframe .layui-layer-setwin .layui-layer-change-url{background-position:-55px -25px;cursor:pointer}body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover{background-position:-83px -49px;cursor:pointer}.layui-layer-change-url,.layui-layer-close,.layui-layer-max,.layui-layer-refresh,.mac-open-iframe .layui-layer-min{text-decoration:none}#mac .img-loader{display:none}#mac .mac-context-menu{left:0;top:0;position:fixed;width:150px;height:auto;background-color:rgba(255,255,255,.45);display:block;border-radius:5px;z-index:99999999}#mac .mac-context-menu ul{margin:0;padding:0}#mac .mac-context-menu ul li{transition:background-color .5s;cursor:default;padding:0 1em;list-style:none;line-height:25px;height:25px;margin:3px 0;font-size:13px}#mac .mac-context-menu ul li:hover{background-color:rgba(49,156,241,.71);cursor:pointer}#mac .mac-context-menu ul li a{text-decoration:none;display:block;height:100%;color:#333;outline:0}#mac .mac-context-menu ul hr{margin:0;height:0;border:0;border-bottom:rgba(121,121,121,.24) 1px solid;border-top:none}#mac-menu>.list>.item img.icon,#mac-menu>.list>.sub-item img.icon{width:36px;height:36px;position:relative;top:2px}#mac-desktop-scene{width:100%;height:100%;position:absolute;left:0;top:0;z-index:0;background-color:transparent}#dock{height:60px;width:100%;position:fixed;bottom:0;text-align:center;z-index:100}#dock .dock-container{height:100%;line-height:60px;display:inline-block;background-color:rgba(247,244,244,.117);-webkit-box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);-moz-box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);box-shadow:5px 5px 10px 1px rgba(0,0,0,.5);border-radius:5px 5px 0 0;z-index:100}@media \0screen\,screen\9{#dock .dock-container{height:100%;line-height:60px;background-color:#fff;display:inline-block;border-radius:5px;filter:Alpha(opacity=.45);position:static}.demo ul{position:relative}}#dock .dock-container ul{display:inline-block}#dock .dock-container img{z-index:222;width:50px;height:50px}#dock .dock-container ul li{float:left;width:60px;margin:5px auto;outline:0;cursor:pointer}#dock .dock-container ul li:focus{-webkit-animation:bounce 1s;animation:bounce 1s}#dock .dock-container .dock-tips{color:#333;font-size:.5em;font-weight:700;border-radius:5px;background:rgba(255,255,255,.5);height:20px;width:70px;line-height:20px;display:none;padding:0 5px;margin-top:-35px;margin-bottom:15px;margin-left:-10px;flex-direction:column;align-items:center}#dock .dock-container .dock-tips .arrow{opacity:.5;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid rgba(255,255,255,.5);border-bottom:5px solid transparent;width:0;height:0}#launchpad{position:fixed;width:100%;height:100%;overflow-y:auto;display:block;top:0;z-index:1001}#launchpad.hidden{display:none}#launchpad .app-serach-box{position:relative;margin:3vh auto 20px;height:1.75rem;width:16rem;background-color:transparent;font-size:14px;line-height:20px}.search .serach-box{position:relative}.search label{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAMAAAAolt3jAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAALFQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t5hynAAAADt0Uk5TABqT4f/1u0487ui5zf6bARv6agInexLmEOPqeVS+THTz02JntjPAKkLZHoS18pFzyhXnq9wEW1Ecxze6XPngAAAAhUlEQVR4nE2MWRKCUAwEAw4C+hAEcVcEdxH3/f4HMxCknI+e6lQSItL0Goy6SRLLRqOpHLTc3Dy77QdEHYUwVx1+sdTtGX2uwTCQoxHGTEzKH1NEzFlcaoI5c4Gl6Apr5gbbHZebYl9MU2SH5HgC4rMcXQA419vP79bjqdGrcgn7m/5dfb4TpgmCJFVbRAAAAABJRU5ErkJggg==) no-repeat 0 50%;color:#fff;left:50%;position:absolute;transform:translate(-50%,-50%);top:50%;transition:left .4s,transform .4s;padding-left:1.25em}.search .input-search{-webkit-appearance:textfield;background-color:rgba(229,231,235,.2);border-radius:.25em;border-color:rgba(229,231,235,.3);border-width:1px;border-style:solid;display:block;padding:.5em 1.75em;width:100%;outline:0}.search .input-search:focus+label,.search .input-search:valid+label{left:.5em;transform:translate(0,-50%)}.search .input-search:valid+label{text-indent:-9999px}.search .input-search :before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#ebe6e5}.search .input-search,.search .input-search:hover{--un-text-opacity:1;color:rgba(255,255,255,var(--un-text-opacity))}#launchpad .app-shortcuts{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:stretch;align-items:flex-start;position:fixed;width:calc(100% - 90px);height:100%;margin:0 auto;padding:0 45px}#launchpad .shortcut{width:75px;height:75px;order:1;align-self:auto;flex-basis:auto;flex-grow:0;padding:.625rem;flex-shrink:1}#mac .black-green,.mac-open-iframe .black-green{background:#009688!important}#mac .green,.mac-open-iframe .green{background:#5fb878!important}#mac .black,.mac-open-iframe .black{background:#393d49!important}#mac .blue,.mac-open-iframe .blue{background:#1e9fff!important}#mac .orange,.mac-open-iframe .orange{background:#f7b824!important}#mac .red,.mac-open-iframe .red{background:#ff5722!important}#mac .dark,.mac-open-iframe .dark{background:#2f4056!important}#mac .purple,.mac-open-iframe .purple{background:#b074e6!important}@media screen and (max-width:768px){#mac-menu{width:100%;top:24px;left:0;height:calc(100% - 25px);border-radius:0 0 2px 2px}#mac-menu.hidden{top:calc(-100% + 25px)}#mac_command_center{top:24px;width:100%}#mac_command_center.hidden_right{right:-100%}.layui-layer-setwin .layui-layer-max{display:none}#mac_btn_group_left .btn{height:100%;width:40px;overflow:hidden;font-size:16px}#mac_btn_group_right .btn{height:100%;min-width:4px;padding:0 10px;font-size:16px!important}#mac_btn_show_desktop{border-left:grey 1px solid;width:15px;margin-left:3px;padding:0!important}#mac_btn_group_left{max-width:100px}#mac_btn_group_middle{width:calc(100% - 160px)}#mac_btn_group_right{max-width:150px}#mac-menu .list{position:absolute;width:100%;left:0;top:0}#mac-menu .menu_group{width:90%;float:none;margin:0 auto;clear:both}#mac-menu .list .item,.sub-item{width:calc(100% - 20px)}#mac_btn_time{display:none}#mac-menu-switcher{display:none}#dock{bottom:10px}body .mac-open-iframe{background-color:transparent;border:none;box-shadow:none}}@media (min-width:768px) and (max-width:1024px){#dock{bottom:10px}#dock .dock-container{border-radius:8px}}@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){#dock{bottom:6px}#dock .dock-container{border-radius:6px}}@media (min-width:481px) and (max-width:767px){#dock{bottom:6px}#dock .dock-container{border-radius:6px;-webkit-box-shadow:0 0 0 0 rgba(0,0,0,.8);-moz-box-shadow:0 0 0 0 rgba(0,0,0,.8);box-shadow:0 0 0 0 rgba(0,0,0,.8)}}@media screen and (max-width:480px){#dock{bottom:0}#dock .dock-container{width:100%;border-radius:0;-webkit-box-shadow:0 0 0 0 rgba(0,0,0,.8);-moz-box-shadow:0 0 0 0 rgba(0,0,0,.8);box-shadow:0 0 0 0 rgba(0,0,0,.8)}#mac-menu .list .item,.sub-item{width:calc(100% - 20px)}}@-webkit-keyframes bounce{0%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}25%{-webkit-transform:translateY(-40px) translateX(.1px);transform:translateY(-40px) translateX(.1px)}50%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}75%{-webkit-transform:translateY(-20px) translateX(.1px);transform:translateY(-20px) translateX(.1px)}100%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}}@keyframes bounce{0%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}25%{-webkit-transform:translateY(-40px) translateX(.1px);transform:translateY(-40px) translateX(.1px)}50%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}75%{-webkit-transform:translateY(-20px) translateX(.1px);transform:translateY(-20px) translateX(.1px)}100%{-webkit-transform:translateY(0) translateX(.1px);transform:translateY(0) translateX(.1px)}} \ No newline at end of file diff --git a/demo.html b/demo.html index 8325b5f..74096f1 100644 --- a/demo.html +++ b/demo.html @@ -155,8 +155,6 @@ src="./img/icon/icloud.png">
  • prefapp
  • -
  • trashicon
  • appstore
  • iTunes
  • launchpad
  • +
  • trashicon
  • diff --git a/index.html b/index.html index c94474e..68aa2f9 100644 --- a/index.html +++ b/index.html @@ -109,10 +109,8 @@ src="./img/icon/icloud.png">
  • prefapp
  • -
  • trashicon trashicon
  • -
  • appstore
  • diff --git a/js/index.js b/js/index.js index 6e17127..83f8de9 100644 --- a/js/index.js +++ b/js/index.js @@ -10,6 +10,7 @@ window.Macui = { }, _wallpaperBlur: true, //壁纸模糊(影响性能) _countTask: 0, + _maxTask:12, _newMsgCount: 0, _animated_classes: [], _animated_liveness: 0, @@ -199,7 +200,7 @@ window.Macui = { let max_index = 0, max_z = 0, btn = null; - $("#mac_btn_group_middle .btn.show").each(function () { + $("#dock .dock-container li.show").each(function () { let index = $(this).attr('index'); let layero = Macui.getLayeroByIndex(index); let z = layero.css('z-index'); @@ -210,7 +211,7 @@ window.Macui = { } }); this._settop(max_index); - $("#mac_btn_group_middle .btn").removeClass('active'); + $("#dock .dock-container li").removeClass('active'); if (btn) { btn.addClass('active'); } @@ -260,7 +261,7 @@ window.Macui = { layer.close(index); Macui._checkTop(); Macui._countTask--; //回退countTask数 - Macui._renderBar(); + Macui.renderDocks(); }, _fixWindowsHeightAndWidth: function () { //此处代码修正全屏切换引起的子窗体尺寸超出屏幕 @@ -466,12 +467,15 @@ window.Macui = { $("#mac-shortcuts").removeClass('shortcuts-hidden'); //显示图标 Macui._showShortcut(); //显示图标 Macui.renderDocks(); //渲染DOCK + //初始化任务数量 + this._maxTask = parseInt((document.body.clientWidth - 10) / 60) //窗口改大小,重新渲染 $(window).resize(function () { Macui.renderShortcuts(); Macui._checkBgUrls(); if (!Macui.isSmallScreen()) Macui._fixWindowsHeightAndWidth(); //2017年11月14日修改,加入了if条件 Macui.renderDocks(); + this._maxTask = parseInt((parseInt(document.body.clientWidth) - 10) / 60) }); //打广告 setTimeout(function () { @@ -1099,7 +1103,7 @@ window.Macui = { } */ //只打开一个应用代码结束,备注,本地方法有点问题,需要全部使用 url才能生效 - if (this._countTask > 12) { + if ($("#dock .dock-container").children('li').length > this._maxTask) { layer.msg("您打开的太多了,歇会儿吧~"); return false; } else { @@ -1164,9 +1168,9 @@ window.Macui = { layero_opened.css('top', 24); }, }); - $('#mac_btn_group_middle .btn.active').removeClass('active'); - let btn = $('
    ' + icon + '
    '); + $('#dock .dock-container li.active').removeClass('active'); + let btn = $('
  • ' + icon + '
  • '); let layero_opened = Macui.getLayeroByIndex(index); layero_opened.css('z-index', Macui._countTask + 813); Macui._settop(layero_opened); @@ -1191,10 +1195,14 @@ window.Macui = { height - 55); } }, 300); - }); - $("#mac_btn_group_middle").append(btn); - Macui._renderBar(); + //回收站存在则插入回收站之前不存在则直接追加 + if ($("#trashicon")){ + btn.insertBefore($("#trashicon")) + }else{ + $("#dock .dock-container>li").append(btn); + } + Macui.renderDocks(); btn.click(function () { let index = $(this).attr('index'); let layero = Macui.getLayeroByIndex(index); @@ -1217,20 +1225,19 @@ window.Macui = { Macui._checkTop(); layero.hide(); } else { - $('#mac_btn_group_middle .btn.active').removeClass('active'); + $('#dock .dock-container li.active').removeClass('active'); $(this).addClass('active'); Macui._settop(layero); } } else { $(this).addClass('show'); - $('#mac_btn_group_middle .btn.active').removeClass('active'); + $('#dock .dock-container li.active').removeClass('active'); $(this).addClass('active'); Macui._settop(layero); layero.show(); } }); - Macui._iframeOnClick.track(layero_opened.find('iframe:first')[0], function () { if (Object.getOwnPropertyNames(Macui._iframe_click_lock_children).length === 0) { Macui._settop(layero_opened); @@ -1248,7 +1255,7 @@ window.Macui = { $(".mac-open-iframe").remove(); $("#mac_btn_group_middle").html(""); Macui._countTask = 0; - Macui._renderBar(); + Macui.renderDocks(); }, setAnimated: function (animated_classes, animated_liveness) { this._animated_classes = animated_classes; diff --git a/js/index.min.js b/js/index.min.js index bc6c529..bc697f5 100644 --- a/js/index.min.js +++ b/js/index.min.js @@ -1 +1 @@ -window.Macui={_version:"v1.1.2.6",_debug:!0,_bgs:{main:"",mobile:""},_wallpaperBlur:!0,_countTask:0,_newMsgCount:0,_animated_classes:[],_animated_liveness:0,_switchMenuTooHurry:!1,_lang:"unknown",_iframeOnClick:{resolution:200,iframes:[],interval:null,Iframe:function(){this.element=arguments[0],this.cb=arguments[1],this.hasTracked=!1},track:function(element,cb){if(this.iframes.push(new this.Iframe(element,cb)),!this.interval){let _this=this;this.interval=setInterval((function(){_this.checkClick()}),this.resolution)}},checkClick:function(){if(document.activeElement){let activeElement=document.activeElement;for(let i in this.iframes){let eid=void 0;!(eid=this.iframes[i].element.id)||document.getElementById(eid)?activeElement===this.iframes[i].element?!1===this.iframes[i].hasTracked&&(this.iframes[i].cb.apply(window,[]),this.iframes[i].hasTracked=!0):this.iframes[i].hasTracked=!1:delete this.iframes[i]}}}},_iframe_click_lock_children:{},_renderBar:function(){if(this._countTask<=0)return;let btns;$("#mac_btn_group_middle>.btn").css("width","calc("+1/this._countTask*100+"% - 1px )")},_handleReady:[],_hideShortcut:function(){let that=$("#mac #mac-shortcuts .shortcut");that.removeClass("animated flipInX"),that.addClass("animated flipOutX")},_showShortcut:function(){let that=$("#mac #mac-shortcuts .shortcut");that.removeClass("animated flipOutX"),that.addClass("animated flipInX")},_checkBgUrls:function(){let loaders=$("#mac>.img-loader"),flag=!1;if(Macui.isSmallScreen()){if(Macui._bgs.mobile&&(loaders.each((function(){let loader=$(this);loader.attr("src")===Macui._bgs.mobile&&loader.hasClass("loaded")&&(Macui._setBackgroundImg(Macui._bgs.mobile),flag=!0)})),!flag)){let img=$('');$("#mac").append(img),Macui._onImgComplete(img[0],(function(){img.addClass("loaded"),Macui._setBackgroundImg(Macui._bgs.mobile)}))}}else if(Macui._bgs.main&&(loaders.each((function(){let loader=$(this);loader.attr("src")===Macui._bgs.main&&loader.hasClass("loaded")&&(Macui._setBackgroundImg(Macui._bgs.main),flag=!0)})),!flag)){let img=$('');$("#mac").append(img),Macui._onImgComplete(img[0],(function(){img.addClass("loaded"),Macui._setBackgroundImg(Macui._bgs.main)}))}Macui._wallpaperBlur&&$(".background").addClass("blur")},loadScript:function(url,callback){let el=document.createElement("script");el.type="text/javascript",void 0!==callback&&(el.readyState?el.onreadystatechange=function(){"loaded"!==el.readyState&&"complete"!==el.readyState||(el.onreadystatechange=null,callback())}:el.onload=function(){callback()}),el.src=url,document.head.appendChild(el)},_startAnimate:function(){setInterval((function(){let classes_length=Macui._animated_classes.length,animated_live_ness=Macui._animated_liveness;0!==animated_live_ness&&0!==classes_length&&$("#mac-menu").hasClass("opened")&&$("#mac-menu>.blocks>.menu_group>.block").each((function(){if(!$(this).hasClass("onAnimate")&&Math.random()<=animated_live_ness){let that=$(this),class_animate=Macui._animated_classes[Math.floor(Math.random()*classes_length)];that.addClass("onAnimate"),setTimeout((function(){that.addClass(class_animate),setTimeout((function(){that.removeClass("onAnimate"),that.removeClass(class_animate)}),3e3)}),2*Math.random()*1e3)}}))}),1e3)},_onImgComplete:function(img,callback){if(!img)return;let timer=setInterval((function(){img.complete&&(callback(img),clearInterval(timer))}),50)},_setBackgroundImg:function(img){$("#mac .background").css("background-image","url("+img+")")},_settop:function(layero){isNaN(layero)||(layero=this.getLayeroByIndex(layero));let max_zindex=0;$(".mac-open-iframe").each((function(){z=parseInt($(this).css("z-index")),$(this).css("z-index",z-1),z>max_zindex&&(max_zindex=z)})),layero.css("z-index",max_zindex+1)},_checkTop:function(){let max_index=0,max_z=0,btn=null;$("#mac_btn_group_middle .btn.show").each((function(){let index=$(this).attr("index"),layero,z=Macui.getLayeroByIndex(index).css("z-index");z>max_z&&(max_index=index,max_z=z,btn=$(this))})),this._settop(max_index),$("#mac_btn_group_middle .btn").removeClass("active"),btn&&btn.addClass("active")},_renderContextMenu:function(x,y,menu,trigger){if(this._removeContextMenu(),!0===menu)return;let dom=$("
    ");$("#mac").append(dom);let ul=dom.find("ul");for(let i=0;i"+item[0]+"");ul.append(sub),sub.click(trigger,item[1])}}else ul.append($("
  • "+item+"
  • "));else ul.append($("
    "))}x+150>document.body.clientWidth&&(x-=150),y+dom.height()>document.body.clientHeight&&(y-=dom.height()),dom.css({top:y,left:x})},_removeContextMenu:function(){$(".mac-context-menu").remove()},_closeWin:function(index){$("#mac_"+index).remove(),layer.close(index),Macui._checkTop(),Macui._countTask--,Macui._renderBar()},_fixWindowsHeightAndWidth:function(){let opens=$(".mac-open-iframe"),clientHeight=document.body.clientHeight;opens.each((function(){let layero_opened=$(this),height=layero_opened.css("height");height=parseInt(height.replace("px","")),height+30>=clientHeight&&(layero_opened.css("height",clientHeight-30),layero_opened.find(".layui-layer-content").css("height",clientHeight-62),layero_opened.find(".layui-layer-content iframe").css("height",clientHeight-62))}))},_bind_open_windows:function(){$("#mac").on("click",".mac-open-window",(function(){if($this=$(this),""!==$this.data("url")){let title=$this.data("title")||"",areaAndOffset,icon,bg=$this.data("icon-bg")?$this.data("icon-bg"):"";$this.data("icon-image")&&(icon=''),$this.data("icon-font")&&(icon=''),title||1!==$this.children(".icon").length||1!==$this.children(".title").length||(title=$this.children(".title").html(),icon||(icon=$this.children(".icon").prop("outerHTML"))),$this.data("area-offset")&&(areaAndOffset=$this.data("area-offset"),-1!==areaAndOffset.indexOf(",")&&(areaAndOffset=eval(areaAndOffset))),Macui.openUrl($this.data("url"),icon,title,areaAndOffset)}}))},_init:function(){this._lang=(navigator.language||navigator.browserLanguage).toLowerCase(),$("#mac_btn_win").click((function(){Macui.commandCenterClose(),Macui.menuToggle()})),$("#mac_btn_command").click((function(){Macui.renderCommand(),Macui.menuClose(),Macui.commandCenterToggle()})),$("#mac .desktop").click((function(){Macui.menuClose(),Macui.commandCenterClose()})),$("#mac").on("click",".notice .btn_close_msg",(function(){let msg=$(this).parents(".notice");$(msg).addClass("animated slideOutRight"),setTimeout((function(){msg.remove()}),500)})),$("#mac .launchpad").click((function(){$("#launchpad").hasClass("hidden")?(Macui.renderLaunchpad(),Macui.menuClose(),Macui.commandCenterClose()):Macui.closeLaunchpad()})),$("#mac_command_center").on("click",".command-header div",(function(){$(this).hasClass("active")||($(this).hasClass("tab-today")?($(this).parent().siblings(".msgs").hide().siblings(".today").show(),$(this).addClass("active").siblings("div").removeClass("active")):($(this).parent().siblings(".today").hide().siblings(".msgs").show(),$(this).addClass("active").siblings("div").removeClass("active")))})),$("#mac_btn_command_center_clean_all").click((function(){let msgs=$("#mac_command_center .msg");msgs.addClass("animated slideOutRight"),setTimeout((function(){msgs.remove()}),1500),setTimeout((function(){Macui.commandCenterClose()}),1e3)})),$("#mac_btn_show_desktop").click((function(){$("#mac .desktop").click(),Macui.hideWins()})),$("#mac-menu-switcher").click((function(){if(Macui._switchMenuTooHurry)return;Macui._switchMenuTooHurry=!0;let class_name="mac-menu-hidden",list=$("#mac-menu>.list"),blocks=$("#mac-menu>.blocks"),toggleSlide=function(obj){obj.hasClass(class_name)?(obj.addClass("animated slideInLeft"),obj.removeClass("animated slideOutLeft"),obj.removeClass(class_name)):(setTimeout((function(){obj.addClass(class_name)}),450),obj.addClass("animated slideOutLeft"),obj.removeClass("animated slideInLeft"))};toggleSlide(list),toggleSlide(blocks),setTimeout((function(){Macui._switchMenuTooHurry=!1}),520)})),$("#mac_btn_group_middle").click((function(){$("#mac .desktop").click()})),$(document).on("click",".layui-layer-refresh",(function(){let index=$(this).attr("index"),iframe=Macui.getLayeroByIndex(index).find("iframe");iframe.attr("src",iframe.attr("src"))})),$(document).on("mousedown",".mac-open-iframe",(function(){let layero=$(this);Macui._settop(layero),Macui._checkTop()})),$("#mac_btn_group_middle").on("click",".btn_close",(function(){let index=$(this).parent().attr("index");Macui._closeWin(index)})),$("#mac-menu .list").on("click",".item",(function(){let e=$(this);for(e.hasClass("has-sub-down")&&($("#mac-menu .list .item.has-sub-up").toggleClass("has-sub-down").toggleClass("has-sub-up"),$("#mac-menu .list .sub-item").slideUp()),e.next().hasClass("sub-item")&&e.toggleClass("has-sub-down").toggleClass("has-sub-up");e.next().hasClass("sub-item");)e.next().slideToggle(),e=e.next()})),setInterval((function(){let myDate=Macui.getLunarObj();$("#mac_btn_time").html(myDate.weekDay+myDate.hour+":"+myDate.minute)}),1e3),document.body.onbeforeunload=function(event){let rel=Macui.lang("系统可能不会保存您所做的更改","The system may not save the changes you have made.");window.event?window.event.returnValue=rel:event.returnValue=rel},Macui.buildList(),Macui._startAnimate(),Macui.renderShortcuts(),$("#mac-shortcuts").removeClass("shortcuts-hidden"),Macui._showShortcut(),Macui.renderDocks(),$(window).resize((function(){Macui.renderShortcuts(),Macui._checkBgUrls(),Macui.isSmallScreen()||Macui._fixWindowsHeightAndWidth(),Macui.renderDocks()})),setTimeout((function(){console.log(Macui.lang("本页由Mac-UI强力驱动\n更多信息:https://mac.apecloud.cn \nMac-UI,轻松打造别具一格的后台界面 ","The page is strongly driven by Mac-UI.\nFor more info: https://mac.apecloud.cn.\n Mac-UI, easy to create a unique background interface."))}),2e3),$(document).click((function(event){event.button||Macui._removeContextMenu()})),$(document).on("contextmenu",".mac-context-menu",(function(e){e.preventDefault(),e.stopPropagation()})),Macui.setContextMenu("#mac",!0),Macui.setContextMenu("#mac>.desktop",[[' 收藏本页',function(){let url=window.location,title=document.title,ua=navigator.userAgent.toLowerCase();if(ua.indexOf("360se")>-1)layer.alert(Macui.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);else if(document.all)try{window.external.addFavorite(url,title)}catch(e){layer.alert(Macui.lang("您的浏览器不支持,请按 Ctrl+D 手动收藏!","Your browser does not support, please press Ctrl+D to manual collection!"))}else window.sidebar?window.sidebar.addPanel(title,url,""):layer.alert(Macui.lang("您的浏览器不支持,请按 Ctrl+D 手动收藏!","Your browser does not support, please press Ctrl+D to manual collection!"))}],[' '+Macui.lang("进入全屏","Enable Full Screen"),function(){Macui.enableFullScreen()}],[' '+Macui.lang("退出全屏","Disable Full Screen"),function(){Macui.disableFullScreen()}],"|",[' '+Macui.lang("关于","About Us"),function(){Macui.aboutUs()}]]),Macui.setContextMenu("#mac_btn_group_middle",[[' '+Macui.lang("全部显示","Show All Windows"),function(){Macui.showWins()}],[' '+Macui.lang("全部隐藏","Hide All Windows"),function(){Macui.hideWins()}],[' '+Macui.lang("全部关闭","Close All Windows"),function(){Macui.closeAll()}]]),setInterval((function(){let btn=$("#mac-msg-nof.on-new-msg");btn.length>0&&btn.toggleClass("fa-commenting-o")}),600),$("body").keyup((function(e){if(e.ctrlKey)switch(e.keyCode){case 37:$("#mac_btn_win").click();break;case 38:Macui.showWins();break;case 39:$("#mac_btn_command").click();break;case 40:Macui.hideWins()}})),$("#launchpad .app-serach-box").on("click",(function(e){e.stopPropagation(),$(this).find(".input-search").on("input propertychange",(function(e){var searchName=$(this).val();""===searchName?$("#app-shortcuts .shortcut").show():$("#app-shortcuts .shortcut").each((function(){var appName;-1!==$(this).children(".title").text().toLowerCase().indexOf(searchName.toLowerCase())?$(this).show():$(this).hide()}))}))})),$("#mac-desktop-scene").length<1&&($("#mac-shortcuts").css({position:"absolute",left:0,top:30,"z-index":100}),$("#mac .desktop").append("
    ")),Macui._bind_open_windows()},setBgUrl:function(bgs){this._bgs=bgs,this._checkBgUrls()},setBg:function(bgs){this._bgs=bgs,this._checkBgUrls()},menuClose:function(){$("#mac-menu").removeClass("opened").addClass("hidden"),this._showShortcut(),$(".mac-open-iframe").removeClass("hide")},getLunarObj:function(){let lunarInfo=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448],Animals=["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],Gan=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"];function lYearDays(y){let i,sum=348;for(i=32768;i>8;i>>=1)sum+=lunarInfo[y-1900]&i?1:0;return sum+leapDays(y)}function leapDays(y){return leapMonth(y)?65536&lunarInfo[y-1900]?30:29:0}function leapMonth(y){return 15&lunarInfo[y-1900]}function monthDays(y,m){return lunarInfo[y-1900]&65536>>m?30:29}function Lunar(objDate){let i,leap=0,temp=0,baseDate,offset=(objDate-new Date(1900,0,31))/864e5;for(this.dayCyl=offset+40,this.monCyl=14,i=1900;i<2050&&offset>0;i++)temp=lYearDays(i),offset-=temp,this.monCyl+=12;for(offset<0&&(offset+=temp,i--,this.monCyl-=12),this.year=i,this.yearCyl=i-1864,leap=leapMonth(i),this.isLeap=!1,i=1;i<13&&offset>0;i++)leap>0&&i===leap+1&&!1===this.isLeap?(--i,this.isLeap=!0,temp=leapDays(this.year)):temp=monthDays(this.year,i),!0===this.isLeap&&i===leap+1&&(this.isLeap=!1),offset-=temp,!1===this.isLeap&&this.monCyl++;0===offset&&leap>0&&i===leap+1&&(this.isLeap?this.isLeap=!1:(this.isLeap=!0,--i,--this.monCyl)),offset<0&&(offset+=temp,--i,--this.monCyl),this.month=i,this.day=offset+1}function get_lunar_month(month){let fm;return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","腊月"][month-1]}function get_lunar_day(day){let fd=["十","一","二","三","四","五","六","七","八","九","十"];return day<=10?"初"+fd[day]:day<20?"十"+fd[day-10]:20===day?"二十":day<30?"廿"+fd[day-20]:"三"+fd[day-30]}function get_ganzhi(year){let num=year-1900+36;return Gan[num%10]+Zhi[num%12]}function get_animal(year){return Animals[(year-4)%12]}function get_weekday(date){let values;return["周日","周一","周二","周三","周四","周五","周六"][date.getDay()]}function get_week(date){let values;return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][date.getDay()]}function get_min(date){let mins=date.getMinutes();return mins<10&&(mins="0"+mins),mins}function get_hour(date){let hour=date.getHours(),hours;return hours=hour<6?"凌晨"+hour:hour<9?"早上"+hour:hour<12?"上午"+hour:hour<14?"中午"+(hour-12):hour<17?"下午"+(hour-12):hour<19?"傍晚"+(hour-12):hour<22?"晚上"+(hour-12):"深夜"+(hour-12),hours}let viewdate={},date=new Date;viewdate.second=date.getSeconds(),viewdate.minute=get_min(date),viewdate.hour=get_hour(date),viewdate.day=date.getDate(),viewdate.week=get_week(date),viewdate.weekDay=get_weekday(date),viewdate.month=date.getMonth()+1,viewdate.fullYear=date.getFullYear(),viewdate.year=date.getYear();let lunar_obj=new Lunar(date);viewdate.lunarmonth=get_lunar_month(lunar_obj.month);let lunar_day=Math.floor(lunar_obj.day);return viewdate.lunarday=get_lunar_day(lunar_day),viewdate.lunar=lunar_obj.year+"-"+lunar_obj.month+"-"+lunar_day,viewdate.ganzhi=get_ganzhi(lunar_obj.year),viewdate.animal=get_animal(lunar_obj.year),viewdate},renderLaunchpad:function(){$("#launchpad").removeClass("hidden").addClass("show").show(),$("#mac-shortcuts").addClass("shortcuts-hidden"),this.renderDocks()},closeLaunchpad:function(){$("#launchpad").hasClass("show")&&$("#launchpad").removeClass("show").addClass("hidden").hide()},renderCommand:function(todayHtml=null){let active;if(!$("#mac_command_center .command-body.today").hasClass("active")){if(!todayHtml){let lunarDate=Macui.getLunarObj();todayHtml='
    \n\t
    '+lunarDate.month+"月"+lunarDate.day+"日 \n"+lunarDate.week+'
    \n\t
    '+lunarDate.ganzhi+"年"+lunarDate.lunarmonth+lunarDate.lunarday+'
    \n
    \n
    \t
    \t\t\n\t\t天气\n\t
    \n\t
    \n\t\n\t
    \n
    \n'}$("#mac_command_center .command-body.today").html(todayHtml).addClass("active")}},menuOpen:function(){$("#mac-menu").addClass("opened").removeClass("hidden"),$(".mac-open-iframe").addClass("hide")},menuToggle:function(){$("#mac-menu").hasClass("opened")?this.menuClose():this.menuOpen()},commandCenterClose:function(){$("#mac_command_center").addClass("hidden_right"),this._showShortcut(),$(".mac-open-iframe").removeClass("hide")},commandCenterOpen:function(){$("#mac_command_center").removeClass("hidden_right"),$(".mac-open-iframe").addClass("hide"),$("#mac-msg-nof").removeClass("on-new-msg fa-commenting-o")},renderShortcuts:function(){if(this.isSmallScreen()){let w=parseInt(($("#mac #mac-shortcuts")[0].offsetWidth-10)/82),x=0,y=0;$("#mac #mac-shortcuts .shortcut").each((function(){$(this).css({left:82*x+10,right:0,top:100*y+10}),x++,x>=w&&(x=0,y++)}))}else{let h=parseInt(($("#mac #mac-shortcuts")[0].offsetHeight-90)/100),w=0,x=0,y=0;$("#mac #mac-shortcuts .shortcut").each((function(){$(this).css({right:82*x+10,left:"auto",top:100*y+10}),y++,y>=h&&(y=0,x++)}))}},renderDocks:function(){let cell_width=60,width=document.body.clientWidth,docks=$("#dock .dock li"),max_num=parseInt(width/60)-1;for(let i=0;imax_num?docks.eq(i).css("display","none"):docks.eq(i).css("display","list-item");this.isSmallScreen()?$("#dock .dock-container li a img").hover((function(){$(this).parent("a").prev().css("display","none")})):$("#dock .dock-container li a img").hover((function(){$(this).parent("a").prev().css("display","flex")}),(function(){$(this).parent("a").prev().css("display","none")}))},commandCenterToggle:function(){$("#mac_command_center").hasClass("hidden_right")?this.commandCenterOpen():this.commandCenterClose()},newMsg:function(title,content,handle_click,app_name="提示消息",app_icon='',is_del=!0){let msg='
    '+app_icon+''+app_name+"";is_del&&(msg+=''),msg+='
    '+title+'
    '+content+"
    ";let e=$(msg);$("#mac_command_center .msgs").prepend(e),e.find(".content:first,.title:first").click((function(){handle_click&&handle_click(e)})),layer.tips(Macui.lang("新消息:","New message:")+title,"#mac_btn_command",{tips:[1,"rgba(0, 0, 0, 0.7)"],time:3e3}),$("#mac_command_center").hasClass("hidden_right")&&$("#mac-msg-nof").addClass("on-new-msg")},getLayeroByIndex:function(index){return $("#layui-layer"+index)},isSmallScreen:function(size){let width;return size||(size=768),document.body.clientWidth12)return layer.msg("您打开的太多了,歇会儿吧~"),!1;let preg,area,offset;if(this._countTask++,url||(url="404"),url=url.replace(/(^\s*)|(\s*$)/g,""),/^(https?:\/\/|\.\.?\/|\/\/?)/.test(url)||(url="http://"+url),url||(url="//yuri2.cn"),title||(title=url),this.isSmallScreen()||"max"===areaAndOffset)area=["100%",document.body.clientHeight-24+"px"],offset=["24px","0"];else if("object"==typeof areaAndOffset)area=areaAndOffset[0],offset=areaAndOffset[1];else{let topset,leftset;area=["80%","80%"],topset=parseInt($(window).height()),topset=(topset-.8*topset)/2-31,leftset=parseInt($(window).width()),leftset=(leftset-.8*leftset)/2-120,offset=[Math.round(this._countTask%10*20+topset)+"px",Math.round(this._countTask%10*20+100+leftset)+"px"]}let index=layer.open({type:2,shadeClose:!0,shade:!1,maxmin:!0,title:icon+title,content:url,area:area,offset:offset,isOutAnim:!1,skin:"mac-open-iframe",cancel:function(index,layero){$("#mac_"+index).remove(),Macui._checkTop(),Macui._countTask--,Macui._renderBar()},min:function(layero){return layero.hide(),$("#mac_"+index).removeClass("show"),Macui._checkTop(),!1},full:function(layero){layero.find(".layui-layer-min").css("display","inline-block"),layero_opened.css("top",24)}});$("#mac_btn_group_middle .btn.active").removeClass("active");let btn=$('
    '+icon+"
    "),layero_opened=Macui.getLayeroByIndex(index);return layero_opened.css("z-index",Macui._countTask+813),Macui._settop(layero_opened),layero_opened.find(".layui-layer-setwin>a").each((function(){$(this).hasClass("layui-layer-close")&&$(this).prependTo(layero_opened.find(".layui-layer-setwin"))})),layero_opened.find(".layui-layer-setwin").append(''),layero_opened.find(".layui-layer-setwin .layui-layer-max").click((function(){setTimeout((function(){let height=layero_opened.css("height");height=parseInt(height.replace("px","")),height>=document.body.clientHeight&&(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)})),$("#mac_btn_group_middle").append(btn),Macui._renderBar(),btn.click((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index),settop=function(){let max_zindex=0;$(".mac-open-iframe").each((function(){z=parseInt($(this).css("z-index")),$(this).css("z-index",z-1),z>max_zindex&&(max_zindex=z)})),layero.css("z-index",max_zindex+1)};$(this).hasClass("show")?$(this).hasClass("active")?($(this).removeClass("active"),$(this).removeClass("show"),Macui._checkTop(),layero.hide()):($("#mac_btn_group_middle .btn.active").removeClass("active"),$(this).addClass("active"),Macui._settop(layero)):($(this).addClass("show"),$("#mac_btn_group_middle .btn.active").removeClass("active"),$(this).addClass("active"),Macui._settop(layero),layero.show())})),Macui._iframeOnClick.track(layero_opened.find("iframe:first")[0],(function(){0===Object.getOwnPropertyNames(Macui._iframe_click_lock_children).length?(Macui._settop(layero_opened),Macui._checkTop()):console.log("click locked")})),this.menuClose(),this.commandCenterClose(),index},closeAll:function(){$(".mac-open-iframe").remove(),$("#mac_btn_group_middle").html(""),Macui._countTask=0,Macui._renderBar()},setAnimated:function(animated_classes,animated_liveness){this._animated_classes=animated_classes,this._animated_liveness=animated_liveness},exit:function(){layer.confirm(Macui.lang("确认要关闭本页吗?","Are you sure you want to close this page?"),{icon:3,title:Macui.lang("提示","Prompt")},(function(index){document.body.onbeforeunload=function(){},window.location.href="about:blank",window.close(),layer.close(index),layer.alert(Macui.lang("哎呀,好像失败了呢。","Ops...There seems to be a little problem."),{skin:"layui-layer-lan",closeBtn:0})}))},lang:function(cn,en){return"zh-cn"===this._lang||"zh-tw"===this._lang?cn:en},aboutUs:function(){layer.open({type:1,closeBtn:1,anim:2,skin:"mac-open-iframe",title:"MAC-UI "+this._version,shadeClose:!0,area:["320px","200px"],content:'

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

    木子的忧伤、尤里2号©版权所有

    作者邮箱:1099438829@qq.com

    '})},setContextMenu:function(jq_dom,menu){"string"==typeof jq_dom&&(jq_dom=$(jq_dom)),jq_dom.unbind("contextmenu"),jq_dom.on("contextmenu",(function(e){menu&&(Macui._renderContextMenu(e.clientX,e.clientY,menu,this),e.cancelable&&(e.defaultPrevented||e.preventDefault()),e.stopPropagation())}))},hideWins:function(){$("#mac_btn_group_middle>.btn.show").each((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index);$(this).removeClass("show"),$(this).removeClass("active"),layero.hide()}))},showWins:function(){$("#mac_btn_group_middle>.btn").each((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index);$(this).addClass("show"),layero.show()})),Macui._checkTop()},getDesktopScene:function(){return $("#mac-desktop-scene")},onReady:function(handle){Macui._handleReady.push(handle)}},$((function(){Macui._init();for(let i in Macui._handleReady){let handle;(0,Macui._handleReady[i])()}})); \ No newline at end of file +window.Macui={_version:"v1.1.2.6",_debug:!0,_bgs:{main:"",mobile:""},_wallpaperBlur:!0,_countTask:0,_maxTask:12,_newMsgCount:0,_animated_classes:[],_animated_liveness:0,_switchMenuTooHurry:!1,_lang:"unknown",_iframeOnClick:{resolution:200,iframes:[],interval:null,Iframe:function(){this.element=arguments[0],this.cb=arguments[1],this.hasTracked=!1},track:function(element,cb){if(this.iframes.push(new this.Iframe(element,cb)),!this.interval){let _this=this;this.interval=setInterval((function(){_this.checkClick()}),this.resolution)}},checkClick:function(){if(document.activeElement){let activeElement=document.activeElement;for(let i in this.iframes){let eid=void 0;!(eid=this.iframes[i].element.id)||document.getElementById(eid)?activeElement===this.iframes[i].element?!1===this.iframes[i].hasTracked&&(this.iframes[i].cb.apply(window,[]),this.iframes[i].hasTracked=!0):this.iframes[i].hasTracked=!1:delete this.iframes[i]}}}},_iframe_click_lock_children:{},_renderBar:function(){if(this._countTask<=0)return;let btns;$("#mac_btn_group_middle>.btn").css("width","calc("+1/this._countTask*100+"% - 1px )")},_handleReady:[],_hideShortcut:function(){let that=$("#mac #mac-shortcuts .shortcut");that.removeClass("animated flipInX"),that.addClass("animated flipOutX")},_showShortcut:function(){let that=$("#mac #mac-shortcuts .shortcut");that.removeClass("animated flipOutX"),that.addClass("animated flipInX")},_checkBgUrls:function(){let loaders=$("#mac>.img-loader"),flag=!1;if(Macui.isSmallScreen()){if(Macui._bgs.mobile&&(loaders.each((function(){let loader=$(this);loader.attr("src")===Macui._bgs.mobile&&loader.hasClass("loaded")&&(Macui._setBackgroundImg(Macui._bgs.mobile),flag=!0)})),!flag)){let img=$('');$("#mac").append(img),Macui._onImgComplete(img[0],(function(){img.addClass("loaded"),Macui._setBackgroundImg(Macui._bgs.mobile)}))}}else if(Macui._bgs.main&&(loaders.each((function(){let loader=$(this);loader.attr("src")===Macui._bgs.main&&loader.hasClass("loaded")&&(Macui._setBackgroundImg(Macui._bgs.main),flag=!0)})),!flag)){let img=$('');$("#mac").append(img),Macui._onImgComplete(img[0],(function(){img.addClass("loaded"),Macui._setBackgroundImg(Macui._bgs.main)}))}Macui._wallpaperBlur&&$(".background").addClass("blur")},loadScript:function(url,callback){let el=document.createElement("script");el.type="text/javascript",void 0!==callback&&(el.readyState?el.onreadystatechange=function(){"loaded"!==el.readyState&&"complete"!==el.readyState||(el.onreadystatechange=null,callback())}:el.onload=function(){callback()}),el.src=url,document.head.appendChild(el)},_startAnimate:function(){setInterval((function(){let classes_length=Macui._animated_classes.length,animated_live_ness=Macui._animated_liveness;0!==animated_live_ness&&0!==classes_length&&$("#mac-menu").hasClass("opened")&&$("#mac-menu>.blocks>.menu_group>.block").each((function(){if(!$(this).hasClass("onAnimate")&&Math.random()<=animated_live_ness){let that=$(this),class_animate=Macui._animated_classes[Math.floor(Math.random()*classes_length)];that.addClass("onAnimate"),setTimeout((function(){that.addClass(class_animate),setTimeout((function(){that.removeClass("onAnimate"),that.removeClass(class_animate)}),3e3)}),2*Math.random()*1e3)}}))}),1e3)},_onImgComplete:function(img,callback){if(!img)return;let timer=setInterval((function(){img.complete&&(callback(img),clearInterval(timer))}),50)},_setBackgroundImg:function(img){$("#mac .background").css("background-image","url("+img+")")},_settop:function(layero){isNaN(layero)||(layero=this.getLayeroByIndex(layero));let max_zindex=0;$(".mac-open-iframe").each((function(){z=parseInt($(this).css("z-index")),$(this).css("z-index",z-1),z>max_zindex&&(max_zindex=z)})),layero.css("z-index",max_zindex+1)},_checkTop:function(){let max_index=0,max_z=0,btn=null;$("#dock .dock-container li.show").each((function(){let index=$(this).attr("index"),layero,z=Macui.getLayeroByIndex(index).css("z-index");z>max_z&&(max_index=index,max_z=z,btn=$(this))})),this._settop(max_index),$("#dock .dock-container li").removeClass("active"),btn&&btn.addClass("active")},_renderContextMenu:function(x,y,menu,trigger){if(this._removeContextMenu(),!0===menu)return;let dom=$("
      ");$("#mac").append(dom);let ul=dom.find("ul");for(let i=0;i"+item[0]+"");ul.append(sub),sub.click(trigger,item[1])}}else ul.append($("
    • "+item+"
    • "));else ul.append($("
      "))}x+150>document.body.clientWidth&&(x-=150),y+dom.height()>document.body.clientHeight&&(y-=dom.height()),dom.css({top:y,left:x})},_removeContextMenu:function(){$(".mac-context-menu").remove()},_closeWin:function(index){$("#mac_"+index).remove(),layer.close(index),Macui._checkTop(),Macui._countTask--,Macui.renderDocks()},_fixWindowsHeightAndWidth:function(){let opens=$(".mac-open-iframe"),clientHeight=document.body.clientHeight;opens.each((function(){let layero_opened=$(this),height=layero_opened.css("height");height=parseInt(height.replace("px","")),height+30>=clientHeight&&(layero_opened.css("height",clientHeight-30),layero_opened.find(".layui-layer-content").css("height",clientHeight-62),layero_opened.find(".layui-layer-content iframe").css("height",clientHeight-62))}))},_bind_open_windows:function(){$("#mac").on("click",".mac-open-window",(function(){if($this=$(this),""!==$this.data("url")){let title=$this.data("title")||"",areaAndOffset,icon,bg=$this.data("icon-bg")?$this.data("icon-bg"):"";$this.data("icon-image")&&(icon=''),$this.data("icon-font")&&(icon=''),title||1!==$this.children(".icon").length||1!==$this.children(".title").length||(title=$this.children(".title").html(),icon||(icon=$this.children(".icon").prop("outerHTML"))),$this.data("area-offset")&&(areaAndOffset=$this.data("area-offset"),-1!==areaAndOffset.indexOf(",")&&(areaAndOffset=eval(areaAndOffset))),Macui.openUrl($this.data("url"),icon,title,areaAndOffset)}}))},_init:function(){this._lang=(navigator.language||navigator.browserLanguage).toLowerCase(),$("#mac_btn_win").click((function(){Macui.commandCenterClose(),Macui.menuToggle()})),$("#mac_btn_command").click((function(){Macui.renderCommand(),Macui.menuClose(),Macui.commandCenterToggle()})),$("#mac .desktop").click((function(){Macui.menuClose(),Macui.commandCenterClose()})),$("#mac").on("click",".notice .btn_close_msg",(function(){let msg=$(this).parents(".notice");$(msg).addClass("animated slideOutRight"),setTimeout((function(){msg.remove()}),500)})),$("#mac .launchpad").click((function(){$("#launchpad").hasClass("hidden")?(Macui.renderLaunchpad(),Macui.menuClose(),Macui.commandCenterClose()):Macui.closeLaunchpad()})),$("#mac_command_center").on("click",".command-header div",(function(){$(this).hasClass("active")||($(this).hasClass("tab-today")?($(this).parent().siblings(".msgs").hide().siblings(".today").show(),$(this).addClass("active").siblings("div").removeClass("active")):($(this).parent().siblings(".today").hide().siblings(".msgs").show(),$(this).addClass("active").siblings("div").removeClass("active")))})),$("#mac_btn_command_center_clean_all").click((function(){let msgs=$("#mac_command_center .msg");msgs.addClass("animated slideOutRight"),setTimeout((function(){msgs.remove()}),1500),setTimeout((function(){Macui.commandCenterClose()}),1e3)})),$("#mac_btn_show_desktop").click((function(){$("#mac .desktop").click(),Macui.hideWins()})),$("#mac-menu-switcher").click((function(){if(Macui._switchMenuTooHurry)return;Macui._switchMenuTooHurry=!0;let class_name="mac-menu-hidden",list=$("#mac-menu>.list"),blocks=$("#mac-menu>.blocks"),toggleSlide=function(obj){obj.hasClass(class_name)?(obj.addClass("animated slideInLeft"),obj.removeClass("animated slideOutLeft"),obj.removeClass(class_name)):(setTimeout((function(){obj.addClass(class_name)}),450),obj.addClass("animated slideOutLeft"),obj.removeClass("animated slideInLeft"))};toggleSlide(list),toggleSlide(blocks),setTimeout((function(){Macui._switchMenuTooHurry=!1}),520)})),$("#mac_btn_group_middle").click((function(){$("#mac .desktop").click()})),$(document).on("click",".layui-layer-refresh",(function(){let index=$(this).attr("index"),iframe=Macui.getLayeroByIndex(index).find("iframe");iframe.attr("src",iframe.attr("src"))})),$(document).on("mousedown",".mac-open-iframe",(function(){let layero=$(this);Macui._settop(layero),Macui._checkTop()})),$("#mac_btn_group_middle").on("click",".btn_close",(function(){let index=$(this).parent().attr("index");Macui._closeWin(index)})),$("#mac-menu .list").on("click",".item",(function(){let e=$(this);for(e.hasClass("has-sub-down")&&($("#mac-menu .list .item.has-sub-up").toggleClass("has-sub-down").toggleClass("has-sub-up"),$("#mac-menu .list .sub-item").slideUp()),e.next().hasClass("sub-item")&&e.toggleClass("has-sub-down").toggleClass("has-sub-up");e.next().hasClass("sub-item");)e.next().slideToggle(),e=e.next()})),setInterval((function(){let myDate=Macui.getLunarObj();$("#mac_btn_time").html(myDate.weekDay+myDate.hour+":"+myDate.minute)}),1e3),document.body.onbeforeunload=function(event){let rel=Macui.lang("系统可能不会保存您所做的更改","The system may not save the changes you have made.");window.event?window.event.returnValue=rel:event.returnValue=rel},Macui.buildList(),Macui._startAnimate(),Macui.renderShortcuts(),$("#mac-shortcuts").removeClass("shortcuts-hidden"),Macui._showShortcut(),Macui.renderDocks(),this._maxTask=parseInt((document.body.clientWidth-10)/60),$(window).resize((function(){Macui.renderShortcuts(),Macui._checkBgUrls(),Macui.isSmallScreen()||Macui._fixWindowsHeightAndWidth(),Macui.renderDocks(),this._maxTask=parseInt((parseInt(document.body.clientWidth)-10)/60)})),setTimeout((function(){console.log(Macui.lang("本页由Mac-UI强力驱动\n更多信息:https://mac.apecloud.cn \nMac-UI,轻松打造别具一格的后台界面 ","The page is strongly driven by Mac-UI.\nFor more info: https://mac.apecloud.cn.\n Mac-UI, easy to create a unique background interface."))}),2e3),$(document).click((function(event){event.button||Macui._removeContextMenu()})),$(document).on("contextmenu",".mac-context-menu",(function(e){e.preventDefault(),e.stopPropagation()})),Macui.setContextMenu("#mac",!0),Macui.setContextMenu("#mac>.desktop",[[' 收藏本页',function(){let url=window.location,title=document.title,ua=navigator.userAgent.toLowerCase();if(ua.indexOf("360se")>-1)layer.alert(Macui.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);else if(document.all)try{window.external.addFavorite(url,title)}catch(e){layer.alert(Macui.lang("您的浏览器不支持,请按 Ctrl+D 手动收藏!","Your browser does not support, please press Ctrl+D to manual collection!"))}else window.sidebar?window.sidebar.addPanel(title,url,""):layer.alert(Macui.lang("您的浏览器不支持,请按 Ctrl+D 手动收藏!","Your browser does not support, please press Ctrl+D to manual collection!"))}],[' '+Macui.lang("进入全屏","Enable Full Screen"),function(){Macui.enableFullScreen()}],[' '+Macui.lang("退出全屏","Disable Full Screen"),function(){Macui.disableFullScreen()}],"|",[' '+Macui.lang("关于","About Us"),function(){Macui.aboutUs()}]]),Macui.setContextMenu("#mac_btn_group_middle",[[' '+Macui.lang("全部显示","Show All Windows"),function(){Macui.showWins()}],[' '+Macui.lang("全部隐藏","Hide All Windows"),function(){Macui.hideWins()}],[' '+Macui.lang("全部关闭","Close All Windows"),function(){Macui.closeAll()}]]),setInterval((function(){let btn=$("#mac-msg-nof.on-new-msg");btn.length>0&&btn.toggleClass("fa-commenting-o")}),600),$("body").keyup((function(e){if(e.ctrlKey)switch(e.keyCode){case 37:$("#mac_btn_win").click();break;case 38:Macui.showWins();break;case 39:$("#mac_btn_command").click();break;case 40:Macui.hideWins()}})),$("#launchpad .app-serach-box").on("click",(function(e){e.stopPropagation(),$(this).find(".input-search").on("input propertychange",(function(e){var searchName=$(this).val();""===searchName?$("#app-shortcuts .shortcut").show():$("#app-shortcuts .shortcut").each((function(){var appName;-1!==$(this).children(".title").text().toLowerCase().indexOf(searchName.toLowerCase())?$(this).show():$(this).hide()}))}))})),$("#mac-desktop-scene").length<1&&($("#mac-shortcuts").css({position:"absolute",left:0,top:30,"z-index":100}),$("#mac .desktop").append("
      ")),Macui._bind_open_windows()},setBgUrl:function(bgs){this._bgs=bgs,this._checkBgUrls()},setBg:function(bgs){this._bgs=bgs,this._checkBgUrls()},menuClose:function(){$("#mac-menu").removeClass("opened").addClass("hidden"),this._showShortcut(),$(".mac-open-iframe").removeClass("hide")},getLunarObj:function(){let lunarInfo=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448],Animals=["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],Gan=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"];function lYearDays(y){let i,sum=348;for(i=32768;i>8;i>>=1)sum+=lunarInfo[y-1900]&i?1:0;return sum+leapDays(y)}function leapDays(y){return leapMonth(y)?65536&lunarInfo[y-1900]?30:29:0}function leapMonth(y){return 15&lunarInfo[y-1900]}function monthDays(y,m){return lunarInfo[y-1900]&65536>>m?30:29}function Lunar(objDate){let i,leap=0,temp=0,baseDate,offset=(objDate-new Date(1900,0,31))/864e5;for(this.dayCyl=offset+40,this.monCyl=14,i=1900;i<2050&&offset>0;i++)temp=lYearDays(i),offset-=temp,this.monCyl+=12;for(offset<0&&(offset+=temp,i--,this.monCyl-=12),this.year=i,this.yearCyl=i-1864,leap=leapMonth(i),this.isLeap=!1,i=1;i<13&&offset>0;i++)leap>0&&i===leap+1&&!1===this.isLeap?(--i,this.isLeap=!0,temp=leapDays(this.year)):temp=monthDays(this.year,i),!0===this.isLeap&&i===leap+1&&(this.isLeap=!1),offset-=temp,!1===this.isLeap&&this.monCyl++;0===offset&&leap>0&&i===leap+1&&(this.isLeap?this.isLeap=!1:(this.isLeap=!0,--i,--this.monCyl)),offset<0&&(offset+=temp,--i,--this.monCyl),this.month=i,this.day=offset+1}function get_lunar_month(month){let fm;return["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","腊月"][month-1]}function get_lunar_day(day){let fd=["十","一","二","三","四","五","六","七","八","九","十"];return day<=10?"初"+fd[day]:day<20?"十"+fd[day-10]:20===day?"二十":day<30?"廿"+fd[day-20]:"三"+fd[day-30]}function get_ganzhi(year){let num=year-1900+36;return Gan[num%10]+Zhi[num%12]}function get_animal(year){return Animals[(year-4)%12]}function get_weekday(date){let values;return["周日","周一","周二","周三","周四","周五","周六"][date.getDay()]}function get_week(date){let values;return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][date.getDay()]}function get_min(date){let mins=date.getMinutes();return mins<10&&(mins="0"+mins),mins}function get_hour(date){let hour=date.getHours(),hours;return hours=hour<6?"凌晨"+hour:hour<9?"早上"+hour:hour<12?"上午"+hour:hour<14?"中午"+(hour-12):hour<17?"下午"+(hour-12):hour<19?"傍晚"+(hour-12):hour<22?"晚上"+(hour-12):"深夜"+(hour-12),hours}let viewdate={},date=new Date;viewdate.second=date.getSeconds(),viewdate.minute=get_min(date),viewdate.hour=get_hour(date),viewdate.day=date.getDate(),viewdate.week=get_week(date),viewdate.weekDay=get_weekday(date),viewdate.month=date.getMonth()+1,viewdate.fullYear=date.getFullYear(),viewdate.year=date.getYear();let lunar_obj=new Lunar(date);viewdate.lunarmonth=get_lunar_month(lunar_obj.month);let lunar_day=Math.floor(lunar_obj.day);return viewdate.lunarday=get_lunar_day(lunar_day),viewdate.lunar=lunar_obj.year+"-"+lunar_obj.month+"-"+lunar_day,viewdate.ganzhi=get_ganzhi(lunar_obj.year),viewdate.animal=get_animal(lunar_obj.year),viewdate},renderLaunchpad:function(){$("#launchpad").removeClass("hidden").addClass("show").show(),$("#mac-shortcuts").addClass("shortcuts-hidden"),this.renderDocks()},closeLaunchpad:function(){$("#launchpad").hasClass("show")&&$("#launchpad").removeClass("show").addClass("hidden").hide()},renderCommand:function(todayHtml=null){let active;if(!$("#mac_command_center .command-body.today").hasClass("active")){if(!todayHtml){let lunarDate=Macui.getLunarObj();todayHtml='
      \n\t
      '+lunarDate.month+"月"+lunarDate.day+"日 \n"+lunarDate.week+'
      \n\t
      '+lunarDate.ganzhi+"年"+lunarDate.lunarmonth+lunarDate.lunarday+'
      \n
      \n
      \t
      \t\t\n\t\t天气\n\t
      \n\t
      \n\t\n\t
      \n
      \n'}$("#mac_command_center .command-body.today").html(todayHtml).addClass("active")}},menuOpen:function(){$("#mac-menu").addClass("opened").removeClass("hidden"),$(".mac-open-iframe").addClass("hide")},menuToggle:function(){$("#mac-menu").hasClass("opened")?this.menuClose():this.menuOpen()},commandCenterClose:function(){$("#mac_command_center").addClass("hidden_right"),this._showShortcut(),$(".mac-open-iframe").removeClass("hide")},commandCenterOpen:function(){$("#mac_command_center").removeClass("hidden_right"),$(".mac-open-iframe").addClass("hide"),$("#mac-msg-nof").removeClass("on-new-msg fa-commenting-o")},renderShortcuts:function(){if(this.isSmallScreen()){let w=parseInt(($("#mac #mac-shortcuts")[0].offsetWidth-10)/82),x=0,y=0;$("#mac #mac-shortcuts .shortcut").each((function(){$(this).css({left:82*x+10,right:0,top:100*y+10}),x++,x>=w&&(x=0,y++)}))}else{let h=parseInt(($("#mac #mac-shortcuts")[0].offsetHeight-90)/100),w=0,x=0,y=0;$("#mac #mac-shortcuts .shortcut").each((function(){$(this).css({right:82*x+10,left:"auto",top:100*y+10}),y++,y>=h&&(y=0,x++)}))}},renderDocks:function(){let cell_width=60,width=document.body.clientWidth,docks=$("#dock .dock li"),max_num=parseInt(width/60)-1;for(let i=0;imax_num?docks.eq(i).css("display","none"):docks.eq(i).css("display","list-item");this.isSmallScreen()?$("#dock .dock-container li a img").hover((function(){$(this).parent("a").prev().css("display","none")})):$("#dock .dock-container li a img").hover((function(){$(this).parent("a").prev().css("display","flex")}),(function(){$(this).parent("a").prev().css("display","none")}))},commandCenterToggle:function(){$("#mac_command_center").hasClass("hidden_right")?this.commandCenterOpen():this.commandCenterClose()},newMsg:function(title,content,handle_click,app_name="提示消息",app_icon='',is_del=!0){let msg='
      '+app_icon+''+app_name+"";is_del&&(msg+=''),msg+='
      '+title+'
      '+content+"
      ";let e=$(msg);$("#mac_command_center .msgs").prepend(e),e.find(".content:first,.title:first").click((function(){handle_click&&handle_click(e)})),layer.tips(Macui.lang("新消息:","New message:")+title,"#mac_btn_command",{tips:[1,"rgba(0, 0, 0, 0.7)"],time:3e3}),$("#mac_command_center").hasClass("hidden_right")&&$("#mac-msg-nof").addClass("on-new-msg")},getLayeroByIndex:function(index){return $("#layui-layer"+index)},isSmallScreen:function(size){let width;return size||(size=768),document.body.clientWidththis._maxTask)return layer.msg("您打开的太多了,歇会儿吧~"),!1;let preg,area,offset;if(this._countTask++,url||(url="404"),url=url.replace(/(^\s*)|(\s*$)/g,""),/^(https?:\/\/|\.\.?\/|\/\/?)/.test(url)||(url="http://"+url),url||(url="//yuri2.cn"),title||(title=url),this.isSmallScreen()||"max"===areaAndOffset)area=["100%",document.body.clientHeight-24+"px"],offset=["24px","0"];else if("object"==typeof areaAndOffset)area=areaAndOffset[0],offset=areaAndOffset[1];else{let topset,leftset;area=["80%","80%"],topset=parseInt($(window).height()),topset=(topset-.8*topset)/2-31,leftset=parseInt($(window).width()),leftset=(leftset-.8*leftset)/2-120,offset=[Math.round(this._countTask%10*20+topset)+"px",Math.round(this._countTask%10*20+100+leftset)+"px"]}let index=layer.open({type:2,shadeClose:!0,shade:!1,maxmin:!0,title:icon+title,content:url,area:area,offset:offset,isOutAnim:!1,skin:"mac-open-iframe",cancel:function(index,layero){$("#mac_"+index).remove(),Macui._checkTop(),Macui._countTask--,Macui._renderBar()},min:function(layero){return layero.hide(),$("#mac_"+index).removeClass("show"),Macui._checkTop(),!1},full:function(layero){layero.find(".layui-layer-min").css("display","inline-block"),layero_opened.css("top",24)}});$("#dock .dock-container li.active").removeClass("active");let btn=$('
    • '+icon+"
    • "),layero_opened=Macui.getLayeroByIndex(index);return layero_opened.css("z-index",Macui._countTask+813),Macui._settop(layero_opened),layero_opened.find(".layui-layer-setwin>a").each((function(){$(this).hasClass("layui-layer-close")&&$(this).prependTo(layero_opened.find(".layui-layer-setwin"))})),layero_opened.find(".layui-layer-setwin").append(''),layero_opened.find(".layui-layer-setwin .layui-layer-max").click((function(){setTimeout((function(){let height=layero_opened.css("height");height=parseInt(height.replace("px","")),height>=document.body.clientHeight&&(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)})),$("#trashicon")?btn.insertBefore($("#trashicon")):$("#dock .dock-container>li").append(btn),Macui.renderDocks(),btn.click((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index),settop=function(){let max_zindex=0;$(".mac-open-iframe").each((function(){z=parseInt($(this).css("z-index")),$(this).css("z-index",z-1),z>max_zindex&&(max_zindex=z)})),layero.css("z-index",max_zindex+1)};$(this).hasClass("show")?$(this).hasClass("active")?($(this).removeClass("active"),$(this).removeClass("show"),Macui._checkTop(),layero.hide()):($("#dock .dock-container li.active").removeClass("active"),$(this).addClass("active"),Macui._settop(layero)):($(this).addClass("show"),$("#dock .dock-container li.active").removeClass("active"),$(this).addClass("active"),Macui._settop(layero),layero.show())})),Macui._iframeOnClick.track(layero_opened.find("iframe:first")[0],(function(){0===Object.getOwnPropertyNames(Macui._iframe_click_lock_children).length?(Macui._settop(layero_opened),Macui._checkTop()):console.log("click locked")})),this.menuClose(),this.commandCenterClose(),index},closeAll:function(){$(".mac-open-iframe").remove(),$("#mac_btn_group_middle").html(""),Macui._countTask=0,Macui.renderDocks()},setAnimated:function(animated_classes,animated_liveness){this._animated_classes=animated_classes,this._animated_liveness=animated_liveness},exit:function(){layer.confirm(Macui.lang("确认要关闭本页吗?","Are you sure you want to close this page?"),{icon:3,title:Macui.lang("提示","Prompt")},(function(index){document.body.onbeforeunload=function(){},window.location.href="about:blank",window.close(),layer.close(index),layer.alert(Macui.lang("哎呀,好像失败了呢。","Ops...There seems to be a little problem."),{skin:"layui-layer-lan",closeBtn:0})}))},lang:function(cn,en){return"zh-cn"===this._lang||"zh-tw"===this._lang?cn:en},aboutUs:function(){layer.open({type:1,closeBtn:1,anim:2,skin:"mac-open-iframe",title:"MAC-UI "+this._version,shadeClose:!0,area:["320px","200px"],content:'

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

      木子的忧伤、尤里2号©版权所有

      作者邮箱:1099438829@qq.com

      '})},setContextMenu:function(jq_dom,menu){"string"==typeof jq_dom&&(jq_dom=$(jq_dom)),jq_dom.unbind("contextmenu"),jq_dom.on("contextmenu",(function(e){menu&&(Macui._renderContextMenu(e.clientX,e.clientY,menu,this),e.cancelable&&(e.defaultPrevented||e.preventDefault()),e.stopPropagation())}))},hideWins:function(){$("#mac_btn_group_middle>.btn.show").each((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index);$(this).removeClass("show"),$(this).removeClass("active"),layero.hide()}))},showWins:function(){$("#mac_btn_group_middle>.btn").each((function(){let index=$(this).attr("index"),layero=Macui.getLayeroByIndex(index);$(this).addClass("show"),layero.show()})),Macui._checkTop()},getDesktopScene:function(){return $("#mac-desktop-scene")},onReady:function(handle){Macui._handleReady.push(handle)}},$((function(){Macui._init();for(let i in Macui._handleReady){let handle;(0,Macui._handleReady[i])()}})); \ No newline at end of file