Skip to content

Commit

Permalink
debug UI setting
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Mar 19, 2024
1 parent 6e2ec77 commit c87cfb8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h2 class="nav-item" >CPlantBox</h2>

<div class="form-check form-switch">

<input class="form-check-input m-0" onclick="window.cleanUI=!window.cleanUI; window.localStorage.setItem('cleanUI',window.cleanUI )" type="checkbox" role="switch" id="cleanUI" checked>
<input class="form-check-input" onclick="window.cleanUI=Number(!Boolean( parseInt(window.cleanUI))); window.localStorage.setItem('cleanUI',window.cleanUI )" type="checkbox" role="switch" id="cleanUI">
<label class=" " for="cleanUI">Activate QR code and Tutorial</label>
</div>

Expand Down Expand Up @@ -332,7 +332,7 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
</div>
</div>
</div>
<div class="toast-container position-absolute" style="right: 100px; top: 80px">
<div class="toast-container position-absolute" style="right: 100px; top: 280px">
<div class="toast align-items-center m-0 " data-bs-autohide="false" data-bs-delay="50000" style="width:390px ;z-index:999;" role="alert" aria-live="assertive" aria-atomic="true" id="QRTo">
<div class="align-items-center">
<div class="toast-head m-1 h5 p-2 align-items-center" >
Expand Down Expand Up @@ -361,10 +361,13 @@ <h1 class="modal-title fs-5" id="loadingModalLabel">Simulation Running</h1>
var distance, timeStep;
var firefoxCheck = false;
//var cleanUI = true;
if (window.localStorage.getItem("cleanUI") === undefined){
window.localStorage.setItem("cleanUI", true);
if ((window.localStorage.getItem("cleanUI") != "0" )&&(window.localStorage.getItem("cleanUI") != "1" )){
window.localStorage.setItem("cleanUI", "1");
}
var cleanUI = Boolean( window.localStorage.getItem("cleanUI")==="true");
var cleanUI = Number(Boolean( window.localStorage.getItem("cleanUI")==="1"));
if (cleanUI=== 1 ){
document.getElementById("cleanUI").checked = true;
}else{document.getElementById("cleanUI").checked = false;}
/*! For license information please see GeometryViewer.js.LICENSE.txt */
!(function () {
var e = {
Expand Down

0 comments on commit c87cfb8

Please sign in to comment.