Removed Zepto from Overview

This commit is contained in:
ポール ウェッブ 2018-10-01 17:53:23 -05:00
parent 9ec7c62057
commit 90c3cd5e03
6 changed files with 20 additions and 16 deletions

View file

@ -1,10 +1,12 @@
/* global $ */ "use strict"; "use strict";
$("[data-action]").on("click", event => { document.addEventListener("click", event => {
if (!event.target.dataset.action) return;
event.preventDefault(); event.preventDefault();
const data = event.currentTarget.dataset; const data = event.target.dataset;
switch(data.action) { switch(data.action) {
case "open": case "open":
@ -197,14 +199,18 @@ for (const module of mainModules) {
if ( if (
module[Object.keys(module)] === "true" && module[Object.keys(module)] === "true" &&
document.querySelector(`.ecosystem__module.${Object.keys(module)} h2 span`) document.querySelector(`.ecosystem__module.${Object.keys(module)} h2 span`)
) document.querySelector(`.ecosystem__module.${Object.keys(module)} h2 span`).click(); ) {
document.querySelector(`.ecosystem__module.${Object.keys(module)} h2 span`).click();
}
} }
for (const subModule of subModules) { for (const subModule of subModules) {
if ( if (
subModule[Object.keys(subModule)] === "true" && subModule[Object.keys(subModule)] === "true" &&
document.querySelector(`.ecosystem__submodule.${Object.keys(subModule)} h3`) document.querySelector(`.ecosystem__submodule.${Object.keys(subModule)} h3`)
) document.querySelector(`.ecosystem__submodule.${Object.keys(subModule)} h3`).click(); ) {
document.querySelector(`.ecosystem__submodule.${Object.keys(subModule)} h3`).click();
}
} }

View file

@ -36,8 +36,6 @@ document.querySelector(".api__toc__search__clear").addEventListener("click", ()
// H E L P E R // H E L P E R
// Reinitialize search functionality
function reinitJets() { function reinitJets() {
jets = new Jets({ jets = new Jets({
contentTag: "#toc", contentTag: "#toc",