Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance with semantic HTML5 #68

Merged
merged 5 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions bin/checklink
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ sub check_uri (\%\$$$$;\$$)

if ($check_num != 1) {
if ($Opts{HTML}) {
$doc_header = "\n<hr>\n";
$doc_header = "\n</section>\n";
}
else {
$doc_header = "\n" . ('-' x 40) . "\n";
Expand All @@ -1115,7 +1115,7 @@ sub check_uri (\%\$$$$;\$$)

if ($Opts{HTML}) {
$doc_header .=
("<h2>\nProcessing\t" . &show_url($response->{absolute_uri}) .
("<section data-url-checked=\"" . &encode($response->{absolute_uri}) . "\">\n\t<h2>\nProcessing\t" . &show_url($response->{absolute_uri}) .
"\n</h2>\n\n");
}
else {
Expand Down Expand Up @@ -1202,7 +1202,10 @@ EOF
printf(<<'EOF', $result_anchor);
<div class="progress" id="progress%s">
<h3>Status: <span></span></h3>
<div class="progressbar"><div></div></div>
<label>
<span></span>
<progress value="0" max="100"></progress>
</label>
<pre>
EOF
}
Expand Down Expand Up @@ -3210,10 +3213,11 @@ sub banner ($)

printf(
<<'EOF', $Cfg{Doc_Images_URI} . 'w3c.png', $tagline);
<div id="banner"><h1 id="title"><a href="https://www.w3.org/" title="W3C"><img alt="W3C" id="logo" src="%s" width="110" height="61"></a>
<header id="banner"><h1 id="title"><a href="https://www.w3.org/" title="W3C"><img alt="W3C" id="logo" src="%s" width="110" height="61"></a>
<a href="checklink"><span>Link Checker</span></a></h1>
<p id="tagline">%s</p></div>
<div id="main">
<p id="tagline">%s</p>
</header>
<main id="main">
EOF
return;
}
Expand Down Expand Up @@ -3305,18 +3309,20 @@ sub html_footer ()
EOF
}
printf(<<'EOF', $Cfg{Doc_URI}, $PACKAGE, $REVISION);
</div><!-- main -->
</main><!-- main -->
<footer>
<nav>
<ul class="navbar" id="menu">
<li><a href="%s" accesskey="3" title="Documentation for this Link Checker Service">Docs</a></li>
<li><a href="http://search.cpan.org/dist/W3C-LinkChecker/" accesskey="2" title="Download the source / Install this service">Download</a></li>
<li><a href="https://github.com/w3c/link-checker" title="feedback: comments, suggestions and bugs" accesskey="4">Feedback</a></li>
<li><a href="https://validator.w3.org/" title="Validate your markup with the W3C Markup Validation Service">Validator</a></li>
</ul>
<div>
</nav>
<address>
%s<br> %s
</address>
</div>
</footer>
</body>
</html>
EOF
Expand Down
Loading
Loading