mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
fix
This commit is contained in:
+2
-2
@@ -460,9 +460,9 @@
|
||||
<div id="alert_placeholder_programming_mode" style="margin-top: 1%; margin-bottom: 1%;"></div>
|
||||
<div class="col">
|
||||
<div class="row" width="10px">
|
||||
<div class="col text-center">
|
||||
<!-- <div class="col text-center">
|
||||
<button type="button" id="saveChaosProgramButton" class="btn btn-light" onclick="savePreset('save-chaos-program')">SAVE</button>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="col text-center">
|
||||
<button type="button" id="runChaosProgramButton" class="btn btn-dark" onclick="runChaosProgram()">RUN</button>
|
||||
</div>
|
||||
|
||||
@@ -78,6 +78,8 @@ function runChaosProgram() {
|
||||
// Regex per estrarre il valore dopo "chaos-codename:"
|
||||
|
||||
//random_code = (Math.random() + 1).toString(36).substring(7);
|
||||
chaosProgram = getChaosProgTextAreaValue();
|
||||
|
||||
const regex = /^chaos-codename:\s+(.*)$/m;
|
||||
const match = chaosProgram.match(regex);
|
||||
|
||||
@@ -222,8 +224,8 @@ function drawChaosProgramFlow() {
|
||||
}
|
||||
|
||||
var flow = JSON.parse(this.responseText);
|
||||
console.log("[DRAW-PROGRAM-FLOW] Drawing flow for " + codename);
|
||||
console.log("[DRAW-PROGRAM-FLOW] Drawing: " + JSON.stringify(flow));
|
||||
// console.log("[DRAW-PROGRAM-FLOW] Drawing flow for " + codename);
|
||||
// console.log("[DRAW-PROGRAM-FLOW] Drawing: " + JSON.stringify(flow));
|
||||
var flow_html = "";
|
||||
let i = 0;
|
||||
var times = "";
|
||||
|
||||
Reference in New Issue
Block a user