My CSS sets the body to a blue color, but my JavaScript changes the body color every second. It was working fine until I added a global CSS file. Unfortunately, I can't remove this CSS file because it contains many important rules that I need.
I'm looking for a way to keep all the CSS rules from the global stylesheet, while still allowing my JavaScript script to change the background color of the body without interference.
Here's a screenshot to show that the body background color is changing with the script, even though it may not be visible:
If anyone could provide a solution to include the external global CSS file and still allow my script to dynamically change the background color, it would be greatly appreciated.
P.S.: I'm new to coding and still learning!
EDIT:
Here's the code I'm currently using: http://fiddle.jshell.net/dfywom6a/
Please help!