OSDN Git Service

Merge pull request #8 from mtsgi/update/bugfix
authormtsgi <oq@live.jp>
Sun, 23 Jun 2019 10:34:34 +0000 (19:34 +0900)
committerGitHub <noreply@github.com>
Sun, 23 Jun 2019 10:34:34 +0000 (19:34 +0900)
Bug Fix: Get a Script Files After Complete Loading the App [0.2.0]

readme.md
system.js
system/theme/theme-default.css

index 2ec3984..8a7fb8d 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -1,6 +1,8 @@
 # kit
 JavaScriptで動作するとっても軽量なデスクトップ環境
 
+簡単なWebの知識ですぐにkitアプリケーションを作成できます
+
 # latest kit
 * [ダウンロード](https://github.com/mtsgi/kit/releases)
 * [kit Canaryを体験](https://mtsgi.github.io/kit/) (安定前のバージョンです)
@@ -13,9 +15,9 @@ JavaScriptで動作するとっても軽量なデスクトップ環境
 * [Bitbucket Repository](https://bitbucket.org/y-/kit/)
 
 # kit family
-* [mtsgi/kish](https://github.com/mtsgi/kish)
-* [mtsgi/kitstrap](https://github.com/mtsgi/kitstrap)
-* [kitHub(beta)](https://kithub-beta.herokuapp.com/)
+* [kish](https://github.com/mtsgi/kish) - kishはkitのための強力なシェルです
+* [kitstrap](https://github.com/mtsgi/kitstrap) - kitstrapは軽量のCSSフレームワークです 
+* [kitHub(beta)](https://kithub-beta.herokuapp.com/) - kit用のアプリケーションストア
 
 # libraries
 * jQuery
index a5dd10f..c82a09b 100644 (file)
--- a/system.js
+++ b/system.js
@@ -479,17 +479,19 @@ function appData( data ) {
     $( "#wx" + pid ).addClass( "wx fa fa-times" ).click( () => System.close( String(pid) ) );
     $( "#winc" + pid ).resizable( {
         minWidth: "200"
-    } ).load( System.launchpath[pid] + "/" + data.view );
-
-    //スクリプト読み込み
-    if( data.script != "none" ) $.getScript( System.launchpath[pid] + "/" + data.script );
-    if( data.css != "none" && $("#kit-style-"+data.id).length == 0 ){
-        $( "head" ).append( '<link href="' + System.launchpath[pid] + '/' + data.css + '" rel="stylesheet" id="kit-style-' + data.id + '"></link>' );
-        Notification.push("debug", "新規スタイルシートの読み込み", data.id);
-    }
-
-    processID++;
-    localStorage.setItem( "kit-pid", processID );
+    } ).load( System.launchpath[pid] + "/" + data.view, (r, s, x) =>{
+        if( s == "error" ){
+            Notification.push("起動に失敗:" + x.status, x.statusText);
+            return false;
+        }
+        if( data.script != "none" ) $.getScript( System.launchpath[pid] + "/" + data.script );
+        if( data.css != "none" && $("#kit-style-"+data.id).length == 0 ){
+            $( "head" ).append( '<link href="' + System.launchpath[pid] + '/' + data.css + '" rel="stylesheet" id="kit-style-' + data.id + '"></link>' );
+            //Notification.push("debug", "新規スタイルシートの読み込み", data.id);
+        }
+        processID++;
+        localStorage.setItem( "kit-pid", processID );
+    } );
 }
 
 //非推奨メソッド
index 82ab39e..bc83a87 100644 (file)
@@ -395,6 +395,7 @@ footer .t-active{
        background: rgba(255,255,255,.7);
        box-shadow: 0px 0px 60px 0px rgba(0,0,0,.4);
        padding: 40px 8px 50px 8px;
+       cursor:url(../cursor-1.png), default;
 }
 #notifications-show-history{
        display: block;