Skip to content

Commit

Permalink
UPDATE: link to svg favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Feb 21, 2024
1 parent b4e347a commit 31c8b1f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions appengine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"html"
"net/http"
"strings"
"strconv"
"strings"
"time"
)

Expand All @@ -18,6 +18,7 @@ func appengineRootHandler(w http.ResponseWriter, r *http.Request) {
<title>AppEngine Geolocation - Resolve.rs</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<h1>
Expand Down Expand Up @@ -86,13 +87,13 @@ func appengineApiHandler(w http.ResponseWriter, r *http.Request) {
comma := strings.Index(latlng, ",")
if comma != -1 {
latitude, latErr := strconv.ParseFloat(latlng[0:comma], 32)
if (latErr != nil) {
if latErr != nil {
logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], latErr)
} else {
result.Latitude = float32(latitude)
}
longitude, lngErr := strconv.ParseFloat(latlng[comma+1:len(latlng)], 32)
if (lngErr != nil) {
if lngErr != nil {
logger.Printf("ERROR: unable to convert '%s' to float: %s", latlng[0:comma], lngErr)
} else {
result.Longitude = float32(longitude)
Expand Down
1 change: 1 addition & 0 deletions aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func awsRootHandler(w http.ResponseWriter, r *http.Request) {
<title>Amazon AWS CloudFront Geolocation - Resolve.rs</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<h1>
Expand Down
1 change: 1 addition & 0 deletions cloudflare.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func cloudflareRootHandler(w http.ResponseWriter, r *http.Request) {
<title>CloudFlare Geolocation - Resolve.rs</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<h1>
Expand Down
1 change: 1 addition & 0 deletions fastly.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func fastlyRootHandler(w http.ResponseWriter, r *http.Request) {
<title>Fastly Geolocation - Resolve.rs</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/kognise/water.css@latest/dist/light.min.css" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
</head>
<body>
<h1>
Expand Down

0 comments on commit 31c8b1f

Please sign in to comment.