|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>short URL</title>
|
|
|
|
|
<title>sURL</title>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="./sym/dark.css">
|
|
|
|
|
<script src="./sym/script.js"></script>
|
|
|
|
@ -14,6 +14,10 @@
|
|
|
|
|
socket.onerror = (error) => {
|
|
|
|
|
console.log(`WebSocket error: ${error}`)
|
|
|
|
|
}
|
|
|
|
|
socket.onclose = () => {
|
|
|
|
|
document.getElementById('error-message').innerText = 'session timed out (refresh)'
|
|
|
|
|
document.getElementById('error-box').style.display = 'block'
|
|
|
|
|
}
|
|
|
|
|
socket.onmessage = (e) => {
|
|
|
|
|
console.log(e.data)
|
|
|
|
|
let msg = e.data.split(";", 2)
|
|
|
|
@ -52,6 +56,7 @@
|
|
|
|
|
|
|
|
|
|
<div class="box-dark" id="new-user-box">
|
|
|
|
|
<div class="login">
|
|
|
|
|
<div class="title2">your sURL:</div>
|
|
|
|
|
<div class="inputbox" id="surl">
|
|
|
|
|
<input class="input" id="surl-input" type="text" onblur="deselected('surl');" onfocus="selected('surl');" size="30" value="" maxlength="20" placeholder="surl">
|
|
|
|
|
</div>
|
|
|
|
|