aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-07-29 22:12:37 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-07-29 22:12:37 -0400
commit8b20d2feb0d39613962ff3fd11beb9a83ab1473b (patch)
treed0868c062b2bcf6dc4b66d95b69c77d89a56bfb2 /www
parent86c96011c090a8d8304c28043acaf13cdb37f28e (diff)
centralized version stuff into the makefile and js->css
Diffstat (limited to 'www')
-rw-r--r--www/index.html42
1 files changed, 21 insertions, 21 deletions
diff --git a/www/index.html b/www/index.html
index 32634d4..d542208 100644
--- a/www/index.html
+++ b/www/index.html
@@ -2,33 +2,33 @@
<html>
<head>
<title>MiniMUN PDF Generator</title>
- <script>
- let curform = 'award';
- function switchShow(id){
- document.getElementById(curform).style.display = 'none';
- document.getElementById(id).style.display = '';
- curform = id;
+ <style>
+ input.sel {
+ display: inline;
+ text-align: center;
}
- window.addEventListener('load',function(){
- if (document.getElementById('roombutton').checked) switchShow('room');
- });
- </script>
+ input#awardbutton:checked ~ form#room {
+ display: none;
+ }
+ input#roombutton:checked ~ form#award {
+ display: none;
+ }
+ </style>
</head>
<body>
- <h4>Form Type:</h4>
- <input type="radio" name="form" value="award" onchange="switchShow('award')" checked>Award</input><br>
- <input type="radio" name="form" id="roombutton" value="room" onchange="switchShow('room')">Room</input><br>
+ <input type="radio" name="form" id="awardbutton" class="sel" value="award" checked>Award</input>
+ <input type="radio" name="form" id="roombutton" class="sel" value="room">Room</input>
<form action="award" method="get" id="award" class="submit">
- Committee: <input type="text" name="committee"/><br>
- Country: <input type="text" name="country"/><br>
- Award Name: <input type="text" name="award"/><br>
- School: <input type="text" name="school"/><br>
- <input type="submit"/>
+ <p>Committee: <input type="text" name="committee"/></p>
+ <p>Country: <input type="text" name="country"/></p>
+ <p>Award Name: <input type="text" name="award"/></p>
+ <p>School: <input type="text" name="school"/></p>
+ <p><input type="submit"/></p>
</form>
- <form action="room" style="display: none" id="room" class="submit">
- Committee: <input type="text" name="committee"/><br>
- <input type="submit"/>
+ <form action="room" id="room" class="submit">
+ <p>Committee: <input type="text" name="committee"/></p>
+ <p><input type="submit"/></p>
</form>
</body>
</html>