ЙажаСценарий / Говнокод #23634 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
<input type="text" id="text" hidden="true">
  <script type="text/javascript">
    document.getElementById('body').onkeypress = function(e) {
      var text = document.getElementById('text')
      if(text.value == "W" && e.key == "Q" ||
          text.value == "Q" && e.key == "W" ||
          text.value == "w" && e.key == "q" ||
          text.value == "q" && e.key == "w" ||
          text.value == "й" && e.key == "ц" ||
          text.value == "ц" && e.key == "й" ||
          text.value == "Й" && e.key == "Ц" ||
          text.value == "Ц" && e.key == "Й")
        alert("Привет!")
      text.value = e.key
    }
  </script>

свежее говно вышло(

Запостил: fuckercoder fuckercoder, (Updated )

Комментарии (5) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8