OSDN Git Service

[update] : カーネルの取得を追加
authorhayao <shun819.mail@gmail.com>
Thu, 3 Sep 2020 09:19:57 +0000 (18:19 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 3 Sep 2020 09:19:57 +0000 (18:19 +0900)
alteriso-options-generator/index.php
alteriso-options-generator/main.js

index 1a72881..2da0d77 100644 (file)
@@ -4,7 +4,6 @@
         <title>AlterISO3 ビルドオプション ジェネレータ</title>
         <link rel="stylesheet" href="mobile.css" media="screen and (max-width:480px)">
         <link rel="stylesheet" href="pc.css" media="screen and (min-width:480px)">
-        <script type="text/javascript" src="main.js"></script>
     </head>
     <body>
         <header>
@@ -59,7 +58,7 @@
                         <p class="option_title"><h3>アーキテクチャ</h3></p>
                         <p class="option_description">ビルドするアニメーションを指定します</p>
                         <p class="option_form">
-                            <select name="architecture" id="architecture">
+                            <select name="architecture" id="architecture" onchange="kernelMain()">
                                 <option value="i686">i686</option>
                                 <option value="x86_64" selected>x86_64</option>
                             </select>
                         <p class="option_description">使用するカーネルを設定します</p>
                         <p class="option_form">
                             <select name="kernel" id="kernel">
-                                <option value="core">linux</option>
-                                <option value="lts">linux-lts</option>
-                                <option value="zen">linux-zen</option>
-                                <script>
-
-                                </script>
-                                
+                                <option disabled selected>アーキテクチャを選択してください</option>
                             </select>
                         </p>
 
                 <p>このジェネレータでは引数はデフォルト値ではない場合のみ指定するようになっています。</p>
                 <textarea id="output" disabled></textarea><br>
                 <label for="only_no_default"><input name="only_no_default" type="checkbox" id="only_no_default">デフォルトの値も引数で指定する。</label>
-                <input type="button" value="生成" onClick="startgen()">
+                <input type="button" value="生成" onclick="startgen()">
             </form>
         </main>
         
 
         <footer>
         </footer>
+
+        <script type="text/javascript" src="main.js"></script>
+        <script type="text/javascript" src="kernellist.js"></script>
     </body>
 
 </html>
\ No newline at end of file
index 4bf7c49..1a77a03 100644 (file)
@@ -43,6 +43,15 @@ function getCompType () {
     }
 }
 
+function getKernel () {
+    var _Kernel = document.getElementById("kernel").value;
+    if(_Kernel != "") {
+        if (_Kernel != "zen" || ONLY_NO_DEFAULT == false) {
+            ARGUMENTS = ARGUMENTS + " -k \"" + _Kernel + "\"";
+        }
+    }
+}
+
 function getUsername (){
     var _Username = document.getElementById("username").value;
     // console.log(_Username);
@@ -85,6 +94,7 @@ function startgen() {
     getTarball();
     getArchitecture();
     getCompType();
+    getKernel();
     getUsername();
     getPassword();
     getDebug();