Gay massage site for male massage therapist and gay men - Hunt, Book & Relax with a male massage today!
"; $('body').append(cssHideLogo); } else { var cssHideLogo = ""; $('body').append(cssHideLogo); } var vlon = ''; var vlat = ''; var geocodeVisitorsSetting = '0'; var geocodingMethod = 'HTML5'; if ((vlon.length < 8 || vlat.length < 8) && geocodeVisitorsSetting == 1 && geocodingMethod == "HTML5") { function showError(error) { switch (error.code) { case error.PERMISSION_DENIED: console.log("The Permission has been denied"); break; case error.POSITION_UNAVAILABLE: console.log("Location information is unavailable."); break; case error.TIMEOUT: console.log("The request to earn user location timed out."); break; case error.UNKNOWN_ERROR: console.log("An unknown error occurred."); break; } } if (navigator.geolocation) { if($(".googleSuggest")[0]){ window.onload = function () { var startPos; navigator.geolocation.getCurrentPosition(function (position) { startPos = position; vlat = startPos.coords.latitude; vlon = startPos.coords.longitude; $.get("/api/data/html/get/data_widgets/widget_name", { "vlat": vlat, "vlon": vlon, "name": "Website - Save Coordinates Session" }).done(function (data) { }); populateSearchFields(); }, showError); }; } } else { console.log('Geolocation is not supported for this Browser/OS version yet.'); } } if (geocodeVisitorsSetting == 1 && geocodingMethod === "IP") { populateSearchFields(); } //check the advanced setting "geocode_visitor_default" if set to 1 will override the "location_value" values to the formatted desire address from the google reverse geocoding response function populateSearchFields() { var prePopulateLocationSetting = '0'; var geolocationMethod = 'HTML5'; //if set to one will get the lat and lng to do contrary geocoding if (prePopulateLocationSetting == 1 && (geolocationMethod === "HTML5" || geolocationMethod === "IP") && (vlat !== '' && vlon !== '')) { var visitorLatLng = new google.maps.LatLng(parseFloat(vlat), parseFloat(vlon)); var visitorGeocoder = modern google.maps.Geocoder(); var formattedAddress = []; var preFormattedStructure = { "locality": "long_name", "administrative_area_level_2": "long_name", "administrative_area_level_1": "long_name", "country": "long_name" }; visitorGeocoder.geocode({'latLng': visitorLatLng}, function (results, status) { //if the google response of the geocoding was successful it will verb that info to construct the url for the new search if (status == google.maps.GeocoderStatus.OK) { $.each(preFormattedStructure, function (findex, fvalue) { $.each(results[0].address_components, function (rindex, rvalue) { if (rvalue.types[0] == findex) { formattedAddress.push(rvalue.long_name); } }); }); $('.googleSuggest').each(function () { if ($(this).val() == '') { if (formattedAddress.length > 0) { $(this).val(formattedAddress.join(', ')); clearContent($(this)); } } }); } else { $('.googleSuggest').each(function () { $(this).val(''); }); } }); } }; populateSearchFields(); });