changes.mady.by.user Mazin Abubeker
Saved on Apr 02, 2021
...
<div id="profile_header_text" style='width: fit-content; height: fit-content;color: white; font-weight: bold; font-size: 40px; padding-left: 20px;'>Mentor Profile</div>
<div id="book"> </div>
<script> let current_mentor = getQueryVariableFromUrl("mentor"); AJS.toInit(function (){ var iframeBooking = AJS.$('#roomBooking'); var mentorCalendar; jQuery.ajax({ url: "https://signup.theonevalley.com/mentor/calendar/" + current_mentor, type: "get", dataType: 'json', async: false, success: function (data) { console.log('email???', data); var iframeSrc = 'https://gsvlabs.as.me/?calendarID=' + data.id + '&appointmentType=8893711' + '&firstName=' + userFirstName + '&lastName=' + userLastName + '&email=' + userEmail + '&phone=' + userPhone + '&certificate=' + userMentorCode + '&field:5754148=' + userWebsite + '&field:5756602=' + userWebsite + '&field:5756740=' + userCompany + '&field:5756761=' + userCompany; iframeBooking.attr('src', iframeSrc); } }); }); </script> <iframe id="roomBooking" width="100%" height="800" frameBorder="0"> </iframe><script src="https://d3gxy7nm8y4yjr.cloudfront.net/js/embed.js" type="text/javascript">