diff --git a/app/calculator/style.css b/app/calculator/index.css similarity index 100% rename from app/calculator/style.css rename to app/calculator/index.css diff --git a/app/calculator/index.html b/app/calculator/index.html index 22ffa4f..00a6dfb 100644 --- a/app/calculator/index.html +++ b/app/calculator/index.html @@ -4,7 +4,7 @@ Calculator - +
@@ -49,6 +49,6 @@ src="https://code.jquery.com/jquery-3.5.0.min.js" integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"> - + \ No newline at end of file diff --git a/app/calculator/index.min.css b/app/calculator/index.min.css new file mode 100644 index 0000000..1f6931a --- /dev/null +++ b/app/calculator/index.min.css @@ -0,0 +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;width:100%;background-color:#000;overflow:hidden}.container{background-color:#000;width:350px;padding:20px}.screen-box{text-align:right;color:#fff}.input-box{font-size:30px;height:40px;line-height:40px;overflow:hidden}.output-box{font-size:48px;height:56px;line-height:56px;overflow:hidden}.line{display:flex;justify-content:space-between;text-align:center;margin-bottom:10px}.line>div{width:80px;height:80px;line-height:80px;text-align:center;color:#fff;border-radius:80px;font-size:25px;cursor:pointer}[data-key="0"]{width:168px!important}.grey-white{background-color:#a5a5a5;color:#000}.grey-white:hover{background-color:#cccaca}.orange{background-color:#ff9f0c;color:#fff}.orange:hover{background-color:#ffbb54}.grey-black{background-color:#333;color:#fff}.grey-black:hover{background-color:#747373} \ No newline at end of file diff --git a/app/calculator/index.min.js b/app/calculator/index.min.js new file mode 100644 index 0000000..1a4deaa --- /dev/null +++ b/app/calculator/index.min.js @@ -0,0 +1 @@ +var inputTxt="",outputTxt="";function playSoud(){$("audio")[0].play()}function updateView(){$(".input-box").html(inputTxt),$(".output-box").html(outputTxt)}$(".line-item").on("click",e=>{playSoud();var key=e.target.dataset.key;switch(console.log(key),key){case"=":try{outputTxt=eval(inputTxt)}catch(e){outputTxt="error"}break;case"AC":inputTxt="",outputTxt="0";break;default:inputTxt+=key}updateView()}); \ No newline at end of file diff --git a/app/finder/index.css b/app/finder/index.css index aac3762..96323d9 100644 --- a/app/finder/index.css +++ b/app/finder/index.css @@ -102,8 +102,12 @@ a:focus { background: #f6f6f6 } -.finder-wrapper .topbar .sortstyle-box { +.finder-wrapper .topbar .btn { float: left; + margin-top: 3px; +} + +.finder-wrapper .topbar .sortstyle-box { margin-left: 105px; width: 58px; height: 24px; @@ -112,7 +116,6 @@ a:focus { } .finder-wrapper .topbar .config-button { - float: left; margin-left: 10px; width: 40px; height: 24px; @@ -121,7 +124,6 @@ a:focus { } .finder-wrapper .topbar .higher-button { - float: left; margin-left: 10px; width: 40px; height: 24px; @@ -130,7 +132,6 @@ a:focus { } .finder-wrapper .topbar .collection-button { - float: left; margin-left: 10px; width: 40px; height: 24px; @@ -140,7 +141,7 @@ a:focus { .finder-wrapper .topbar .search-box { float: right; - margin-top: 2px; + margin-top: 3px; margin-right: 5px; width: 234px; height: 24px; @@ -199,8 +200,6 @@ a:focus { } .finder-wrapper .topbar .next-prev-box { - float: left; - margin-top: 2px; margin-left: 5px; width: 53px; height: 24px; diff --git a/app/finder/index.html b/app/finder/index.html index f1cf150..b65975f 100644 --- a/app/finder/index.html +++ b/app/finder/index.html @@ -1,22 +1,22 @@ - +
-
+
- - - +
+
+
+
+
@@ -28,5 +28,5 @@ - + \ No newline at end of file diff --git a/app/finder/index.min.css b/app/finder/index.min.css new file mode 100644 index 0000000..780fda6 --- /dev/null +++ b/app/finder/index.min.css @@ -0,0 +1 @@ +blockquote,body,button,dd,dl,dt,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,legend,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;font-family:PingFang SC,Verdana,Helvetica Neue,Microsoft Yahei,Hiragino Sans GB,Microsoft Sans Serif,WenQuanYi Micro Hei,sans-serif}body,button,input,select,textarea{font:9pt/1.5tahoma,arial,\5b8b\4f53}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:couriernew,courier,monospace}small{font-size:9pt}ol,ul{list-style:none}a{text-decoration:none}a:hover{text-decoration:underline}sup{vertical-align:text-top}sub{vertical-align:text-bottom}legend{color:#000}fieldset,img{border:0}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}body,html{height:100%}body{overflow:hidden;margin:0;background-size:cover;background-repeat:no-repeat;background-attachment:fixed;-moz-background-size:cover;-webkit-background-size:cover}a:focus{outline:0}.app-list{position:relative;width:100%;height:100%}.clear{clear:both}.finder-wrapper{width:100%;height:100%}.finder-wrapper .topbar{margin-top:0;width:100%;height:30px;border-bottom:1px solid #9a9a9a;background:#f6f6f6}.finder-wrapper .topbar .btn{float:left;margin-top:3px}.finder-wrapper .topbar .sortstyle-box{margin-left:105px;width:58px;height:24px;background:url(images/icons/sortstyle.png) no-repeat;cursor:pointer}.finder-wrapper .topbar .config-button{margin-left:10px;width:40px;height:24px;background:url(images/icons/config.png) no-repeat;cursor:pointer}.finder-wrapper .topbar .higher-button{margin-left:10px;width:40px;height:24px;background:url(images/icons/higher.png) no-repeat;cursor:pointer}.finder-wrapper .topbar .collection-button{margin-left:10px;width:40px;height:24px;background:url(images/icons/collection.png) no-repeat;cursor:pointer}.finder-wrapper .topbar .search-box{float:right;margin-top:3px;margin-right:5px;width:234px;height:24px;background:url(images/icons/search.png) no-repeat}.finder-wrapper .main .content .app-box{z-index:999;border-radius:3px;text-align:center}.finder-wrapper .main .content .middle{width:5pc;height:75pt}.finder-wrapper .main .content .middle,.trash-wrapper .main .content .middle{float:left;margin-top:10px;margin-left:30px}.finder-wrapper .main .content .middle img{margin-top:5px;width:60px}.finder-wrapper .main .content .middle{float:left}.finder-wrapper .main .content .middle .app-name{float:left;display:block;overflow:hidden;margin-top:6px;padding-top:1px;width:5pc;color:#333;text-overflow:ellipsis;white-space:nowrap;font-size:9pt;line-height:1.7em;transition:none 0s ease 0s;writing-mode:horizontal-tb;word-break:keep-all}.finder-wrapper .main .content .active{background-image:url(images/icons/finder_app_active_bg.png)}.finder-wrapper .main .content .hover{background-image:url(images/icons/finder_app_hover_bg.png)}.finder-wrapper .topbar .next-prev-box{margin-left:5px;width:53px;height:24px;background:url(images/icons/next_prev.png) no-repeat;cursor:pointer}.finder-wrapper .main{width:100%;height:calc(100% - 30px);background:#fff}.finder-wrapper .main .sidebar{float:left;width:148px;height:100%;border-right:1px solid #dfdfdf;background:#f6f6f6}.finder-wrapper .main .content{float:left;overflow-y:auto;width:80%;width:calc(100% - 150px);height:100%}.finder-wrapper .main .sidebar ul{margin:0;padding:0;padding-top:5px;width:148px;list-style:none}.finder-wrapper .main .sidebar ul .title{padding-left:5px;width:100%}.finder-wrapper .main .sidebar ul li,.trash-wrapper .main .sidebar ul li{float:left;width:100%}.finder-wrapper .main .sidebar ul li a{clear:both;display:block;width:148px;height:30px;color:#444;text-decoration:none;line-height:30px}.finder-wrapper .main .sidebar ul li a .name{float:left;display:block;margin-left:5px;font-size:14px}.finder-wrapper .main .sidebar ul li a .home-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarHomeFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .desktop-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarDesktopFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .documents-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarDocumentsFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .downloads-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarDownloadsFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .movies-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarMoviesFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .music-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarMusicFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .pictures-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarPicturesFolder_16x16.png)}.finder-wrapper .main .sidebar ul li a .cloud-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebariCloud_16x16.png)}.finder-wrapper .main .sidebar ul li a .network-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/SidebarNetwork_16x16.png)}.finder-wrapper .main .sidebar ul li a .trash-icon{float:left;display:block;margin-top:7px;margin-left:15px;width:1pc;height:1pc;background-image:url(images/icons/StatusBarTrashIcon_16x16.png)}.finder-wrapper .main .sidebar ul li .on{background:#cecece}.finder-wrapper .topbar .next-prev-box .prev{float:left;display:block;width:25px;height:22px}.finder-wrapper .topbar .next-prev-box .next{float:right;display:block;width:25px;height:22px}.rename{width:60px;height:18px;border:0;background:0 0;text-align:center} \ No newline at end of file diff --git a/app/finder/js/main.js b/app/finder/js/index.js similarity index 100% rename from app/finder/js/main.js rename to app/finder/js/index.js diff --git a/app/finder/js/index.min.js b/app/finder/js/index.min.js new file mode 100644 index 0000000..9f7df56 --- /dev/null +++ b/app/finder/js/index.min.js @@ -0,0 +1 @@ +function finder(name,path,appObject){$.ajax({url:"json/sidebar.json",type:"GET",async:!0,dataType:"json",success:function(data,textStatus,jqXHR){favoritesTitle=data.data.favoritesTitle,favorites=data.data.favorites,devicesTitle=data.data.devicesTitle,devices=data.data.devices,delimiter="
",favoritesHeaderHtml="
  • "+favoritesTitle+"
  • ",favoritesBodyHtml="",$.each(favorites,(function(key,value){name||(name=value.name),path||(path=value.path),favoritesBodyHtml=favoritesBodyHtml+"
  • \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"+value.title+"\t\t\t\t\t\t\t\t\t
  • "})),favoritesFooterHtml="
",favoritesHtml=favoritesHeaderHtml+favoritesBodyHtml+favoritesFooterHtml,devicesHeaderHtml="",devicesHtml=devicesHeaderHtml+devicesBodyHtml+devicesFooterHtml,$(".finder-wrapper .sidebar").html(favoritesHtml+delimiter+devicesHtml),path?($(".finder-wrapper .pathHistory").val(path),$(".finder-wrapper .content").attr(path)):$(".finder-wrapper .content").attr("current-path","public/user/administrator/home/"),finderOpenApp(name,path,appObject)},error:function(xhr,textStatus){console.log("错误")}}),$(".sidebar").niceScroll({cursorcolor:"#bebebe"})}function finderOpenApp(name,path,appObject){pathHistory=$(".finder-wrapper .pathHistory").val(),pathArray=new Array,pathArray=pathHistory.split("|"),key=$.inArray(path,pathArray),-1==key?path&&(lastPath=pathArray[pathArray.length-1],"root"!=lastPath?path.indexOf(lastPath)>-1?(pathHistory=pathHistory+"|"+path,$(".finder-wrapper .pathHistory").val(pathHistory),$(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path)):(pathHistory=pathHistory.replace(lastPath,path),$(".finder-wrapper .pathHistory").val(pathHistory),$(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path)):(pathHistory=pathHistory+"|"+path,$(".finder-wrapper .pathHistory").val(pathHistory),$(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path))):($(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path)),$.ajax({url:"json/openPath.json",type:"GET",async:!0,data:{path:path},dataType:"json",success:function(data,textStatus,jqXHR){"success"==data.status?(html="",data.data&&$.each(data.data,(function(key,value){void 0===value.path&&(value.path=""),html=html+"
\t\t\t\t\t\t"+value.title+"\t\t\t\t\t\t"+value.title+"\t\t\t\t\t\t
\t\t\t\t\t\t
"})),$(".finder-wrapper .app-list").html(html)):layer.msg(data.msg,{zIndex:layer.zIndex,success:function(layero){layer.setTop(layero)}})},error:function(xhr,textStatus){console.log("错误")}})}function next(){pathHistory=$(".finder-wrapper .pathHistory").val(),currentPath=$(".finder-wrapper .currentPath").val(),pathArray=new Array,pathArray=pathHistory.split("|"),key=$.inArray(currentPath,pathArray),path=pathArray[key+1],path&&(finderOpenApp("finder",path),$(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path))}function prev(){pathHistory=$(".finder-wrapper .pathHistory").val(),currentPath=$(".finder-wrapper .currentPath").val(),pathArray=new Array,pathArray=pathHistory.split("|"),key=$.inArray(currentPath,pathArray),path=pathArray[key-1],path&&("root"==path?finderOpenApp("finder",""):finderOpenApp("finder",path),$(".finder-wrapper .currentPath").val(path),$(".finder-wrapper .content").attr("current-path",path))}$(document).on("dblclick",".finder-wrapper .app-box",(function(event){finderOpenApp($(this).attr("app-name"),$(this).attr("app-path"),$(this))})),$(document).on("mouseover",".finder-wrapper .app-box",(function(event){$(this).addClass("hover")})),$(document).on("mouseout",".finder-wrapper .app-box",(function(event){$(this).removeClass("hover")})),$(document).on("mousedown",".finder-wrapper .app-box",(function(event){return $(".finder-wrapper .app-box").removeClass("active"),$(this).addClass("active"),!1})),$(document).on("mousedown",".finder-wrapper .content",(function(event){$(".finder-wrapper .app-box").removeClass("active")})),$(document).on("mousedown",".finder-wrapper .sidebar ul li a",(function(event){$(".finder-wrapper .sidebar ul li a").removeClass("on"),$(this).addClass("on")})),finder(); \ No newline at end of file