Created
November 10, 2023 18:01
-
-
Save gilberto-009199/e4744e1c98434bf64d2da5f46d5a258a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mountedQuest(){ | |
let alternati = ["A","B","C","D","E"] | |
text = ""; | |
text += $('p#assessment-a11y-title').outerText+"\n"; | |
try{ | |
let detail = $(".sa-assessment-quiz__title-detail").outerText | |
text += "'"+ detail +"'\n" | |
}catch(e){} | |
document.querySelector('div.sa-assessment-quiz__response').querySelectorAll('li').forEach(function(li, index) { | |
text += (alternati[index]+" _ "+(li.textContent.replace("\n","").trim()))+"\n"; | |
}); | |
console.log(text) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment