Advertisement
Guest User

57.js

a guest
Feb 24th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var pytanie=prompt("TEST? (Gotowy/Nie)", "");
  2. if (pytanie == 1 | pytanie == 'Gotowy') {
  3.     var dzialanie=prompt("60 / 20. Ile to?", "");
  4.         if (dzialanie == 3) {
  5.             var kolejne=prompt("90 / 3 * 2. Ile to?", "");
  6.             if (kolejne == 60) {
  7.             document.write('<body style="background-color:green;"> <h1> <font color=black>Zdałeś egzamin pozytywnie. :( </font> </h1>');
  8.  
  9.         }
  10.         else  {
  11.             document.write('<h1> <font color=red> Odpałeś! </font> </h1>');
  12.         }
  13.  
  14.         }
  15.         else if (dzialanie != 3 && dzialanie == '')  {
  16.             document.write('<h1> <font color=red> Wpisz jakąkolwiek liczbę! </font> </h1>');
  17.         }
  18.         else {
  19.             document.write('<h1> <font color=red> Odpadłeś! </font> </h1>');
  20.         }
  21. }
  22. else if (pytanie == 1 | pytanie == 'Nie') {
  23.     var dzialanie=prompt("Czemu?", "");
  24.     if (dzialanie == 1 | dzialanie == '') {
  25.             document.write('');
  26.  
  27.         }
  28.         else  {
  29.             document.write('');
  30.         }
  31.  
  32. }
  33. else {
  34. document.write('<body style="background-color:red;"> <h1> <font color=black>Przerwano. :( </font> </h1>');
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement