commit 6c93612737b7844327ea2b5fcd5e87a758a69d8c Author: Patrick Mueller Date: Wed Oct 6 20:05:01 2021 +0200 Initial commit 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