SHARE
TWEET

Untitled

a guest Jun 24th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <!DOCTYPE>
  3. <html>
  4.  
  5. <head>
  6.     <meta charset="utf-8">
  7.     <title>Remonty mieszkań</title>
  8.     <link rel="stylesheet" href="remont.css" type="text/css">
  9. </head>
  10.  
  11. <body>
  12.     <section class="menu">
  13.         <img src="logotyp.png">
  14.     </section>
  15.     <section class="menu">
  16.         <a href="index.html">O FIRMIE</a>
  17.     </section>
  18.     <section class="menu">
  19.         <a href="adres.html">ADRES</a>
  20.     </section>
  21.     <section class="menu">
  22.         <a href="policz.html">POLICZ</a>
  23.     </section>
  24.     <section class="menu">
  25.         <a href="http://www.jakremontowac.pl/">LINKI</a>
  26.     </section>
  27.     <main>
  28.         <h1>Kafelkowanie łazienki</h1>
  29.         <p> powierzchnia w m2: <input type="number" min="1" id="metr"> </p>
  30.         <br><input type="radio" name="plytki" id="plytki1"> Płytki 20 x 20 cm
  31.         <br><input type="radio" name="plytki" id="plytki2"> Płytki 25 x 12 cm
  32.         <p><input type="submit" value="Przelicz" id="klik" onclick="oblicz()"></p>
  33.         <p id="wynik"></p>
  34.     </main>
  35.     <footer>
  36.         <p>Autor strony: Iwona Kowalczyk</p>
  37.     </footer>
  38.     <script>
  39.         function oblicz() {
  40.             var metr = document.getElementById("metr").value;
  41.             var plytki1 = document.getElementById("plytki1").checked;
  42.             var plytki2 = document.getElementById("plytki2").checked;
  43.             var wynik;
  44.             if (plytki1 == true) {
  45.                 document.getElementById("wynik").innerHTML = "Koszt malowania: " + metr * 70 + " zł";
  46.  
  47.             } else if (plytki2 == true) {
  48.                 document.getElementById("wynik").innerHTML = "Koszt malowania: " + metr * 80 + " zł";
  49.  
  50.             }
  51.         }
  52.  
  53.     </script>
  54. </body>
  55.  
  56. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top