Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
NTPsec
ntpsec
Compare Revisions
10741671bf55b90dd7739f6f349f03b0b25d958c...38cae6f7b80048ca42da619241fcfc4f6b14a112
Commits (2)
Add links in footer to validator.w3c.org
· a99e8f55
Gary E. Miller
authored
Aug 22, 2016
Sadly the html validator is currently broken for https referrer.
a99e8f55
Only write logo file is not present.
· 38cae6f7
Gary E. Miller
authored
Aug 22, 2016
38cae6f7
Hide whitespace changes
Inline
Side-by-side
ntpstats/ntpviz
View file @
38cae6f7
...
...
@@ -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>
<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>
'''
...
...