Professional Documents
Culture Documents
Vfs France
Vfs France
var Email, Pwd, NumPass, DateN, ExpPass, Prenom, Nom, Genre, Phone, Interval, Visa,
Ref, Country, CounTxt, MsgTxt, Txt, Gender,VisaNum,VisaPlace,VisaDur;
var Dora = 1;
Country = 0;
Email = "visatour006@gmail.com"; // Email
Pwd = "xxxxxxxxx"; // mot de passe vfs
Phone = "xxxxxxxxxx"; // numero téléphone
Gender = ['', 'Male', 'Female']; // 1 masculin, 2 Feminin
var VisaType = null;
var RefNum = "";
/*--------------------Passeport 01------------------------*/
function setForm() {
if (Dora == 1) {
//Profile 1
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;
VisaNum = "";
VisaPlace = "";
VisaDur = "";
}
/*--------------------Passeport 02------------------------*/
else if (Dora == 2) {
//Profile 2
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;
//Renouvellement
VisaNum = "527992377";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 03------------------------*/
else if (Dora == 3) {
//Profile 3
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 2;
//Renouvellement
VisaNum = "527992378";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 04------------------------*/
else if (Dora == 4) {
//Profile 4
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;
//Renouvellement
VisaNum = "527992379";
VisaPlace = "ALGER";
VisaDur = "90";
}
/*--------------------Passeport 05------------------------*/
else if (Dora == 5) {
//Profile 5
NumPass = "100000000";
DateN = "15/01/1980";
ExpPass = "12/10/2024";
Prenom = "Kika";
Nom = "Koukou";
Genre = 1;
//Renouvellement
VisaNum = "600325621";
VisaPlace = "ALGER";
VisaDur = "30";
}
/*--------------------Passeport 06------------------------*/
else if (Dora == 6) {
//Profile 6
NumPass = "";
DateN = "";
ExpPass = "";
Prenom = "prenom";
Nom = "Nom";
Genre = 1;
//Renouvellement
VisaNum = "";
VisaPlace = "";
VisaDur = "";
} else {
alert('Erreur Script VFS');
}
document.title = Prenom + ' ' + Nom;
}
/
*----------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
------*/
(function() {
'use strict';
$('.leftNav-ul').append('<li class="inactive-link"><a href="/Global-
Appointment/Calendar/FinalCalendar">under configuration to Calendrie</a>');
// Your code here...
})();
$('#sidebar').on('click','#Pro1',function(){
Dora = 1;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro2',function(){
Dora = 2;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro3',function(){
Dora = 3;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro4',function(){
Dora = 4;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro5',function(){
Dora = 5;
setForm();
fillForm();
})
$('#sidebar').on('click','#Pro6',function(){
Dora = 6;
setForm();
fillForm();
})
function shiftDesign() {
$('body').prepend('<h5 id="Alert" style="color: red; text-align: center; text-
transforme: uppercase,background-color: teal;">Aucune Notfication</h5>');
$('#header-title').css('margin', '2px');
$('.header').height('40px');
$('.logo').hide();
$('.MsoNormal').hide();
}
function fillForm() {
$("#PassportNumber").val(NumPass);
$("#FirstName").val(Prenom);
$("#LastName").val(Nom);
$("#DateOfBirth").val(DateN);
$("#PassportExpiryDate").val(ExpPass);
$("#NationalityId option:contains('ALGERIA')").attr('selected', 'selected');
$("#GenderId option:contains('" + Gender[Genre] + "')").attr('selected',
'selected');
if ($('#VisaNumber').length) {
$('#VisaNumber').val(VisaNum);
}
if ($('#PlaceOfIssuance').length) {
$('#PlaceOfIssuance').val(VisaPlace);
}
if ($('#Duartion').length) {
$('#Duartion').val(VisaDur);
}
if ($('#Mobile').length) {
$('#Mobile').val(Phone);
}
if ($('#txtPassport').length) {
$("#AURN").val(RefNum);
$("#txtPassport").val(NumPass);
$("#PrimaryEmailId").val(Email);
}
//$('#submitbuttonId').click();
}
(function() {
document.title = Prenom + ' ' + Nom;
if ($('#EmailId').length && $('#Password').length) {
$('#EmailId').val(Email);
$('#Password').val(Pwd);
}
var refresh = setInterval(function(){$('#VisaCategoryId').val(visa).change();},
inter*1000);
if($('#lblDate').text()!=''){
clearInterval(refresh);
var MsgTxt = new SpeechSynthesisUtterance('Rdv France disponible');
window.speechSynthesis.speak(MsgTxt);
$('#btnContinue').click();
}
})();