Free javascript Hosting


blspro.js

Uploaded on Oct 16 2021 17:46 by mcharef967

var thistitle=document.title;if("504 Gateway Time-out"==thistitle||"403 Forbidden"==thistitle||"502 Bad Gateway"==thistitle||"503 Service Temporarily Unavailable"==thistitle)console.log(thistitle+" - Actualisation ..."),setTimeout(function(){location.reload()},5e3);else if($("#pwt00").length||document.body.insertAdjacentHTML("beforeend","

Alert addon
Alert addon
"),localStorage.getItem("busermail")){function basename(e){return e.split("/").reverse()[0]}function getfirstfolder(e){var t=window.location.pathname.split("/");return!!t[2]&&t[1]}function getSubdomain(e){var t=new RegExp("[a-z-0-9]{2,63}.[a-z.]{2,5}$").exec(e);return e.replace(t[0],"").slice(0,-1)}var thisfullurl=location.pathname;if(0!=getfirstfolder(window.location.hostname))var countrywebsite=getfirstfolder(window.location.hostname);else countrywebsite=getSubdomain(window.location.hostname);$("body").find("input[readonly='']").prop("readonly",!1),$("#g-recaptcha-response").prop("type","text").addClass("form-control-input");var recap_count=0,lonewtimestamp=0,lonewtimestamp_exp=0,otpsent_count=0,otpsenttimestamp=Date.now()/1e3|0,otpsenttimestamp_exp=0;if(localStorage.getItem("otpsent")&&otpsenttimestamp<localStorage.getItem("otpsent")){var otpsenttimestamp_diff=parseInt(30-(localStorage.getItem("otpsent")-otpsenttimestamp)/60);$("#pwt00").html("OTP reçu il y'à "+otpsenttimestamp_diff+" minutes"),otpsent_count=1}function checkrecaptcha(){if(document.getElementById("g-recaptcha-response")){if(""==$("input[name=g-recaptcha-response]").val())$("#pwt01").html("Recaptcha vide");else{lonewtimestamp=Date.now()/1e3|0,0==recap_count&&(lonewtimestamp_exp=parseInt(lonewtimestamp)+120,recap_count=1);var e=lonewtimestamp_exp-lonewtimestamp;lonewtimestamp<lonewtimestamp_exp?$("#pwt01").html("Recaptcha OK "+e):"book_appointment.php"==basename(thisfullurl)?reload_recaptcha():"appointment.php"==basename(thisfullurl)&&reload_recaptcha_appoint()}setTimeout(function(){checkrecaptcha()},1e3)}}checkrecaptcha();var blscaptchakey2="6LcLZaAUAAAAAArQGCwKgkh8SQ9_fcCjSpiUFqxZ";function reload_recaptcha(){document.getElementById("g-recaptcha-response")&&(recap_count=0,$("input[name=g-recaptcha-response]").val(""),grecaptcha.ready(function(){grecaptcha.execute(blscaptchakey2,{action:"mrc_app_first"}).then(function(e){document.getElementById("g-recaptcha-response").value=e})}))}function reload_recaptcha_appoint(){recap_count=0,$("input[name=g-recaptcha-response]").val(""),grecaptcha.ready(function(){grecaptcha.execute(blscaptchakey2,{action:"mrc_app_second"}).then(function(e){document.getElementById("g-recaptcha-response").value=e})})}if("book_appointment.php"==basename(thisfullurl)){function savepwgdata(){localStorage.setItem("spwgemail",$("#pwgemail").val()),localStorage.setItem("spwgphone",$("#pwgphone").val()),localStorage.setItem("spwgjurid",$("#pwgjurid").val())}var vpwgemail="",vpwgphone="",vpwgjurid="";function checkTime(e){return e<10&&(e="0"+e),e}function gettimenow(){var e=new Date,t=e.getDate(),a=(new Array("January","February","March","April","May","June","July","August","September","October","November","December")[e.getMonth()],e.getHours()),n=e.getMinutes();return t=checkTime(t),(a=checkTime(a))+":"+(n=checkTime(n))}localStorage.getItem("spwgemail")&&(vpwgemail=localStorage.getItem("spwgemail"),vpwgphone=localStorage.getItem("spwgphone"),vpwgjurid=localStorage.getItem("spwgjurid")),document.body.insertAdjacentHTML("beforeend",'
Email :
Phone : 213
Juridiction
AlgerOran
'),""!=vpwgjurid&&$('#pwgjurid option[value="'+vpwgjurid+'"]').prop("selected",!0),$(".marginBottomNone").length&&$(".marginBottomNone").removeClass("marginBottomNone");var alarmnoise="https://www.prowebgen.com/noise-bls.mp3",alarmnoise_open="https://www.prowebgen.com/noise-bls-open.mp3";function checksitestatus(){$.ajax({url:"book_appointment.php",complete:function(e){if(200==e.status){var t=e.responseText,a=$(t).find(".notification");a[0]?(cdsec=2,$("#pwt00").html(a[0].innerText.trim()+", Actualisation ..."),localStorage.setItem("blsopensent","0"),setTimeout(function(){displaycountdown()},2e3)):($("#pwt00").html("Actualisation ..."),location.reload())}else $("#pwt00").html(e.status+", Réactualisation ..."),setTimeout(function(){checksitestatus()},2e3)}})}if($("#IDBodyPanelapp").length&&$("#IDBodyPanelapp,.popupBG-app").css({display:"none"}),$(".row.padding-sm.alignCenter.red.whiteBG.marginBottom").css({display:"none"}),$(".headerSection").length&&$(".headerSection").css({display:"none"}),document.getElementById("captcha-img")&&$("#captcha-img").css({width:"400",height:"140"}),$("header").length&&$("header").css({display:"none"}),$(".innerbodypanel").length&&$(".innerbodypanel").css({margin:"0","min-height":"0"}),$(".aboutUsPanel").length&&$(".aboutUsPanel").css({padding:"0"}),$("#Booking").length&&$("#Booking").prevAll().eq(1).css({display:"none"}),$("#Booking").length&&$("#Booking").prev().css({display:"none"}),$("h1").length&&$("h1").css({display:"none"}),$(".paddingupdwn,.aboutBG,.footerSection").length&&$(".paddingupdwn,.aboutBG,.footerSection").css({display:"none"}),$(".paddingInBoxExtra").length&&$(".paddingInBoxExtra").css({padding:"10px","margin-top":"7px"}),$("#overlay").length&&$("#overlay").css({display:"none"}),$("#mySidenav").length&&$("#mySidenav").remove(),document.getElementById("terms")&&(document.getElementById("terms").checked="true"),document.getElementsByName("agree")[0])document.getElementsByName("agree")[0].click();else if($(".notification")&&"Appointment dates are not available."==$(".notification").eq(0).html()){$("#pwgdatadiv").show();var cdsec=2;function displaycountdown(){cdsec-=1,$("#pwt00").html("BLS en pause - "+cdsec+" s"),cdsec>0?setTimeout(function(){displaycountdown()},1e3):checksitestatus()}displaycountdown(),localStorage.setItem("blsopensent","0")}else if($(".notification")&&"Booking available between 9 AM to 9 PM."==$(".notification").eq(0).html())$("#pwgdatadiv").show(),$("#pwt00").html("BLS en mode nuit"),localStorage.setItem("blsopensent","0");else if($("#otp").length){function saveblsdata(){localStorage.setItem("spwgemail",$("#email").val()),localStorage.setItem("spwgphone",$("#phone").val()),localStorage.setItem("spwgjurid",$("#juridiction").val())}function opensitesendemailalertit(){0==localStorage.getItem("blsopensent")&&(new Audio(alarmnoise_open).play(),"algeria"==countrywebsite&&$.ajax({url:"https://www.prowebgen.com/bmailer.php?op=1&um="+localStorage.getItem("busermail")+"&ctry="+countrywebsite,complete:function(e){200==e.status?"mailerror"==e.responseText?$("#pwt00").html("Email non autorisé"):"error"==e.responseText?($("#pwt00").html("Erreur Email, Renvoi ..."),opensitesendemailalertit()):"good"==e.responseText&&($("#pwt00").html(gettimenow()+" - SITE OUVERT, Email envoyé"),localStorage.setItem("blsopensent","1")):($("#pwt00").html("Erreur réseau, Renvoi ..."),opensitesendemailalertit())}}))}$("#email").change(function(){saveblsdata()}),$("#phone").change(function(){saveblsdata()}),$("#juridiction").change(function(){saveblsdata()}),null==localStorage.getItem("blsopensent")&&localStorage.setItem("blsopensent","0"),localStorage.getItem("spwgemail")&&$("#email").val(localStorage.getItem("spwgemail")),localStorage.getItem("spwgphone")&&$("#phone").val(localStorage.getItem("spwgphone")),localStorage.getItem("spwgjurid")&&$('#juridiction option[value="'+localStorage.getItem("spwgjurid")+'"]').prop("selected",!0),opensitesendemailalertit();var datesavailable=0,newtokencode="",CSRFNamevar="",CSRFTokenvar="";$("#csrftokenvalue").val()&&(newtokencode=$("#csrftokenvalue").val()),$("input[name=CSRFName]").val()&&(CSRFNamevar=$("input[name=CSRFName]").val()),$("input[name=CSRFToken]").val()&&(CSRFTokenvar=$("input[name=CSRFToken]").val());var resettokencode=1;function smscheckotp(){if(32==newtokencode.length)sendOTP();else{var e="0";""==$("#phone_code").val()?($("#pwt00").html("Erreur code téléphone"),$("#phone_code").addClass("error"),e="1"):$("#phone_code").removeClass("error"),9!=$("#phone").val().length?($("#pwt00").html("Erreur téléphone"),$("#phone").addClass("error"),e="1"):$("#phone").removeClass("error"),""==$("#email").val()?($("#pwt00").html("Erreur Email"),$("#email").addClass("error"),e="1"):$("#email").removeClass("error"),""==$("#juridiction").val()?($("#pwt00").html("Erreur juridiction"),$("#juridiction").addClass("error"),e="1"):$("#juridiction").removeClass("error"),"0"==e&&($("#pwt00").html("Actualisation ..."),$.ajax({type:"GET",url:"book_appointment.php",beforeSend:function(e){e.setRequestHeader("X-Requested-With",{toString:function(){return""}})},complete:function(e){if(200==e.status){var t=e.responseText;if(""==t.trim())$("#pwt00").html("Aucune donnée, Réactualisation ..."),setTimeout(function(){smscheckotp()},5e3);else{var a=t.split('csrftokenvalue" value="');if(a[1])if(newtokencode=a[1].substr(0,32),"algeria"==countrywebsite){var n=t.split("CSRFGuard_");if(n[1]){var o="CSRFGuard_"+n[1].split("'")[0];$("input[name=CSRFName]").val(o),CSRFNamevar=o;var i=t.split("name='CSRFToken' value='")[1].split("'");$("input[name=CSRFToken]").val(i[0]),CSRFTokenvar=i[0],32==newtokencode.length?($("#csrftokenvalue").val(newtokencode),sendOTP()):($("#pwt00").html("Erreur Token, Réactualisation ..."),setTimeout(function(){smscheckotp()},5e3))}}else 32==newtokencode.length?($("#csrftokenvalue").val(newtokencode),sendOTP()):($("#pwt00").html("Erreur Token, Réactualisation ..."),setTimeout(function(){smscheckotp()},5e3));else $("#pwt00").html("Pas de Token, Réactualisation ..."),setTimeout(function(){smscheckotp()},5e3)}}else $("#pwt00").html("Echec requête, Renvoi ..."),setTimeout(function(){smscheckotp()},5e3)}}))}}function sendemailalertit(){if(new Audio(alarmnoise).play(),"algeria"==countrywebsite){var e=$("#juridiction").val().split("#")[2];$.ajax({url:"https://www.prowebgen.com/bmailer.php?um="+localStorage.getItem("busermail")+"&ctry="+countrywebsite+"&city="+e,complete:function(e){200==e.status?"mailerror"==e.responseText?$("#pwt00").html("Email non autorisé"):"error"==e.responseText?($("#pwt00").html("Erreur Email, Renvoi ..."),sendemailalertit()):"good"==e.responseText&&($("#pwt00").html(gettimenow()+" - DISPO, Email envoyé"),otpsenttimestamp_exp=parseInt(otpsenttimestamp)+1800,localStorage.setItem("otpsent",otpsenttimestamp_exp)):($("#pwt00").html("Erreur réseau, Renvoi ..."),sendemailalertit())}})}}function extract_tokencode(e){var t=e.split('csrftokenvalue" value="');return!!t[1]&&(32==(newtokencode=t[1].substr(0,32)).length||(newtokencode="",!1))}function sendOTP(){if(0!=newtokencode.length){"algeria"==countrywebsite&&"send_mail";var e="0";if(""==$("#phone_code").val()?($("#pwt00").html("Erreur code téléphone"),$("#phone_code").addClass("error"),e="1"):$("#phone_code").removeClass("error"),9!=$("#phone").val().length?($("#pwt00").html("Erreur téléphone"),$("#phone").addClass("error"),e="1"):$("#phone").removeClass("error"),""==$("#email").val()?($("#pwt00").html("Erreur Email"),$("#email").addClass("error"),e="1"):$("#email").removeClass("error"),"algeria"==countrywebsite)if(""==$("#juridiction").val())$("#pwt00").html("Erreur juridiction"),$("#juridiction").addClass("error"),e="1";else{$("#juridiction").removeClass("error");$("#juridiction").val().split("#");var t=$("#juridiction").val()}else if(""==$("#centre").val())$("#pwt00").html("Erreur centre"),$("#juridiction").addClass("error"),e="1";else{$("#centre").removeClass("error");$("#centre").val().split("#"),t=$("#centre").val()}""==$("input[name=g-recaptcha-response]").val()&&($("#pwt00").html("Recaptcha pas encore prêt ..."),e="1",setTimeout(function(){sendOTP()},2e3)),"0"==e&&($("#pwt00").html("Vérification ..."),$.ajax({type:"POST",beforeSend:function(e){e.setRequestHeader("X-Requested-With",{toString:function(){return""}})},data:"app_type=Individual&member=2&centre="+t+"&juridiction="+t+"&category=Normal&phone_code="+$("#phone_code").val()+"&phone="+$("#phone").val()+"&email="+$("#email").val()+"&otp=&verification_code=demander+le+code+de+vérification&g-recaptcha-response="+$("input[name=g-recaptcha-response]").val()+"&countryID=&tokenvalue="+newtokencode+"&visa_no=&visa_valid_from=&visa_valid_to=&rejected=No&refusal_date=",url:"book_appointment.php",complete:function(e){if(200==e.status){reload_recaptcha();var t=e.responseText,a=$(t).find(".col-sm-6.container.paddingInBoxExtra.roundCornerExtra");if(a[0])$("#pwt00").html(gettimenow()+" - "+a[0].innerText.trim()+" ..."),extract_tokencode(t)&&console.log("csrftokenvalue : "+newtokencode),datesavailable=0;else $(t).find(".col-sm-6")[0]&&($("#pwt00").html(gettimenow()+" - Code OTP envoyé"),sendemailalertit(),extract_tokencode(t)&&console.log("csrftokenvalue : "+newtokencode),datesavailable=1);0==datesavailable&&setTimeout(function(){sendOTP()},5e3)}else $("#pwt00").html(gettimenow()+" - "+e.status),setTimeout(function(){sendOTP()},2e3)}}))}else smscheckotp()}$("abbr").html("
"),"algeria"==countrywebsite&&0==otpsent_count&&setTimeout(function(){$("#otplauncher").click()},1e3)}}else $("#pwt00").html(basename(thisfullurl))}else $("#pwt00").html("Email non défini");

Back to list