Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nbarkhina's full-sized avatar

Neil Barkhina nbarkhina

View GitHub Profile
allButtons = [];
gamepadFound = false;
function initGamePad(e) {
var gp = e.gamepad;
if (gp.buttons.length > 0 && !gamepadFound){
for(let i=0;i<gp.buttons.length;i++){
gamepadFound = true;
allButtons.push(
requirejs.config({
paths: {
// "angular": "/node_modules/angular/angular"
},
urlArgs: function (id, url) {
var rando = Math.floor(Math.random() * Math.floor(100000));
var args = '';
if (url.indexOf('index') !== -1) {
args = '?v=' + rando;
}