Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.38 KB | None | 0 0
  1. <!--
  2. Created by PL
  3. Oct 2019
  4. -->
  5. <!DOCTYPE html>
  6. <html>
  7.   <head>
  8.     <base target="_top">
  9.   </head>
  10.   <body>
  11.   <style>
  12. .collapsible {
  13.   background-color: #eee;
  14.   color: #444;
  15.   cursor: pointer;
  16.   padding: 18px;
  17.   width: 100%;
  18.   border: none;
  19.   text-align: left;
  20.   outline: none;
  21.   font-size: 15px;
  22. }
  23.  
  24. .active, .collapsible:hover {
  25.   background-color: #ccc;
  26. }
  27.  
  28. .content {
  29.   padding: 0 18px;
  30.   display: none;
  31.   overflow: hidden;
  32.   background-color: #f1f1f1;
  33. }
  34. *{
  35.   font-family: serif;
  36. }
  37.   </style>
  38.   <div id='siteTitle'>
  39.   <h1><span id=nuhs>NUHS</span> Theater Sales Tracker</h1>
  40.   </div>
  41.     <table style="margin-left: auto; margin-right: auto;" cellpadding="5">
  42.       <tbody>
  43.         <tr>
  44.           <td id='createReservation' valign='top'>
  45.             <button class='collapsible' type='button'>Create Sale Record</button>
  46.             <div class='content'>
  47.             <form id="myForm" onsubmit="event.preventDefault(); google.script.run.newEntry(this)">
  48.               <h3>First Name:</h3>
  49.               <input name="firstName">a
  50.               <h3>Last Name:</h3>
  51.               <input name="lastName">
  52.               <h3>Select a show:</h3>
  53.               <input type="radio" id='st1' name="showtime" value="st1"/>
  54.               <label for="st1">November 15th @ 7:00PM</label><br>
  55.               <input type="radio" id='st2' name="showtime" value="st2"/>
  56.               <label for="st2">November 16th @ 7:00PM</label><br>
  57.               <input type="radio" id='st3' name="showtime"value="st3"/>
  58.               <label for="st3">November 18th @ 2:00PM</label><br>
  59.               <input type="radio" id='st4' name="showtime" value="st4"/>
  60.               <label for="st4">November 19th @ 2:00PM</label><br><br>
  61.               <input type="submit"/>
  62.             </form>
  63.           </div>
  64.           </td>
  65.           <!--Lookup Section -->
  66.           <td valign='top'>
  67.           <button class='collapsible' type='button'>Lookup/Verify Sales Record</button>
  68.           <div class='content'>
  69.             <form id="lookupForm" onsubmit="event.preventDefault(); google.script.run.getSaleEntry(this)">
  70.             <h3>Lookup Sales Entries By:</h3>
  71.             <input type='radio' id='la1'name='lookupType' value='fn'/>
  72.             <label for='la1'>First Name</label><br>
  73.             <input type='radio' id='la2'name='lookupType' value='ln'/>
  74.             <label for='la2'>Last Name</label><br>
  75.             <input type='radio' id='la3'name='lookupType' value='em'/>
  76.             <label for='la3'>E-Mail Address</label><br>
  77.             <input type='radio' id='la4'name='lookupType' value='sn'/>
  78.             <label for='la3'>Seat Number(s)</label><br>
  79.             <p>Enter Search Argument:</p>
  80.             <input id='param' name='param'/>
  81.             <input type='submit'/>
  82.             </form>
  83.             </div>
  84.           </td>
  85.         </tr>
  86.       </tbody>
  87.     </table>
  88.     <script>
  89.     console.log("testing");
  90.     var coll = document.getElementsByClassName("collapsible");
  91.     var i;
  92.  
  93.     for (i = 0; i < coll.length; i++) {
  94.      coll[i].addEventListener("click", function() {
  95.        this.classList.toggle("active");
  96.        var content = this.nextElementSibling;
  97.        if (content.style.display === "block") {
  98.          content.style.display = "none";
  99.        } else {
  100.          content.style.display = "block";
  101.        }
  102.      });
  103.    }
  104.    </script>
  105.   </body>
  106. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement