index.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. </head>
  9. <body>
  10. <div class="allTraficLight" style="display: flex; justify-content:space-around">
  11. <div class="carTraficLight">
  12. <div class="topTraficLight" style="background-color: black; height: 50px; width: 150px; margin: 20px 0 0 75px; border-radius: 50% 50% 0 0;">
  13. </div>
  14. <div id="color" style="width: 200px; height: 500px; background-color: #000; display: flex; flex-direction: column; justify-content: space-around; align-items:center;margin-left: 50px">
  15. <div id="red" style="background-color: red; width: 150px; height: 150px; border-radius: 50%; opacity: 0.3; display: flex; flex-direction: column; justify-content: space-around; align-items:center">
  16. <h1 id="redTimer" style="color: #000; opacity: 0.7; text-align: center; font-size: 100px;"></h1>
  17. </div>
  18. <div id="yellow" style="background-color: yellow; width: 150px; height: 150px; border-radius: 50%; opacity: 0.3;"></div>
  19. <div id="green" style="background-color: green; width: 150px; height: 150px; border-radius: 50%; opacity: 0.3;display: flex; flex-direction: column; justify-content: space-around; align-items:center">
  20. <h1 id="greenTimer" style="color: #000; opacity: 0.7; text-align: center; font-size: 100px;"></h1>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="humanTraficLight">
  25. <div class="topTraficLight" style="background-color: black; height: 50px; width: 150px; margin: 20px 0 0 75px; border-radius: 50% 50% 0 0;">
  26. </div>
  27. <div id="humanColor" style="width: 200px; height: 350px; background-color: #000; display: flex; flex-direction: column; justify-content: space-around; align-items:center;margin-left: 50px">
  28. <div id="humanRed" style="background-color: red; width: 150px; height: 150px; border-radius: 50%; opacity: 0.3; display: flex; flex-direction: column; justify-content: space-around; align-items:center">
  29. <h1 id="humanRedTimer" style="color: #000; opacity: 0.7; text-align: center; font-size: 100px;"></h1>
  30. </div>
  31. <div id="humanGreen" style="background-color: green; width: 150px; height: 150px; border-radius: 50%; opacity: 0.3;display: flex; flex-direction: column; justify-content: space-around; align-items:center">
  32. <h1 id="humanGreenTimer" style="color: #000; opacity: 0.7; text-align: center; font-size: 100px;"></h1>
  33. </div>
  34. </div>
  35. <button id="btn" style="margin: 20px 0 0 50px; width: 200px; height: 30px;">Переключить</button>
  36. </div>
  37. </div>
  38. <script src="index.js"></script>
  39. </body>
  40. </html>