kopia lustrzana https://gitlab.com/tomaszg/geostat
Add a footer to results HTML page
rodzic
1c3e1ec0f1
commit
cdf0e63a7c
18
geo.css
18
geo.css
|
@ -29,12 +29,12 @@ form {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
div.basic_stats {
|
||||
div.basic_stats , div.footer {
|
||||
text-align: center;
|
||||
padding-bottom: 10px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
table, dl, .histogram_others, .heatmap {
|
||||
table, dl, .histogram_others, .heatmap, .footer {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-bottom: 20px;
|
||||
|
@ -44,6 +44,18 @@ table, dl, .histogram_others, .heatmap {
|
|||
display: block;
|
||||
}
|
||||
|
||||
.footer {
|
||||
font-weight: normal;
|
||||
color: #999;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.footer a:link, a:visited, a:hover {
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.dt_head {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
13
geostat.cpp
13
geostat.cpp
|
@ -301,7 +301,7 @@ int main(int argc, char** argv) {
|
|||
std::cout << "<html>\n";
|
||||
std::cout << " <head>\n";
|
||||
std::cout << " <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n";
|
||||
std::cout << " <link rel=\"stylesheet\" type=\"text/css\" href=\"geo.css?ver=1\">\n";
|
||||
std::cout << " <link rel=\"stylesheet\" type=\"text/css\" href=\"geo.css?ver=2\">\n";
|
||||
std::cout << " <title>Geocaching stats</title>\n";
|
||||
std::cout << "</head>\n";
|
||||
std::cout << "<body>\n";
|
||||
|
@ -474,6 +474,17 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
if (show_html) {
|
||||
std::cout << "<div class=\"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>, ";
|
||||
std::cout << "<a href=\"https://www.opencaching.de/\">Opencaching.de</a>, ";
|
||||
std::cout << "<a href=\"http://www.opencaching.us/\">Opencaching.us</a>, ";
|
||||
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 << "</body>\n</html>\n";
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue