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