From 57d437f858a1bd05242a80800a656174e44e321a Mon Sep 17 00:00:00 2001 From: valkyrie_pilot Date: Wed, 27 Mar 2024 11:23:53 -0600 Subject: [PATCH] PRELOADDDDD --- templates/index.hbs | 97 ++++++++++++++++++++++++--------------------- 1 file changed, 52 insertions(+), 45 deletions(-) diff --git a/templates/index.hbs b/templates/index.hbs index 9bf6d48..b602445 100644 --- a/templates/index.hbs +++ b/templates/index.hbs @@ -1,60 +1,67 @@ {% set scheme %} {% if https %} - {% let scheme = "https" %} +{% let scheme = "https" %} {% else %} - {% let scheme = "http" %} +{% let scheme = "http" %} {% endif %} {% let description = "A simple, fast website to return your IPv4 and IPv6 addresses. No logs are kept. Free and open to all." %} - - - + + + + {% match ip %} + {% when IpAddr::V4 with (_) %} + + {% when IpAddr::V6 with (_) %} + + {% endmatch %} + + - - - - - - - + + + + + + {% match ip %} - {% when IpAddr::V4 with (ipv4) %} - Your public IP is {{ ipv4 }} - {% when IpAddr::V6 with (_) %} - What's my IP? + {% when IpAddr::V4 with (ipv4) %} + Your public IP is {{ ipv4 }} + {% when IpAddr::V6 with (_) %} + What's my IP? {% endmatch %} - + - -
- {% match ip %} - {% when IpAddr::V4 with (ipv4) %} -
- Your public IPv4 is: {{ ipv4 }} -
- - {% when IpAddr::V6 with (ipv6) %} - -
- Your public IPv6 is: {{ ipv6 }} -
- {% endmatch %} + +
+ {% match ip %} + {% when IpAddr::V4 with (ipv4) %} +
+ Your public IPv4 is: {{ ipv4 }} +
+ - + {% when IpAddr::V6 with (ipv6) %} + +
+ Your public IPv6 is: {{ ipv6 }} +
+ {% endmatch %} +
+ - - + +