From 1d93ce4b23c86e664d5020a87ff72edd7cb6c465 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Mon, 24 Mar 2014 21:49:51 +0100 Subject: [PATCH] Add support for Bitcoin Testnet --- index.html | 5 ++++- src/janin.currency.js | 3 ++- src/ninja.onload.js | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index eadfb58..43c00ba 100644 --- a/index.html +++ b/index.html @@ -6363,8 +6363,9 @@ janin.currencies = [ janin.currency.createCurrency ("Litecoin", 0x30, 0xb0, "6", "T" , "addr3"), janin.currency.createCurrency ("Marscoin", 0x32, 0xb2, "6", "T" , "addr8"), janin.currency.createCurrency ("Peercoin", 0x37, 0xb7, "7", "[LK]" , "addr4"), - janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9") + janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9"), + janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null) ]; janin.selectedCurrency = janin.currencies[1]; @@ -8990,6 +8991,8 @@ document.getElementById("donateqrcode").style.display = "none"; var donatelist = document.getElementById("donatelist"); var list = ""; for(i = 0; i < janin.currencies.length; i++) { + if(janin.currencies[i].donate == null) + continue; list += "" +"" +"
"+janin.currencies[i].name+"" diff --git a/src/janin.currency.js b/src/janin.currency.js index e10e192..206efcf 100644 --- a/src/janin.currency.js +++ b/src/janin.currency.js @@ -63,8 +63,9 @@ janin.currencies = [ janin.currency.createCurrency ("Litecoin", 0x30, 0xb0, "6", "T" , "addr3"), janin.currency.createCurrency ("Marscoin", 0x32, 0xb2, "6", "T" , "addr8"), janin.currency.createCurrency ("Peercoin", 0x37, 0xb7, "7", "[LK]" , "addr4"), - janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9") + janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9"), + janin.currency.createCurrency ("Testnet Bitcoin", 0x6f, 0xef, "9", "c", null) ]; janin.selectedCurrency = janin.currencies[1]; diff --git a/src/ninja.onload.js b/src/ninja.onload.js index 9d35c0a..bdf2d3c 100644 --- a/src/ninja.onload.js +++ b/src/ninja.onload.js @@ -29,6 +29,8 @@ document.getElementById("donateqrcode").style.display = "none"; var donatelist = document.getElementById("donatelist"); var list = ""; for(i = 0; i < janin.currencies.length; i++) { + if(janin.currencies[i].donate == null) + continue; list += "" +"" +"
"+janin.currencies[i].name+""