async function readTextFile(e){var t=new XMLHttpRequest,n="";for(done=!1,t.onreadystatechange=function(){4==this.readyState&&200==this.status&&(n=this.responseText.replace(/\n/g,"
"),done=!0)},t.open("GET",e,!0),t.send();0==done;)await sleep(50);return n}async function getIpClient(e,t,n){$.ajax({url:"https://ipinfo.io/json",method:"GET",timeout:0,async:!0}).done(async function(i){await pred.sendProjectInfos(e,t,n,i.city,i.country,i.ip)}).fail(async function(){await pred.sendProjectInfos(e,t,n,"unknown","unknown","unknown")})}function sleep(e){return new Promise(t=>setTimeout(t,e))}async function resize(){try{let e=document.getElementById("container").getBoundingClientRect().width*document.getElementById("container").getBoundingClientRect().height;pred.nbParticule=.002*e/100,window.matchMedia("(orientation: portrait)").matches?(pred.mobileDevice=!0,await initAnim()):(pred.mobileDevice=!1,await initAnim())}catch(e){}try{scrollInit()}catch(e){}}async function dashboard(){document.getElementById("ancoLoading2").innerHTML="

";var e=document.createElement("script");fetch("dashboard.html").then(e=>e.text()).then(t=>{document.getElementById("app").innerHTML=t,e.src="js/dashboard.js",document.head.appendChild(e)})}function ValidateEmail(e){return!!e.valueOf().match(/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/)}function setCookie(e,t,n){var i="";if(n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3),i="; expires="+o.toUTCString()}document.cookie=e+"="+(t||"")+i+"; SameSite=None; Secure; path=/"}function getCookie(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i4&&t.length>=6){document.getElementById("submitLogin").innerHTML="
";let i='{ "email":"'+e+'", "mdp":"'+t+'" }';const o=JSON.parse(i);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/auth_client_pred",o).done(async function(t){dashboard(),pred.sessUserId=t.id_client,pred.userEmail=e;let i=pred.sessUserId;if(pred.isConnected=!0,1==n){let e='{ "uuid":"'+i+'", "create":"True"}';const t=JSON.parse(e);(o=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID_Pred",t)).done(async function(e){setCookie("ancoTokenPred",e.TOKEN,7)}).fail(function(){reponse=400})}else{let e='{ "uuid":"'+i+'", "create":"True"}';const t=JSON.parse(e);var o=$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID_Pred",t);o.done(async function(e){setCookie("ancoTokenPred",e.TOKEN,.02)}).fail(function(){reponse=400})}}).fail(function(){document.getElementById("ecranConnexion_").innerHTML='Try againAn error has occurred, please try again."})}else document.getElementById("ecranConnexion_").innerHTML='Try againIncorrect email address or password"}function debounce(e,t){let n;return function(){const i=this,o=arguments;clearTimeout(n),n=setTimeout(()=>e.apply(i,o),t)}}function simulateMouseMove(){const e=new MouseEvent("mousemove",{view:window,bubbles:!0,cancelable:!1,clientX:0,clientY:0});document.getElementById("Accueil").dispatchEvent(e)}function throttle(e,t){let n,i;return function(...o){i?(clearTimeout(n),n=setTimeout(()=>{Date.now()-i>=t&&(e.apply(this,o),i=Date.now())},t-(Date.now()-i))):(e.apply(this,o),i=Date.now())}}async function handleSectionChange(e){const t=pred.homeBar.indexOf(e);await fadeText(pred.titleText[t],pred.titleTextSpan[t]),pred.mobileDevice||await pred.homeBarClicked(e)}function updateChildrenStyles(e,t){e.querySelectorAll("img9, img35").forEach(e=>{t?(e.style.height="15vh",e.style.width="15vh",e.style.fontSize="min(10em,10vmin)"):(e.style.height="0vh",e.style.width="0vh",e.style.fontSize="min(0em,0vmin)")})}function isElementInView(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function scrollFirstElement(){pred.mobileDevice,document.getElementById("firstItem").scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}function scrolltextRInfoDiv(){pred.mobileDevice,document.getElementById("textRInfoDiv").scrollIntoView({behavior:"smooth",block:"center",inline:"center"})}function checkedCookie(){var e=getCookie("ancoToken");if(null!=e){let t='{ "create":"False", "cookie":"'+e+'"}';const n=JSON.parse(t);$.post("https://us-central1-ancobaltproject.cloudfunctions.net/getTempLogID_Pred",n).done(async function(e){await sleep(30),pred.sessUserId=e.UUID,pred.userEmail=e.MAIL,pred.isConnected=!0}).fail(function(){eraseCookie("ancoToken"),reponse=400})}}async function fadeText(e,t){pred.sessionActive==this.homeBar[0]?(document.getElementById("sectionTitre").style.opacity=0,document.getElementById("sectionTitre").style.marginTop="2em",document.getElementById("mainTitle").textContent=e,document.getElementById("sectionTitreSpan").innerText=t,document.getElementById("sectionTitre").style.opacity=1,document.getElementById("sectionTitre").style.marginTop=""):pred.sessionActive==this.homeBar[1]&&(document.getElementById("sectionTitre2").style.opacity=0,document.getElementById("sectionTitre2").style.marginTop="2em",document.getElementById("mainTitle2").textContent=e,document.getElementById("sectionTitreSpan2").innerText=t,document.getElementById("sectionTitre2").style.opacity=1,document.getElementById("sectionTitre2").style.marginTop="")}function deleteAndRewriteText(e,t,n){function i(){l>0?(s.textContent=a.substring(0,l-1),l--,setTimeout(i,n)):(l=0,setTimeout(o,n))}function o(){lwindow.innerWidth)&&(n.vx*=-1),(n.y<0||n.y>window.innerHeight)&&(n.vy*=-1)}}function drawLines(e,t){for(let n=0;n"},routes=[{path:"/Accueil",component:ml}],router=new VueRouter({routes:routes,mode:"history"});var pred=new Vue({el:"#app",router:router,i18n:i18n,data:{boxes:null,isOpen:!1,currentLanguage:"en"===i18n.locale?"English":"Français",homeBarURL:["classic-solutions","future-finance","about_us"],mobileDevice:!1,co:"",nbParticule:40,particles:[],welcomPage:!0,show_ml_cgu:!1,interval:null,copieAVHInterval:null,visiblePwd:!1,textMDP:"",mdpIsOK:!1,alreadyInSliver:!1,isScrolling:!1,isLocked:!1,isRemoved:!1,animationRunning:!0,confIsOK:!1,loginText:"Login",sessUserId:"",userEmail:"",isConnected:!1,totalHeightDiv:0,index_sectionActive:0,contact_box:!1,reponseTrue:!1,reponseFalse:!1,processing:!1},computed:{bottomBarfile:()=>[i18n.t("message.ml"),i18n.t("message.edc")],homeBar:()=>[i18n.t("message.classicSolutions"),i18n.t("message.futureFinance"),i18n.t("message.aboutUs")],bottomBar:()=>[i18n.t("message.legal"),i18n.t("message.privacyPolicy")],bottomBarAll:()=>[i18n.t("message.legal"),i18n.t("message.privacyPolicy")],titleText:()=>[i18n.t("message.mainTitle"),i18n.t("message.boost"),i18n.t("message.teamHelp")],titleTextSpan:()=>[i18n.t("message.sectionTitle"),i18n.t("message.advantage"),""],realisations:()=>[[i18n.t("message.hourlyBitcoin"),"images/collage-finance-banner-concept.webp","images/tensorflow.png",i18n.t("message.hourlyBitcoinDesc")],[i18n.t("message.instantOptimization"),"images/2150970191.webp","images/mt5logoclean.png",i18n.t("message.instantOptimizationDesc")],[i18n.t("message.realTimeMonitoring"),"images/realtime.webp","images/mt5logoclean.png",i18n.t("message.realTimeMonitoringDesc")],[i18n.t("message.indicatorNotifications"),"images/notifications.webp","images/Python-LogoPNG1.png",i18n.t("message.indicatorNotificationsDesc")],[i18n.t("message.copyTradingSystem"),"images/notif.webp","images/Python-LogoPNG1.png",i18n.t("message.copyTradingSystemDesc")]]},methods:{toggleSelect(){this.isOpen=!this.isOpen},async changeLanguage(e){i18n.locale=e,this.currentLanguage="en"===e?"English":"Français",await sleep(50),await resizeHomeBar(),this.isOpen=!1},homeBarClicked:async function(e,t=!1){if(t){e==this.homeBar[0]?document.getElementById("Accueil").scrollTop=0:e==this.homeBar[1]?document.getElementById("section1div").scrollIntoView():e==this.homeBar[2]&&document.getElementById("teamTitle").scrollIntoView()}else{pred.index_sectionActive=pred.homeBar.indexOf(e);for(var n=this.homeBar.indexOf(e),i=0;i{if(this.isLocked&&"1"==document.getElementById("scrollDiv").style.opacity){this.alreadyInSliver||(console.log("not alreadyInSliver"),document.getElementById("backToFutureDiv").scrollIntoView(),this.alreadyInSliver=!0),console.log("ici 2");const i=e.scrollWidth-e.clientWidth,o=e.scrollLeft+(n.deltaY>0?1:-1)*e.clientWidth*.2;return e.scrollLeft<=0&&n.deltaY<0||e.scrollLeft>=i&&n.deltaY>0?(this.isScrolling=!0,e.classList.remove("fixed"),document.getElementById("textRInfoDiv").classList.remove("fixed2"),t.style.overflowY="auto",updateChildrenStyles(document.getElementById("scrollDiv"),!1),await sleep(100),n.deltaY<0?(console.log("direction haut"),document.getElementById("sectionTitre2").scrollIntoView()):(document.getElementById("section3div").scrollIntoView(),console.log("direction bas")),setTimeout(()=>{this.alreadyInSliver=!1,this.isLocked=!1,t.style.overflowY="auto",updateChildrenStyles(document.getElementById("section2div"),!0)},1e3),void(this.isScrolling=!1)):(this.alreadyInSliver=!0,t.style.overflowY="hidden",this.diplayInfoRealisation(-1),void(e.scrollLeft=o))}e.classList.remove("fixed"),document.getElementById("textRInfoDiv").classList.remove("fixed2"),t.style.overflowY="auto",updateChildrenStyles(document.getElementById("scrollDiv"),!1)},100),document.addEventListener("wheel",this.wheelEventHandler))},diplayInfoRealisation:async function(e){if(this.mobileDevice){let t=document.getElementById("textRInfoDiv"),n=document.getElementById("textRInfo"),i=document.getElementById("textRInfoTittle"),o=document.getElementById("realizationDiv");-1==e?(t.style.height="",o.style.height="",await this.sleep(50),o.style.opacity="",this.diplayInfoRealisationOpen=!1):(o.style.opacity=0,t.style.backgroundImage="url("+this.realisations[e][1]+")",pred.mobileDevice?(t.style.height="60vh",document.getElementById("backToFutureDiv").scrollIntoView()):t.style.height="min(50vh,40em)",n.innerText=this.realisations[e][3],i.innerText=this.realisations[e][0],await this.sleep(50),o.style.height="0%",await this.sleep(50),this.diplayInfoRealisationOpen=!0,await this.sleep(200),this.scrolltextRInfoDiv())}},sleep:e=>new Promise(t=>setTimeout(t,e)),scrolltextRInfoDiv(){},handleKeyDown(e){this.mdpValue=document.getElementsByTagName("input")[1].value,this.mdpconfValue=document.getElementsByTagName("input")[2].value;let t=document.getElementById("joinus");t.style.cursor="",this.charList=[".","!","?","$","*","#","&","@","_","-"],this.text="";var n=/[!-\/:-@[-` {-~]/;if("mdp"==e)if(this.mdpValue.length>=6){let e=this.mdpValue;for(const t of this.charList)this.mdpValue.includes(t)&&(this.mdpIsOK=!0),e=e.split(t).join("");n.test(e)?(this.mdpIsOK=!1,this.text="The password contains special characters that are not in my list...
reminder :
$ . ! ? - _ # & @ *
and spaces are not allowed !",t.style.background="#ff9259"):this.mdpIsOK?(this.mdpValue.length<10?this.text="The password is secure!":this.mdpValue.length<14?this.text="The password is very secure!":this.mdpValue.length>=14&&(this.text="The password is secured to the max!
Are you sure you will remember it?"),this.mdpValue==this.mdpconfValue?(this.confIsOK=!0,this.text="Everything is in order!",t.style.cursor="pointer",t.style.background="#09ff00"):(this.confIsOK=!1,t.style.background="#ff9259",this.text="The two passwords are different!")):this.text="The password contains special characters that are not in my list...
reminder :
$ . ! ? - _ # & @ *"}else this.mdpIsOK=!1,this.text="The password does not contain the minimum 6 characters!",t.style.background="#ff9259";else"confmdp"==e&&(this.mdpconfValue.length==this.mdpValue.length?this.mdpconfValue==this.mdpValue?(this.confIsOK=!0,this.mdpIsOK?(this.text="Everything is in order!",t.style.cursor="pointer",t.style.background="#09ff00"):(this.text="So, it's the same password but it's not valid!",t.style.background="#ff9259")):(this.confIsOK=!1,this.text="I think you made a mistake entering the second password, they are different...",t.style.background="#ff9259"):(this.confIsOK=!1,this.text="The two passwords aren't yet the same size, I'm waiting to see!",t.style.background="#ff9259"));clearInterval(pred.copieAVHInterval),clearInterval(pred.interval),pred.interval=null,pred.copieAVHInterval=null,document.getElementById("textmdp").innerText=this.text}}});Vue.component("ml_cgu",{template:''}),Vue.component("contact_box",{template:'\n \n ',data:()=>({form:{name:"",email:"",message:""}}),methods:{async submitForm(){pred.processing=!0;const e=this.form.name,t=this.form.email,n=this.form.message;await getIpClient(e,t,n)}}}),Vue.component("div_connexion",{template:''}),Vue.component("boutton_inscription",{template:'{{pred.co}}'});let canvas=document.getElementById("particleCanvas"),ctx=canvas.getContext("2d");initAnim(),document.addEventListener("click",function(e){if(!e.target.closest("#textRInfoDiv"))try{pred.diplayInfoRealisationOpen&&pred.diplayInfoRealisation(-1)}catch(e){}}),window.onresize=async function(){resize(),pred.mobileDevice||await resizeHomeBar()},window.onload=async function(){checkedCookie();"privacy"==window.location.pathname.slice(1)&&pred.textMLCGU(pred.bottomBar[1]),pred.co=pred.registrationText,document.getElementById("sectionMid").style.opacity=1,document.getElementById("sectionTop").style.opacity=1,pred.mobileDevice?window.addEventListener("orientationchange",function(){location.reload()}):(document.getElementsByClassName("nameBar")[0].style.color="rgb(240,240,240)",document.getElementById("nameBarDivBG").style.width=document.getElementsByClassName("nameBarDiv")[0].clientWidth+"px",document.getElementById("nameBarDivBG").style.height=document.getElementsByClassName("nameBarDiv")[0].clientHeight+"px",await animate())};