From 3a37b81d363fc20788209d4fc667cd066ed4801f 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: Wed, 3 Oct 2018 14:14:38 -0500 Subject: [PATCH 1/2] Closes #158 --- app/components/client/tour-scripts.js | 6 +++++- app/components/footer.js | 4 ++-- app/components/playground.js | 4 ++-- app/dist/scripts/sockets.js | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/components/client/tour-scripts.js b/app/components/client/tour-scripts.js index f1cef1f..0f775dc 100644 --- a/app/components/client/tour-scripts.js +++ b/app/components/client/tour-scripts.js @@ -192,7 +192,7 @@ curl --header "Content-Type: application/json" "example": exampleNumber })); - document.getElementById("fetch-claim-uri").value = data; + document.getElementById("fetch-claim-uri").value = data; // TODO: ... document.getElementById("tour-results").innerHTML = `

@@ -234,6 +234,10 @@ const handleExamples = debounce(event => {
   switch(data.action) {
     case "choose claim":
       fetchMetadata(exampleNumber, data.claimId);
+
+      if (document.querySelector(".tour__navigation__example:nth-child(3)").classList.contains("active"))
+        document.getElementById("fetch-claim-uri").value = event.alt + "#" + event.dataset.claimId;
+
       break;
 
     case "execute claim":
diff --git a/app/components/footer.js b/app/components/footer.js
index d221e62..27404b8 100644
--- a/app/components/footer.js
+++ b/app/components/footer.js
@@ -18,7 +18,7 @@ const config = local("/config");
 
 //  E X P O R T
 
-export default function (state) {
+export default state => {
   return html`