aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/autocomplete.js
blob: 7a56e16c8058cbfc673a61fb823601cc328f887c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const autocomplete = {}
const self = autocomplete

self._nodes = {
  input: document.querySelector('input[type="search"]'),
  autocomplete: document.querySelector('.autocomplete')
}

self._textUpdate = function () {
  self._nodes.autocomplete
}

self._nodes.input.addEventListener('input', self.hide)

module.exports = autocomplete