mirror of https://github.com/onweru/compose.git

weru
06.09.2020 45ccbd5cd2c76341a002268217c36d593d393e3f
update helpers
2 files modified
4 ■■■■ changed files
assets/js/index.js 2 ●●● patch | view | raw | blame | history
assets/js/search.js 2 ●●● patch | view | raw | blame | history
assets/js/index.js
@@ -105,7 +105,7 @@
        });
        const linkPositions = pageIds.map(function(id){
          const heading = elem(id);
          const heading = document.getElementById(id.replace('#',''));
          const position = heading.offsetTop;
          return position;
        });
assets/js/search.js
@@ -61,7 +61,7 @@
      resultsFragment.appendChild(item);
    });
  } else {
    showResults.innerHTML = (query.length > 1) ? `<span class="search_result">${noMatchesFound}</span>` : `<h3><label for="find" class="search_result">${typeToSearch}</label></h3>`;
    showResults.innerHTML = (query.length > 1) ? `<span class="search_result">${noMatchesFound}</span>` : `<label for="find" class="search_result">${typeToSearch}</label>`;
  }
  showResults.appendChild(resultsFragment);
}