aboutsummaryrefslogtreecommitdiff
path: root/www/index.html
blob: 3fbcaf8a036b6b8a74942afd31349b2c37053def (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<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;
    }
    window.addEventListener('load',function(){
    if (document.getElementById('roombutton').checked) switchShow('room');
    });
  </script>
</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>
  <form action="award.pdf" 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"/>
  </form>
  <form action="room.pdf" style="display: none" id="room" class="submit">
    Committee: <input type="text" name="committee"/><br>
    <input type="submit"/>
  </form>
</body>
</html>