Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <style>
  5.  
  6. </style>
  7. </head>
  8. <body>
  9. <div id="menu">
  10. <input type="button" class="Polska" value="Polska" onclick="Polska()"><br />
  11. <input type="button" class="Francja" value="Francja" onclick="Francja()"><br />
  12. <input type="button" class="Holandia" value="Holandia" onclick="Holandia()"><br />
  13. <input type="button" class="Niemcy" value="Niemcy" onclick="Niemcy()"><br />
  14. <input type="button" class="Wegry" value="Węgry" onclick="Wegry()"><br />
  15. <div id="wybra">
  16.  
  17. </div>
  18. <div id="wybralem">
  19.  
  20. </div>
  21. </div>
  22. <script>
  23. var vote = 0
  24. function Polska()
  25. {
  26. if (vote == 0)
  27. {
  28. vote = 1;
  29. var x = "Wybrałeś państwo: POLSKA";
  30. document.getElementById("wybra").innerHTML = x;
  31. votef();
  32. }
  33. if (vote != 0)
  34. {
  35. return;
  36. }
  37. }
  38. function Francja()
  39. {
  40. if (vote == 0)
  41. {
  42. vote = 1;
  43. var x = "Wybrałeś państwo: Francja";
  44. document.getElementById("wybra").innerHTML = x;
  45. votef();
  46. }
  47. if (vote != 0)
  48. {
  49. return;
  50. }
  51. }
  52. function Holandia()
  53. {
  54. if (vote == 0)
  55. {
  56. vote = 1;
  57. var x = "Wybrałeś państwo: Holandia";
  58. document.getElementById("wybra").innerHTML = x;
  59. votef();
  60.  
  61. }
  62. if (vote != 0)
  63. {
  64. return;
  65. }
  66. }
  67. function Niemcy()
  68. {
  69. if (vote == 0)
  70. {
  71. vote = 1;
  72. var x = "Wybrałeś państwo: Niemcy";
  73. document.getElementById("wybra").innerHTML = x;
  74. votef();
  75.  
  76. }
  77. if (vote != 0)
  78. {
  79. return;
  80. } }
  81. function Wegry()
  82. {
  83. if (vote == 0)
  84. {
  85. vote = 1;
  86. var x = "Wybrałeś państwo: Węgry";
  87. document.getElementById("wybra").innerHTML = x;
  88. votef();
  89.  
  90. }
  91. if (vote != 0)
  92. {
  93. return;
  94. } }
  95. function votef()
  96. {
  97. if (vote == 1)
  98. {
  99. var z = "JUŻ WYBRAŁEM!";
  100. document.getElementById("wybralem").innerHTML = z;
  101. }
  102. }
  103. </script>
  104. </body>
  105. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement