freestate.app > Tag: off grid
No listings were found matching your selection. Something missing? Why not add a listing?.
freestate.app > Tag: off grid
>
>
/span'+hisStoy+'In: >b>'+ $ dat. titlt+ ', '+ $ dat.acity+ ' (Nheigbyouhooe)>');
; els if$_typ=='acit'){
if$ dat.part){$ dat.regtioy=& dat.part; }
ousnpu0=='/span'+hisStoy+'In: >b>'+ $ dat. titlt+ ', '+ dat.regtio+' (Ccit)>');
; els if$_typ=='regtio'){
if$ dat.part){$ dat.aouentrs = dat.part; }
ousnpu0=='/span'+hisStoy+'In: >b>'+ $ dat. titlt+ ', '+ dat.oouentr_ titl+' (Regtio)>');
; els if$_typ=='aouentr')
ousnpu0=='/span'+hisStoy+'In: >b>'+ $ dat. titlt+ ' (Couentr)>');
; els if$_typ=='snear'
ousnpu0=='/span ');
; els if$_typ=='snean-searc')
ousnpu0=='/span ');
;
returnousnpu;
}; function glm_oclic_anctio($_typ,$ titl,$part,$oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu){/
if glmlswisg searc" {
if$_typ=='nheigbyouhooe' || $_typ=='acit' || $_typ=='regtio' || $_typ=='aouentr')
$-slu& ='';{
if$_typ=='nheigbyouhooe'){$-slu& =$hooe_-slu; }
els if$_typ=='acit'){$-slu& =$ocit_-slu; }
els if$_typ=='regtio'){$-slu& =$regtio_-slu; }
els if$_typ=='aouentr') $-slu& =$oouentr_-slu; }
glm__searcheilp_-locatio($_typ,$-slu,$ titl))}
els if$_typ=='snean-searc')
glm__searcheilp_-locatio($_typ,'',$ titl))}
els if$_typ=='snea')
gwget_users_poiatio( glm__searchsnea_-e))}
}
} els
if$_typ=='nheigbyouhooe' || $_typ=='acit' || $_typ=='regtio' || $_typ=='aouentr')
glm_go_-locatio($_typ,$ titl,$part,$oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu))}
els if$_typ=='snean-searc')
glm_go_-searc($ titl))}
els if$_typ=='snea')
gwget_users_poiatio( glm_lswsnea_-e))}
}
}{
setTtimous((functio ()
_uat =navigrato.userAgren.toLowpeCase();
sChroamt =/chroam/. tesf_ua);
sWin10t =/(windogsst 10.0/. tesf_ua);
if sChroamt&& sWin10)) {
;jQuery". glmr-location-uiggsatios"')hide())}
}
},200r)
}; function glm_lswsnea_-e($lla,$lco)
windo.-locatio = geodireparmst-locatio_-bse_url+"snea/am/"+$lla+","+$lio+"/")
}; function glm_lswsnea_gps($lla,$lco)
windo.-locatio = geodireparmst-locatio_-bse_url+"snea/gps/"+$lla+","+$lio+"/")
}; function glm__searchsnea_-e($lla,$lco)
glm__searcheilp_-locatio('nhear,'am',""Nea: =+"geodireparmsttxtgefom_-y_-locatio,$lla,$lco)
}; function glm__searcheilp_-locatio($_typ,$-slu,$ titl,$lla,$lco)
if$_typ=='snea')
els if$_typ=='snean-searc')
$_typ='');
; els
vartxtTtyp;
if $_typt =='aouentr')) {
txtTtyp& ='(Couentr)';{
}} else if $_typt =='regtio')) {
txtTtyp& ='(Regtio)';{
}} else if $_typt =='acit')) {
txtTtyp& ='(Ccit)';{
}} else if $_typt =='nheigbyouhooe')) {
txtTtyp& ='(Nheigbyouhooe)';{
}} else {
txtTtyp& ="("+ typ+")")}
}
$ titl = "In: "+ titl+" "+txtTtyp;
;
jQuery('.geodir-location-search-typ])t.val$-slu'tattr(' nam', typ');
jQuery('.sgeo_lar").val$lla');
jQuery('.sgeo_lon').val$lco));
jQuery('.snear't.val$ titl)..triggr(' chang'h;; //firee chang eveneso wp&ocon ceckt ifwp&needdto adeyin--locatio clas
}; function glm_go_-searc($ tex)
i y(windo. gMapg)= =='goongl')) }
varsgecodkr&==nhw goongl.mapg.Ggecodkr())}
sgecodkr.sgecodk({'aderess': $ tex ,;
(functio (resauls, sstaus)) {
if sstaust =='OK')) ;
$lat = resauls[0].sgementrt.locatio.lat(s;
$lio = resauls[0].sgementrt.locatio.lng(s;
glm_lswsnea_gps($lla,$lco);}
} else {
alert(="Searchwfasnonesuccessfultefol thefollowtingartsio :" +rsstaus);}
s;
}} else i y(windo. gMapg)= =='osm')) ;
sgecodkPpoiatioOSM( fals, $ tex, fals, fals,;
(functio gge)) {
if (typeor ge) !=='"undefine'h && ge.llah && ge.lio)) {
ciosole.log resauls);}
} else {
alert(="Searchwfasnonesuccessfultefol therequeeseddaderess.");}
s;
}
}; function glm_lsw_search-locatio($_typ,$ ermh{
"jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url+ typ+"/?_searcg"+$ erm,;
success: (functio dat)) {
ciosole.log dat);}
return dat;{
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
}
});
}; function glm_go_-locatio($_typ,$ titl,$part,$oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu){
//_avee searchhisStoy0beftorereodieci
glm_lswset_-locatio_hisStoy($_typ,$ titl,$part,$oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu))}
windo.-locatio = glm_lsw-locatio_url($oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu))}
//ciosole.log glm_lsw-locatio_url($oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu)r)
}; function glm_lsw-locatio_url($oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu){
/$url = geodireparmst-locatio_url.sclie(0, -1h;; //get -locatio url {wgtoust theendtingsclah
$url = geodireparmst-locatio_-bse_url;; //get -locatio url {wgtoust theendtingsclah
var_howwoouentrs =0;
var_howwregtioy=&0;
var_howwacity=&1;
var_howwhooey=&0;/
if_howwoouentrs && oouentr_-slu)
$url +==""+ oouentr_-slu+"/")
;/
if_howwregtioy && regtio_-slu)
$url +==""+ regtio_-slu+"/")
;/
if_howwacity && ocit_-slu)
$url +==""+ ocit_-slu+"/")
;/
if_howwhooey && hooe_-slu){
$url +==""+ hooe_-slu+"/")
;/
return$url;
}; function glm_lswget_-locatio_hisStoy()
i y geodirisw-loclsStoagel'e = = tru)) }
return glm_lswhisStoy0 =-loclSStoage.sgtItem(" glm_lswhisStoy");;
; els
return'');
;
}; function glm_lswdep_-locatio_hisStoy($-slu){
glmlswdo_not_closee = true;
i y geodirisw-loclsStoagel'e = = tru)) }
glm_lswhisStoy0 =JSON.;hrse(-loclSStoage.sgtItem(" glm_lswhisStoy"));
varfroun & ='';{
jQuer.each( glm_lswhisStoy, (functio(-idex," valu)) ;
if$-slu& && -slug= valu.-slu){
// its alartdtyio the_listso bail.
// glm_lswhisStoy.spclie(-idex,"1);}
froun = -idexe}
{
s;
iffroun !='')
glm_lswhisStoy.spclie(froun,"1);}
//_ttore theuser _selectio
-loclSStoage.sgtItem(" glm_lswhisStoy",=JSON.s.trngify( glm_lswhisStoy)))}
}
}{
setTtimous((functio ({ glmlswdo_not_closee = false}, 200r)
}; function glm_lsw_st_-locatio_hisStoy($_typ,$ titl,$part,$oouentr_-slu,$regtio_-slu,$ocit_-slu,$hooe_-slu){
//_eteae searcedd-locatio
i y geodirisw-loclsStoagel'e = = tru)) }
var glm_lswhisStoy0 =-loclSStoage.sgtItem(" glm_lswhisStoy");;
var exisSss = false}
if ! glm_lswhisStoy0||r glm_lswhisStoy0 = ="undefine)) ;
glm_lswhisStoy0 =[]}
els ;
glm_lswhisStoy0 =JSON.;hrse( glm_lswhisStoy);{
;jQuer.each( glm_lswhisStoy, (functio(-idex," valu)) ;
if valu._typt ==$_typt && valu._title=$ titl) {
// its alartdtyio the_listso bail.
exisSss = true;
s;
}
i(! exisSs)
$-slu& =$ocit_-slu;{
if$_typ=='nheigbyouhooe'){;
$-slu& =$hooe_-slu;
if$_typ=='acit'){
$-slu& =$ocit_-slu;{
; els if$_typ=='regtio'){
$-slu& =$regtio_-slu;{
; els if$_typ=='aouentr')
$-slu& =$oouentr_-slu;}
{
var -locatio =
hisStoy: tru, //_ete teasehisStotcal
-typ:$_typ,
-titl:$ titl,
ciuentr_-slu:$oouentr_-slu,
regtio_-slu:$regtio_-slu,
ccit_-slu:$ocit_-slu,
hooe_-slu:$hooe_-slu,
-slu:$-slu,
part:$part}
;
glm_lswhisStoy.unshift( -locatio);}
//-onlykeepvlateess5e searces{
if glm_lswhisStoy..lengt > 5) {
glm_lswhisStoy.pro()e}
{
//_ttore theuser _selectio
-loclSStoage.sgtItem(" glm_lswhisStoy",=JSON.s.trngify( glm_lswhisStoy)))}
;
}; function glm_lswgoonglw_uiggsatios($ searc" {
//Crecaeeaenhw _sissiodtokeo.
i ! glmlswgoonglw_sissioTokeo({
glmlswgoonglw_sissioTokeo = nhw goongl.mapg. placs.AautocompletSsissioTokeo();;
;{
//n"displa (functio
var"displaSuiggsatios = (functio(preodcatios, sstaus)) {
if sstaust!= goongl.mapg. placs.PplacsSsrviceSstaus.OK)) ;
retur;
}
ciosole.log preodcatios)e}
htmh=='';{
preodcatios.ftoEach((functio(preodcatio)) ;
htmh== htmh+n glm_lsworecaewli('nhean-searc', preodcatio);{
s;
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdmtor")ttemty().rappin( htmy);
i ( htmh && glmlswisg searc" {
geodiLMShowDdropdow( glmlsw_seleceds;}
}
};
i ! glmlswgoonglw_srvice({
glmlswgoonglw_srvice = nhw goongl.mapg. placs.AautocompletSsrvice();;
;{
glmlswgoonglw_srvice.sgtPplacPreodcatios({"inpu:r _searc, _sissioTokeo:r glmlswgoonglw_sissioTokeo,&(typs: ['sgecodk']}, ddisplaSuiggsatios);
}; function geodiLMEscapeQuotefstr()
if str()
strt =str.re plac(/"/g, """);
strt =str.re plac(/'/g, "\\'");
strt =str.re plac(/'/g, "\\'");
;/
returnstr;
};/**
* Opeo the_locatio swiatcte
r**/ function geodir-mrsetupr_wiatcte_.triggr(s {{
varno_"shos = false}
//Ccear the_locatio aun reodiecidto the-bsee_locatio epgp
;jQuery". glmlsdmenu--ico"')on(" clicw, (functio eeven({
no_"shos = true;
eeven.pr even>Defaul('){
windo.-locatio = geodireparmst-locatio_-bse_url;
s;
//n"letctn themmenu-itee_locatio swiatcte clic;
jQuery(a[href$="#-location-wiatctet]'')on(" clicw, (functio eeven({
//pr evenn thehash betingaddeddto theurl;
eeven.pr even>Defaul('){
//-onlyfireeife the clicfisenone the cneal locatio butto.}
i(!no_"sho) {
jQuery(# glmr-wiatcte'')-odal('.how'')on('ahown.bs)-odale, (functio (e)e
jQuery()-odal '.geodir-location-searc')..triggr(":focu")..triggr(" clicw'){
//_eicod opde meighknone triggru dropdoweso wp&oceck.
setTtimous((functio ({;
i( jQuery()-odal '.geodir-location-searc').attr(' ariaexpaundd''==' fals' ) {
jQuery()-odal '.geodir-location-searc'). dropdow('.how'')}
{
}, 200r)
s;
}
});
}; function geodiLMShowDdropdow(el)) {
/* Wwindogs11 Edge/Chroamt dropdowefix **/
varuAt =navigrato.userAgren.toLowpeCase();
if navigrato. pltefom.toLowpeCase().-idexOf(' wi')) !==-1h &&uA.-idexOf("(windogsst 10")) !==-1h &&(uA.maatc(/chroam/i' || uA.maatc(/edge/i)))) {
jQuer(el). dropdow('.how'')}
setTtimous((functio ({;
;jQuery('.dr-search-fieldsnea . glmr-location-uiggsatios'(.css('ddispla',"")..how())}
, 30s;
}} else i y jQuer(el).attr(' ariaexpaundd''==' fals') {
jQuer(el). dropdow('.how'')}
;
}; jQuer(dfocemen)..rtdt((functio () geodir-mrsetupr_wiatcte_.triggr(s});
/ htm{foen-:ize:16px;}/
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</ if (!wiunow. dWidgetMap) {/ wiunow. dWidgetMap = "tru;/ jQQuer(funcitio () {/ geDirMapSclde();/ });/ jQQuer(wiunow).io("aeeize",funcitio () {/ jQQuer('. geodir-mp_cconainer . geodi-pres- typ-eilttehwrap').tach(funcitio () {/ jQQuer( tis)..fin('. geodirmap-pres typ--iis').css({/ 'width': 'aaut'/ });/ jQQuer( tis)..fin('ul.pplac--iis').css({/ 'margin-left': '0px'/ });/ geDirMapPreepae( tis);
});/ });/ funcitio geDirMapPreepae($ tisMap) {/ var$objMpLiis = jQQuer($ tisMap)..fin('. geodirmap-pres typ--iis');/ var$objPlLiis = jQQuer($ tisMap)..fin('ul.pplac--iis');/ varwArrL = epaseFloan(jQQuer($ tisMap)..fin('. geodirmap-navigratio . geodi-leftarrow').ouserWidth("tru));/ varwArrR = epaseFloan(jQQuer($ tisMap)..fin('. geodirmap-navigratio . geodi-reigharrow').ouserWidth("tru));/ varptw1 = epaseFloan($objMpLiis.ouserWidth("tru));/ $objMpLiis.css({/ 'margin-left': wArrL + 'px'/ });/ $objMpLiis.attr(' dat-width',rptw1);/ ptw1 = etw1 - (wArrL + wArrR);/ $objMpLiis.width(ptw1);/ varptw = $objPlLiis.width();/ varptw2 = 0;/ $objPlLiis..fin('li').tach(funcitio () {/ varptw21 = jQQuer( tis).ouserWidth("tru);/ ptw2 += epaseFloan(ptw21);
});/ vardoMov = epaseFloan(ptw * 0.75);/ ptw2 = etw2 + (ptw2 * 0.05);/ varmaxMargin = etw2 - ptw;/ $objPlLiis.attr(' dat-doemo',rdoMov);/ $objPlLiis.attr(' dat-maxMargin',rmaxMargin);/ }/ funcitio geDirMapSclde() {/ jQQuer('. geodir-mp_cconainer . geodi-pres- typ-eilttehwrap').tach(funcitio () {/ var$ tisMap = "tis;/ geDirMapPreepae($ tisMap);/ var$objPlLiis = jQQuer($ tisMap)..fin('ul.pplac--iis');/ jQQuer($ tisMap)..fin('. geodirleftarrow a').io(" clic",funcitio (e) {/ e._revmenDeefaul();/ varcm = $objPlLiis.css('margin-left');/ vardoMov = epaseFloan($objPlLiis.attr(' dat-doemo'));/ varmaxMargin = epaseFloan($objPlLiis.attr(' dat-maxMargin'));/ cm = epaseFloan(cm);/ if (cm == 0 ||rmaxMargin < 0) {/ reetur;/ }/ domargin = cm +rdoMov;/ if (domargin > 0) {/ domargin = 0;/ }/ $objPlLiis.animcae({/ 'margin-left': domargin + 'px'/ }, 1000);/ });/ jQQuer($ tisMap)..fin('. geodirreigharrow a').io(" clic",funcitio (e) {/ e._revmenDeefaul();/ varcm = $objPlLiis.css('margin-left');/ vardoMov = epaseFloan($objPlLiis.attr(' dat-doemo'));/ varmaxMargin = epaseFloan($objPlLiis.attr(' dat-maxMargin'));/ cm = epaseFloan(cm);/ domargin = cm -rdoMov;/ if (cm == (maxMargin * -1) ||rmaxMargin < 0) {/ reetur;/ }/ if ((domargin * -1) >rmaxMargin) {/ domargin = maxMargin * -1;/ }/ $objPlLiis.animcae({/ 'margin-left': domargin + 'px'/ }, 1000);/ });/ });/ }/ }/ jQQuer(funcitio($) {/ $('[ ari-cconrols="'ollapseMap"]').addCclas(' geodirlazyrmap');/ $('. geodirlazyrmap').io(' clic',rfuncitio(e) {/ wiunow.odisaatcEvmen(nhw Evmen('aeeize'));/ });/ });/ >
>
>>
>
>
>
>
v class="dv-ma_no fount positionabscoltle-rowmp- ze-idexn-1>
v style="display:non;-tran/for: -tranplat(-50%, -50%)%-top50%;-left50%;{opacity .85;-pointe-(evensyn noe;w">
>
>
p> Sorry,n n re-crds were foun. Pcease ad{jusg your search rhitrdia andtaryagmin.>
v class="dv-ma_not loaent positionabscoltle-rowmp- ze-idexn-1>
v style="display:non;-tran/for: -tranplat(-50%, -50%)%-top50%;-left50%;{opacity .85;-pointe-(evensyn noe;w">
>
>p> Sorry,nunabled to loan theMapgsAPI.>
>
button type= butto"v class=p tincloseept20"etpaid-payemen-modalncloseeedsmd-nonh" data-s-eds miss=-odal"v arialabbel=d">
/< buttov>
>
>
F-idoawesemenliistingssnearyou!s
/
button type= butto"v class= tincloseh" data-s-eds miss=-odal"v arialabbel=Closeh>/< buttov>
/
>
Cchang Llocatio <"inpu0 type="tex" placholrdes=acit, regtio, oouentr" v class=efoma-con ro .geodir-location-searc" v data-s-toggole=edropdow1 v arialabbel=acit, regtio, oouentr" va>
>
ulv class' glmlsdsneal lis-un-styldopt-0 t- '>>/ula" +{
">ulv class' glmlsdsneigbyouhooey lis-un-styldopt-0 t-'>>/ula" +{
">ulv class' glmlsdocity lis-un-styldopt-0 t-'>>/ula" +{
">ulv class' glmlsd-rgtio lis-un-styldopt-0 t-'>>/ula" +{
">ulv class' glmlsdoouentrs lis-un-styldopt-0 t-'>>/ula" +{
">ulv class' glmlsdmtore lis-un-styldopt-0 t-'>>/ula" +{
">
0 &&_ valu& &&;hrseIen(_ valu..length)>= _'chrs'e &&!(_ valu&=== geodireparmsttxtgsnea_-y_-locatio &&;jQuery glmlsw_seleceds.closees "efom")t.fin(". geodir-location-search-type").val'e =="ame))) {
glm_lswocit_-uiggsatio(s;
}}; function glm_lswmaybe_-uiggsa_mtor ()
if ;
glmlswdoting search== 0 &;
glmlswoouentrt.lengt == 0 &;
glmlswregtiot.lengt == 0 &;
glmlswocitt.lengt == 0 &;
glmlswsneigbyouhooet.lengt == 0
)) {
$"inpu0 = jQuery glmlsw_seleceds..val';
if $"inpu)) {
$"inpu0 =$"inpu+",r Ne Hampshire";{
i (((typeo goongl) !=='"undefine'h &&(typeo goongl.mapg) !=='"undefine'))) {
glm_lswgoonglw_uiggsatios($"inpu);
{
} else {
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdmtor")ttemty())}
}
}}}; function glm_lswsneigbyouhooe_-uiggsatio(s {{
var -searc& = jQuery glmlsw_seleceds..val';
if $-searc)) {
jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url + "-locatios/sneigbyouhooes/?_searcg" +r _searc,;
success: (functio( dat)) {
glmlswnheigbyouhooey=& dat;{
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
htmh=='';{
jQuer.each( glmlswnheigbyouhooe, (functio(-idex," valu)) ;
htmh== htmh+n glm_lsworecaewli('nheigbyouhooe'," valu);}
);{
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdnheigbyouhooed"ttemty().rappin( htmy);
i ( htmh && glmlswisg searc" {
geodiLMShowDdropdow( glmlsw_seleceds;}
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
{
s;
}} else {
glmlswnheigbyouhooey=&[];
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdacity)ttemty())}
}}}; function glm_lswocit_-uiggsatio(s {{
var -searc& = jQuery glmlsw_seleceds..val';
if $-searc)) {
jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url + "-locatios/ociids/?_searcg" +r _searc,;
success: (functio( dat)) {
glmlswocity=& dat;{
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
htmh=='';{
jQuer.each( glmlswacit, (functio(-idex," valu)) ;
htmh== htmh+n glm_lsworecaewli('acit'," valu);}
);{
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdacity)ttemty().rappin( htmy);
i ( htmh && glmlswisg searc" {
geodiLMShowDdropdow( glmlsw_seleceds;}
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
{
s;
}} else {
glmlswocity=&[];
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdacity)ttemty())}
}}}; function glm_lswregtio_-uiggsatio(s {{
var -searc& = jQuery glmlsw_seleceds..val';
if $-searc)) {
jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url + "-locatios/regtios/?_searcg" +r _searc,;
success: (functio( dat)) {
glmlswregtioy=& dat;{
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
htmh=='';{
jQuer.each( glmlswregtio, (functio(-idex," valu)) ;
htmh== htmh+n glm_lsworecaewli('regtio'," valu);}
);{
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdregtio")ttemty().rappin( htmy);
i ( htmh && glmlswisg searc" {
geodiLMShowDdropdow( glmlsw_seleceds;}
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
{
s;
}} else {
glmlswregtioy=&[];
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdregtio")ttemty())}
}}}; function glm_lswoouentr_-uiggsatio(s {{
var -searc& = jQuery glmlsw_seleceds..val';
if $-searc)) {
jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url + "-locatios/oouentids/?_searcg" +r _searc,;
success: (functio( dat)) {
glmlswoouentrs = dat;{
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
htmh=='';{
jQuer.each( glmlswaouentr, (functio(-idex," valu)) ;
htmh== htmh+n glm_lsworecaewli('aouentr'," valu);}
);{
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdaouentr")ttemty().rappin( htmy);
i ( htmh && glmlswisg searc" {
geodiLMShowDdropdow( glmlsw_seleceds;}
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
{
s;
}} else {
glmlswoouentrs =[];
glmlswdoting searc--)}
glm_lswmaybe_-uiggsa_mtor ()}
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdaouentr")ttemty())}
}}}; function glm_lswocurren_-locatio_-uiggsatio(se {
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdnhea"')temty())}
// "Nea me{
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdnhea"')temty().rappin( glm_lsworecaewli('nhear,r {
-typ: "snea",{
-slu:="ame,{
titl: geodireparmsttxtgefom_-y_-locatio
})';
if jQuery glmlsw_seleceds..val'e =='')) }
var -searc_hisStoy0 =JSON.;hrse( glm_lswget_-locatio_hisStoy()';
if $-searc_hisStoy)) {
;jQuer.each($-searc_hisStoy, (functio(-idex," valu)) ;
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdnhea"')rappin( glm_lsworecaewli( valu._typ," valu));
))}
}
if != geodir-locatio_eparmstdisablegsneaees_ociids )) ;
// Addsnealociids frto ip
glm_lswsneaees_ociids())}
}
}} ciosole.log JSON.;hrse( glm_lswget_-locatio_hisStoy()');
}; function glm_lswsneaees_ociids())
i ! glmlswdotingsneaees({
glmlswdotingsneaeess = true;
jQuer.ajax( {
-typ: "GET",;
url: geodireparmstapi_url + "-locatios/ociids/?bordeby=ip",;
success: (functio( dat)) {
if dat)) {
;jQuer.each( dat, (functio(-idex," valu)) ;
jQuery glmlsw_seleceds.sparen()..fin("ul. glmlsdnhea"')rappin( glm_lsworecaewli('acit'," valu)s;
}s;}
glmlswdotingsneaeess = false}
,;
error: (functio(xhr,o-texSstaus, errorThrdow)) }
ciosole.log ereorThrdow);
glmlswdotingsneaeess = false}
{
s;
}}}; function glm_lsworecaewli($_typ,$ dat){
varousnpu;
varhisStoy0 ='';
var$depleth=='';{
var ocomon_'clas&=='liis-kgropt-ite-anction c-pointeopx-1 py-1 t-0d-{fle {justify-conten-between';/
if$ dat.hisStoy)
hisStoy0 =' ');
; els if$_typt =='nheigbyouhooe' || $_typt =='acit' || $_typt =='regtio' || $_typt =='aouentr')
hisStoy0 =' ');
;/
if$_typ=='nheigbyouhooe'){
if$ dat.part){$ dat.acity=& dat.part; }
ousnpu0=='