const html = require('choo/html'); const version = require('../../../package.json').version; const assets = require('../../../common/assets'); const { browserName } = require('../../utils'); module.exports = function(state) { const browser = browserName(); const feedbackUrl = `https://qsurvey.mozilla.com/s3/txp-firefox-send?ver=${version}&browser=${browser}`; const footer = html``; // HACK // We only want to render this once because we // toggle the targets of the links with utils/openLinksInNewTab footer.isSameNode = function(target) { return target && target.nodeName && target.nodeName === 'FOOTER'; }; return footer; function showDropDown() { const menus = document.querySelectorAll('.footer__dropdown'); menus.forEach(element => { element.classList.remove('footer__noDisplay'); }); } function hideDropDown() { const menus = document.querySelectorAll('.footer__dropdown'); menus.forEach(element => { element.classList.add('footer__noDisplay'); }); } };