const html = require('choo/html'); module.exports = function(placeholder, action, submit) { return html`
`; function inputChanged() { const resetInput = document.getElementById('password-input'); const resetBtn = document.getElementById('password-btn'); if (resetInput.value.length > 0) { resetBtn.classList.remove('inputBtn--hidden'); resetInput.classList.remove('input--noBtn'); } else { resetBtn.classList.add('inputBtn--hidden'); resetInput.classList.add('input--noBtn'); } } };