Add some semantic html5 tags

sql-rework
Tomasz Golinski 2020-03-19 18:31:55 +01:00
rodzic 62129dca09
commit 1ad7ab0399
2 zmienionych plików z 21 dodań i 13 usunięć

23
geo.css
Wyświetl plik

@ -9,17 +9,24 @@ body {
font-size: 14px;
}
h1 {
header, h1, h2 {
text-align: center;
font-family: 'Averia Serif Libre', serif;
}
header {
font-size:26px;
font-weight: normal;
}
h1 {
font-size: 34px;
font-weight: bold;
color: #BBB;
margin-bottom: 0;
}
h2 {
text-align: center;
font-family: 'Special Elite', serif;
font-size: 26px;
font-weight: bold;
color: #48B;
@ -60,17 +67,17 @@ table,
display: block;
}
#footer {
footer {
text-align: center;
font-weight: normal;
color: #999;
font-size: 10px;
}
#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active {
footer a:link,
footer a:visited,
footer a:hover,
footer a:active {
text-decoration: none;
font-weight: bold;
color: #666;

Wyświetl plik

@ -291,7 +291,8 @@ int main(int argc, char** argv) {
std::cout << " <title>Geocaching stats</title>\n";
std::cout << "</head>\n";
std::cout << "<body>\n";
std::cout << "<h1>Geocaching stats for user profiles: <br>\n";
std::cout << "<header>\n";
std::cout << "<h1>Geocaching stats for user profiles:</h1>\n";
if (!ocpl_user.empty())
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())
@ -309,7 +310,7 @@ int main(int argc, char** argv) {
std::cout << "for time range " << std::put_time(std::localtime(&start_time), "%x") << "&mdash;" << std::put_time(std::localtime(&end_time), "%x");
}
std::cout << "</h1>\n";
std::cout << "</header>\n";
if (!heat_file.empty()) {
const Map* chosen_map;
@ -328,7 +329,7 @@ int main(int argc, char** argv) {
hmap.generate_path(heat_file, sorted_fcaches);
} else
hmap.generate(heat_file, fcc, heat_stamp_size, (heat_exp == 1 ? "exp" : "soft"));
std::cout << "<img class=\"heatmap\" src=\"" << heat_file << "\" alt=\"heat map\">\n";
std::cout << "<figure>\n<img class=\"heatmap\" src=\"" << heat_file << "\" alt=\"heat map\">\n</figure>\n";
}
if (!get_not_found) {
@ -661,7 +662,7 @@ int main(int argc, char** argv) {
std::cout << "</div>\n";
}
std::cout << "<div id=\"footer\">\n";
std::cout << "<footer>\n";
std::cout << "Stats generated by <a href=\"https://gitlab.com/tomaszg/geostat\">GeoStat</a>.<br>\n";
std::cout << "Data obtained from Opencaching sites via <a href=\"https://github.com/opencaching/okapi/\">OKAPI</a>:<br>\n";
std::cout << "<a href=\"https://www.opencaching.pl/\">Opencaching.pl</a>, ";
@ -670,7 +671,7 @@ int main(int argc, char** argv) {
std::cout << "<a href=\"http://www.opencaching.nl/\">Opencaching.nl</a>, ";
std::cout << "<a href=\"http://www.opencaching.ro/\">Opencaching.ro</a>, ";
std::cout << "<a href=\"https://www.opencache.uk/\">Opencaching.uk</a>.";
std::cout << "</div>\n";
std::cout << "</footer>\n";
std::cout << "</body>\n</html>\n";
}