Resolved merge conflict
This commit is contained in:
commit
743826e56b
6 changed files with 241 additions and 143 deletions
|
@ -11,6 +11,25 @@ export default {
|
|||
return muscles;
|
||||
},
|
||||
|
||||
getKittens(count) {
|
||||
let kittens = [];
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
let width = this.getRandomInt(300, 600);
|
||||
let height = this.getRandomInt(300, 600);
|
||||
kittens.push(`https://placekitten.com/${width}/${height}`);
|
||||
}
|
||||
|
||||
return kittens;
|
||||
},
|
||||
|
||||
getRandomInt(min, max) {
|
||||
min = Math.ceil(min);
|
||||
max = Math.floor(max);
|
||||
max++; // make it inclusive
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
},
|
||||
|
||||
getClientLocale() {
|
||||
if (navigator.language) {
|
||||
return navigator.languages[0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue