Created
May 17, 2017 03:17
-
-
Save chluther/cb35d606ca04af3bb2db059939007931 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/qonode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="de" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<script src="https://code.jquery.com/jquery-2.0.3.js"></script> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div id="capture_publicProfile_stringdata_public_designation_name" class="capture_data_item capture_stringdata_public_designation_name" data-capturefield="undefined"> | |
<label for="capture_publicProfile_public_designation_name">Tätigkeit</label> | |
<div id="capture_publicProfile_public_designation_name" class="capture_data capture_public_designation_name" data-capturefield="undefined"> | |
Doctor | |
</div> | |
</div> | |
<div id="capture_publicProfile_stringdata_public_designation_specialty" class="capture_data_item capture_stringdata_public_designation_specialty" data-capturefield="undefined"> | |
<label for="capture_publicProfile_public_designation_specialty">Spezialisierung</label> | |
<div id="capture_publicProfile_public_designation_specialty" class="capture_data capture_public_designation_specialty" data-capturefield="undefined"> | |
Geriatrics | |
</div> | |
</div> | |
<script id="jsbin-javascript"> | |
var currentLangauge, profession, specialty, pro_loc, spec_loc; | |
currentLangauge = 'de'; // get from environment | |
var globalTranslations = { | |
"en":{ | |
"Other": "Other", | |
"Pharmacist": "Pharmacist", | |
"Doctor": "Doctor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Hospital Pharmacist", | |
"General practitioner": "General practitioner", | |
"Anesthesia" : "Anesthesia", | |
"Dermatology": "Dermatology", | |
"Endocrinology": "Endocrinology", | |
"Gastroenterology": "Gastroenterology", | |
"Obstetrics & Gynecology": "Obstetrics & Gynecology", | |
"Geriatrics": "Geriatrics", | |
"Hematology": "Hematology", | |
"Immunology": "Immunology", | |
"Vaccinations": "Vaccinations", | |
"Infectious Diseases": "Infectious Diseases", | |
"Internal Medicine": "Internal Medicine", | |
"Cardiology": "Cardiology", | |
"Neurology": "Neurology", | |
"Emergency medicine": "Emergency medicine", | |
"Oncology": "Oncology", | |
"Ophthalmology": "Ophthalmology", | |
"Orthopedics": "Orthopedics", | |
"Pediatrics": "Pediatrics", | |
"Pneumology": "Pneumology", | |
"Preventive Medicine": "Preventive Medicine", | |
"Psychiatry": "Psychiatry", | |
"Rheumatology": "Rheumatology", | |
"Pain Specialist": "Pain Specialist", | |
"Urogynaecology": "Urogynaecology", | |
"Urology": "Urology", | |
"Not applicable": "Not applicable" | |
} | |
"fr":{ | |
"Other": "Autre", | |
"Pharmacist": "Pharmacien", | |
"Doctor": "Docteur", | |
"Professor": "Professeur", | |
"Hospital Pharmacist": "Hôpital Pharmacologue", | |
"General practitioner": "Médecin généraliste", | |
"Anesthesia" : "Anesthésie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endocrinologie", | |
"Gastroenterology": "Gastroentérologie", | |
"Obstetrics & Gynecology": "Obstétrique et gynécologie", | |
"Geriatrics": "Gériatrie", | |
"Hematology": "Hématologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Vaccination", | |
"Infectious Diseases": "Maladies infectieuses", | |
"Internal Medicine": "Médecine interne", | |
"Cardiology": "Cardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Médecine d'urgence", | |
"Oncology": "Oncologie", | |
"Ophthalmology": "Ophtalmologie", | |
"Orthopedics": "Orthopédie", | |
"Pediatrics": "Pédiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Médecine préventive", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rhumatologie", | |
"Pain Specialist": "Spécialiste de la douleur", | |
"Urogynaecology": "Urogynaecologie", | |
"Urology": "Urologie", | |
"Not applicable": "Sans objet" | |
} | |
"de":{ | |
"Other": "Andere", | |
"Pharmacist": "Apotheker", | |
"Doctor": "Doktor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Krankenhaus-Apotheker", | |
"General practitioner": "Allgemeinmediziner", | |
"Anesthesia" : "Anästhesie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endokrinologie", | |
"Gastroenterology": "Gastroenterologie", | |
"Obstetrics & Gynecology": "Geburtshilfe & Gynäkologie", | |
"Geriatrics": "Geriatrie", | |
"Hematology": "Hämatologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Impfungen", | |
"Infectious Diseases": "Infektionskrankheiten", | |
"Internal Medicine": "Innere Medizin", | |
"Cardiology": "Kardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Notfallmedizin", | |
"Oncology": "Onkologie", | |
"Ophthalmology": "Ophthalmologie", | |
"Orthopedics": "Orthopädie", | |
"Pediatrics": "Pädiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Präventive Medizin", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rheumatologie", | |
"Pain Specialist": "Schmerzspezialist", | |
"Urogynaecology": "Urogynäkologie", | |
"Urology": "Urologie", | |
"Not applicable": "Nicht zutreffend" | |
} | |
} | |
function | |
profession = $('div#capture_publicProfile_public_designation_name').text().trim(); | |
specialty = $('div#capture_publicProfile_public_designation_specialty').text().trim(); | |
pro_loc = $.i18n( profession ); | |
spec_loc = $.i18n( specialty ); | |
console.log('Saved profession: ' + profession + ', localized profession: ' + pro_loc ); | |
console.log('Saved specialty: ' + specialty + ', localized specialty: ' + spec_loc ); | |
$('div#capture_publicProfile_public_designation_name').html(profession); | |
$('div#capture_publicProfile_public_designation_specialty').html(specialty); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var currentLangauge, profession, specialty, pro_loc, spec_loc; | |
currentLangauge = 'de'; // get from environment | |
var globalTranslations = { | |
"en":{ | |
"Other": "Other", | |
"Pharmacist": "Pharmacist", | |
"Doctor": "Doctor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Hospital Pharmacist", | |
"General practitioner": "General practitioner", | |
"Anesthesia" : "Anesthesia", | |
"Dermatology": "Dermatology", | |
"Endocrinology": "Endocrinology", | |
"Gastroenterology": "Gastroenterology", | |
"Obstetrics & Gynecology": "Obstetrics & Gynecology", | |
"Geriatrics": "Geriatrics", | |
"Hematology": "Hematology", | |
"Immunology": "Immunology", | |
"Vaccinations": "Vaccinations", | |
"Infectious Diseases": "Infectious Diseases", | |
"Internal Medicine": "Internal Medicine", | |
"Cardiology": "Cardiology", | |
"Neurology": "Neurology", | |
"Emergency medicine": "Emergency medicine", | |
"Oncology": "Oncology", | |
"Ophthalmology": "Ophthalmology", | |
"Orthopedics": "Orthopedics", | |
"Pediatrics": "Pediatrics", | |
"Pneumology": "Pneumology", | |
"Preventive Medicine": "Preventive Medicine", | |
"Psychiatry": "Psychiatry", | |
"Rheumatology": "Rheumatology", | |
"Pain Specialist": "Pain Specialist", | |
"Urogynaecology": "Urogynaecology", | |
"Urology": "Urology", | |
"Not applicable": "Not applicable" | |
} | |
"fr":{ | |
"Other": "Autre", | |
"Pharmacist": "Pharmacien", | |
"Doctor": "Docteur", | |
"Professor": "Professeur", | |
"Hospital Pharmacist": "Hôpital Pharmacologue", | |
"General practitioner": "Médecin généraliste", | |
"Anesthesia" : "Anesthésie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endocrinologie", | |
"Gastroenterology": "Gastroentérologie", | |
"Obstetrics & Gynecology": "Obstétrique et gynécologie", | |
"Geriatrics": "Gériatrie", | |
"Hematology": "Hématologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Vaccination", | |
"Infectious Diseases": "Maladies infectieuses", | |
"Internal Medicine": "Médecine interne", | |
"Cardiology": "Cardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Médecine d'urgence", | |
"Oncology": "Oncologie", | |
"Ophthalmology": "Ophtalmologie", | |
"Orthopedics": "Orthopédie", | |
"Pediatrics": "Pédiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Médecine préventive", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rhumatologie", | |
"Pain Specialist": "Spécialiste de la douleur", | |
"Urogynaecology": "Urogynaecologie", | |
"Urology": "Urologie", | |
"Not applicable": "Sans objet" | |
} | |
"de":{ | |
"Other": "Andere", | |
"Pharmacist": "Apotheker", | |
"Doctor": "Doktor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Krankenhaus-Apotheker", | |
"General practitioner": "Allgemeinmediziner", | |
"Anesthesia" : "Anästhesie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endokrinologie", | |
"Gastroenterology": "Gastroenterologie", | |
"Obstetrics & Gynecology": "Geburtshilfe & Gynäkologie", | |
"Geriatrics": "Geriatrie", | |
"Hematology": "Hämatologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Impfungen", | |
"Infectious Diseases": "Infektionskrankheiten", | |
"Internal Medicine": "Innere Medizin", | |
"Cardiology": "Kardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Notfallmedizin", | |
"Oncology": "Onkologie", | |
"Ophthalmology": "Ophthalmologie", | |
"Orthopedics": "Orthopädie", | |
"Pediatrics": "Pädiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Präventive Medizin", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rheumatologie", | |
"Pain Specialist": "Schmerzspezialist", | |
"Urogynaecology": "Urogynäkologie", | |
"Urology": "Urologie", | |
"Not applicable": "Nicht zutreffend" | |
} | |
} | |
function | |
profession = $('div#capture_publicProfile_public_designation_name').text().trim(); | |
specialty = $('div#capture_publicProfile_public_designation_specialty').text().trim(); | |
pro_loc = $.i18n( profession ); | |
spec_loc = $.i18n( specialty ); | |
console.log('Saved profession: ' + profession + ', localized profession: ' + pro_loc ); | |
console.log('Saved specialty: ' + specialty + ', localized specialty: ' + spec_loc ); | |
$('div#capture_publicProfile_public_designation_name').html(profession); | |
$('div#capture_publicProfile_public_designation_specialty').html(specialty); | |
</script></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var currentLangauge, profession, specialty, pro_loc, spec_loc; | |
currentLangauge = 'de'; // get from environment | |
var globalTranslations = { | |
"en":{ | |
"Other": "Other", | |
"Pharmacist": "Pharmacist", | |
"Doctor": "Doctor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Hospital Pharmacist", | |
"General practitioner": "General practitioner", | |
"Anesthesia" : "Anesthesia", | |
"Dermatology": "Dermatology", | |
"Endocrinology": "Endocrinology", | |
"Gastroenterology": "Gastroenterology", | |
"Obstetrics & Gynecology": "Obstetrics & Gynecology", | |
"Geriatrics": "Geriatrics", | |
"Hematology": "Hematology", | |
"Immunology": "Immunology", | |
"Vaccinations": "Vaccinations", | |
"Infectious Diseases": "Infectious Diseases", | |
"Internal Medicine": "Internal Medicine", | |
"Cardiology": "Cardiology", | |
"Neurology": "Neurology", | |
"Emergency medicine": "Emergency medicine", | |
"Oncology": "Oncology", | |
"Ophthalmology": "Ophthalmology", | |
"Orthopedics": "Orthopedics", | |
"Pediatrics": "Pediatrics", | |
"Pneumology": "Pneumology", | |
"Preventive Medicine": "Preventive Medicine", | |
"Psychiatry": "Psychiatry", | |
"Rheumatology": "Rheumatology", | |
"Pain Specialist": "Pain Specialist", | |
"Urogynaecology": "Urogynaecology", | |
"Urology": "Urology", | |
"Not applicable": "Not applicable" | |
} | |
"fr":{ | |
"Other": "Autre", | |
"Pharmacist": "Pharmacien", | |
"Doctor": "Docteur", | |
"Professor": "Professeur", | |
"Hospital Pharmacist": "Hôpital Pharmacologue", | |
"General practitioner": "Médecin généraliste", | |
"Anesthesia" : "Anesthésie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endocrinologie", | |
"Gastroenterology": "Gastroentérologie", | |
"Obstetrics & Gynecology": "Obstétrique et gynécologie", | |
"Geriatrics": "Gériatrie", | |
"Hematology": "Hématologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Vaccination", | |
"Infectious Diseases": "Maladies infectieuses", | |
"Internal Medicine": "Médecine interne", | |
"Cardiology": "Cardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Médecine d'urgence", | |
"Oncology": "Oncologie", | |
"Ophthalmology": "Ophtalmologie", | |
"Orthopedics": "Orthopédie", | |
"Pediatrics": "Pédiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Médecine préventive", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rhumatologie", | |
"Pain Specialist": "Spécialiste de la douleur", | |
"Urogynaecology": "Urogynaecologie", | |
"Urology": "Urologie", | |
"Not applicable": "Sans objet" | |
} | |
"de":{ | |
"Other": "Andere", | |
"Pharmacist": "Apotheker", | |
"Doctor": "Doktor", | |
"Professor": "Professor", | |
"Hospital Pharmacist": "Krankenhaus-Apotheker", | |
"General practitioner": "Allgemeinmediziner", | |
"Anesthesia" : "Anästhesie", | |
"Dermatology": "Dermatologie", | |
"Endocrinology": "Endokrinologie", | |
"Gastroenterology": "Gastroenterologie", | |
"Obstetrics & Gynecology": "Geburtshilfe & Gynäkologie", | |
"Geriatrics": "Geriatrie", | |
"Hematology": "Hämatologie", | |
"Immunology": "Immunologie", | |
"Vaccinations": "Impfungen", | |
"Infectious Diseases": "Infektionskrankheiten", | |
"Internal Medicine": "Innere Medizin", | |
"Cardiology": "Kardiologie", | |
"Neurology": "Neurologie", | |
"Emergency medicine": "Notfallmedizin", | |
"Oncology": "Onkologie", | |
"Ophthalmology": "Ophthalmologie", | |
"Orthopedics": "Orthopädie", | |
"Pediatrics": "Pädiatrie", | |
"Pneumology": "Pneumologie", | |
"Preventive Medicine": "Präventive Medizin", | |
"Psychiatry": "Psychiatrie", | |
"Rheumatology": "Rheumatologie", | |
"Pain Specialist": "Schmerzspezialist", | |
"Urogynaecology": "Urogynäkologie", | |
"Urology": "Urologie", | |
"Not applicable": "Nicht zutreffend" | |
} | |
} | |
function | |
profession = $('div#capture_publicProfile_public_designation_name').text().trim(); | |
specialty = $('div#capture_publicProfile_public_designation_specialty').text().trim(); | |
pro_loc = $.i18n( profession ); | |
spec_loc = $.i18n( specialty ); | |
console.log('Saved profession: ' + profession + ', localized profession: ' + pro_loc ); | |
console.log('Saved specialty: ' + specialty + ', localized specialty: ' + spec_loc ); | |
$('div#capture_publicProfile_public_designation_name').html(profession); | |
$('div#capture_publicProfile_public_designation_specialty').html(specialty); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment