Modifications pour le document Homeopaths

Modifié par Jip-jan Alunkel le mars 14, 20:13

Depuis la version 6.2
modifié par Jip-jan Alunkel
sur novembre 28, 15:31
Commentaire de modification : Renamed from xwiki:practices.WebHome
À la version 4.2
modifié par Jip-jan Alunkel
sur novembre 28, 15:08
Commentaire de modification : Renamed from xwiki:practices.WebHome

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -15,10 +15,6 @@
15 15   "use_captcha": "false"
16 16  })
17 17  #createFormStart($form_start)
18 -
19 -<div class="autocomplete-container" id="autocomplete-container"></div>
20 -
21 -
22 22  #set($address = {
23 23   "id" : "address",
24 24   "type" : "text",
... ... @@ -39,6 +39,16 @@
39 39   "data-xobj-fieldname" : "address",
40 40   "help-block" : 'Input and select the address of your practice.'
41 41  })
38 +
39 +var requestOptions = {
40 + method: 'GET',
41 +};
42 +
43 +fetch("https://api.geoapify.com/v1/geocode/autocomplete?text=Mosco&apiKey=6b74bd47f4204990b23386d8e8a0952b", requestOptions)
44 + .then(response => response.json())
45 + .then(result => console.log(result))
46 + .catch(error => console.log('error', error));
47 +
42 42  #createFormElement($address)
43 43  #set($submit = {
44 44   "id" : "create_case",