aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index 016a8ee..ce6bcbf 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -7,6 +7,7 @@ const fuzzy = require('fuzzy')
const getURLOfUser = require('./getURLOfUser')
const removeDiacritics = require('diacritics').remove
const getWeek = require('./getWeek')
+const easterEggs = require('./easterEggs')
const searchNode = document.querySelector('#search')
const inputNode = searchNode.querySelector('input[type="text"]')
@@ -209,6 +210,7 @@ const currentFav = getCurrentFav()
if (currentFav) {
selectedUser = currentFav
+ // console.log('not updating value')
inputNode.value = selectedUser.value
scheduleIframe.src = getURLOfUser(offset, selectedUser.type, selectedUser.index + 1)
updateFavNode()
@@ -234,3 +236,5 @@ if (currentFav) {
ga('send', { hitType: 'event', eventCategory: 'search fav', eventAction, eventLabel })
})
}
+
+easterEggs.sinterklaas()