hello i am just wondering how would i do a faucet list with 11 coins in json
i keep rethinking this over would i need to create 1 lot off files like for the header and footer with its own title video description etc
and create other 1 lot off files for the faucet website and rewards and minutes and owners name etc?
Well a JSON object for the structure presented in the picture might look something like…
[{"name": "Bitcoin",
"shorthand": "BTC",
"value": 9284.97,
"cap": 156...thatbignumberimnottyping,
"change": 13.18,
"faucets": [
{"name":"gr8 Faucet",
"currency": "BTC",
"payment": "Faucethub",
"reward": "~3000",
"info": "<p> This is some stuff that probably pops up in a window to tell you about the thing.</p>",
"link": "http://gr8faucet.net"},
//Next Faucet goes here...
]
},
{"name": "ETHcoin",
"shorthand": "ETH",
"value": 56.97,
"cap": 90,
"change": 63.12,
"faucets": [
{"name":"EL Faucet",
"currency": "ETH",
"payment": "Faucetplace.EU",
"reward": ">9000",
"info": "<p> This place is really great. I think..</p>",
"link": "http://notarealplace.void"},
{"name":"gr8 Faucet",
"currency": "ETH",
"payment": "Faucethub",
"reward": "~3",
"info": "<p> This is some stuff that probably pops up in a window to tell you about the thing.</p>",
"link": "http://gr8faucet.net"}
]
}
]
I’m still not entirely sure what question you’re asking though.
The logic for getting values into well-formed mark-up can be a bit tricky. The more deeply nested the mark-up, the trickier it can be. Just need to think it through slowly and carefully and check to see it’s correct. i.e.
make sure there is tabular data to display
generate opening table tag
make sure there is a row to display
loop through rows
generate opening row tag
make sure there is a cell to display
generate opening cell tag
populate it with the value
generate closing cell tag - continue loop until end of row’s cell data
generate closing row tag - continue loop until end of table’s row data
generate closing table tag
It can be more complex than that, say if you want thead and tfoot, but that’s the idea