few fixes

This commit is contained in:
Ross
2021-06-26 15:56:23 +01:00
parent 92e593b2cc
commit 151423e09f
2 changed files with 19 additions and 18 deletions
+18 -14
View File
@@ -62,18 +62,30 @@
</div>
</div>
<div id="options-panel" class="fullscreen-overlay">
<a href="#" id="overlay-close" class="close"></a>
<div id="database-buttons">
<input type='button' id='btn-delete-answer-databases' value='Delete all saved answers'>
<input type='button' id='btn-delete-cached-questions' value='Delete all cached questions'>
</div>
<h1>RTS</h1>
<!-- <a href="#" id="overlay-close" class="close"></a> -->
<div id="packets">
<p>Available Packets:</p>
<p>Available Packets (click to load):</p>
<span id="packet-list">
</span>
</div>
<div id="options-link">
</div>
<div id="storage-details">
</div>
<div id="cache-details">
<details>
<summary></summary>
<ul>
</ul>
</details>
</div>
<details>
<summary>Options</summary>
<div id="database-buttons">
<input type='button' id='btn-delete-answer-databases' value='Delete local answers'>
<input type='button' id='btn-delete-cached-questions' value='Delete cached questions'>
</div>
<div id="local-fileloader">
<form id="jsonFile" name="jsonFile" enctype="multipart/form-data" method="post">
@@ -84,16 +96,8 @@
</fieldset>
</form>
</div>
<div id="storage-details">
</div>
<div id="cache-details">
<details>
<summary></summary>
<ul>
</ul>
</details>
</div>
</div>
<div id="review-overlay" class="fullscreen-overlay">
<a href="#" id="review-overlay-close" class="close"></a>
<div id="review-score"></div>
+1 -4
View File
@@ -2268,10 +2268,8 @@ $(".start-packet-button").click(function (evt) {
$("#time-up-dialog").modal();
});
//window.timer = timer;
// If we are not in an exam we can pause the session
if (!window.exam_mode) {
if (!exam_details.exam_mode) {
$("#timer").click(() => {
timer.pause();
@@ -2463,7 +2461,6 @@ function saveSession(start_review) {
});
}
//window.saveSession = saveSession;
function refreshDatabaseSettings() {
if (navigator.storage != undefined) {
navigator.storage.estimate().then((value) => {