mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
Refactored to have more files, but less long files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user