aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/js/arching-kaos-tools.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js
index 1b28c5a..7a01c3a 100644
--- a/src/js/arching-kaos-tools.js
+++ b/src/js/arching-kaos-tools.js
@@ -9,10 +9,12 @@ function getArrayLength(array){
function renderStellarAddressPlaceholder(stellarAddress){
var divs = document.querySelector('#'+stellarAddress);
if ( divs === null ){
- var d = document.createElement('div');
- d.id = '#'+stellarAddress;
- d.innerText = stellarAddress;
- document.querySelector('.stellar-network').appendChild(d);
+ var details = document.createElement('details');
+ details.id = '#'+stellarAddress;
+ var summary = document.createElement('summary');
+ summary.innerText = stellarAddress;
+ details.appendChild(summary);
+ document.querySelector('.stellar-network').appendChild(details);
}
divs = document.querySelector('#'+stellarAddress);
return divs;