This commit is contained in:
Klemek
2022-02-17 14:15:34 +01:00
parent 5a2a2df3b1
commit 6704d772e2
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -32,6 +32,9 @@ const utils = {
},
shuffle: function (array) {
const output = [...array];
if (output.length < 2) {
return output;
}
for (let i = 0; i < array.length; i++) {
const i1 = this.randindex(array);
const i2 = this.randindex(array, i1);
@@ -62,6 +65,9 @@ let app = {
currentYear() {
return new Date().getFullYear();
},
urlLength() {
return window.location.toString().length;
},
},
methods: {
showApp() {