Make HTML more compliant, add alt to imgs. Also fix one image url

sql-rework
Tomasz Golinski 2020-02-29 13:40:32 +01:00
rodzic 315590215f
commit 75850d6441
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -293,17 +293,17 @@ int main(int argc, char** argv) {
std::cout << "<body>\n";
std::cout << "<h1>Geocaching stats for user profiles: <br>\n";
if (!ocpl_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/b/b7/Oc-pl.png\"> <a href=\"" << ocpl_user_profile << "\">" << ocpl_user << "</a><br>\n";
std::cout << "<img alt=\"OCpl\" src=\"https://wiki.opencaching.eu/images/b/b7/Oc-pl.png\"> <a href=\"" << ocpl_user_profile << "\">" << ocpl_user << "</a><br>\n";
if (!ocde_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/c/c1/Oc-de.png\"> <a href=\"" << ocde_user_profile << "\">" << ocde_user << "</a><br>\n";
std::cout << "<img alt=\"OCde\" src=\"https://wiki.opencaching.eu/images/c/c1/Oc-de.png\"> <a href=\"" << ocde_user_profile << "\">" << ocde_user << "</a><br>\n";
if (!ocus_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/f/fb/Oc-us.png\"> <a href=\"" << ocus_user_profile << "\">" << ocus_user << "</a><br>\n";
std::cout << "<img alt=\"OCna\" src=\"https://wiki.opencaching.eu/images/f/fb/Oc-us.png\"> <a href=\"" << ocus_user_profile << "\">" << ocus_user << "</a><br>\n";
if (!ocnl_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/f/fb/Oc-us.png\"> <a href=\"" << ocnl_user_profile << "\">" << ocnl_user << "</a><br>\n";
std::cout << "<img alt=\"OCnl\" src=\"https://wiki.opencaching.eu/images/4/4b/Oc-nl.png\"> <a href=\"" << ocnl_user_profile << "\">" << ocnl_user << "</a><br>\n";
if (!ocro_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/4/4f/Oc-ro.png\"> <a href=\"" << ocro_user_profile << "\">" << ocro_user << "</a><br>\n";
std::cout << "<img alt=\"OCro\" src=\"https://wiki.opencaching.eu/images/4/4f/Oc-ro.png\"> <a href=\"" << ocro_user_profile << "\">" << ocro_user << "</a><br>\n";
if (!ocuk_user.empty())
std::cout << "<img src=\"https://wiki.opencaching.eu/images/5/58/Oc-org-uk.png\"> <a href=\"" << ocuk_user_profile << "\">" << ocuk_user << "</a><br>\n";
std::cout << "<img alt=\"OCuk\" src=\"https://wiki.opencaching.eu/images/5/58/Oc-org-uk.png\"> <a href=\"" << ocuk_user_profile << "\">" << ocuk_user << "</a><br>\n";
if (time_filter) {
std::cout << "for time range " << std::put_time(std::localtime(&start_time), "%x") << "&mdash;" << std::put_time(std::localtime(&end_time), "%x");