Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(i == findTheIndexOfTheCorrectAnswer && i == findTheIndexOfTheUserInput)
- {
- quizFeedBackDiv.innerHTML +=
- `
- <div class="whenTtereIsJustCorrectAnswer"><span class="text">${answerss[i]}</span><span class="feedback">Your Answer</span></div>
- `
- }
- //the css code
- .quizFeedBackDiv {
- width: 80%;
- margin-left: 10%;
- font-size: 20px;
- position: relative;
- }
- .quizFeedBackDiv .feedback {
- position: absolute;
- right: 3px;
- /* text-align: center; */
- }
- .quizFeedBackDiv div {
- padding: 10px;
- }
- .whenTtereIsJustCorrectAnswer {
- background: #D4EDDA;
- }
- .whenTtereIsJustCorrectAnswer:before {
- content: "2713";
- float: left;
- }
- .text {
- position: absolute;
- left: 30px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement