Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
PamaliWeerasinghe committed Jan 10, 2024
2 parents dcad44e + b14d6ad commit be6354d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@
<br>

<p class="pt-3">
<a class="btn btn-success btn js-scroll px-4 get-started-btn" href="revol_form/workshop01Registration" role="button" style="height: 6vh;background-color: #5ebd61;cursor: pointer;"><label class="mt-1">REGISTER NOW (WORKSHOP 01)</label>
<!-- <a class="btn btn-success btn js-scroll px-4 get-started-btn" href="revol_form/workshop01Registration" role="button" style="height: 6vh;background-color: #5ebd61;cursor: pointer;"><label class="mt-1">REGISTER NOW (WORKSHOP 01)</label> -->
<a class="btn btn-success btn js-scroll px-4 get-started-btn" href="revol_form/register" role="button" style="height: 6vh;background-color: #5ebd61;cursor: pointer;"><label class="mt-1">REGISTER NOW</label>

</a>
</p>
Expand Down
5 changes: 2 additions & 3 deletions revol_form/register.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ <h6 style="color: #5ebd61;">One team should comprise of a minimum of 3 members a
<option disabled selected value="">Number of members</option>
<option value="3">Three</option>
<option value="4">Four</option>

</select>
<div class="mt-3">
<select class="form-control select1" name="university" autocomplete="off" aria-required="true"
Expand Down Expand Up @@ -244,7 +243,7 @@ <h6 style="color: #5ebd61;">One team should comprise of a minimum of 3 members a

</div>

<div class="row" id="4" style="display: none;">
<div class="row member-4" id="4" style="display: none;">
<div class="d-flex" style="flex-direction:row;">
<div class="col-md-8 form-group">
<input type="text" name="name" class="form-control" id="name4" placeholder="Member 4">
Expand Down Expand Up @@ -320,7 +319,7 @@ <h6 style="color: #5ebd61;">One team should comprise of a minimum of 3 members a

<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<!-- <script src="script.js?ver=2.0"></script> -->
<script src="script-old.js"></script>
<script src="script.js?ver=2.0"></script>
</body>

</html>
16 changes: 7 additions & 9 deletions revol_form/script.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
const select = document.getElementById('select');


select.addEventListener('change', function () {
for (let otherDiv of document.querySelectorAll('#default div')) {
otherDiv.style.display = 'none';
}

const div = document.getElementById(this.value);
div.style.display = 'block';
$(document).ready(function () {
$("#select").change(function () {
if ($(this).val() == "3")
$(".member-4").slideUp();
else
$(".member-4").slideDown();
});
});


function validateInput(value, errorMessage) {
var alertdiv = document.getElementById("alert-div");

Expand Down

0 comments on commit be6354d

Please sign in to comment.