:root { –primary-form-color: #1d1645; –form-input-background: #fff; –form-input-border: #e6e6e6; –light-form-font: #1d1645; –light-form-background: #fff; –dark-form-background:#1d1645; –dark-form-font: #fff; –form-warning-color: rgb(255, 0, 0); } html,body{ width:100%; margin:0; padding:0; } .doi-form form{ padding:15px 25px; width:100%; max-width: 960px; } .doi-form form div.input-wrapper{ display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); margin-bottom:25px; } .doi-form form div.form-field{ padding:5px; } .doi-form form div.input-wrapper div.form-field label.doi-label, .doi-form form div.form-field label.doi-label > span, .doi-form form div.form-field.full-width label.doi-label{ margin-bottom:5px; font-weight:bold; } .doi-form form div.input-wrapper div.form-field.required label.doi-label::after, .doi-form form div.form-field.full-width.required label.doi-label::after{ content:” *”; color:var(–form-warning-color); font-weight: bold; } .doi-form form div.input-wrapper div.form-field .doi-input, .doi-form form div.form-field.full-width .doi-input{ width:100%; height:50px; border: thin solid var(–form-input-border); background-color: var(–form-input-background); } .doi-form form div.form-field.full-width textarea{ height: auto !important; } .doi-form form div.input-wrapper div.form-field input.doi-input, .doi-form form div.input-wrapper div.form-field select.doi-input, .doi-form form div.form-field.full-width input.doi-input, .doi-form form div.form-field.full-width select.doi-input, .doi-form form div.form-field.full-width textarea.doi-input{ padding:12px; } /*.doi-form form div.input-wrapper div.form-field .doi-input, .doi-form form div.input-wrapper div.form-field label.doi-label{ }*/ .doi-form form div.input-wrapper div.form-field select{ background-image: linear-gradient(45deg, transparent 50%, gray 50%), linear-gradient(135deg, gray 50%, transparent 50%), linear-gradient(to right, #ccc, #ccc); background-position: calc(100% – 27px) calc(1em + 2px), calc(100% – 15px) calc(1em + 2px), calc(100% – 3em) 0.8em; background-size: 12px 12px, 12px 12px, 2px 0em; background-repeat: no-repeat; appearance: none !important; -moz-appearance: none !important; -webkit-appearance: none !important; -ms-progress-appearance: none !important; } .doi-form form div.form-field label.doi-label.checkbox-label{ margin-left:28px; } .doi-form form div.form-field .doi-checkbox{ margin-left: -28px; width: 22px; height: 21px; } .doi-form form div.form-field .checkbox-label > .doi-checkbox.required + span::after{ content:” *”; color:var(–form-warning-color); font-weight: bold; } .doi-form form button.submit{ width:145px; height:55px; border:none !important; display:block; margin:30px auto; } .doi-form form.light{ background-color:var(–light-form-background); } .doi-form form.dark{ background-color:var(–dark-form-background); } .doi-form form.light .form-field .doi-label{ color:var(–light-form-font) ; } .doi-form form.dark .form-field .doi-label{ color:var(–dark-form-font) ; } .doi-form form.light button.submit{ background-color:#1d1645 ; color:#fff ; border-color:2px solid #fff !important; } .doi-form form.dark button.submit{ background-color:#1d1645 ; color:#fff ; } .doi-form-info{ color:var(–form-warning-color) !important; font-size:1.15em; } input.invalid, select.invalid{ border-color:var(–form-warning-color) !important; } function submitForm(token) { let form = document.getElementById(“doi-short”); console.log({“message”:”submitting form….”,”token”:token,”element”:form}); if(form.checkValidity()){ console.log({“message”:”form passed validity check…submitting”,”token”:token,”element”:form}); form.submit(); }else{ console.log({“message”:”form failed validity check”,”token”:token,”element”:form}); grecaptcha.reset(); var invalidInputs = form.querySelectorAll(‘:invalid’); for (var input of invalidInputs) { input.classList.add(“invalid”); } /*TODO Add this as multi langauge string!*/ document.getElementById(“ds-form-info”).innerText = “Please correct errors before submitting this form and make sure all required fields are filled out.”; } }
– Select Country –
<!–
–> <!–
–>
var langData ={ “short”:{ “de-DE”:{ “firstname”:”Vorname”, “lastname”:”Nachname”, “email”:”Geschäftliche E-Mail”, “country”:”Land”, “title”:”Job-Titel”, “company”:”Firma”, “message”:”Nachricht”, “appointment”:”Ich möchte gern mit jemandem sprechen, um weitere Informationen zu erhalten.”, “tracking-consent”:”Ich willige hiermit ein, dass die von mir auf dieser Website angegebenen Daten entsprechend der Datenschutzerklärung an „Encore’s Familiy of Companies” weitergegeben werden dürfen, damit meine Anfrage bestmöglich bearbeitet werden kann. Mir ist bekannt, dass diese Daten auch in Länder außerhalb des Geltungsbereichs der EU-DSGVO übermittelt und dort verarbeitet werden können. Ich willige hiermit auch ein, dass alle Unternehmen der „Encore‘s Familiy of Companies“ meine Daten über die konkrete Anfrage hinaus nutzen und mich gemäß ihrer Datenschutzerklärung kontaktieren und über Produkte und Dienstleistungen informieren können.”, “submit”:”Abschicken”, “country-placeholder”:”- Land auswählen -” }, “en-US”:{ “firstname”:”First Name”, “lastname”:”Last Name”, “email”:”Business E-mail”, “country”:”Country”, “title”:”Title”, “company”:”Company”, “message”:”Message”, “appointment”:”I would like to speak to someone and get more information”, “tracking-consent”:”I hereby consent that the data I provided on this website may be passed on to \”Encore’s Familiy of Companies\” accordingly to the privacy policy to so that my request can be processed in the best possible way. I am aware that this data may also be transferred to countries outside the scope of the EU-DSGVO and processed there. I hereby also consent to all companies of \”Encore’s Family of Companies\” to use my data beyond the concrete inquiry and to contact and inform me about products and services in accordance with their privacy policy“, “submit”:”Submit”, “country-placeholder”:”- Select Country -” }, “fr-FR”:{ “firstname”:”Prénom”, “lastname”:”Nom”, “email”:”E-mail professionnel”, “country”:”Pays”, “title”:”Fonction”, “company”:”Entreprise”, “message”:”Commentaire”, “appointment”:”Je souhaite parler à un responsable pour obtenir plus d’informations.”, “tracking-consent”:”Par la présente je consens à ce que les données que j’ai fournies sur ce site puissent être transmises à „Encore’s Familiy of Companies” conformément à la politique de confidentialité pour que ma demande soit traitée de la meilleure manière possible. Je suis conscient que ces données peuvent également être transférées dans des pays hors du champ d’application RGPD de l’Union Européenne et traitées là-bas. Je consens également à ce que toutes les entreprises de „Encore’s Familiy of Companies” utilisent mes données au-delà de cette demande concrète et me contactent pour m’informer des produits et services en accord avec leur politique de confidentialité.”, “submit”:”Soumettre”, “country-placeholder”:”- Sélectionnez un pays -” }, “nl-NL”:{ “firstname”:”Voornaam”, “lastname”:”Achternaam”, “email”:”Zakelijk E-mail”, “country”:”Land”, “title”:”Titel”, “company”:”Bedrijf”, “message”:”Bericht”, “appointment”:”Ik zou graag iemand willen spreken voor meer informatie.”, “tracking-consent”:”Hierbij geef ik toestemming dat de gegevens die ik op deze website heb verstrekt mogen worden doorgegeven aan \”Encore’s Global Team\” in overeenstemming met het privacy beleid, zodat mijn verzoek zo goed mogelijk kan worden verwerkt. Ik ben mij ervan bewust dat deze gegevens ook kunnen worden doorgegeven aan landen buiten het toepassingsgebied van de EU-DSGVO en daar kunnen worden verwerkt. Ik geef hierbij ook toestemming aan alle bedrijven van \”Encore’s Global Team\” om mijn gegevens te gebruiken buiten de concrete aanvraag om en om mij te contacteren en te informeren over producten en diensten in overeenstemming met hun privacy beleid.”, “submit”:”Indienen”, “country-placeholder”:”- Selecteer land -” } }, “long”:{ “de-DE”:{ “firstname”:”Vorname”, “lastname”:”Nachname”, “email”:”Geschäftliche E-Mail”, “country”:”Land”, “title”:”Job-Titel”, “company”:”Firma”, “message”:”Nachricht”, “appointment”:”Ich möchte gern mit jemandem sprechen, um weitere Informationen zu erhalten.”, “tracking-consent”:”Ich willige hiermit ein, dass die von mir auf dieser Website angegebenen Daten entsprechend der Datenschutzerklärung an „Encore’s Familiy of Companies” weitergegeben werden dürfen, damit meine Anfrage bestmöglich bearbeitet werden kann. Mir ist bekannt, dass diese Daten auch in Länder außerhalb des Geltungsbereichs der EU-DSGVO übermittelt und dort verarbeitet werden können. Ich willige hiermit auch ein, dass alle Unternehmen der „Encore‘s Familiy of Companies“ meine Daten über die konkrete Anfrage hinaus nutzen und mich gemäß ihrer Datenschutzerklärung kontaktieren und über Produkte und Dienstleistungen informieren können.”, “submit”:”Abschicken”, “country-placeholder”:”- Land auswählen -” }, “en-US”:{ “firstname”:”First Name”, “lastname”:”Last Name”, “email”:”Business E-mail”, “country”:”Country”, “title”:”Title”, “company”:”Company”, “message”:”Message”, “appointment”:”I would like to speak to someone and get more information”, “tracking-consent”:”I hereby consent that the data I provided on this website may be passed on to \”Encore’s Familiy of Companies\” accordingly to the privacy policy to so that my request can be processed in the best possible way. I am aware that this data may also be transferred to countries outside the scope of the EU-DSGVO and processed there. I hereby also consent to all companies of \”Encore’s Family of Companies\” to use my data beyond the concrete inquiry and to contact and inform me about products and services in accordance with their privacy policy“, “submit”:”Submit”, “country-placeholder”:”- Select Country -” }, “fr-FR”:{ “firstname”:”Prénom”, “lastname”:”Nom”, “email”:”E-mail professionnel”, “country”:”Pays”, “title”:”Fonction”, “company”:”Entreprise”, “message”:”Commentaire”, “appointment”:”Je souhaite parler à un responsable pour obtenir plus d’informations.”, “tracking-consent”:”Par la présente je consens à ce que les données que j’ai fournies sur ce site puissent être transmises à „Encore’s Familiy of Companies” conformément à la politique de confidentialité pour que ma demande soit traitée de la meilleure manière possible. Je suis conscient que ces données peuvent également être transférées dans des pays hors du champ d’application RGPD de l’Union Européenne et traitées là-bas. Je consens également à ce que toutes les entreprises de „Encore’s Familiy of Companies” utilisent mes données au-delà de cette demande concrète et me contactent pour m’informer des produits et services en accord avec leur politique de confidentialité.”, “submit”:”Soumettre”, “country-placeholder”:”- Sélectionnez un pays -” }, “nl-NL”:{ “firstname”:”Voornaam”, “lastname”:”Achternaam”, “email”:”Zakelijk E-mail”, “country”:”Land”, “title”:”Titel”, “company”:”Bedrijf”, “message”:”Bericht”, “appointment”:”Ik zou graag iemand willen spreken voor meer informatie.”, “tracking-consent”:”Hierbij geef ik toestemming dat de gegevens die ik op deze website heb verstrekt mogen worden doorgegeven aan \”Encore’s Global Team\” in overeenstemming met het privacy beleid, zodat mijn verzoek zo goed mogelijk kan worden verwerkt. Ik ben mij ervan bewust dat deze gegevens ook kunnen worden doorgegeven aan landen buiten het toepassingsgebied van de EU-DSGVO en daar kunnen worden verwerkt. Ik geef hierbij ook toestemming aan alle bedrijven van \”Encore’s Global Team\” om mijn gegevens te gebruiken buiten de concrete aanvraag om en om mij te contacteren en te informeren over producten en diensten in overeenstemming met hun privacy beleid.”, “submit”:”Indienen”, “country-placeholder”:”- Selecteer land -” } } } /*TODO use Rest Countries API instead, maybe leave local file as fallback*/ var countriesData = [ { “value”: “AF”, “group”: “A”, “text”: “Afghanistan” }, { “value”: “AL”, “group”: “A”, “text”: “Albania” }, { “value”: “DZ”, “group”: “A”, “text”: “Algeria” }, { “value”: “AD”, “group”: “A”, “text”: “Andorra” }, { “value”: “AO”, “group”: “A”, “text”: “Angola” }, { “value”: “AR”, “group”: “A”, “text”: “Argentina” }, { “value”: “AM”, “group”: “A”, “text”: “Armenia” }, { “value”: “AW”, “group”: “A”, “text”: “Aruba” }, { “value”: “AU”, “group”: “A”, “text”: “Australia” }, { “value”: “AT”, “group”: “A”, “text”: “Austria” }, { “value”: “AZ”, “group”: “A”, “text”: “Azerbaijan” }, { “value”: “BH”, “group”: “B”, “text”: “Bahrain” }, { “value”: “BD”, “group”: “B”, “text”: “Bangladesh” }, { “value”: “BY”, “group”: “B”, “text”: “Belarus” }, { “value”: “BE”, “group”: “B”, “text”: “Belgium” }, { “value”: “BZ”, “group”: “B”, “text”: “Belize” }, { “value”: “BJ”, “group”: “B”, “text”: “Benin” }, { “value”: “BT”, “group”: “B”, “text”: “Bhutan” }, { “value”: “BO”, “group”: “B”, “text”: “Bolivia” }, { “value”: “BA”, “group”: “B”, “text”: “Bosnia And Herzegovina” }, { “value”: “BW”, “group”: “B”, “text”: “Botswana” }, { “value”: “BR”, “group”: “B”, “text”: “Brazil” }, { “value”: “IO”, “group”: “B”, “text”: “British Indian Ocean Territory” }, { “value”: “BN”, “group”: “B”, “text”: “Brunei Darussalam” }, { “value”: “BG”, “group”: “B”, “text”: “Bulgaria” }, { “value”: “BF”, “group”: “B”, “text”: “Burkina Faso” }, { “value”: “BI”, “group”: “B”, “text”: “Burundi” }, { “value”: “KH”, “group”: “C”, “text”: “Cambodia” }, { “value”: “CM”, “group”: “C”, “text”: “Cameroon” }, { “value”: “CV”, “group”: “C”, “text”: “Cape Verde” }, { “value”: “CF”, “group”: “C”, “text”: “Central African Republic” }, { “value”: “TD”, “group”: “C”, “text”: “Chad” }, { “value”: “CL”, “group”: “C”, “text”: “Chile” }, { “value”: “CN”, “group”: “C”, “text”: “China” }, { “value”: “CO”, “group”: “C”, “text”: “Colombia” }, { “value”: “KM”, “group”: “C”, “text”: “Comoros” }, { “value”: “CG”, “group”: “C”, “text”: “Congo” }, { “value”: “CD”, “group”: “C”, “text”: “Congo, Democratic Republic” }, { “value”: “CK”, “group”: “C”, “text”: “Cook Islands” }, { “value”: “CR”, “group”: “C”, “text”: “Costa Rica” }, { “value”: “CI”, “group”: “C”, “text”: “Cote D’Ivoire” }, { “value”: “HR”, “group”: “C”, “text”: “Croatia” }, { “value”: “CU”, “group”: “C”, “text”: “Cuba” }, { “value”: “CY”, “group”: “C”, “text”: “Cyprus” }, { “value”: “CZ”, “group”: “C”, “text”: “Czech Republic” }, { “value”: “DK”, “group”: “D”, “text”: “Denmark” }, { “value”: “DJ”, “group”: “D”, “text”: “Djibouti” }, { “value”: “EC”, “group”: “E”, “text”: “Ecuador” }, { “value”: “EG”, “group”: “E”, “text”: “Egypt” }, { “value”: “SV”, “group”: “E”, “text”: “El Salvador” }, { “value”: “GQ”, “group”: “E”, “text”: “Equatorial Guinea” }, { “value”: “ER”, “group”: “E”, “text”: “Eritrea” }, { “value”: “EE”, “group”: “E”, “text”: “Estonia” }, { “value”: “ET”, “group”: “E”, “text”: “Ethiopia” }, { “value”: “FK”, “group”: “F”, “text”: “Falkland Islands (Malvinas)” }, { “value”: “FO”, “group”: “F”, “text”: “Faroe Islands” }, { “value”: “FJ”, “group”: “F”, “text”: “Fiji” }, { “value”: “FI”, “group”: “F”, “text”: “Finland” }, { “value”: “FR”, “group”: “F”, “text”: “France” }, { “value”: “PF”, “group”: “F”, “text”: “French Polynesia” }, { “value”: “GA”, “group”: “G”, “text”: “Gabon” }, { “value”: “GM”, “group”: “G”, “text”: “Gambia” }, { “value”: “GE”, “group”: “G”, “text”: “Georgia” }, { “value”: “DE”, “group”: “G”, “text”: “Germany” }, { “value”: “GH”, “group”: “G”, “text”: “Ghana” }, { “value”: “GI”, “group”: “G”, “text”: “Gibraltar” }, { “value”: “GR”, “group”: “G”, “text”: “Greece” }, { “value”: “GL”, “group”: “G”, “text”: “Greenland” }, { “value”: “GT”, “group”: “G”, “text”: “Guatemala” }, { “value”: “GN”, “group”: “G”, “text”: “Guinea” }, { “value”: “GW”, “group”: “G”, “text”: “Guinea-Bissau” }, { “value”: “GY”, “group”: “G”, “text”: “Guyana” }, { “value”: “HT”, “group”: “H”, “text”: “Haiti” }, { “value”: “HN”, “group”: “H”, “text”: “Honduras” }, { “value”: “HK”, “group”: “H”, “text”: “Hong Kong” }, { “value”: “HU”, “group”: “H”, “text”: “Hungary” }, { “value”: “IS”, “group”: “I”, “text”: “Iceland” }, { “value”: “IN”, “group”: “I”, “text”: “India” }, { “value”: “ID”, “group”: “I”, “text”: “Indonesia” }, { “value”: “IR”, “group”: “I”, “text”: “Iran, Islamic Republic Of” }, { “value”: “IQ”, “group”: “I”, “text”: “Iraq” }, { “value”: “IE”, “group”: “I”, “text”: “Ireland” }, { “value”: “IL”, “group”: “I”, “text”: “Israel” }, { “value”: “IT”, “group”: “I”, “text”: “Italy” }, { “value”: “JP”, “group”: “J”, “text”: “Japan” }, { “value”: “JO”, “group”: “J”, “text”: “Jordan” }, { “value”: “KP”, “group”: “K”, “text”: “KP” }, { “value”: “KE”, “group”: “K”, “text”: “Kenya” }, { “value”: “KI”, “group”: “K”, “text”: “Kiribati” }, { “value”: “KR”, “group”: “K”, “text”: “Korea” }, { “value”: “KW”, “group”: “K”, “text”: “Kuwait” }, { “value”: “KG”, “group”: “K”, “text”: “Kyrgyzstan” }, { “value”: “LA”, “group”: “L”, “text”: “Lao People’s Democratic Republic” }, { “value”: “LV”, “group”: “L”, “text”: “Latvia” }, { “value”: “LB”, “group”: “L”, “text”: “Lebanon” }, { “value”: “LS”, “group”: “L”, “text”: “Lesotho” }, { “value”: “LR”, “group”: “L”, “text”: “Liberia” }, { “value”: “LY”, “group”: “L”, “text”: “Libyan Arab Jamahiriya” }, { “value”: “LI”, “group”: “L”, “text”: “Liechtenstein” }, { “value”: “LT”, “group”: “L”, “text”: “Lithuania” }, { “value”: “LU”, “group”: “L”, “text”: “Luxembourg” }, { “value”: “MO”, “group”: “M”, “text”: “Macao” }, { “value”: “MK”, “group”: “M”, “text”: “Macedonia” }, { “value”: “MG”, “group”: “M”, “text”: “Madagascar” }, { “value”: “MW”, “group”: “M”, “text”: “Malawi” }, { “value”: “MY”, “group”: “M”, “text”: “Malaysia” }, { “value”: “MV”, “group”: “M”, “text”: “Maldives” }, { “value”: “ML”, “group”: “M”, “text”: “Mali” }, { “value”: “MT”, “group”: “M”, “text”: “Malta” }, { “value”: “MH”, “group”: “M”, “text”: “Marshall Islands” }, { “value”: “MR”, “group”: “M”, “text”: “Mauritania” }, { “value”: “MU”, “group”: “M”, “text”: “Mauritius” }, { “value”: “MX”, “group”: “M”, “text”: “Mexico” }, { “value”: “FM”, “group”: “M”, “text”: “Micronesia, Federated States Of” }, { “value”: “MD”, “group”: “M”, “text”: “Moldova” }, { “value”: “MC”, “group”: “M”, “text”: “Monaco” }, { “value”: “MN”, “group”: “M”, “text”: “Mongolia” }, { “value”: “ME”, “group”: “M”, “text”: “Montenegro” }, { “value”: “MA”, “group”: “M”, “text”: “Morocco” }, { “value”: “MZ”, “group”: “M”, “text”: “Mozambique” }, { “value”: “NA”, “group”: “N”, “text”: “Namibia” }, { “value”: “NL”, “group”: “N”, “text”: “Netherlands” }, { “value”: “NC”, “group”: “N”, “text”: “New Caledonia” }, { “value”: “NZ”, “group”: “N”, “text”: “New Zealand” }, { “value”: “NI”, “group”: “N”, “text”: “Nicaragua” }, { “value”: “NE”, “group”: “N”, “text”: “Niger” }, { “value”: “NG”, “group”: “N”, “text”: “Nigeria” }, { “value”: “NU”, “group”: “N”, “text”: “Niue” }, { “value”: “NF”, “group”: “N”, “text”: “Norfolk Island” }, { “value”: “NO”, “group”: “N”, “text”: “Norway” }, { “value”: “OM”, “group”: “A”, “text”: “Oman” }, { “value”: “PK”, “group”: “P”, “text”: “Pakistan” }, { “value”: “PA”, “group”: “P”, “text”: “Panama” }, { “value”: “PG”, “group”: “P”, “text”: “Papua New Guinea” }, { “value”: “PY”, “group”: “P”, “text”: “Paraguay” }, { “value”: “PE”, “group”: “P”, “text”: “Peru” }, { “value”: “PH”, “group”: “P”, “text”: “Philippines” }, { “value”: “PL”, “group”: “P”, “text”: “Poland” }, { “value”: “PT”, “group”: “P”, “text”: “Portugal” }, { “value”: “QA”, “group”: “A”, “text”: “Qatar” }, { “value”: “RO”, “group”: “R”, “text”: “Romania” }, { “value”: “RU”, “group”: “R”, “text”: “Russian Federation” }, { “value”: “RW”, “group”: “R”, “text”: “Rwanda” }, { “value”: “WS”, “group”: “S”, “text”: “Samoa” }, { “value”: “SM”, “group”: “S”, “text”: “San Marino” }, { “value”: “ST”, “group”: “S”, “text”: “Sao Tome And Principe” }, { “value”: “SA”, “group”: “S”, “text”: “Saudi Arabia” }, { “value”: “SN”, “group”: “S”, “text”: “Senegal” }, { “value”: “RS”, “group”: “S”, “text”: “Serbia” }, { “value”: “SC”, “group”: “S”, “text”: “Seychelles” }, { “value”: “SL”, “group”: “S”, “text”: “Sierra Leone” }, { “value”: “SG”, “group”: “S”, “text”: “Singapore” }, { “value”: “SK”, “group”: “S”, “text”: “Slovakia” }, { “value”: “SI”, “group”: “S”, “text”: “Slovenia” }, { “value”: “SB”, “group”: “S”, “text”: “Solomon Islands” }, { “value”: “SO”, “group”: “S”, “text”: “Somalia” }, { “value”: “ZA”, “group”: “S”, “text”: “South Africa” }, { “value”: “ES”, “group”: “S”, “text”: “Spain” }, { “value”: “LK”, “group”: “S”, “text”: “Sri Lanka” }, { “value”: “SD”, “group”: “S”, “text”: “Sudan” }, { “value”: “SR”, “group”: “S”, “text”: “Suriname” }, { “value”: “SZ”, “group”: “S”, “text”: “Swaziland” }, { “value”: “SE”, “group”: “S”, “text”: “Sweden” }, { “value”: “CH”, “group”: “S”, “text”: “Switzerland” }, { “value”: “SY”, “group”: “S”, “text”: “Syrian Arab Republic” }, { “value”: “TW”, “group”: “T”, “text”: “Taiwan” }, { “value”: “TJ”, “group”: “T”, “text”: “Tajikistan” }, { “value”: “TZ”, “group”: “T”, “text”: “Tanzania” }, { “value”: “TH”, “group”: “T”, “text”: “Thailand” }, { “value”: “TL”, “group”: “T”, “text”: “Timor-Leste” }, { “value”: “TG”, “group”: “T”, “text”: “Togo” }, { “value”: “TK”, “group”: “T”, “text”: “Tokelau” }, { “value”: “TO”, “group”: “T”, “text”: “Tonga” }, { “value”: “TN”, “group”: “T”, “text”: “Tunisia” }, { “value”: “TR”, “group”: “T”, “text”: “Turkey” }, { “value”: “TM”, “group”: “T”, “text”: “Turkmenistan” }, { “value”: “TV”, “group”: “T”, “text”: “Tuvalu” }, { “value”: “UG”, “group”: “U”, “text”: “Uganda” }, { “value”: “UA”, “group”: “U”, “text”: “Ukraine” }, { “value”: “AE”, “group”: “U”, “text”: “United Arab Emirates” }, { “value”: “GB”, “group”: “U”, “text”: “United Kingdom” }, { “value”: “US”, “group”: “U”, “text”: “United States” }, { “value”: “UY”, “group”: “U”, “text”: “Uruguay” }, { “value”: “VU”, “group”: “V”, “text”: “Vanuatu” }, { “value”: “VE”, “group”: “V”, “text”: “Venezuela” }, { “value”: “VN”, “group”: “V”, “text”: “Viet Nam” }, { “value”: “WF”, “group”: “W”, “text”: “Wallis And Futuna” }, { “value”: “YE”, “group”: “Y”, “text”: “Yemen” }, { “value”: “ZM”, “group”: “Z”, “text”: “Zambia” }, { “value”: “ZW”, “group”: “Z”, “text”: “Zimbabwe” } ] /*get url form is hosted on to pass onto inxmail*/ document.getElementById(“ds-form-url”).value = window.location.href; function populateCountrySelect(data){ let countries = data; let selectField = document.getElementById(“ds-country”); if (Array.isArray(countries)) { countries.forEach(country => { let option = document.createElement(“option”); option.setAttribute(“value”,country.text) option.innerText = country.text; selectField.appendChild(option); }); }else{ console.log(“data provided is not an array”) } } function updateLanguage(lang, form){ var formType = document.getElementById(form).getAttribute(“form-type”); var langElements = [].slice.call(document.querySelectorAll( “#”+ form + ‘ [lang-data]’)); var tooltipList = langElements.map(function (langElement) { langElement.innerHTML = langData[formType][lang][langElement.getAttribute(“lang-data”)] }) } populateCountrySelect(countriesData); updateLanguage(document.documentElement.lang,”doi-short”); /* */ switch (document.documentElement.lang) { case “en-US”: document.getElementById(“ds-inx-listname”).value = “Lead Gen – Encore EMEA – ENG”; document.getElementById(“site-lang”).value = “en-US”; break; case “de-DE”: document.getElementById(“ds-inx-listname”).value = “Lead Gen – Encore EMEA – GER”; document.getElementById(“site-lang”).value = “de-DE”; break; case “fr-FR”: document.getElementById(“ds-inx-listname”).value = “Lead Gen – Encore EMEA – FRA”; document.getElementById(“site-lang”).value = “fr-FR”; break; case “nl-NL”: document.getElementById(“ds-inx-listname”).value = “Lead Gen – Encore EMEA – NL”; document.getElementById(“site-lang”).value = “nl-NL”; break; } /*var callbackvalue = false; document.getElementById(‘ds-appointment’).value = callbackvalue; document.getElementById(‘ds-appointment’).onclick = function() { document.getElementById(‘ds-appointment’).value = !callbackvalue; callbackvalue = !callbackvalue; }*/