initial commit

This commit is contained in:
2020-11-09 23:51:28 +01:00
parent 13ffe47bfc
commit 1f810dbde6
202 changed files with 9656 additions and 0 deletions

View File

@@ -0,0 +1,156 @@
negar.barzegar@adolfinum.de
simon.berger@adolfinum.de
nicolas.cunha@adolfinum.de
joline.hackstein@adolfinum.de
philip.heckhoff@adolfinum.de
simon.hormes@adolfinum.de
benjamin.vogt@adolfinum.de
taycan.arslan@adolfinum.de
luca.boom@adolfinum.de
leon.borgerding@adolfinum.de
lukas.boy@adolfinum.de
lukas.corell@adolfinum.de
cedric.damerow@adolfinum.de
amelie.david@adolfinum.de
zeynep.efe@adolfinum.de
melinda.hirschelmann@adolfinum.de
lars.hogardt@adolfinum.de
malin.kalnins@adolfinum.de
victor.kocksnchez@adolfinum.de
kamil.kowalczyk@adolfinum.de
romyna.gurny@adolfinum.de
noelia.kocksnchez@adolfinum.de
lili.schweitzer@adolfinum.de
jerome.laukamp@adolfinum.de
elisa.bahl@adolfinum.de
lisa.baumeister@adolfinum.de
johanna.boeckmann@adolfinum.de
svenja.fischer@adolfinum.de
lena.goehlich@adolfinum.de
paula.haub@adolfinum.de
daria.horstmann@adolfinum.de
melina.kascha@adolfinum.de
pia.kleinwegen@adolfinum.de
lauramarie.koenig@adolfinum.de
yarkin.kulaksiz@adolfinum.de
amelie.laake@adolfinum.de
noemi.malaponti@adolfinum.de
yara.mueser@adolfinum.de
paul.nowack@adolfinum.de
luca.ofiera@adolfinum.de
timo.otto@adolfinum.de
linnea.paulukuhn@adolfinum.de
isabelle.schneider@adolfinum.de
nico.scholzen@adolfinum.de
manon.schroff@adolfinum.de
carlotta.tueckmantel@adolfinum.de
simon.bussmann@adolfinum.de
luis.erpenbach@adolfinum.de
meret.fass@adolfinum.de
anna.feldmann@adolfinum.de
alina.fuenderich@adolfinum.de
joline.gilles@adolfinum.de
karolina.hein@adolfinum.de
robin.heldt@adolfinum.de
annika.koch@adolfinum.de
dusanka.djukanovic@adolfinum.de
aaron.glos@adolfinum.de
ayseguel.guelten@adolfinum.de
hamza.hasoumi@adolfinum.de
evelyn.hofmann@adolfinum.de
burakmustafa.kulac@adolfinum.de
dominik.kwitowski@adolfinum.de
julia.lener@adolfinum.de
paula.may@adolfinum.de
luca.mueller@adolfinum.de
mathieu.mueller@adolfinum.de
marie.puetter@adolfinum.de
hendrik.herffs@adolfinum.de
greta.bentgens@adolfinum.de
sven.mittmann@adolfinum.de
jan.hoevel@adolfinum.de
tim.krichel@adolfinum.de
milo.lehnen@adolfinum.de
lewis.lehner@adolfinum.de
nico.lipinski@adolfinum.de
luise.lu@adolfinum.de
maike.nawarotzky@adolfinum.de
rabea.peters@adolfinum.de
patrick.preuss@adolfinum.de
julius.preusser@adolfinum.de
marie.scheidung@adolfinum.de
lena.schlayer@adolfinum.de
emma.sprenger@adolfinum.de
klaudia.kapala@adolfinum.de
gabriel.schacht@adolfinum.de
delia.schmitz@adolfinum.de
katharina.schmitz@adolfinum.de
laurin.severith@adolfinum.de
julian.sievers@adolfinum.de
anna.siewert@adolfinum.de
chiara.welter@adolfinum.de
kira.winzen@adolfinum.de
tim.zentzis@adolfinum.de
justus.boesken@adolfinum.de
finia.brinkmann@adolfinum.de
anesa.cavcic@adolfinum.de
antonia.eigemann@adolfinum.de
nico.hahn@adolfinum.de
timo.kohlmann@adolfinum.de
alexander.kupillas@adolfinum.de
alexander.neumann@adolfinum.de
sophie.osterloh@adolfinum.de
clemens.palinsky@adolfinum.de
oliver.palinsky@adolfinum.de
hendrik.pierlo@adolfinum.de
lilly.schmidtke@adolfinum.de
mara.spicker@adolfinum.de
anhtrung.vo@adolfinum.de
ben.schwarz@adolfinum.de
luca.urbanczyk@adolfinum.de
helena.neukirch@adolfinum.de
nikita.lauff@adolfinum.de
jennifer.lengard@adolfinum.de
julia.mueller@adolfinum.de
philipp.nothers@adolfinum.de
judith.oppenberg@adolfinum.de
dilan.oeztuerk@adolfinum.de
malo.soulier@adolfinum.de
mery.stern@adolfinum.de
nouel.verberkt@adolfinum.de
leon.viktora@adolfinum.de
pia.anthes@adolfinum.de
eray.arici@adolfinum.de
christian.beutel@adolfinum.de
mara.blanke@adolfinum.de
lilly.ventzke@adolfinum.de
luzi.weichert@adolfinum.de
moritz.weihnacht@adolfinum.de
leony.wittmann@adolfinum.de
annika.lieblang@adolfinum.de
leonie.wallusch@adolfinum.de
felix.kirsten@adolfinum.de
moritz.liebisch@adolfinum.de
christian.pickardt@adolfinum.de
jan.schliekmann@adolfinum.de
elsa.piplack@adolfinum.de
jolan.gerritzen@adolfinum.de
lorena.garau@adolfinum.de
matthias.karl@adolfinum.de
justin.kauschke@adolfinum.de
leonie.kramer@adolfinum.de
laura.kurreck@adolfinum.de
maya.lueck@adolfinum.de
sean.mccormick-silex@adolfinum.de
tim.mueller@adolfinum.de
lana.peric@adolfinum.de
jan.pintostrohhaeusl@adolfinum.de
laura.ruettershoff@adolfinum.de
charlotte.schirmer@adolfinum.de
lavinia.schmitz@adolfinum.de
victor.schroers@adolfinum.de
gerrit.schulz@adolfinum.de
clemens.spoo@adolfinum.de
simon.stavroulakis@adolfinum.de
ioannis.boerner@adolfinum.de
marwa.nafouti@adolfinum.de

