Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <head>
  2. <meta charset="UTF-8">
  3. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  4. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  5. <title>Document</title>
  6. <link rel="stylesheet" href="css/style.css">
  7. </head>
  8. <body>
  9. <h1 style="display: none;">YOU WIN</h1>
  10. <h1 style="display: none;">YOU FALSE</h1>
  11. <div class="nine">
  12. <div class="top">
  13. <div class="kvad" id="one"></div>
  14. <div class="kvad" id="two"></div>
  15. <div class="kvad" id="three"></div>
  16. </div>
  17.  
  18. <div class="mid">
  19. <div class="kvad" id="four"></div>
  20. <div class="kvad" id="five"></div>
  21. <div class="kvad" id="six"></div>
  22. </div>
  23. <div class="bot">
  24. <div class="kvad" id="seven"></div>
  25. <div class="kvad" id="eight"></div>
  26. <div class="kvad" id="nine"></div>
  27. </div>
  28.  
  29. </div>
  30.  
  31. <h2>ВЫБЕРИТЕ СИМВОЛ</h2>
  32. <button id="slash" class="slash" onclick = "slash.style.display = 'none', star.style.display = 'none', quest='slash' ">/</button>
  33. <button id="star" class="star" onclick = "slash.style.display = 'none', star.style.display = 'none', quest='star' ">*</button>
  34.  
  35.  
  36. <script>
  37. let quest;
  38. var slash = document.getElementById(slash);
  39. var star = document.getElementById(star);
  40. </script>
  41.  
  42. Uncaught TypeError: Cannot read property 'style' of null at HTMLButtonElement.onclick
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement