From 90c3cd5e03a1d897ede1adaa64c3fedd2749fcaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Mon, 1 Oct 2018 17:53:23 -0500 Subject: [PATCH] Removed Zepto from Overview --- app/components/client/ecosystem-scripts.js | 16 +++++++++++----- app/components/ecosystem/submodule-chainquery.js | 4 ++-- app/components/ecosystem/submodule-lighthouse.js | 4 ++-- app/components/ecosystem/submodule-reflector.js | 4 ++-- app/components/ecosystem/submodule-wallet.js | 6 +++--- app/dist/scripts/api.js | 2 -- 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/app/components/client/ecosystem-scripts.js b/app/components/client/ecosystem-scripts.js index a5f91b3..02a195c 100644 --- a/app/components/client/ecosystem-scripts.js +++ b/app/components/client/ecosystem-scripts.js @@ -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(); - const data = event.currentTarget.dataset; + const data = event.target.dataset; switch(data.action) { case "open": @@ -197,14 +199,18 @@ for (const module of mainModules) { if ( module[Object.keys(module)] === "true" && 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) { if ( subModule[Object.keys(subModule)] === "true" && 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(); + } } diff --git a/app/components/ecosystem/submodule-chainquery.js b/app/components/ecosystem/submodule-chainquery.js index 8f97559..724b06f 100644 --- a/app/components/ecosystem/submodule-chainquery.js +++ b/app/components/ecosystem/submodule-chainquery.js @@ -12,10 +12,10 @@ module.exports = exports = () => `

Overview

The model of Chainquery at its foundation consists of the fundamental data types found in the blockchain. This information is then expounded on with additional columns and tables that make querying the data much easier.

- +

Connection to...

- +

Source