Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
406 B
16 lines
406 B
1 year ago
|
'use strict';
|
||
|
|
||
|
const spinners = Object.assign({}, require('./spinners.json')); // eslint-disable-line import/extensions
|
||
|
|
||
|
const spinnersList = Object.keys(spinners);
|
||
|
|
||
|
Object.defineProperty(spinners, 'random', {
|
||
|
get() {
|
||
|
const randomIndex = Math.floor(Math.random() * spinnersList.length);
|
||
|
const spinnerName = spinnersList[randomIndex];
|
||
|
return spinners[spinnerName];
|
||
|
}
|
||
|
});
|
||
|
|
||
|
module.exports = spinners;
|