View File

@@ -0,0 +1,5 @@
spring.datasource.url=jdbc:mysql://localhost/VotingSystem
spring.datasource.username=root
spring.datasource.password=Cr@ckTh15
spring.jpa.hibernate.ddl-auto=update

View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<property name="LOGS" value="./logs" />
<appender name="Console"
class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>
%black(%d{ISO8601}) %highlight(%-5level) [%blue(%t)] %yellow(%C{1.}): %msg%n%throwable
</Pattern>
</layout>
</appender>
<appender name="RollingFile"
class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOGS}/Voting.log</file>
<encoder
class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<Pattern>%d %p [%t] %m%n</Pattern>
</encoder>
<rollingPolicy
class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- rollover daily and when the file reaches 10 MegaBytes -->
<fileNamePattern>${LOGS}/archived/%d{yyyy-MM-dd}.%i.log
</fileNamePattern>
<timeBasedFileNamingAndTriggeringPolicy
class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
<maxFileSize>10MB</maxFileSize>
</timeBasedFileNamingAndTriggeringPolicy>
</rollingPolicy>
</appender>
<!-- LOG everything at INFO level -->
<root level="info">
<appender-ref ref="RollingFile" />
<appender-ref ref="Console" />
</root>
</configuration>

View File

@@ -0,0 +1,6 @@
function Quadrat() {
var Eingabe = document.getElementsByName("name");
var Ergebnis = Eingabe.value;
alert("Das Quadrat von " + Eingabe.value + " = " + Ergebnis);
Eingabe.value = "Aaron";
}

View File

@@ -0,0 +1,7 @@
td.voted {
background-color: #f05048;
}
td.notVoted {
background-color: #76ed6b;
}

View File

@@ -0,0 +1,18 @@
body {
background-color: rgb(44, 49, 54);
font-family: Arial, Helvetica, sans-serif;
}
h2 {
color: whitesmoke;
font-size: 2em;
font-family: Georgia, 'Times New Roman', Times, serif;
border-bottom: 5px dotted #e3e7ec;
border-top: 5px dotted white;
width: 50%;
}
form {
color: #3cff00;
font-weight: bold;
}

View File

