Calandrier
Calandrier
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/*$$ IMAGES LINKS $$ IMAGES LINKS $$*/
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
const IMages = [{
ikramnaji: 'https://i.postimg.cc/1z4BD2HM/Whats-App-Image-2024-02-10-01-52-02-
c30edbb4.jpg',//
bahijaelmalki : 'https://i.postimg.cc/RVGwb9qc/Whats-App-Image-2023-08-26-02-45-
42.jpg',//
BOUKARSOUHANANE : 'https://i.postimg.cc/15JyfRMr/kkk.jpg',//
}];
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/* DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T
TOUTCH ANYTHING */
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
if(document.querySelector('#progress-percent').textContent == '0%'){
var slo = '';var ttt;
for (let i = 1; i <= 10; i++) {
const elementId = 'AppointmentDate' + i ;
const element = $('#' + elementId);
if (element.is(':visible')) {
slo=elementId;}}
var ids = ['AppointmentSlot1', 'AppointmentSlot2', 'AppointmentSlot3',
'AppointmentSlot4', 'AppointmentSlot5'];
ids.forEach(function(id) {
var element = $(".k-widget.k-dropdown.form-control[aria-owns='" + id +
"_listbox']");
if (element.is(":visible")) {
ttt = "AppointmentSlot" + id.slice(15);}});
$(`#${ttt}`).kendoDropDownList({
optionLabel: "--Select--",
dataTextField: "Name",
dataValueField: "Id",
filter: "contains",
select: OnSlotSelect,
open: OnSlotOpen,
template: modifiedTemplate,
footerTemplate: ({ instance }) => $("#slot-footer-template").html(),
height: 500
});
var familyElement = document.querySelector('.card-body');
clearInterval(dddd);
if(localStorage.getItem('dateSelectValue') != 0){choose();}
} else {
document.querySelector(`#$
{slo}`).style.backgroundColor = '#f14242';
document.querySelector(`#${slo}`).placeholder = 'By
Devteamscripts';
if (document.getElementById('DateCss').textContent == '\n' )
{document.querySelector(`#$
{slo}`).style.backgroundColor = '#0d59de';}
}}}
function verif(){
$('#btnVerifyAppointment').show();
$('#btnSubmit').show();
}
function choose() {
function ss() {
if ($(`#${slo}`).val() !== '') {
clearInterval(timm);
$(`#${ttt}`).click();
if($(".slot-item.bg-success").length >= 1){
clearInterval(tim);
$(".slot-item.bg-success").last().click();
clearInterval(tim);clearInterval(timm);
$('#btnSubmit').show()
$('#btnVerifyAppointment').show()
$("#EmailVerified").val('True');
var randomNumber = Math.floor(Math.random() * 0);$
("#EmailVerificationCode").val(randomNumber);
if ($(`#${ttt}`).val() !== ''){
$("#btnSenderificationCode").click();}}
}}}
function img() {var imageUrl = "";var linkText =
document.querySelector('a.h6').innerText.replace(/\s/g, '');
for (var i = 0; i < IMages.length; i++) {var obj = IMages[i];
if (obj.hasOwnProperty(linkText)) {imageUrl = obj[linkText];break;}}const fileInput
= document.getElementById('uploadfile-1');
var xhr = new XMLHttpRequest();xhr.open("GET", imageUrl, true);
xhr.responseType = "blob";xhr.onload = function () {if (xhr.status === 200) {
var blob = xhr.response;var fd = new FormData();fd.append('file', blob,
"image.jpg");
$.ajax({url: "/mar/query/UploadProfileImage",type: 'post',data: fd,contentType:
false,processData: false,success: function (result) {
if (result.success) {$("#uploadfile-1-preview").attr("src", "/mar/query/getfile?
fileid=" + result.fileId);
$("#ApplicantPhotoId").val(result.fileId);} else {alert(result.err);}}
});} else {alert("Failed to retrieve the image from the URL.");
}};if (imageUrl.length>=1) {xhr.send();}}img()}