Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. if(i == findTheIndexOfTheCorrectAnswer && i == findTheIndexOfTheUserInput)
  2. {
  3. quizFeedBackDiv.innerHTML +=
  4. `
  5. <div class="whenTtereIsJustCorrectAnswer"><span class="text">${answerss[i]}</span><span class="feedback">Your Answer</span></div>
  6. `
  7. }
  8.  
  9.  
  10. //the css code
  11.  
  12.  
  13.  
  14. .quizFeedBackDiv {
  15. width: 80%;
  16. margin-left: 10%;
  17. font-size: 20px;
  18. position: relative;
  19. }
  20.  
  21. .quizFeedBackDiv .feedback {
  22. position: absolute;
  23. right: 3px;
  24. /* text-align: center; */
  25. }
  26.  
  27. .quizFeedBackDiv div {
  28. padding: 10px;
  29. }
  30.  
  31. .whenTtereIsJustCorrectAnswer {
  32. background: #D4EDDA;
  33. }
  34.  
  35. .whenTtereIsJustCorrectAnswer:before {
  36. content: "2713";
  37. float: left;
  38. }
  39.  
  40. .text {
  41. position: absolute;
  42. left: 30px;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement