From 6c93612737b7844327ea2b5fcd5e87a758a69d8c Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Wed, 6 Oct 2021 20:05:01 +0200 Subject: [PATCH] Initial commit --- .gitignore | 8 ++++++++ index.html | 38 ++++++++++++++++++++++++++++++++++++++ scripts.js | 22 ++++++++++++++++++++++ styles.css | 0 4 files changed, 68 insertions(+) create mode 100644 .gitignore create mode 100644 index.html create mode 100644 scripts.js create mode 100644 styles.css diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b552278 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# IntelliJ files +*.iml +/.idea + +# Output files +/dist +/target +/out diff --git a/index.html b/index.html new file mode 100644 index 0000000..c90d37f --- /dev/null +++ b/index.html @@ -0,0 +1,38 @@ + + + + + RaPla Middleware LinkGen + + + + + + + +

RaPla Middleware Link Generator

+

This website generates a link based on your preferences to use the RaPla Middleware which filters unwanted events.

+

Please only select a Wahl- / Profilmodul if you have are in the 5./6. Semester and have any of these as otherwise, +the middleware might not work as expected.

+
+
+ +
+ +
+ +
+ +
+ +
+

Here is the link that you can use for importing RaPla into your iCloud etc. calendar (click to copy):

+ + + diff --git a/scripts.js b/scripts.js new file mode 100644 index 0000000..22de6a6 --- /dev/null +++ b/scripts.js @@ -0,0 +1,22 @@ +"use strict"; + +$(document).ready(function () { + $('#submitBtn').click(function () { + generateLink(); + }); +}); + +function generateLink() { + let link = 'abc'; + let providedRaPlaLink = $('#raplalink').val().toString(); + + console.log(providedRaPlaLink); + + const urlParams = new URLSearchParams(providedRaPlaLink); + + console.log(urlParams.keys()); + + console.log(urlParams.get('b')); + + $('#full-link').text(link); +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..e69de29