From 4e91209380b091caf83b06036c592cceacedeeda Mon Sep 17 00:00:00 2001 From: Vivek Teega Date: Mon, 22 Jun 2020 19:30:36 +0530 Subject: [PATCH] minor UI tweaks --- css/main.scss | 1 + index.html | 108 ++++++++++++++++++++++++++------------------------ 2 files changed, 58 insertions(+), 51 deletions(-) diff --git a/css/main.scss b/css/main.scss index e153d5e..335aae9 100644 --- a/css/main.scss +++ b/css/main.scss @@ -564,6 +564,7 @@ p{ border: solid 1px rgba(var(--text), 0.2); } } + .address, .token, .hash, .contract, .block-height{ cursor: pointer; color: var(--primary-color); diff --git a/index.html b/index.html index 3a3b7b7..2dc246d 100644 --- a/index.html +++ b/index.html @@ -110,7 +110,7 @@

${topToken}

-

total transactions

+

Latest transactions

${totalTransactions}

@@ -166,7 +166,7 @@
${size}
Reward

${reward}

-
Hash
+
Transaction ID

${hash}

Difficulty

${difficulty}

@@ -233,7 +233,7 @@
${type}

${name}

-
Hash
+
Transaction ID

${hash}

@@ -425,14 +425,7 @@

${token}

` contractInfo.innerHTML = ` -
Hash
-
-

${hash}

- - Copy - - -
+
Sender

${sender}

receiver
@@ -440,7 +433,15 @@
amount

${amount} ${token}

Contract name
-

${contractName}

`; +

${contractName}

+
Transaction ID
+
+
${hash}
+ + Copy + + +
`; card.append(contractInfo) return card; }, @@ -465,21 +466,22 @@

${token}

-
Hash
-
-

${hash}

- - Copy - - -
+
Sender

${sender}

receiver

${receiver}

amount
-

${amount} ${token}

-
`; +

${amount} ${token}

+
Transaction ID
+
+
${hash}
+ + Copy + + +
+
`; return card; }, tokenCreationCard(obj) { @@ -505,21 +507,22 @@

${token}

-
Hash
-
-

${hash}

- - Copy - - -
+
Incorporation address

${incAddress}

token name

${token}

supply
-

${supply}

-
`; +

${supply}

+
Transaction ID
+
+
${hash}
+ + Copy + + +
+ `; return card; }, contractTriggerCard(obj) { @@ -542,15 +545,9 @@
smart contract

trigger

-
Hash
+
-
-

${hash}

- - Copy - - -
+
Contract name

${contractName}

contract address
@@ -558,7 +555,15 @@
Winning Choice

${winningChoice}

committee address
-

${committeeAddress}

+

${committeeAddress}

+
Transaction ID
+
+
${hash}
+ + Copy + + +
`; return card; }, @@ -582,14 +587,7 @@

${token}

-
Hash
-
-

${hash}

- - Copy - - -
+
Contract name

${contractName}

Contract address
@@ -602,6 +600,14 @@

${expiration}

participation amount

${participationFees} ${token}

+
Transaction ID
+
+
${hash}
+ + Copy + + +
`; return card; }, @@ -1657,8 +1663,8 @@ var contractSplit = splitContractNameAddress(text, text.lastIndexOf('-')); render("contract_page", contract = { - name: contractSplit.name, - address: contractSplit.address + name: contractSplit, + address: contractSplit[1] }) appState = { page: "contract_page",