mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
fix html
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@
|
||||
<div id="chaos-program-screen" style="display: none;">
|
||||
<div class="row" style="margin-top: 1%;">
|
||||
<form>
|
||||
<div id="alert_placeholder" style="margin-top: 1%; margin-botton: 1%"></div>
|
||||
<div id="alert_placeholder" style="margin-top: 1%;"></div>
|
||||
<div class="form-group">
|
||||
<label for="chaosProgramTextArea"></label>
|
||||
<textarea class="form-control" id="chaosProgramTextArea" rows="20" style="font-family: Courier, monospace;">
|
||||
|
||||
@@ -84,7 +84,7 @@ var help = false;
|
||||
var chaos_nodes = true;
|
||||
var chaos_pods = true;
|
||||
|
||||
var alert_div = '<div id="alert_placeholder" style="margin-top: 2%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
|
||||
var alert_div = '<div id="alert_placeholder" style="margin-top: 2%; margin-bottom: 1%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
|
||||
var alert_div_webtail = '<div id="alert_placeholder3" style="margin-top: 2%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
|
||||
|
||||
var kubelinter = '';
|
||||
@@ -247,6 +247,9 @@ function setChaosContainer() {
|
||||
}
|
||||
|
||||
function runChaosProgram() {
|
||||
|
||||
$('#alert_placeholder').replaceWith(alert_div + 'Loading chaos program...</div>');
|
||||
|
||||
var oReq = new XMLHttpRequest();
|
||||
oReq.open("POST", "https://" + clu_endpoint + "/kube/chaos/programming_mode", true);
|
||||
oReq.onreadystatechange = function () {
|
||||
|
||||
Reference in New Issue
Block a user