css question

Submitted by cathlete on February 26, 2025
Hello there. My knowledge is very, very limited here. But I was hoping to be able to leverage whammies so as to affect an svg. Does anyone know what css I could use to make an incorrect answer on a whammy quiz make something appear/disappear on an svg?

Thanks!

5 Comments
+2
Level 70
Feb 26, 2025
Maybe you could create a class and put it in the description with an if statement for the properties to be applied, but I don't know if you can use them in quizzes
+3
Level 68
Feb 26, 2025
If anyone can figure this out, PLEASE let me know! I have been puzzling at this for awhile
+4
Level 83
Feb 26, 2025
Mmm... there are a lot of issue with trying to make things happen from the whammies. As far as I can tell, the whammies are controlled via their id with a #whammy tag in a level of coding above what we have access to. You'd have to do complex things with code, and then I'm not sure it's even possible. It'd be easier to have ecmascript just write something in the textbox to give you a whammy.
+2
Level 78
Feb 26, 2025
I had a feeling it seemed a bit out of our reach. I have no idea what ECMAScript is so I’ll have to look into that. Thanks!
+3
Level 83
Feb 26, 2025
Ecmascript is just Java script in an accessible container for SVG and html.