https post
This commit is contained in:
parent
613c95486b
commit
b619d59ee4
@ -13,6 +13,7 @@
|
|||||||
</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"><b>Kod:</b> <span id="classes_code_input">{{ $classes_code }}</span></p>
|
||||||
|
<div> 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>
|
||||||
@if ($errors->any())
|
@if ($errors->any())
|
||||||
<div class="alert alert-danger invalid-feedback-alert">
|
<div class="alert alert-danger invalid-feedback-alert">
|
||||||
@ -28,7 +29,6 @@
|
|||||||
<div>
|
<div>
|
||||||
<input type="hidden" name="classes_code" id="classes_code" value="{{ $classes_code }}" required>
|
<input type="hidden" name="classes_code" id="classes_code" value="{{ $classes_code }}" required>
|
||||||
</div>
|
</div>
|
||||||
<div> Stan połączenia z serwerem legitymacji: <span id="status" style="color:green"> połączony</span></div>
|
|
||||||
<div>
|
<div>
|
||||||
<label for="student_id_number"> Nr indeksu: </label>
|
<label for="student_id_number"> Nr indeksu: </label>
|
||||||
<input type="number" name="student_id_number" id="student_id_number" required>
|
<input type="number" name="student_id_number" id="student_id_number" required>
|
||||||
@ -50,7 +50,7 @@
|
|||||||
const client = new WebSocket('wss://atcheck.projektstudencki.pl/wss', classes_code_input);
|
const client = new WebSocket('wss://atcheck.projektstudencki.pl/wss', classes_code_input);
|
||||||
|
|
||||||
client.onclose = function(event) {
|
client.onclose = function(event) {
|
||||||
$('#status').innerHTML = " rozłączony";
|
$('#status').text(" rozłączony");
|
||||||
$('#status').css("color", "red");
|
$('#status').css("color", "red");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user