Refactored to have more files, but less long files

This commit is contained in:
Kasper Rynning-Tønnesen
2018-01-31 11:28:35 +01:00
parent 8d57fd4774
commit fd6db734f4
6 changed files with 1117 additions and 1118 deletions

View File

@@ -10,6 +10,15 @@ var Helper = {
return arr[Math.floor(Math.random() * arr.length)];
},
randomString: function(length){
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-_";
for(var i = 0; i < length; i++) {
text += possible.charAt(Math.floor(Math.random() * possible.length));
}
return text;
},
mobilecheck: function() {
var isMobile = false; //initiate as false
// device detection