aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCiaran Gallagher <[email protected]>2019-12-02 21:26:10 +0000
committerCiaran Gallagher <[email protected]>2019-12-02 21:26:10 +0000
commit699c5e0dcdceb3028fd67c08eb0ecb1c801de8f6 (patch)
treec72a6fde4e438c7eda7c22c587c8d66e35578b1e
parent50747e470e7965da605a9ac5a1470c780c657712 (diff)
downloadpasta-699c5e0dcdceb3028fd67c08eb0ecb1c801de8f6.tar.gz
pasta-699c5e0dcdceb3028fd67c08eb0ecb1c801de8f6.zip
Mobile Styling and Input protection
-rw-r--r--css/main.css8
-rw-r--r--js/main.js8
2 files changed, 14 insertions, 2 deletions
diff --git a/css/main.css b/css/main.css
index 5e924e1..1a2aacc 100644
--- a/css/main.css
+++ b/css/main.css
@@ -23,6 +23,14 @@ small {
color: rgb(190,190,190);
}
+nav .navbar-brand {
+ margin-right: 0;
+}
+
+nav h2 {
+ margin-bottom: 0;
+}
+
nav small {
color: rgb(190,190,190);
font-size: 0.7em;
diff --git a/js/main.js b/js/main.js
index 8dd9799..ff34e77 100644
--- a/js/main.js
+++ b/js/main.js
@@ -51,8 +51,12 @@ $(document).ready(() => {
});
function connectToPlex() {
- plexUrl = $("#plexUrl").val();
- plexToken = $("#plexToken").val();
+ plexUrl = $("#plexUrl").val().trim();
+ plexToken = $("#plexToken").val().trim();
+
+ if (plexUrl.toLowerCase().indexOf("http") < 0) {
+ plexUrl = `http://${plexUrl}`
+ }
$.ajax({
"url": `${plexUrl}/library/sections/`,