parent
ebfe66bb89
commit
5d9a2d6d22
167
index.html
167
index.html
|
@ -6,60 +6,125 @@
|
||||||
<meta name="author" content="Patrick Müller">
|
<meta name="author" content="Patrick Müller">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||||||
|
<!--Font Awesome Icons-->
|
||||||
|
<script src="https://kit.fontawesome.com/f2c150d561.js"
|
||||||
|
crossorigin="anonymous">
|
||||||
|
</script>
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
|
||||||
<script src="scripts.js"></script>
|
<script src="scripts.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>RaPla Middleware Link Generator</h1>
|
<div class="container-fluid" id="raplalinkcontainer">
|
||||||
<p>This website generates a link based on your preferences to use the RaPla Middleware which filters unwanted events.</p>
|
<!-- HEADER -->
|
||||||
<p>Please only select a Wahl- / Profilmodul if you are in the 5./6. Semester and have any of these as otherwise,
|
|
||||||
the middleware might not work as expected.</p>
|
<div class="content">
|
||||||
<p>Of course, I try my best to only exclude the events you want to have removed, but of course I can't guarantee
|
<nav class="raplalinkcontainer--nav row" id="raplalinkcontainer--nav">
|
||||||
that this tool works exactly as expected all the time. Please don't only rely on this tool working perfectly.</p>
|
<div class="raplalinkcontainer--nav__text col-11">
|
||||||
<p>If you have any questions or bugs, contact me via one of the options on <a href="https://www.p4ddy.com">p4ddy.com</a></p>
|
RaPla Middleware Link Generator
|
||||||
<br>
|
</div>
|
||||||
<form>
|
<i class="raplalinkcontainer__header--button col-1 far fa-moon" id="colorModeToggleIcon" onclick="toggleDarkMode()">
|
||||||
<label for="coursename">Choose your course</label>
|
</i>
|
||||||
<select id="coursename" name="coursename">
|
</nav>
|
||||||
<option value="-1" selected>Course</option>
|
<!-- // HEADER -->
|
||||||
<option value="TINF19B1">TINF19B1</option>
|
<!-- PREFACE -->
|
||||||
<option value="TINF19B2">TINF19B2</option>
|
<div class="raplalinkcontainer__preface--row">
|
||||||
<option value="TINF19B3">TINF19B3</option>
|
<div class="raplalinkcontainer__preface">
|
||||||
<option value="TINF19B4">TINF19B4</option>
|
<p>This website generates a link based on your preferences to use the RaPla Middleware which filters unwanted events.</p>
|
||||||
<option value="TINF19B5">TINF19B5</option>
|
<p>Please only select a Wahl- / Profilmodul if you are in the 5./6. Semester and have any of these as otherwise,
|
||||||
<option value="TINF20B1">TINF20B1</option>
|
the middleware might not work as expected.</p>
|
||||||
<option value="TINF20B2">TINF20B2</option>
|
<p>Of course, I try my best to only exclude the events you want to have removed, but of course I can't guarantee
|
||||||
<option value="TINF20B3">TINF20B3</option>
|
that this tool works exactly as expected all the time. Please don't only rely on this tool working perfectly.</p>
|
||||||
<option value="TINF20B4">TINF20B4</option>
|
<p>If you have any questions or bugs, contact me via one of the options on <a href="https://www.p4ddy.com">p4ddy.com</a></p>
|
||||||
<option value="TINF20B5">TINF20B5</option>
|
</div>
|
||||||
</select><br>
|
</div>
|
||||||
<label for="raplalink">If your course is not in the list, provide your RaPla Link here:</label>
|
<!-- // PREFACE -->
|
||||||
<input name="raplalink" id="raplalink" type="text"><br>
|
<!-- RAPLA-LINK-FORM -->
|
||||||
<label for="hideBlockers">Hide Blockers</label>
|
<div class="raplalinkcontainer__form">
|
||||||
<input name="hideBlockers" id="hideBlockers" type="checkbox"><br>
|
<form>
|
||||||
<label for="wahlmodul">Wahlmodul</label>
|
<!-- COURSE-NAME -->
|
||||||
<select id="wahlmodul" name="wahlmodul">
|
<div class="input-group mb-3">
|
||||||
<option value="" selected>Wahlmodul</option>
|
<div class="input-group-prepend">
|
||||||
<option value="0">ERP-Systeme</option>
|
<label class="input-group-text" for="coursename">Choose your course</label>
|
||||||
<option value="1">Ethik für Informatiker</option>
|
</div>
|
||||||
<option value="2">Evolutionäre Algorithmen</option>
|
<select class="form-select" id="coursename">
|
||||||
<option value="3">Forensik</option>
|
<option value="-1" selected>Course</option>
|
||||||
<option value="4">Kryptographische Verfahren</option>
|
<option value="TINF19B1">TINF19B1</option>
|
||||||
<option value="5">Robotik</option>
|
<option value="TINF19B2">TINF19B2</option>
|
||||||
<option value="6">Web-Services</option>
|
<option value="TINF19B3">TINF19B3</option>
|
||||||
</select><br>
|
<option value="TINF19B4">TINF19B4</option>
|
||||||
<label for="profilmodul">Profilmodul</label>
|
<option value="TINF19B5">TINF19B5</option>
|
||||||
<select id="profilmodul" name="profilmodul">
|
<option value="TINF20B1">TINF20B1</option>
|
||||||
<option value="" selected>Profilmodul</option>
|
<option value="TINF20B2">TINF20B2</option>
|
||||||
<option value="0">KI und BV</option>
|
<option value="TINF20B3">TINF20B3</option>
|
||||||
<option value="1">Computergrafik</option>
|
<option value="TINF20B4">TINF20B4</option>
|
||||||
<option value="2">KI und IS</option>
|
<option value="TINF20B5">TINF20B5</option>
|
||||||
<option value="3">E-Business</option>
|
</select>
|
||||||
<option value="4">Netztechnik II</option>
|
</div>
|
||||||
</select><br>
|
<!-- // COURSE-NAME -->
|
||||||
<input type="button" id="submitBtn" value="Generate Link">
|
<!-- CUSTOM RAPLALINK -->
|
||||||
</form>
|
<p class="mb-3">If your course is not in the list, provide your RaPla Link here:</p>
|
||||||
<p>Here is the link that you can use for importing RaPla into your iCloud etc. calendar (click to copy):</p>
|
<div class="input-group mb-3">
|
||||||
<p id="full-link"></p>
|
<div class="input-group-prepend">
|
||||||
|
<label class="input-group-text" for="raplalink">Your RaPla Link</label>
|
||||||
|
</div>
|
||||||
|
<input class="form-control" id="raplalink" name="raplalink" type="text" placeholder="Your RaPla Link">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- // CUSTOM RAPLALINK -->
|
||||||
|
<!-- HIDE BLOCKERS -->
|
||||||
|
<div class="mb-3 form-check">
|
||||||
|
<label class="form-check-label" for="hideBlockers">Hide Blockers</label>
|
||||||
|
<input type="checkbox" class="form-check-input" id="hideBlockers" name="hideBlockers">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- // HIDE BLOCKERS -->
|
||||||
|
<!-- WAHLMODUL -->
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<label class="input-group-text" for="wahlmodul">Choose your Wahlmodul</label>
|
||||||
|
</div>
|
||||||
|
<select class="form-select" id="wahlmodul" name="wahlmodul">
|
||||||
|
<option value="" selected>Wahlmodul</option>
|
||||||
|
<option value="0">ERP-Systeme</option>
|
||||||
|
<option value="1">Ethik für Informatiker</option>
|
||||||
|
<option value="2">Evolutionäre Algorithmen</option>
|
||||||
|
<option value="3">Forensik</option>
|
||||||
|
<option value="4">Kryptographische Verfahren</option>
|
||||||
|
<option value="5">Robotik</option>
|
||||||
|
<option value="6">Web-Services</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<!-- // WAHLMODUL -->
|
||||||
|
<!-- PROFILMODUL -->
|
||||||
|
<div class="input-group mb-3">
|
||||||
|
<div class="input-group-prepend">
|
||||||
|
<label class="input-group-text" for="profilmodul">Choose your Profilmodul</label>
|
||||||
|
</div>
|
||||||
|
<select class="form-select" id="profilmodul" name="profilmodul">
|
||||||
|
<option value="" selected>Profilmodul</option>
|
||||||
|
<option value="0">KI und BV</option>
|
||||||
|
<option value="1">Computergrafik</option>
|
||||||
|
<option value="2">KI und IS</option>
|
||||||
|
<option value="3">E-Business</option>
|
||||||
|
<option value="4">Netztechnik II</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- // PROFILMODUL -->
|
||||||
|
<!-- GENERATE LINK BUTTON -->
|
||||||
|
<input type="button" class="btn btn-outline-secondary" id="submitBtn" value="Generate Link">
|
||||||
|
<!-- // GENERATE LINK BUTTON -->
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="raplalinkcontainer--link">
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
23
scripts.js
23
scripts.js
|
@ -68,3 +68,26 @@ let courseLinks = {
|
||||||
'TINF20B4': {user: 'eisenbiegler', file: 'TINF20B4'},
|
'TINF20B4': {user: 'eisenbiegler', file: 'TINF20B4'},
|
||||||
'TINF20B5': {user: 'strand', file: 'TINF20B5'}
|
'TINF20B5': {user: 'strand', file: 'TINF20B5'}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Toggle Dark-Mode */
|
||||||
|
|
||||||
|
const toggleDarkMode = () => {
|
||||||
|
let element = document.body;
|
||||||
|
let navElement = document.getElementById('raplalinkcontainer--nav');
|
||||||
|
let colorModeToggleIcon = document.getElementById('colorModeToggleIcon');
|
||||||
|
let submitButton = document.getElementById('submitBtn');
|
||||||
|
|
||||||
|
element.classList.toggle("body--dark-mode");
|
||||||
|
navElement.classList.toggle("nav--dark-mode");
|
||||||
|
submitButton.classList.toggle("submitButton--dark-mode");
|
||||||
|
|
||||||
|
if (colorModeToggleIcon.classList.contains("fa-moon")) {
|
||||||
|
colorModeToggleIcon.classList.remove("fa-moon");
|
||||||
|
colorModeToggleIcon.classList.add("fa-sun");
|
||||||
|
} else {
|
||||||
|
colorModeToggleIcon.classList.remove("fa-sun");
|
||||||
|
colorModeToggleIcon.classList.add("fa-moon");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
95
styles.css
95
styles.css
|
@ -1,6 +1,95 @@
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
color: #121212;
|
||||||
background-color: #191718;
|
|
||||||
color: #E0E5E9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.body--dark-mode {
|
||||||
|
background-color: #222222;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#raplalinkcontainer {
|
||||||
|
height: 100vh;
|
||||||
|
font-family: Nunito, sans-serif;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.raplalinkcontainer--nav.row{
|
||||||
|
margin: inherit;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
align-items: center;
|
||||||
|
height: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.content {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 900px) {
|
||||||
|
.content {
|
||||||
|
width: 33%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.raplalinkcontainer--nav {
|
||||||
|
background-color: white;
|
||||||
|
top: 0;
|
||||||
|
position: sticky;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav--dark-mode {
|
||||||
|
background-color: #222222;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.raplalinkcontainer--nav__text {
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.far {
|
||||||
|
font-size: 1.3em;
|
||||||
|
}
|
||||||
|
.raplalinkcontainer--img img{
|
||||||
|
width: 10%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.raplalinkcontainer__preface {
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.raplalinkcontainer__form {
|
||||||
|
padding: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.raplalinkcontainer__header {
|
||||||
|
font-family: Nunito, sans-serif;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.raplalinkcontainer__header--button {
|
||||||
|
text-align: end;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submitBtn {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#submitBtn.submitButton--dark-mode {
|
||||||
|
background-color: white;
|
||||||
|
color: #222222;
|
||||||
|
}
|
||||||
|
|
||||||
|
.raplalinkcontainer--link {
|
||||||
|
padding: 1.3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user