about summary refs log tree commit diff
path: root/client/main.js
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2020-05-07 04:29:30 +0200
committerMelonai <einebeere@gmail.com>2020-05-07 04:29:30 +0200
commit1e06820480fb2d9cf9db1373817d5980a891d5b4 (patch)
tree63d0d45190f95b40f20dfd8a718a912434286db3 /client/main.js
parent385fcdd46b536d28094a96f3f6be0e87496277a1 (diff)
downloadshorest-1e06820480fb2d9cf9db1373817d5980a891d5b4.tar.zst
shorest-1e06820480fb2d9cf9db1373817d5980a891d5b4.zip
interaction between API and client
Diffstat (limited to 'client/main.js')
-rw-r--r--client/main.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/client/main.js b/client/main.js
deleted file mode 100644
index 652776a..0000000
--- a/client/main.js
+++ /dev/null
@@ -1,13 +0,0 @@
-function onFormSubmit() {
-    return false;
-}
-
-function inputUpdate() {
-    const pattern = /^(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?&/;
-    const userInput = document.getElementById('url').value;
-    if (pattern.test(userInput)) {
-        document.getElementById('form-group').style.borderColor = '#E0E0E0';
-    } else {
-        document.getElementById('form-group').style.borderColor = '#FFBCBC';
-    }
-}
\ No newline at end of file