classes code hidden after 30 secs
This commit is contained in:
parent
362d008845
commit
ea92d2b906
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Student counter</title>
|
<title>Studenci</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
|
@ -62,6 +62,12 @@ $(document).ready(function(){
|
|||||||
$('#group-select').on('change', function() {
|
$('#group-select').on('change', function() {
|
||||||
$(location).attr('href', $(this).val())
|
$(location).attr('href', $(this).val())
|
||||||
});
|
});
|
||||||
|
const classes_code = $('#classes-code');
|
||||||
|
if(classes_code){
|
||||||
|
setTimeout(function(){
|
||||||
|
classes_code.remove()
|
||||||
|
}, 30000);
|
||||||
|
}
|
||||||
|
|
||||||
function setSelectedOptionSortAttendances() {
|
function setSelectedOptionSortAttendances() {
|
||||||
const orderBy = $('#orderBy-hidden').first().val();
|
const orderBy = $('#orderBy-hidden').first().val();
|
||||||
|
@ -79,7 +79,6 @@ $(document).ready(function() {
|
|||||||
parts_elements.splice(row_index, 1); // remove unnecessary slide from list
|
parts_elements.splice(row_index, 1); // remove unnecessary slide from list
|
||||||
}
|
}
|
||||||
} else if(last_rows.length < 4) { // fill the last slide to 4 rows
|
} else if(last_rows.length < 4) { // fill the last slide to 4 rows
|
||||||
console.log('im here');
|
|
||||||
const diff = 4 - last_rows.length;
|
const diff = 4 - last_rows.length;
|
||||||
for(var i=0; i<diff; i++) {
|
for(var i=0; i<diff; i++) {
|
||||||
last_rows.push('_');
|
last_rows.push('_');
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
<button type="button" class="checkout-button end-button add-mn-btn"> Dodaj studenta ręcznie</button>
|
<button type="button" class="checkout-button end-button add-mn-btn"> Dodaj studenta ręcznie</button>
|
||||||
</div>
|
</div>
|
||||||
<div id="refresh"></div>
|
<div id="refresh"></div>
|
||||||
<p class="code-p"><b>Kod:</b> <span id="classes_code_input">{{ $classes_code }}</span></p>
|
<p class="code-p" id="classes-code"><b>Kod:</b> <span id="classes_code_input">{{ $classes_code }}</span></p>
|
||||||
<div class="code-p"> Stan połączenia z serwerem legitymacji: <span id="status" style="color:green"> połączony</span></div>
|
<div class="code-p"> Stan połączenia z serwerem legitymacji: <span id="status" style="color:green"> połączony</span></div>
|
||||||
|
|
||||||
<h1 class="main-text main-seat-text">Przyłóż legitymację do czytnika</h1>
|
<h1 class="main-text main-seat-text">Przyłóż legitymację do czytnika</h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user