diff options
author | Noah Loomans <noahloomans@gmail.com> | 2016-12-02 19:37:05 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2016-12-02 19:37:05 +0100 |
commit | 06a2785316133360202984f29648dd98bef1e09e (patch) | |
tree | 0a6d9181110a720f2a48542ee3a6347308fd5291 /public/javascripts/main.js | |
parent | 0cb55c1877c027bc6197a02f4758820cae36cae0 (diff) |
added sinterklaas easer egg
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r-- | public/javascripts/main.js | 4 |
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() |