diff --git a/index.html b/index.html index dd2f701..626d883 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,5 @@ - - @@ -171,12 +169,6 @@ return document.querySelector(s); }; - function s2d(s) { - var d = document.createElement('div'); - d.innerHTML = s; - return d.firstChild; - } - var Clock = (function() { var clock = $('#js-clock'); @@ -199,11 +191,13 @@ var searchHelp = $('#js-help'); config.commands.forEach(function(command) { - head.appendChild(s2d( + head.insertAdjacentHTML( + 'beforeend', '' - )); + ); - searchHelp.appendChild(s2d( + searchHelp.insertAdjacentHTML( + 'beforeend', '
  • ' + '' + command.key + config.searchDelimiter + ' ' + @@ -212,7 +206,7 @@ command.name + '' + '
  • ' - )); + ); }); document.addEventListener('keydown', function(event) {