Any way to hide Javascript/source code?


I’ve created a puzzle for an interactive book I’m writing. To solve the puzzle you have to click objects in the correct order, and you’re then taken to an animated scene before being redirected to a new page. How can I hide the javascript/link to javascript in “View Source” so no mischievous players take a peek and ruin it for others?

(Jonathan Deutsch) #2

There’s no way to entirely hide it, but you could run it through a minifier first, which would likely make it harder for casual “view sourcers” to ruin it since minified code is typically much harder to read.

Hype uses Google Closure Compiler, but there are plenty of other good ones out there.


Thanks, will do!