Skip to content

Instantly share code, notes, and snippets.

View global-game.js
This file has been truncated, but you can view the full file.
function restoreFocus() {
$(document).find("#volumeSlider").focus()
}
function generateId() {
var e = "",
t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var n = 0; n < 16; n++) e += t.charAt(Math.floor(Math.random() * t.length));
return e
View essential-javascript-links.md