--- /dev/null
+<div style="max-width: 500px">
+ <h3 class='dialog-title'></h3>
+ <div class='dialog-content'></div>
+ <a class="kit-button dialog-cancel">キャンセル</a>
+ <a class="kit-button dialog-ok">OK</a>
+</div>
\ No newline at end of file
--- /dev/null
+{
+ "id": "dialog",
+ "name": " ダイアログ",
+ "icon": "icon.png",
+ "version": "1.0.!",
+ "author": "kit",
+
+ "view": "default.html",
+ "script": "dialog.js",
+ "css": ""
+}
\ No newline at end of file
--- /dev/null
+app_dialog(pid);
+
+function app_dialog(_pid) {
+ S.dom(_pid).css("min-width", "400px").css("text-align", "center");
+ if( System.args[pid] ){
+ $("#winc" + _pid + " .dialog-title").text(System.args[_pid].title);
+ $("#winc" + _pid + " .dialog-content").html(System.args[_pid].content);
+ }
+ $("#winc" + _pid + " .dialog-cancel").on("click", function(){
+ close(_pid);
+ });
+ $("#winc" + _pid + " .dialog-ok").on("click", function(){
+ System.args[_pid].func();
+ });
+}
\ No newline at end of file
launch( "alert", [title, content, winname] );
}
+ this.dialog = function( title, content, func ){
+ launch("dialog", {
+ "title": title,
+ "content": content,
+ "func": func
+ })
+ }
+
this.min = function( str ) {
var _pid = String( str );
if( $( "#w" + _pid ).is( ":visible" ) ) {
S.time.obj = DD;
let Year = DD.getFullYear();
S.time.y = Year;
- let Month = DD.getMonth();
+ let Month = ( "00" + Number(DD.getMonth()+1) ).slice( -2 );
S.time.m = Month;
- let DateN = DD.getDate();
+ let DateN = ( "00" + DD.getDate() ).slice( -2 );
S.time.d = DateN;
let Hour = ( "00" + DD.getHours() ).slice( -2 );
S.time.h = Hour;
}
#desktop-l{
padding: 20px 0;
- padding-top: 20%;
+ padding-top: 15%;
font-weight: 100;
font-size: 18px;
color: white;