Performance update, add setup for refresh rate

Took 36 minutes
This commit is contained in:
2020-10-05 12:11:52 +02:00
parent d3bd359db6
commit a73b30d965
4 changed files with 39 additions and 12 deletions

View File

@ -155,15 +155,18 @@
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="welcomeModalLabel">Welcome - ReadMe first</h5>
<h5 class="modal-title text-info" id="welcomeModalLabel">Welcome - ReadMe first</h5>
</div>
<div class="modal-body">
<span>In the following page you can ask unlimited questions.<br>Your question should be contain 10 up to 500 characters.<br>The owner of this room then can answer your question.</span>
<span>In the following page you can ask as many questions you want.<br>Your question should contain 10 up to 500 characters.<br>Only the owner or permitted users of this room can answer your question.</span>
<hr>
<span id="welcomeModalText" class="text-justify">You are an XXX of this room.<br>This means you can XXX</span>
<br><br>
<label for="refresh_rate"><strong>Refresh Rate</strong>(<span id="refresh_rate_counter">2</span> seconds)</label>
<input type="range" class="form-control form-control-range" value="2" id="refresh_rate" min="2" step="8" max="122" onchange="$('#refresh_rate_counter').html( $(this).val() );">
</div>
<div class="modal-footer">
<button type="button" id="welcomeModalClose" class="btn btn-info" data-dismiss="modal" onclick="getQuestions(); let q_interval = setInterval( function() { getQuestions(); }, 2000 );">Okay</button>
<button type="button" id="welcomeModalClose" class="btn btn-info" data-dismiss="modal" onclick="getQuestions(); closeWelcome();">Okay</button>
</div>
</div>
</div>