Compare commits

...

2 Commits

Author SHA1 Message Date
Jacob Søfeldt 4db2b3d3a3 Merge branch 'main' of https://gitea.itskp-odense.dk/Game-jam-Devs/Game-Jaming 2021-04-26 08:26:20 +02:00
Jacob Søfeldt a034630795 minder index fix 2021-04-26 08:25:41 +02:00
2 changed files with 127 additions and 92 deletions

View File

@ -355,11 +355,12 @@
name="password"
placeholder="Gentag Password"
/>
<!--
<select
id="GameJamSelect"
class="form-select"
aria-label="Default select example"
></select>
></select>-->
<input type="hidden" name="groupAmount" id="groupAmount" />
<input type="hidden" name="gameJamId" id="gameJamId" />
@ -1077,99 +1078,132 @@
<hr class="GradientDivider" />
<!-- Stem -->
<section id="stem">
<h3>Stem</h3>
<div class="row">
<div class="col-sm">
<button type="button" class="Collapsible"id="activeGameJam">Game Jam</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
<div class="col-sm">
<button type="button" class="Collapsible"id="activeGameJam">Game Jam</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
<div class="col-sm">
<button type="button" class="Collapsible"id="activeGameJam">Game Jam</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">Spil</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" id="voteAndComment">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="GameJameName">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">knap</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</section>
<!-- Stem slut -->
<!-- Stem -->
<section id="stem">
<h3>Stem</h3>
<p></p>
<div class="row">
<div class="col-sm">
<button type="button" class="Collapsible" id="activeGameJam">
Game Jam
</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
<div class="col-sm">
<button type="button" class="Collapsible" id="activeGameJam">
Game Jam
</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
<div class="col-sm">
<button type="button" class="Collapsible" id="activeGameJam">
Game Jam
</button>
<div class="CollapsibleContent">
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
<button type="button" class="Collapsible" id="gameDataId">
Spil
</button>
<div class="CollapsibleContent">
<button type="submit" id="oneVote">Vote</button>
</div>
</div>
</div>
</div>
<div class="modal" tabindex="-1" id="voteAndComment">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="GameJameName">Modal title</h5>
<button
type="button"
class="btn-close"
data-bs-dismiss="modal"
aria-label="Close"
></button>
</div>
<div class="modal-body">
<p>Modal body text goes here.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary">knap</button>
<button
type="button"
class="btn btn-secondary"
data-bs-dismiss="modal"
>
Close
</button>
</div>
</div>
</div>
</div>
</section>
<!-- Stem slut -->

View File

@ -83,13 +83,14 @@ $(document).ready(function () {
// Check data before submitting
$("#RegisterForm").submit(function (e) {
/*
if (!selectedGameJam >= 1) {
$("#GameJamSelect").addClass("invalidInput");
e.preventDefault();
return false;
} else {
$("#gameJamId").val($("#GameJamSelect option:selected").val());
}
}*/
if ($("#pass1").val().length === 0) {
$("#pass1").addClass("invalidInput");