Changing CSS to Default Between Moves

Summa_Civis
16 Nov 2022, 19:15Hello,
I am using style tags to modify the look of each room I enter, but it appears that Quest doesn't reset the style to it's original style after leaving the room. I want to be able to revert to the original style between room movements, so that I can modify it with a different style tag each time. What would be the method used to restore the style to default?
Thanks!
Summa
mrangel
17 Nov 2022, 11:35How are you implementing your style? If you're just printing out <style>
blocks in a normal message, you can probably put JS.eval("$('#divOutput style').remove();")
in your roomenter
script (the one that runs whenever the player changes rooms) to remove the last style block.

Summa_Civis
18 Nov 2022, 01:21Thank you mrangel! I plugged in the code and performed some modifications to the game code and it did what I needed it to do. Now I am able to modify script tags for rooms as needed. This is absolutely helpful! Kudos!