|
|
@ -84,7 +84,7 @@ const TimeTrack = { |
|
|
|
vue.checkTimeBoxes(); |
|
|
|
vue.checkTimeBoxes(); |
|
|
|
}, 10000); |
|
|
|
}, 10000); |
|
|
|
|
|
|
|
|
|
|
|
if (this.fun) { |
|
|
|
if (this.fun && localStorage.getItem('noJokes') === null) { |
|
|
|
let jokeService = new JokeService(); |
|
|
|
let jokeService = new JokeService(); |
|
|
|
setInterval(() => { |
|
|
|
setInterval(() => { |
|
|
|
jokeService.tell(); |
|
|
|
jokeService.tell(); |
|
|
@ -674,3 +674,7 @@ function getRandomID() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const TimeTrackApp = Vue.createApp(TimeTrack).mount('#root'); |
|
|
|
const TimeTrackApp = Vue.createApp(TimeTrack).mount('#root'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function iHateToHaveFun() { |
|
|
|
|
|
|
|
localStorage.setItem('noJokes', 1); |
|
|
|
|
|
|
|
} |