Add support for Vertcoin (Hello vertans !)
Order currency alphabeticaly (default to Bitcoin)
This commit is contained in:
parent
fe92289b24
commit
76adb5b4e7
3 changed files with 24 additions and 12 deletions
18
index.html
18
index.html
|
@ -6354,17 +6354,20 @@ janin.currency = {
|
|||
};
|
||||
|
||||
janin.currencies = [
|
||||
// name, networkVersion, privateKeyPrefix, WIF_Start, CWIF_Start, donate
|
||||
janin.currency.createCurrency ("Auroracoin", 0x17, 0x97, "6", "T" , "addr5"),
|
||||
janin.currency.createCurrency ("Bitcoin", 0x00, 0x80, "5", "[LK]" , "addr1"),
|
||||
janin.currency.createCurrency ("BBQcoin", 0x55, 0xd5, "6", "T" , "addr6"),
|
||||
janin.currency.createCurrency ("Catcoin", 0x15, 0x95, "[56]", "P" , "addr7"),
|
||||
janin.currency.createCurrency ("Dogecoin", 0x1e, 0x9e, "6", "T" , "addr2"),
|
||||
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 ("Auroracoin", 0x17, 0x97, "6", "T" , "addr5"),
|
||||
janin.currency.createCurrency ("BBQcoin", 0x55, 0xd5, "6", "T" , "addr6"),
|
||||
janin.currency.createCurrency ("Catcoin", 0x15, 0x95, "[56]", "P" , "addr7"),
|
||||
janin.currency.createCurrency ("Marscoin", 0x32, 0xb2, "6", "T" , "addr8"),
|
||||
janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9")
|
||||
|
||||
];
|
||||
|
||||
janin.selectedCurrency = janin.currencies[0];
|
||||
janin.selectedCurrency = janin.currencies[1];
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
|
@ -8976,7 +8979,10 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
|
|||
var select = document.getElementById("currency");
|
||||
var options = "";
|
||||
for(i = 0; i < janin.currencies.length; i++) {
|
||||
options += "<option value='"+i+"'>"+janin.currencies[i].name+"</option>";
|
||||
options += "<option value='"+i+"'";
|
||||
if(janin.currencies[i].name=="Bitcoin")
|
||||
options += " selected='selected'";
|
||||
options += ">"+janin.currencies[i].name+"</option>";
|
||||
}
|
||||
select.innerHTML = options;
|
||||
// populate donate list
|
||||
|
|
|
@ -54,14 +54,17 @@ janin.currency = {
|
|||
};
|
||||
|
||||
janin.currencies = [
|
||||
// name, networkVersion, privateKeyPrefix, WIF_Start, CWIF_Start, donate
|
||||
janin.currency.createCurrency ("Auroracoin", 0x17, 0x97, "6", "T" , "addr5"),
|
||||
janin.currency.createCurrency ("Bitcoin", 0x00, 0x80, "5", "[LK]" , "addr1"),
|
||||
janin.currency.createCurrency ("BBQcoin", 0x55, 0xd5, "6", "T" , "addr6"),
|
||||
janin.currency.createCurrency ("Catcoin", 0x15, 0x95, "[56]", "P" , "addr7"),
|
||||
janin.currency.createCurrency ("Dogecoin", 0x1e, 0x9e, "6", "T" , "addr2"),
|
||||
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 ("Auroracoin", 0x17, 0x97, "6", "T" , "addr5"),
|
||||
janin.currency.createCurrency ("BBQcoin", 0x55, 0xd5, "6", "T" , "addr6"),
|
||||
janin.currency.createCurrency ("Catcoin", 0x15, 0x95, "[56]", "P" , "addr7"),
|
||||
janin.currency.createCurrency ("Marscoin", 0x32, 0xb2, "6", "T" , "addr8"),
|
||||
janin.currency.createCurrency ("Vertcoin", 0x47, 0xc7, "7", "W" , "addr9")
|
||||
|
||||
];
|
||||
|
||||
janin.selectedCurrency = janin.currencies[0];
|
||||
janin.selectedCurrency = janin.currencies[1];
|
||||
|
|
|
@ -18,7 +18,10 @@ if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["
|
|||
var select = document.getElementById("currency");
|
||||
var options = "";
|
||||
for(i = 0; i < janin.currencies.length; i++) {
|
||||
options += "<option value='"+i+"'>"+janin.currencies[i].name+"</option>";
|
||||
options += "<option value='"+i+"'";
|
||||
if(janin.currencies[i].name=="Bitcoin")
|
||||
options += " selected='selected'";
|
||||
options += ">"+janin.currencies[i].name+"</option>";
|
||||
}
|
||||
select.innerHTML = options;
|
||||
// populate donate list
|
||||
|
|
Loading…
Add table
Reference in a new issue