Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <html>
  2. <head>
  3. <style>
  4. body {
  5. }
  6. .quiz {
  7. width: 75%;
  8. text-align: center;
  9. margin: auto;
  10. background: #929292;
  11. font-family: sans-serif;
  12. color: white;
  13. padding: 8px;
  14. }
  15. .quiz pre {
  16. display: inline-block;
  17. margin: 0px;
  18. }
  19. .question {
  20. background: #828282;
  21. margin: 4px;
  22. padding: 8px;
  23. }
  24. .answers {
  25. counter-reset: answercounter;
  26. list-style-type: none;
  27. padding: 0px;
  28. margin: 16px 0px 0px 0px;
  29. }
  30. .answers li {
  31. background: #757575;
  32. margin: 4px;
  33. padding: 4px;
  34. }
  35. .answers li:nth-child(even) {
  36. background: #676767;
  37. }
  38. .answers li:before{
  39. counter-increment: answercounter;
  40. content: counter(answercounter, upper-alpha);
  41. margin: 0px 8px;
  42. background: #9E9E9E;
  43. border-radius: 20px;
  44. width: 23px;
  45. height: 23px;
  46. display: inline-block;
  47. text-align: center;
  48. color: white;
  49. font-family: monospace;
  50. font-size: 20px;
  51. }
  52. .answers li:hover {
  53. background: #565656;
  54. color: white;
  55. }
  56. .answers li:nth-child(even):hover {
  57. background: #565656;
  58. color: white;
  59. }
  60. .answers li:hover:before {
  61. background: #FFC107;
  62. color: black;
  63. }
  64. .lockedanswer {
  65. background: #FFC107 !important;
  66. color: black !important;
  67. }
  68. .lockedanswer:before {
  69. background: #FFC107 !important;
  70. color: black !important;
  71. }
  72. .wrong {
  73. background: #F44336 !important;
  74. color: black !important;
  75. transition: all 0.25s ease-out;
  76. }
  77. .wrong:before {
  78. background: #F44336 !important;
  79. color: black !important;
  80. transition: all 0.25s ease-out;
  81. }
  82. .correct {
  83. background: #4CAF50 !important;
  84. color: white !important;
  85. transition: all 0.25s ease-out;
  86. }
  87. .correct:before {
  88. background: #4CAF50 !important;
  89. color: white !important;
  90. transition: all 0.25s ease-out;
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <div class="quiz">
  96. <div class="question">
  97. What is the most efficient way to loop through all elements when an index is needed?
  98. </div>
  99. <ul class="answers">
  100. <li class="lockedanswer"><pre>while {_i < count _arr} do { _i = _i + 1; ...}</pre></li>
  101. <li class="correct"><pre>for "_i" from 0 to count arr do {...}</pre></li>
  102. <li class="wrong"><pre>{...} count _arr</pre></li>
  103. <li><pre>{...} forEach _arr</pre></li>
  104. <li><pre>for [{_i = 0}, {_i < count _arr}, {_i = _i + 1}] do {...}</pre></li>
  105. </ul>
  106. </div>
  107. </body>
  108. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement