Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Hurtownia</title>
- <link rel="stylesheet" href="styl4.css">
- <script>
- function zamow()
- {
- var number=document.getElementById("number").value;
- var weight=document.getElementById("waga").value;
- var price = 0;
- if(number == 1)
- {
- price = weight * 5;
- }
- }
- else if (number == 2)
- {
- price = weight +7;
- }
- else if(number ==3)
- {
- price = weight +6;
- }
- else
- {
- price =0;
- }
- document.getElementById("wynik").innerHTML = "koszt zamowienia wynosi:" + price +"zl";
- }
- </script>
- </head>
- <body>
- <section id="logo">
- <img src="logo.png" alt="hurtownia">
- </section>
- <section id="menu">
- <a href="index.html">Strona glowna</a>
- <a href="zamowienia.html">Zamówienia</a>
- <a href="blog.html">Blog o kawie</a>
- <a href="http://gatunki-kawy.pl/" target="_blank">Odwiedź także</a>
- </section>
- <section class="header">
- <h1>Hurtownia kawy</h1>
- </section>
- <section class="main">
- <h2>Oferta</h2>
- <ol>
- <li>Kawa palona Arabica</li>
- <li>Kawa palona Robusta</li>
- <li>Kawa bezkofeinowa</li>
- <li>Kawa zielona</li>
- </ol>
- </section>
- <section class="main">
- Podaj numer kawy: <br/>
- <input id="numer" type="number"><br/>
- Podaj wagę w dekagramach:</br>
- <input id="numer" type="number"><br/>
- <p id="wynik"></p>
- </section>
- <section class="header">
- Stronę przygotowal: <b>Najlepszy informatyk w witosie</b>
- </section>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement