AUTO
AUTO
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/*$$ IMAGES LINKS $$ IMAGES LINKS $$*/
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
const IMages = [{
JAMALSAMAD : 'https://i.postimg.cc/m2TSCPZB/Whats-App-Image-2023-09-08-22-55-16.jpg
'هنا الصق صورة خاصة بك ارفعها على اي موقع او على وتساب,//
ABDERRAHIMESSABBAR : 'https://i.postimg.cc/rFBzYrfG/111.jpg',//
JILALIERRABAI : 'https://i.postimg.cc/rmpHjf1g/Whats-App-Image-2023-07-31-12-33-
27.jpg',//
}];
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
/* DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T TOUTCH ANYTHING $$ DON'T
TOUTCH ANYTHING */
/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/
if(document.querySelector('#progress-percent').textContent == '0%'){
$(`#${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');
if (all.includes('success')) {
var Ville = document.querySelector('#LocationId-
list .k-state-selected').textContent;
var typ = document.querySelector('.k-list-scroller .k-
state-selected').textContent;
document.querySelector(`#$
{slo}`).style.backgroundColor = '#44c611';
document.querySelector(`#${slo}`).placeholder =
'Rendez-vous Disponible';
var MsgTxt = new SpeechSynthesisUtterance((`Rendez-vous BLS $
{ville} ${typ} Disponible. `).repeat(2));
window.speechSynthesis.speak(MsgTxt);
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 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);
}
}}}
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()}