aboutsummaryrefslogtreecommitdiff
path: root/src/js/arching-kaos-stellar-network.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-11 23:37:28 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-11 23:37:28 +0200
commit22bdc082a3fb26144f861732a971e091718a215f (patch)
treef6724e9983441c1d59068f0dba8d40e9eb3b7064 /src/js/arching-kaos-stellar-network.js
parent075ef0c6213585094266cceaaac6a281afa1099e (diff)
downloadarching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.tar.gz
arching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.tar.bz2
arching-kaos-web-ui-22bdc082a3fb26144f861732a971e091718a215f.zip
Refactoring using ak-generator
Diffstat (limited to 'src/js/arching-kaos-stellar-network.js')
-rw-r--r--src/js/arching-kaos-stellar-network.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/js/arching-kaos-stellar-network.js b/src/js/arching-kaos-stellar-network.js
index bcc0f5f..b05770b 100644
--- a/src/js/arching-kaos-stellar-network.js
+++ b/src/js/arching-kaos-stellar-network.js
@@ -25,13 +25,14 @@ function getNumberOfTrustlinesAndRenderThem(json){
function renderStellarAddress(stellarAddress){
if (!document.querySelector('.stellar-network').querySelector('#'+stellarAddress)){
var stats = document.querySelector('.stellar-network');
- var d = document.createElement("details");
- d.className = "stellar-address";
- var s = document.createElement("summary");
- s.innerText = stellarAddress;
- d.id = stellarAddress;
- d.appendChild(s);
- stats.appendChild(d);
+ var d = {
+ element:"details",
+ className:"stellar-address",
+ innerHTML:[
+ {element:"summary", innerText:stellarAddress, id:stellarAddress}
+ ]
+ };
+ makeElement(d, stats);
}
}