Guest User

Untitled

a guest
Jul 12th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <!DOCTYPE html>
  3. <html lang="en">
  4.     <head>
  5.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6.         <title>Test</title>
  7.         <script src="main.js" type="text/javascript" charset="utf-8"></script>
  8.     </head>
  9.     <body>
  10.         <form>
  11.             <div id="days-of-the-week">
  12.                 <input type="checkbox" value="MON"> Monday
  13.                 <input type="checkbox" value="TUE"> Tuesday
  14.                 <input type="checkbox" value="WED"> Wednesday
  15.                 <input type="checkbox" value="THU"> Thursday
  16.                 <input type="checkbox" value="FRI"> Friday
  17.                 <input type="checkbox" value="SAT"> Saturday
  18.                 <input type="checkbox" value="SUN"> Sunday
  19.             </div>
  20.             or
  21.             <div id="date-picker">
  22.                 <input type="hidden" value="" id="date">
  23.                 <select id="day">
  24.                     <!-- fill it with JS, but don’t update afterwards -->
  25.                     <option>1</option>
  26.                     <option>2</option>
  27.                     <option>3</option>
  28.                     <option>...</option>
  29.                     <option>31</option>
  30.                 </select>
  31.                 <select id="month">
  32.                     <option>...</option>
  33.                 </select>
  34.                 <select id="year">
  35.                     <option>-10..+10</option>
  36.                 </select>
  37.             </div>
  38.             or
  39.             <div id="user-input">
  40.                 <!-- parse it to fields above -->
  41.                 <input type="text" value="" id="input">
  42.             </div>
  43.  
  44.             <input type="submit" value="Run" id="submit">
  45.  
  46.             <!-- final format: MON,TUE,FRI or 05/12/2011 -->
  47.             <input type="text" value="" id="result">
  48.         </form>
  49.     </body>
  50. </html>
Add Comment
Please, Sign In to add comment