OSDN Git Service

[fix] : 完成させた
authorhayao <shun819.mail@gmail.com>
Thu, 3 Sep 2020 09:19:30 +0000 (18:19 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 3 Sep 2020 09:19:30 +0000 (18:19 +0900)
alteriso-options-generator/kernellist.js

index 2185c47..07e6c31 100644 (file)
 // https://techacademy.jp/magazine/22315
 // 
 
+
+kernelMain();
+
+
 function createKernelList(_kernel) {
+    
     var _option = document.createElement('option');
-    if ( _kernel == "core"){
+
+    if ( _kernel == "core") {
         _option.text = "linux";
         _option.value = "core";
+        _option.id = "core"
     } else {
         _option.text = "linux-" + _kernel;
         _option.value = _kernel;
+        _option.id = _kernel;
     }
+
+    //console.log(_option);
+    //console.log(_kernel);
     document.getElementById("kernel").appendChild(_option);
+    
 }
 
 function createListAny() {
@@ -41,9 +53,14 @@ function createListx86_64() {
 }
 
 function kernelMain() {
-    var _Architecture = document.getElementById("architecture").value;
+
+    document.getElementById("kernel").innerHTML = "";
+
     createListAny();
-    if (_Architecture = "x86_64") {
+    var _Architecture = document.getElementById("architecture").value;
+    if (_Architecture == "x86_64") {
         createListx86_64();
     }
-}
\ No newline at end of file
+
+    document.getElementById("zen").selected = true;;
+}