|
|
@ -1,6 +1,6 @@
|
|
|
|
<html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<head>
|
|
|
|
<title>short URL</title>
|
|
|
|
<title>sURL</title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<link rel="stylesheet" type="text/css" href="./sym/dark.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="./sym/dark.css">
|
|
|
|
<script src="./sym/script.js"></script>
|
|
|
|
<script src="./sym/script.js"></script>
|
|
|
@ -14,6 +14,10 @@
|
|
|
|
socket.onerror = (error) => {
|
|
|
|
socket.onerror = (error) => {
|
|
|
|
console.log(`WebSocket error: ${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) => {
|
|
|
|
socket.onmessage = (e) => {
|
|
|
|
console.log(e.data)
|
|
|
|
console.log(e.data)
|
|
|
|
let msg = e.data.split(";", 2)
|
|
|
|
let msg = e.data.split(";", 2)
|
|
|
@ -52,13 +56,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="box-dark" id="new-user-box">
|
|
|
|
<div class="box-dark" id="new-user-box">
|
|
|
|
<div class="login">
|
|
|
|
<div class="login">
|
|
|
|
<div class="inputbox" id="surl">
|
|
|
|
<div class="title2">your sURL:</div>
|
|
|
|
<input class="input" id="surl-input" type="text" onblur="deselected('surl');" onfocus="selected('surl');" size="30" value="" maxlength="20" placeholder="surl">
|
|
|
|
<div class="inputbox" id="surl">
|
|
|
|
</div>
|
|
|
|
<input class="input" id="surl-input" type="text" onblur="deselected('surl');" onfocus="selected('surl');" size="30" value="" maxlength="20" placeholder="surl">
|
|
|
|
<input type="hidden" value="search" name="login">
|
|
|
|
</div>
|
|
|
|
<div class="btn-green" id="copy-btn" onclick="copy_url()">
|
|
|
|
<input type="hidden" value="search" name="login">
|
|
|
|
<div class="btn-text">copy</div>
|
|
|
|
<div class="btn-green" id="copy-btn" onclick="copy_url()">
|
|
|
|
</div>
|
|
|
|
<div class="btn-text">copy</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div onclick="visible('new-user-box','off')" style="position: absolute; top:5px; right: 5px;" class="sym_btn-invisible">
|
|
|
|
<div onclick="visible('new-user-box','off')" style="position: absolute; top:5px; right: 5px;" class="sym_btn-invisible">
|
|
|
|
<img class="icon" src="sym/ic_close_white_24px.svg" />
|
|
|
|
<img class="icon" src="sym/ic_close_white_24px.svg" />
|
|
|
|