Initial commit
This commit is contained in:
commit
6c93612737
8
.gitignore
vendored
Normal file
8
.gitignore
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# IntelliJ files
|
||||||
|
*.iml
|
||||||
|
/.idea
|
||||||
|
|
||||||
|
# Output files
|
||||||
|
/dist
|
||||||
|
/target
|
||||||
|
/out
|
38
index.html
Normal file
38
index.html
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>RaPla Middleware LinkGen</title>
|
||||||
|
<meta name="author" content="Patrick Müller">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
|
||||||
|
<script src="scripts.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>RaPla Middleware Link Generator</h1>
|
||||||
|
<p>This website generates a link based on your preferences to use the RaPla Middleware which filters unwanted events.</p>
|
||||||
|
<p>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.</p>
|
||||||
|
<br>
|
||||||
|
<form>
|
||||||
|
<label for="raplalink">Your RaPla Link</label>
|
||||||
|
<input name="raplalink" id="raplalink" type="text"><br>
|
||||||
|
<label for="hideBlockers">Hide Blockers</label>
|
||||||
|
<input name="hideBlockers" id="hideBlockers" type="checkbox"><br>
|
||||||
|
<label for="wahlmodul">Wahlmodul</label>
|
||||||
|
<select id="wahlmodul" name="wahlmodul">
|
||||||
|
<option value="1">WM1</option>
|
||||||
|
<option value="2">WM2</option>
|
||||||
|
</select><br>
|
||||||
|
<label for="profilmodul">Profilmodul</label>
|
||||||
|
<select id="profilmodul" name="profilmodul">
|
||||||
|
<option value="1">PM1</option>
|
||||||
|
<option value="2">PM2</option>
|
||||||
|
</select><br>
|
||||||
|
<input type="button" id="submitBtn" value="Generate Link">
|
||||||
|
</form>
|
||||||
|
<p>Here is the link that you can use for importing RaPla into your iCloud etc. calendar (click to copy):</p>
|
||||||
|
<p id="full-link"></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
22
scripts.js
Normal file
22
scripts.js
Normal file
|
@ -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);
|
||||||
|
}
|
0
styles.css
Normal file
0
styles.css
Normal file
Loading…
Reference in New Issue
Block a user