Skip to content

Commit

Permalink
span is more semantically correct then div
Browse files Browse the repository at this point in the history
  • Loading branch information
randomairborne committed Jul 8, 2024
1 parent 8b2bc62 commit f79ff64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion templates/404.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<body>
<div class="stack">
<div>404 not found</div>
<span>404 not found</span>
<a href="/" class="home">Go home?</a>
</div>
</body>
Expand Down
12 changes: 6 additions & 6 deletions templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
<div class="stack">
{%- match ip -%}
{%- when IpAddr::V4 with (ipv4) -%}
<div>Your public IPv4 is: <code>{{ ipv4 }}</code></div>
<div id="ip6-container" hidden>
<span>Your public IPv4 is: <code>{{ ipv4 }}</code></span>
<span id="ip6-container" hidden>
Your public IPv6 is: <code id="ip6-text">(fetching)</code>
</div>
</span>
{%- when IpAddr::V6 with (ipv6) -%}
<div id="ip4-container" hidden>
<span id="ip4-container" hidden>
Your public IPv4 is: <code id="ip4-text">(fetching)</code>
</div>
<div>Your public IPv6 is: <code>{{ ipv6 }}</code></div>
</span>
<span>Your public IPv6 is: <code>{{ ipv6 }}</code></span>
{%- endmatch -%}
</div>
{%- match ip -%}
Expand Down

0 comments on commit f79ff64

Please sign in to comment.