This commit is contained in:
luckysideburn
2024-08-20 12:49:07 +00:00
parent fa06ce76f5
commit 61fc298184
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -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>
+4 -2
View File
@@ -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 = "";