I've noticed that my Red vs. Blue Sandbox controller snippet here has stopped working (at least in Chrome).
This is incredibly strange because the JSFiddle that is exactly identical is working fine. More importantly, if you go to the edit mode for the meta question, the snippet works fine when you click Run code snippet in the render preview, or if you click edit the above snippet → Run.
The error that the browser gives is
Uncaught SyntaxError: Unexpected token ILLEGAL
this makes perfect sense when you look at the JavaScript causing it:
var battle, redTeam, blueTeam, interval
1385d3a1-d76e-4049-926f-d58c6ff78ba5('#showCircles')
loadEntries()
})
I have no idea where the 1385d3a1-d76e-4049-926f-d58c6ff78ba5
came from. The code should look something like this:
var battle, redTeam, blueTeam, interval
$(document).ready(function() {
ctx = $('#canvas')[0].getContext('2d')
moveCounter = $('#moveCounter')
showNames = $('#showNames')
showCircles = $('#showCircles')
loadEntries()
})
The edit page has the correct code but the real question doesn't.
I'm guessing it has something to do with jQuery or MathJax because of the $
involved.
Interestingly, the official question snippet works fine. The code there is minified though so this may not be that surprising.
Any clue what's going on?
(Not sure but a similar error may be happening here.)