Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pytanie=prompt("TEST? (Gotowy/Nie)", "");
- if (pytanie == 1 | pytanie == 'Gotowy') {
- var dzialanie=prompt("60 / 20. Ile to?", "");
- if (dzialanie == 3) {
- var kolejne=prompt("90 / 3 * 2. Ile to?", "");
- if (kolejne == 60) {
- document.write('<body style="background-color:green;"> <h1> <font color=black>Zdałeś egzamin pozytywnie. :( </font> </h1>');
- }
- else {
- document.write('<h1> <font color=red> Odpałeś! </font> </h1>');
- }
- }
- else if (dzialanie != 3 && dzialanie == '') {
- document.write('<h1> <font color=red> Wpisz jakąkolwiek liczbę! </font> </h1>');
- }
- else {
- document.write('<h1> <font color=red> Odpadłeś! </font> </h1>');
- }
- }
- else if (pytanie == 1 | pytanie == 'Nie') {
- var dzialanie=prompt("Czemu?", "");
- if (dzialanie == 1 | dzialanie == '') {
- document.write('');
- }
- else {
- document.write('');
- }
- }
- else {
- document.write('<body style="background-color:red;"> <h1> <font color=black>Przerwano. :( </font> </h1>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement