'; } }); $(".clinicPictures").html(clinicPictureHtml); $(".clinicVideos").html(clinicVideoHtml); setTimeout(function () { $('.gallery-item').unbind().magnificPopup({ type: 'image', gallery: { enabled: true, }, preloader: false, callbacks: { open: function () { }, close: function (item) { }, change: function () { var m = $(this)[0]; var srcImage = $(this)["0"].currItem.el["0"].children.fileThumbImage.src; var m = $(this)[0]; $(m.currItem.img).attr("src", srcImage +"&s=lg"); } } }); $('audio,video').bind('play', function () { activated = this; $('audio,video').each(function () { if (this != activated) this.pause(); }); }); $('audio,video').bind('contextmenu', function () { return false; }); }, 1000); } }); } function getClinicForClinicProfileByID(denteeClinicGUID, denteeDoctorGUID) { var searchDentistClinic = { DenteeClinicGUID: denteeClinicGUID, DenteeDoctorGUID: denteeDoctorGUID, ClinicName: "", Areas: null, City: null, PageIndex: 0, PageSize: 0 }; $.post("/getclinicsfromserver", { getDenteeClinicsParamDTO: searchDentistClinic }, function (data, textStatus, jqXhr) { if (data == null || data.clinicDTOs == null || data.clinicDTOs.length == 0) { } else { var appointmentClinic = data.clinicDTOs[0]; var formattedAddresss = ((appointmentClinic.AddressNo1 == null || appointmentClinic.AddressNo1.trim() == "") ? "" : appointmentClinic.AddressNo1); formattedAddresss += ((appointmentClinic.AddressNo2 == null || appointmentClinic.AddressNo2.trim() == "") ? "" : " " + appointmentClinic.AddressNo2); //formattedAddresss += ((appointmentClinic.Area == null || appointmentClinic.Area.trim() == "") ? "" : " " + appointmentClinic.Area);//Commented By VIkash formattedAddresss += ((appointmentClinic.City == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.City); formattedAddresss += ((appointmentClinic.State == null || appointmentClinic.State.trim() == "") ? "" : " " + appointmentClinic.State); formattedAddresss += ((appointmentClinic.Country == null || appointmentClinic.Country.trim() == "") ? "" : " " + appointmentClinic.Country); formattedAddresss += ((appointmentClinic.Pincode == null || appointmentClinic.Pincode.trim() == "") ? "" : " " + appointmentClinic.Pincode); $(".clinicAddress").text(formattedAddresss); $(".paraAboutClinic").html(appointmentClinic.AboutClinic); //var newAddress = appointmentClinic.ClinicName + " " + appointmentClinic.AddressNo1 + " " + appointmentClinic.AddressNo2 + " " + appointmentClinic.Area + " " + appointmentClinic.City + " " + appointmentClinic.Country; if (appointmentClinic.Latitude != null && appointmentClinic.Latitude != "0" && appointmentClinic.Latitude != "" && appointmentClinic.Longitude != null && appointmentClinic.Longitude != "0" && appointmentClinic.Longitude != "") { var newAddress = appointmentClinic.Latitude + "," + appointmentClinic.Longitude; $('#ifrmGoogleMap').removeAttr('src'); $('#ifrmGoogleMap').attr('src', 'https://www.google.com/maps/embed/v1/place?key=AIzaSyD5LxiCtxBwaApqFlcKAX6gLgaAb2sr7LE&q=' + newAddress); $('.clinicMapLabel').show(); $('#ifrmGoogleMap').show(); //$('#ifrmGoogleMap').attr('src', "https://maps.google.com/maps?q=" + appointmentClinic.Latitude + "," + appointmentClinic.Longitude + "&hl=es;z=12&output=embed"); } else { $('.clinicMapLabel').hide(); $('#ifrmGoogleMap').hide(); } var el = document.createElement('script'); el.type = 'application/ld+json'; debugger; //{"location":{"geo":{"geoMidpoint":{"longitude":' + appointmentClinic.Longitude+ ',"latitude":' + appointmentClinic.Latitude + ',"@type":"GeoCoordinates"},"@type":"GeoCircle"},"@type":"Place"},"@context":"http://schema.org"}' if ("0" != "0") { var jsonobj = { "address": { "addressLocality": ((appointmentClinic.Area == null || appointmentClinic.Area.trim() == "") ? "" : " " + appointmentClinic.Area) , "addressRegion": ((appointmentClinic.City == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.City) , "streetAddress": formattedAddresss, "postalCode": ((appointmentClinic.Pincode == null || appointmentClinic.Pincode.trim() == "") ? "" : " " + appointmentClinic.Pincode) , "@type": "PostalAddress" } , "aggregateRating": { "@type": "AggregateRating" , "ratingValue": "0" , "ratingCount": "0" } , "url": "https://www.dentee.com/clinic/ganj basoda/malaiya-dental-care-and-implant-center/42b4aede-2eb9-4445-9caa-d74d5ef8ed49" , "email": "" , "telephone": "" , "image": (("/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg" == "") ? "/websitetemplate1/images/logo.png" : "https://www.dentee.com/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg") , "logo": (("/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg" == "") ? "/websitetemplate1/images/logo.png" : "https://www.dentee.com/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg") , "description": $($.parseHTML(appointmentClinic.AboutClinicHTML)).text().trim() , "@context": "http://schema.org" , "@type": "MedicalClinic" , "availableService": { "@type": "MedicalTherapy" , "name": clinicServices } //, "member": , "geo": { "@type": "GeoCoordinates" , "latitude": ((appointmentClinic.Latitude == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.Latitude) , "longitude": ((appointmentClinic.Longitude == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.Longitude) } , "openingHours": timingarray , "name": appointmentClinic.ClinicName }; } else { var jsonobj = { "address": { "addressLocality": ((appointmentClinic.Area == null || appointmentClinic.Area.trim() == "") ? "" : " " + appointmentClinic.Area) , "addressRegion": ((appointmentClinic.City == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.City) , "streetAddress": formattedAddresss, "postalCode": ((appointmentClinic.Pincode == null || appointmentClinic.Pincode.trim() == "") ? "" : " " + appointmentClinic.Pincode) , "@type": "PostalAddress" } , "url": "https://www.dentee.com/clinic/ganj basoda/malaiya-dental-care-and-implant-center/42b4aede-2eb9-4445-9caa-d74d5ef8ed49" , "email": "" , "telephone": "" , "image": (("/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg" == "") ? "/websitetemplate1/images/logo.png" : "https://www.dentee.com/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg") , "logo": (("/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg" == "") ? "/websitetemplate1/images/logo.png" : "https://www.dentee.com/ImageHandler.ashx?type=clinicpics&imgSrc=2be5a44e-b129-4201-a8d1-8964af664ead.jpg") , "description": $($.parseHTML(appointmentClinic.AboutClinicHTML)).text().trim() , "@context": "http://schema.org" , "@type": "MedicalClinic" , "availableService": { "@type": "MedicalTherapy" , "name": clinicServices } //, "member": , "geo": { "@type": "GeoCoordinates" , "latitude": ((appointmentClinic.Latitude == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.Latitude) , "longitude": ((appointmentClinic.Longitude == null || appointmentClinic.City.trim() == "") ? "" : " " + appointmentClinic.Longitude) } , "openingHours": timingarray , "name": appointmentClinic.ClinicName }; } el.text = JSON.stringify(jsonobj); document.querySelector('head').appendChild(el); } }, "json"); } function getDentistsForClinicProfileByID(denteeClinicGUID, denteeDoctorGUID) { var searchDentistClinic = { DenteeClinicGUID: denteeClinicGUID, DenteeDoctorGUID: denteeDoctorGUID, DoctorName: null, Areas: null, City: null, PageIndex: 0, PageSize: 0 }; $.post("/getdoctorsfromserver", { getDenteeDoctorsParamDTO: searchDentistClinic }, function (data, textStatus, jqXhr) { if (data == null || data.doctorDTOs == null || data.doctorDTOs.length == 0) { $("#divDoctorsInClinic").html("