@marts, I also didn't see any css problems either. Windows 10 Chrome.
I see the following error in Chrome's DEV Tools (F12) in the console section
assist_geo.js:12 Uncaught SyntaxError: Unexpected identifier
//Write the Ajax connection to geo_ip.php here
// ../../geo.php location should be correct
$.ajax({
url: "geo.php",
method: "GET",
cache:false,
timeout: 15000,
success: function (data) {
var geo_info = JSON.parse(data);
alert JSON.stringify(geo_info); //(this is line 12)
}
});
This should be more correct, but you still get an error because your resulting (data) is not in JSON form.
$.ajax({
url: "geo.php",
method: "GET",
cache:false,
timeout: 15000,
success: function (data) {
var geo_info = JSON.parse(data);
alert (JSON.stringify(geo_info)); //(this is line 12)
}
});
This is not JSON
173.11.9.17Array
(
[IP] => 173.11.9.17
[COUNTRY_CODE] => US
[COUNTRY_NAME] => United States
[CITY] => Corvallis
[LATITUDE] => 44.6391
[LONGITUDE] => -123.271
)
This is considered an acceptable JSON form using http://pro.jsonlint.com/
{
"Array": [
{
"IP": "173.11.9.17"
},
{
"COUNTRY_CODE": "US"
},
{
"COUNTRY_NAME": "UnitedStates"
},
{
"CITY": "Corvallis"
},
{
"LATITUDE": 44.6391
},
{
"LONGITUDE": -123.271
}
]
}
I'm not sure that the alert will work until you correct those 2 things.
However, the background image does take a few seconds to load according to Chrome's DEV Tools (F12) in the network section
Saj