Commits (2)
......@@ -481,8 +481,12 @@ if __name__ == '__main__':
sys.stderr.write("ntpviz: ERROR: %s can't be created.\n" \
% outdir)
raise SystemExit(1)
with open(os.path.join(outdir, "ntpsec-logo.png"), "w") as wp:
wp.write(binascii.a2b_base64(ntpsec_logo))
# if no ntpsec logo, write one.
logo_filename = os.path.join(outdir, "ntpsec-logo.png")
if not os.path.isfile( logo_filename ):
with open( logo_filename, "w" ) as wp:
wp.write(binascii.a2b_base64(ntpsec_logo))
index_header = '''\
<!DOCTYPE html>
......@@ -508,9 +512,23 @@ if __name__ == '__main__':
<br>
<br>
<br>
<div style="float:left">
This page autogenerated by <a href="https://docs.ntpsec.org/latest/ntpviz.html">
ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
<br><br>
</div>
<div style="float:left;margin-left:350px;">
<a href="https://validator.w3.org/nu/">
<img src="https://www.w3.org/html/logo/downloads/HTML5_Logo_32.png"
alt="html 5">
</a>
&nbsp;&nbsp;
<a href="https://jigsaw.w3.org/css-validator/check/referer">
<img style="border:0;width:88px;height:31px"
src="https://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</div>
<div style="clear:both;"></div>
</body>
</html>
'''
......