123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- function translationTable(obj) {
- return `<table border="1">
- <tr><th> Translations </th></tr>
- <tr><td> fa: ${obj.fa} </td></tr>
- <tr><td> hr: ${obj.hr} </td></tr>
- <tr><td> nl: ${obj.nl} </td></tr>
- <tr><td> pt: ${obj.pt} </td></tr>
- <tr><td> br: ${obj.br} </td></tr>
- <tr><td> it: ${obj.it} </td></tr>
- <tr><td> ja: ${obj.ja} </td></tr>
- <tr><td> fr: ${obj.fr} </td></tr>
- <tr><td> es: ${obj.es} </td></tr>
- <tr><td> de: ${obj.de} </td></tr>
- <table>`;
- }
- function basicsTable(obj) {
- return `<table border="1">
- <tr>
- <th>cioc</th>
- <th>flag</th>
- <th>numericCode</th>
- <th>nativeName</th>
- <th>gini</th>
- <th>area</th>
- <th>demonym</th>
- <th>population</th>
- <th>subregion</th>
- <th>region</th>
- <th>capital</th>
- <th>alpha3Code</th>
- <th>alpha2Code</th>
- </tr>
- <tr>
- <td>${obj.cioc}</td>
- <td>${obj.flag}</td>
- <td>${obj.numericCode}</td>
- <td>${obj.nativeName}</td>
- <td>${obj.gini}</td>
- <td>${obj.area}</td>
- <td>${obj.demonym}</td>
- <td>${obj.population}</td>
- <td>${obj.subregion}</td>
- <td>${obj.region}</td>
- <td>${obj.capital}</td>
- <td>${obj.alpha3Code}</td>
- <td>${obj.alpha2Code}</td>
- </tr>
- <table>`;
- }
- function tableTHTranslations(th) {
- return `<table border="1"><tr>${th}</tr>`;
- }
- function tableTH(th) {
- return `<table border="1"><tr>${th}</tr>`;
- }
- function tableTD(td) {
- return `<tr>${td}</tr></table>`;
- }
|