()
| 9 | loadFile(`Fetching local information from the SCiPNET database`, `Decoding...`) |
| 10 | checkLinkLoaded() |
| 11 | function checkLinkLoaded() { |
| 12 | if (inBar == false) { |
| 13 | $.getJSON(`https://en.wikipedia.org/api/rest_v1/page/summary/${country.replace(/ /g, '_')}`, function(recieveData) { |
| 14 | window.countryDescription = recieveData.extract_html || "N/A" |
| 15 | cmdShow() |
| 16 | noscroll = true |
| 17 | appendNormal(`<blockquote class="location"> |
| 18 | <h1 class="locationHead">SCiPNET GEOLOCATION DATABASE</h1> |
| 19 | <div style="float:left;max-width:305px"> |
| 20 | <locationtag>Your Current Location:</locationtag> |
| 21 | <locationdata style="font-size: 25px;margin: 5px 5px 15px 0px;line-height: 1;display: flex;align-items: center;"">${countryOfficalName} (${countryCode})<img src="/src/images/UN.svg" class="isUN"></img></locationdata> |
| 22 | <locationtag>Located City/Region:</locationtag> |
| 23 | <locationdata>${countryRegion}</locationdata> |
| 24 | <locationtag>Possible Located City (Approximation):</locationtag> |
| 25 | <locationdata>${countryCity}</locationdata> |
| 26 | <locationtag>Timezone:</locationtag> |
| 27 | <locationdata>${countryTimezone} (${countryUtc})</locationdata> |
| 28 | <locationtag>Capital/Major Area:</locationtag> |
| 29 | <locationdata>${countryCapital}</locationdata> |
| 30 | <locationtag>Continent, Sub Region:</locationtag> |
| 31 | <locationdata>${countryCon}, ${countrySubRe}</locationdata> |
| 32 | <locationtag>Border:</locationtag> |
| 33 | <locationdata>${countryBorder}</locationdata> |
| 34 | <locationtag>Country Status:</locationtag> |
| 35 | <locationdata>${countryStatus}</locationdata> |
| 36 | <img src="https://cache.ip-api.com/${countrylong},${countrylat},10" width="250px" onerror="this.style.display='none'" class="countryMap" style="margin: 20px 0 70px 0;height:268px"> |
| 37 | <img src="/src/images/scp.svg" width="50px" class="smallSCPLogo"> |
| 38 | </div> |
| 39 | <div class="locationInfo"> |
| 40 | <img src="${countryFlag}" class="flag" width="200px" onerror="this.style.display='none'"> |
| 41 | <hr> |
| 42 | <locationtag>Common Name:</locationtag> |
| 43 | <locationdata>${countryCommonName}</locationdata> |
| 44 | <locationtag>Population:</locationtag> |
| 45 | <locationdata>${countryPopulation}</locationdata> |
| 46 | <locationtag>Area (km²):</locationtag> |
| 47 | <locationdata>${countryArea}</locationdata> |
| 48 | <locationtag>Currency:</locationtag> |
| 49 | <locationdata>${countryCurrency}</locationdata> |
| 50 | <locationtag>IDD Country Code:</locationtag> |
| 51 | <locationdata>${countryCallingCode}</locationdata> |
| 52 | <locationtag>Popular Language(s):</locationtag> |
| 53 | <locationdata>${countryLanguages.toUpperCase()}</locationdata> |
| 54 | <locationtag>Demonym:</locationtag> |
| 55 | <locationdata>${countryDemonym}</locationdata> |
| 56 | <locationtag>Description:</locationtag> |
| 57 | <locationdata class="description" style="font-size: 10px;">${countryDescription}</locationdata> |
| 58 | </div> |
| 59 | </blockquote>`) |
| 60 | if (countryisUN) { |
| 61 | $d.find(".isUN").show() |
| 62 | } else { |
| 63 | $d.find(".isUN").hide() |
| 64 | } |
| 65 | }) |
| 66 | return; |
| 67 | } |
| 68 | window.setTimeout(checkLinkLoaded, 100) |
no test coverage detected