This commit is contained in:
luckysideburn
2024-04-04 16:51:21 +00:00
parent 1f6c46311c
commit cb9b1306b6
3 changed files with 12 additions and 20 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ function sendSavedChaosReport() {
chaos_report_start_date = new Date();
}
startGameMode()
//startGameMode()
chaos_report_switch = true;
document.getElementById("httpStatsCanvasDiv").style.display = "block";
document.getElementById("chartDiv").style.display = "block";
+11 -15
View File
@@ -271,19 +271,7 @@
<div class="container" id="gameContainer">
<!-- START FIRST ROW -->
<div class="row custom-btn-group" style="margin-top: 2%;">
<!-- START SWITCH BUTTONS FOR MODE (GAME, PROGRAMMING)-->
<div class="row" style="margin-bottom: 2%;">
<div class="col text-center" style="margin-bottom: 0%;">
<input class="form-check-input" type="checkbox" value="" id="flagChaosReport" onclick="showPrepareChaosReportModal(this)">
<label class="form-check-label text-kinv" for="flexCheckDefault">
Add HTTP check & Chaos Report
</label>
</div>
</div>
<!-- START SWITCH BUTTONS FOR MODE (GAME, PROGRAMMING)-->
<div class="accordion" id="guide" style="margin-top: 2%; margin-bottom: 2%;">
<div class="accordion-item">
<h2 class="accordion-header" id="guide-headingThree">
@@ -351,6 +339,14 @@
<label for="randomFactorInput" class="text-kinv" id="randomFactorText">Random Factor:&nbsp;<span id="currentRandomFactor">50</span></label>
</div>
</div>
<div class="row" style="margin-bottom: 2%;">
<div class="col text-center" style="margin-bottom: 0%;">
<input class="form-check-input" type="checkbox" value="" id="flagChaosReport" onclick="showPrepareChaosReportModal(this)">
<label class="form-check-label text-kinv" for="flexCheckDefault">
Add HTTP check & Chaos Report
</label>
</div>
</div>
<div class="row container" style="margin-top: 1%; width: 100%;">
<div class="col text-center">
<button style="margin-bottom: 2%" type="button" id="buttonShuffle" class="btn btn-light btn-sm" onclick="buttonShuffleHelper()">Disable Shuffle</button>
@@ -540,8 +536,8 @@
</div>
<div id="chartDiv" style="display: none; width: 100%; text-align: center; margin: auto;">
<label for="httpElapsedChart">HTTP Elapse d (seconds)</label>
<div id="httpElapsedChart" ></div>
<label for="httpElapsedChart">HTTP Elapsed (seconds)</label>
<div id="httpElapsedChart"></div>
<label for="httpStatusCodeChart">HTTP Status Code</label>
<div id="httpStatusCodeChart"></div>
</div>
-4
View File
@@ -42,10 +42,6 @@ function closeSetLoadTestModal() {
}
function showPrepareChaosReportModal(checkbox) {
// if (is_demo_mode()) {
// demo_mode_alert();
// return;
// }
if(checkbox.checked){
$('#prepareChaosReportModal').modal('show');
$("#chaosReportHeader").text("Configuration of Chaos Report for namespace: " + namespace);