OSDN Git Service

[update] : -dをサポート(JS)
authorhayao <shun819.mail@gmail.com>
Tue, 1 Sep 2020 09:18:58 +0000 (18:18 +0900)
committerhayao <shun819.mail@gmail.com>
Tue, 1 Sep 2020 09:18:58 +0000 (18:18 +0900)
main.js

diff --git a/main.js b/main.js
index 16942d1..17b6a33 100644 (file)
--- a/main.js
+++ b/main.js
@@ -30,6 +30,13 @@ function getPassword(){
     }
 }
 
+function getDebug() {
+    var _Debug = document.getElementById("debug_enable");
+    if (_Debug.checked) {
+        ARGUMENTS = ARGUMENTS + " -d"
+    }
+}
+
 function startgen() {
     // 初期化
     ARGUMENTS = ""
@@ -38,6 +45,7 @@ function startgen() {
     getCompType();
     getUsername();
     getPassword();
+    getDebug();
     
     // 出力
     document.getElementById('output').innerHTML = "";