$( document ).ready( Load );
function Load() {
+ S = System;
if( !localStorage.getItem( "kit-pid" ) ) processID = 0;
else processID = localStorage.getItem( "kit-pid" );
}
Notification.push( "kitへようこそ", localStorage["kit-username"] + "さん、こんにちは。", processID );
- //イベントハンドラ定義
+ //イベントハンドラ
$( "#desktops" ).click( function() {
$( "#desktop-" + currentDesktop ).toggleClass( "selected-section" );
} ).mousedown( function() {
//app["welcome"] = new Application("welcome", "ようこそ", "far fa-comment-dots", "<div style='text-align:center;padding:4px 12px'><div style='font-size:22px'><strong>kit</strong>Desktop <span style='color:silver'>beta</span></div>バージョン0.0<br>キットデスクトップ環境へようこそ<br><a class='button close-this' onclick='page(\detail\)'>詳細</a> <a class='button' id='close-"+pid+"' onclick='close("+pid+")'>閉じる</a></div>", "0.0.0");
}
-//システムクラス
const System = new function() {
this.version = "0.0.4";
- this.username = localStorage.getItem( "kit-username" );
+ this.username = localStorage["kit-username"];
+
+ this.dom = (_pid, attribute) => {
+ return $("#winc" + _pid + " " + attribute);
+ }
this.appCache = {};
//引数
this.args = {};
this.shutdown = function() {
+ $( "#last-notification-close" ).click();
$( "#kit-power-back" ).click();
for( i in process ) {
close( i );
var process = {};
var processID = 0, currentDesktop = 1;
var currentCTX = "";
-var prevWindowIndex;
\ No newline at end of file
+var prevWindowIndex;
+var S;
\ No newline at end of file
font-size: 16px;
font-family: 'Noto Sans JP', sans-serif;
overscroll-behavior: none;
+ cursor: url(../cursor-1.png), auto;
}
*::selection{
background: rgba(0,0,0,.0);
}
#lock-unl{
display: block;
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
font-size: 16px;
margin: 20px;
}
float: right;
}
header a{
- cursor: pointer;
+ cursor: url(../cursor-2.png),pointer;
padding : 3px 4px;
}
header a:hover{
#kit-milp a{
padding: 3px 6px;
display: block;
- cursor: default;
+ cursor:url(../cursor-1.png), default;
overflow: hidden;
}
#kit-milp a:hover{
display: inline-block;
color: white;
text-shadow: 0px 1px 2px black;
- cursor: default;
+ cursor:url(../cursor-1.png), default;
margin : 10px 0px;
padding : 5px;
border-radius: 6px;
padding-left: 58px;
}
footer #launch{
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
position: fixed;
bottom: -2px;
left: -2px;
padding: 20px 16px;
}
footer .task{
- cursor: default;
+ cursor:url(../cursor-1.png), default;
box-sizing: border-box;
display: inline-block;
background: #ffffff;
}
#footer-noti{
position: absolute;
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
padding: 6px;
right : 4px;
bottom : 5px;
color: white;
text-shadow: 0px 1px 3px black;
position: absolute;
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
font-size: 22px;
padding: 6px 5px;
}
padding: 40px 8px 50px 8px;
}
#notifications .notis{
- cursor: default;
+ cursor:url(../cursor-1.png), default;
border: 1px solid #a0a0a0;
padding: 4px;
border-radius: 5px;
min-width : 200px;
max-width: 100%;
padding : 0px;
- cursor: default;
+ cursor:url(../cursor-1.png), default;
background: -moz-linear-gradient(45deg, rgba(255,201,248,1) 0%, rgba(186,239,255,1) 55%, rgba(150,255,157,1) 100%);
background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(255,201,248,1)), color-stop(55%, rgba(186,239,255,1)), color-stop(100%, rgba(150,255,157,1)));
background: -webkit-linear-gradient(45deg, rgba(255,201,248,1) 0%, rgba(186,239,255,1) 55%, rgba(150,255,157,1) 100%);
color: black;
}
.wx{
- cursor: default;
+ cursor:url(../cursor-1.png), default;
padding: 8px 10px;
float: right;
position: absolute;
}
.kit-button{
display: inline-block;
- cursor: default;
+ cursor:url(../cursor-1.png), default;
border-radius: 4px;
line-height: 200%;
background: dodgerblue;
padding: 2px 10px 0px 10px;
}
.kit-selectable{
- cursor: text;
+ cursor:url(../cursor-3.png), text;
}
.kit-selectable *::selection, .kit-selectable::selection{
background: dodgerblue;
border-bottom: 1px solid gray;
}
#task-ctx a{
- cursor: default;
+ cursor:url(../cursor-1.png), default;
display: block;
border-bottom : 2px solid transparent;
}
font-weight: normal;
}
.btn{
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
border: 1px solid gray;
margin: 4px 0px;
padding: 2px 4px;
font-size: 14px;
}
.textbox{
+ cursor:url(../cursor-3.png), text;
outline: none;
border: 1px solid #000000;
font-size: 16px;
.kit-hyperlink{
color: dodgerblue;
text-decoration: underline;
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
}
#kit-power{
display: none;
text-align: center;
}
#kit-power a{
- cursor: pointer!important;
+ cursor:url(../cursor-2.png), pointer!important;
display: block;
font-size: 30px;
font-weight: 100;
color: #ffffff;
}
#kit-tasks .task{
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
display: inline-block;
background: #ffffff;
padding: 4px 8px;
right: 12px;
width: 200px;
border-radius: 4px;
- cursor: default;
+ cursor:url(../cursor-1.png), default;
box-shadow: 0px 1px 4px 0px rgba(0,0,0,.5);
}
#last-notification-close{
display: inline-block;
float: right;
border-radius: 999px;
- cursor: pointer;
+ cursor:url(../cursor-2.png), pointer;
opacity: .8;
}
#last-notification-title{