@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="de" xmlns:th="https://www.thymeleaf.org/">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link th:href="@{/styles/dashboard.css}" rel="stylesheet" />
</head>
<body>
<h1>Wähler Liste</h1>
<div class="voterTable">
<table class="tableVoters" border="5">
<tr>
<th>Id</th>
<th>E-Mail</th>
<th>Vote status</th>
</tr>
<tr th:each="voter : ${voters}">
<!-- If voter has voted -->
<div th:if="${voter.vote_status}">
<td class="voted" th:text="${voter.id}"></td>
<td class="voted" th:text="${voter.email}"></td>
<td class="voted" th:text="${voter.vote_status}"></td>
</div>
<!-- ELSE -->
<div th:unless="${voter.vote_status}">
<td class="notVoted" th:text="${voter.id}"></td>
<td class="notVoted" th:text="${voter.email}"></td>
<td class="notVoted" th:text="${voter.vote_status}"></td>
</tr>
</table>
</div>
<h1>Kandidaten Liste</h1>
<div class="candidateTable">
<table class="tableCandidates" border="5">
<tr>
<th>Id</th>
<th>Name</th>
<th>Votes</th>
<th>Category</th>
</tr>
<tr th:each="candidate: ${candidates}">
<td th:text="${candidate.id}"></td>
<td th:text="${candidate.name}"></td>
<td th:text="${candidate.votes}"></td>
<td th:text="${candidate.category}"></td>
</tr>
</table>
</div>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Abizeitung 2020/2021 Voting</title>
</head>
<body>
<h1 style="color: red;"> Jeder darf nur einmal abstimmen! </h1>
<a href="http://localhost:8080">Return to Login-Site</a>
</body>
</html>

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Abizeitung 2020/2021 Voting</title>
</head>
<body>
<h1> Überprüfe noch einmal die eingegebene E-Mail Adresse
Sollte der Fall eintreten, dass du deine E-Mail Adresse richtig eingegeben hast und du Schüler der Q2 bist,
schreibe eine Mail an simon.bussmann@adolfinum.de mit dem Betreff LoginFehler</h1>
<a href="http://localhost:8080">Try again</a>
</body>
</html>

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="de" xmlns:th="http://thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Abizeitung 2020/2021 Voting</title>
<link th:href="@{/styles/start.css}" rel="stylesheet" />
</head>
<body>
<h2>Gebe deine Adolfinum E-Mail Adresse ein</h2>
<form action="#" th:action="@{/vote}" method="post">
<input type="text" name="name" />
<input type="submit" value="submit" />
</form>
<h2>Admin-Console Passwort</h2>
<form action="#" th:action="@{/dashboard}" method="post">
<input type="text" name="name" />
<input type="password" name="password" />
<input type="submit" value="login" />
</form>
</body>
</html>

View File

@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="de-DE" xmlns:th="http://thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Abizeitung 2020/2021 Voting</title>
<link th:href="@{/styles/first.css}" rel="stylesheet" />
</head>
<body>
<h2>Paragraphes</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<h2>Links</h2>
<a href="https://www.w3schools.com">This is a link</a>
<h2>HTML Images</h2>
<p>HTML images are defined with the img tag:</p>
<img src="https://www.lifewire.com/thmb/-27LpEPPTgNRUORa_mIczKDkWh0=/1280x905/filters:fill(auto,1)/what-is-binary-and-how-does-it-work-4692749-1-1eaec2e636424e71bb35419ef8d5005b.png" alt="Binary example picture" width="400" height="400">
<h2>Line breaks</h2>
<p>This is a <br> paragraph with a line break.</p>
<h2>Styling</h2>
<p style="color:red;">This is a red paragraph.</p>
<h2>Title attribute</h2>
<p title="I'm a tooltip">This is a paragraph.</p>
<h2>Quotes in attributes</h2>
<p title='John "ShotGun" Nelson'>Example 1</p>
<p title="John 'ShotGun' Nelson">Example 2</p>
<h2>Bigger headings</h2>
<h1>Heading 1</h1>
<h2>HTML Display</h2>
<p>
This paragraph contains a lot of lines in the source code, but the browser ignores it.
</p>
<p>
This paragraph contains a lot of spaces in the source code, but the browser ignores it.
</p>
<h2>Poem Problem</h2>
<p>
My Bonnie lies over the ocean. My Bonnie lies over the sea. My Bonnie lies over the ocean. Oh, bring back my Bonnie to me.
</p>
<h5>Solution:</h5>
<pre>
My Bonnie lies over the ocean.
My Bonnie lies over the sea.
My Bonnie lies over the ocean.
Oh, bring back my Bonnie to me.
</pre>
</body>
</html>

View File

@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org/">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link th:href="@{/styles/voting.css}" rel="stylesheet" />
</head>
<body>
<h1>Wähle deine Kandidaten:</h1>
<div th:each="candidate: ${candidates}">
<p th:text="${candidate.id}"></p>
<p th:text="${candidate.name}"></p>
<p th:text="${candidate.votes}"></p>
<p th:text="${candidate.category}"></p>
<!-- <input type="checkbox" id="${candidate.id}" name="${candidate.name}" unchecked>
<label for="${candidate.id}" th:text="${candidate.name}"></label> -->
</div>
</body>
</html>