wojtekw0703

Kalkulator z kombinacjami - html

Dec 11th, 2020 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.69 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.   <head>
  4.     <meta charset="UTF-8" />
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6.     <meta http-equiv="X-UA-Compatible" content="ie=edge" />
  7.     <title>Calculator</title>
  8.     <link
  9.      rel="stylesheet"
  10.      href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"
  11.    />
  12.  
  13.     <style>
  14.       .alert {
  15.         background: green;
  16.         padding: 1rem;
  17.         border-radius: 10px;
  18.         color: white;
  19.         margin: 0.5rem;
  20.       }
  21.     </style>
  22.   </head>
  23.   <body>
  24.     <div class="container">
  25.       <h3>Calculator App</h3>
  26.     </div>
  27.  
  28.     <!-- Form -->
  29.     <div class="container">
  30.       <form action="/send" method="POST">
  31.         <label for="Number n">n</label>
  32.         <input
  33.          type="text"
  34.          placeholder="Enter n"
  35.          class="u-full-width"
  36.          name="n"
  37.        />
  38.  
  39.         <label for="Number k">k</label>
  40.         <input
  41.          type="text"
  42.          placeholder="Enter k"
  43.          class="u-full-width"
  44.          name="k"
  45.        />
  46.  
  47.         <label for="Operation">Operation</label>
  48.         <select class="u-full-width" name="operation">
  49.           <option value="combinations-with-repetitions">Combinations with repetitions</option>
  50.           <option value="combinations-without-repetitions">Combinations without repetitions</option>
  51.         </select>
  52.  
  53.         <input type="submit" value="Calculate" id="calc_btn" />
  54.         <br />
  55.         <div class="alert">
  56.          Amount of possibilities:  {{ sum }}
  57.         </div>
  58.           <div class="alert">
  59.         Combinations:  {{ combinations }}
  60.         </div>
  61.       </form>
  62.     </div>
  63.   </body>
  64. </html>
  65.  
Add Comment
Please, Sign In to add comment