Unverified Commit 62db3070 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

add a link to OpenStreetMaps to the IP info tool

parent bd23641f
Pipeline #12428 passed with stages
in 1 minute and 24 seconds
---
Password: كلمة السر
Time to crack: لنحاول فك الشيفرة
Warning: تحذير
......@@ -205,10 +204,11 @@ Chosen password is not strong enough.: Chosen password is not strong enough.
<i>passphrase</i> instead, which is longer but doesn't require a mix of
capitals, symbols and numbers.
Username and/or password are incorrect.: Username and/or password are incorrect.
'Your IP address is: ': 'عنوان بروتوكول الانترنت الـ IPالخاص بك هو: '
'ISP: ': 'مزود خدمة الانترنت: '
'Country: ': 'البلد: '
'City: ': 'المدينة: '
'Latitude: ': 'خط العرض: '
'Longitude: ': 'خط الطول: '
Click to open in map: Click to open in map
Not found: Not found
......@@ -209,3 +209,5 @@ Username and/or password are incorrect.: Username and/or password are incorrect.
'City: ': 'City: '
'Latitude: ': 'Latitude: '
'Longitude: ': 'Longitude: '
Click to open in map: Click to open in map
Not found: Not found
......@@ -204,3 +204,5 @@ Username and/or password are incorrect.: Usuario y/o clave incorrecto.
'City: ': 'Ciudad: '
'Latitude: ': 'Latitud: '
'Longitude: ': 'Longitud: '
Click to open in map: Click to open in map
Not found: Not found
......@@ -173,3 +173,5 @@ Thank you for signing up.: ممنونیم که ثبت نام کردید.
'City: ': 'شهر: '
'Latitude: ': 'عرض جغرافیایی: '
'Longitude: ': 'عرض جغرافیایی: '
Click to open in map: Click to open in map
Not found: Not found
......@@ -230,3 +230,5 @@ Thank you for signing up.: Merci pour votre inscription.
'City: ': 'Ville: '
'Latitude: ': 'Latitude: '
'Longitude: ': 'Longitude: '
Click to open in map: Click to open in map
Not found: Not found
......@@ -34,15 +34,16 @@ html
span.icon
i.loader
li
strong= __("Latitude: ")
span#user_latitude
span.icon
i.loader
li
strong= __("Longitude: ")
span#user_longitude
span.icon
i.loader
a#location(target="_blank")
strong= __("Latitude: ")
span#user_latitude
span.icon
i.loader
= ", "
strong= __("Longitude: ")
span#user_longitude
span.icon
i.loader
if debug
script(type="text/javascript" src=`${js_path}ip.js`)
......@@ -59,31 +60,38 @@ html
var user_isp = document.getElementById("user_isp");
if (! data.isp) {
data.isp = "Not found";
data.isp = '!{__("Not found")}';
}
user_isp.textContent = data.isp;
var country_name = document.getElementById("user_country_name");
if (! data.country_name) {
data.country_name = "Not found";
data.country_name = '!{__("Not found")}';
}
country_name.textContent = data.country_name
var city = document.getElementById("user_city");
if (! data.city) {
data.city = "Not found";
data.city = '!{__("Not found")}';
}
city.textContent = data.city;
if (data.latitude && data.longitude) {
var location = document.getElementById("location");
location.href = `https://www.openstreetmap.org/?mlat=${data.latitude}&mlon=${data.longitude}&zoom=11&layers=M`;
location.title = '!{__("Click to open in map")}';
}
city.textContent = data.city
var latitude = document.getElementById("user_latitude");
if (! data.latitude) {
data.latitude = "Not found";
data.latitude = '!{__("Not found")}';
}
latitude.textContent = data.latitude
latitude.textContent = data.latitude;
var longitude = document.getElementById("user_longitude");
if (! data.longitude) {
data.longitude = "Not found";
data.longitude = '!{__("Not found")}';
}
longitude.textContent = data.longitude
longitude.textContent = data.longitude;
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment