kopia lustrzana https://gitlab.com/tomaszg/geostat
Add some semantic html5 tags
rodzic
62129dca09
commit
1ad7ab0399
23
geo.css
23
geo.css
|
@ -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;
|
||||
|
|
11
geostat.cpp
11
geostat.cpp
|
@ -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") << "—" << 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";
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue