Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.09 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>Golemina</title>
  6.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">
  7.     </script>
  8.     <style>
  9.         .Menu
  10.         {
  11.             background-color:lightblue;
  12.             width: 31%;
  13.         }
  14.     </style>
  15. </head>
  16. <body>
  17.     <div class="Menu">
  18. <h1><i>Големина на фонт:</i></h1>
  19.         <button class="pocetna" type="button" >Почетна</button>
  20.         <button class="zgolemi" type="button" >Зголеми</button>
  21.         <button class="namali" type="button" >Намали</button>
  22.     </div>
  23. <h1 id="Naslov" >How to connect to the internet</h1>
  24. <p id="Tekst">To connect to the Internet, you'll need an Internet service provider (ISP) and some hardware: ISP. An ISP is a company
  25.     that gives youaccess to the Internet. You sign up for an account with an ISP just as you do for telephone service or utilities.
  26.     ISPs are usually phone companies (for a DSL or fiber optic connection) or TV providers (for a cable or satellite connection).
  27.     <br> <br>
  28.     Hardware. For a broadband connection, such as DSL, fiber optic, or cable, you'll need a broadband modem. This might be
  29.     included as part of the start-up hardware from yout ISP when you sign up for a broadband account. If you plan to share
  30.     Internet access with multiple PCs by using a home network, you'll also need a router</p>
  31. <script>
  32.     var pgolemina=parseFloat($("#Naslov").css("font-size"));
  33.     var ngolemina=parseFloat($("#Tekst").css("font-size"));
  34.     $(document).ready(function(){
  35.     $(".zgolemi").click(function(){
  36.         $("#Naslov").animate({fontSize: pgolemina*1.5 + "px"});
  37.         $("#Tekst").animate({fontSize: ngolemina*1.5 + "px"});
  38.     });
  39.     $(".namali").click(function(){
  40.         $("#Naslov").animate({fontSize: pgolemina/1.5 + "px"});
  41.         $("#Tekst").animate({fontSize: ngolemina/1.5 + "px"});
  42.     });
  43.     $(".pocetna").click(function(){
  44.         $("#Naslov").animate({fontSize: pgolemina + "px"});
  45.         $("#Tekst").animate({fontSize: ngolemina + "px"});
  46.     });
  47. });
  48. </script>
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement