Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var mythankyoupage = myorigin+'/merci';
- setmagicfunnel();
- let params = (new URL(document.location)).searchParams;
- var parmois1tpe_id = params.get('1tpe');
- var myu = params.get('u');
- var myv = params.get('v');
- var myemail = params.get('email');
- var mytitle = params.get('title');
- var mydescription = params.get('description');
- var mytk = params.get('tk');
- var mytodaydate = new Date().toLocaleDateString('fr-FR', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }).toUpperCase();
- mytodaydate = mytodaydate.substr(0,mytodaydate.length-5);
- if (myemail!=null) { setmyemail(); }
- if (mytk!=null) { setmytk(); }
- if (parmois1tpe_id!=null) {
- var parmois1tpe_numprod = '';
- var parmois1tpe_title = '';
- var parmois1tpe_description = '';
- var parmois1tpe_vendor = '';
- var parmois1tpe_vendornum = '';
- var parmois1tpe_url = '';
- (function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.type = "text/javascript"; js.async = true;
- js.src = "https://parmois.com/parmois1tpe.js?id="+parmois1tpe_id;
- fjs.parentNode.insertBefore(js, fjs);
- }(document, "script", "parmois1tpe"));
- waitfor1tpe();
- } else {
- if (myu!=null) {
- if (myu.substring(0, 2) != 'ht') {
- myu = atob(myu.replace(/_/g, '/').replace(/-/g, '+'));
- }
- localStorage.mydestination = myu;
- }
- if ( (localStorage.myalreadyoptin != undefined) && (localStorage.mydestination!=undefined) ) {
- window.location.replace(mythankyoupage);
- }
- if (mytitle==null) {
- mytitle = 'DERNIÈRE ÉTAPE : ENTREZ VOTRE EMAIL';
- if (myu!=null) {
- mytitle = 'CE LIEN EST RÉSERVÉ À MES CONTACTS...';
- }
- }
- if (mydescription==null) {
- mydescription = 'Votre machine à sous""automatique est prête""à être activée...';
- if (myu!=null) {
- mydescription = 'Pour accéder au lien :""'+myu.substring(0, Math.min(20,4+Math.floor(myu.length / 2)))+'...""Entrez votre adresse email.';
- }
- }
- setTimeout(setmytitle, 1000, mytitle);
- setTimeout(setmydescription, 3000, mytodaydate+' :""'+mydescription);
- setTimeout(setmyimage, 5000);
- }
- function waitfor1tpe() {
- if ( (parmois1tpe_numprod == '') || (my1tpe == '') ) {
- setTimeout(waitfor1tpe, 1000);
- } else {
- myu = 'https://parmois.com/'+my1tpe+'/voir-'+parmois1tpe_vendor+'.'+parmois1tpe_vendornum;
- localStorage.mydestination = myu;
- if ( (localStorage.myalreadyoptin != undefined) && (localStorage.mydestination!=undefined) ) {
- window.location.replace(mythankyoupage);
- }
- if (mytitle==null) {
- setmytitle(parmois1tpe_title);
- } else {
- setmytitle(mytitle);
- }
- if (mydescription==null) {
- setTimeout(setmydescription, 2000, mytodaydate+' :""'+parmois1tpe_description);
- } else {
- setTimeout(setmydescription, 2000, mytodaydate+' :""'+mydescription);
- }
- setTimeout(setmyimage, 4000);
- }
- }
- function setmyemail() {
- let myemailinput = document.querySelector("[name='cadastro_email']");
- if ( myemailinput == null ) {
- setTimeout(setmyemail, 1000);
- } else {
- jamesinputtypewriter(myemailinput,0,myemail,250);
- }
- }
- function setmytk() {
- let mytkinput = document.querySelector("[name='cadastro_origem']");
- if ( mytkinput == null ) {
- setTimeout(setmytk, 1000);
- } else {
- jameschangevalue(mytkinput,mytk);
- mytkinput.setAttribute('value', mytk);
- }
- }
- function setmytitle(title) {
- let mytitleelement = document.querySelector("[data-tag='mytitle']");
- if ( mytitleelement == null ) {
- setTimeout(setmytitle, 1000, title);
- } else {
- let mytitledesktop = document.querySelector("[data-tag='mytitle'] > div > span.desktop-element > h2 > span");
- let mytitlemobile = document.querySelector("[data-tag='mytitle'] > div > span.mobile-element > h2 > span");
- mytitledesktop.innerHTML = '';
- jameshtmltypewriter(mytitledesktop,0,title,125);
- mytitlemobile.innerHTML = '';
- jameshtmltypewriter(mytitlemobile,0,title,125);
- }
- }
- function setmydescription(description) {
- let mydescriptionelement = document.querySelector("[data-tag='mydescription']");
- if ( mydescriptionelement == null ) {
- setTimeout(setmydescription, 1000, description);
- } else {
- let mydescriptiondesktop = document.querySelector("[data-tag='mydescription'] > div > span.desktop-element > h4 > span");
- let mydescriptionmobile = document.querySelector("[data-tag='mydescription'] > div > span.mobile-element > h4 > span");
- mydescriptiondesktop.innerHTML = '';
- jameshtmltypewriter(mydescriptiondesktop,0,description,125);
- mydescriptionmobile.innerHTML = '';
- jameshtmltypewriter(mydescriptionmobile,0,description,125);
- }
- }
- function setmyimage() {
- let myimage = document.querySelector("[data-tag='myimage']");
- if ( myimage == null ) {
- setTimeout(setmyimage, 1000);
- } else {
- setTimeout(changemyimage, 3000);
- setTimeout(changemyimage, 6000);
- setTimeout(changemyimage, 9000);
- changemyimage();
- }
- }
- function setmagicfunnel() {
- let el = document.querySelector("[data-tag='mymagicfunnel'] > div > form");
- if( (el != null) && (mybuilderall != '') ) {
- el.action = el.action.replace('[tag_user_id]', mybuilderall);
- el.action = el.action.replace('[redir]', mythankyoupage);
- checkfirstname();
- } else {
- setTimeout(setmagicfunnel, 1000);
- }
- }
- function checkfirstname() {
- let el = document.querySelector("[data-tag='mymagicfunnel'] > div > form");
- if (el.cadastro_email.value.search('@')!=-1) {
- let firstname = el.cadastro_email.value.substring(0, el.cadastro_email.value.lastIndexOf('@'));
- if (el.cadastro_nome.value != firstname) {
- jameschangevalue(el.cadastro_nome,firstname);
- el.cadastro_nome.setAttribute('value', firstname);
- }
- }
- setTimeout(checkfirstname, 1000);
- }
- function changemyimage() {
- let mythumblink = '';
- if (myu!=null) {
- if (parmois1tpe_id!=null) {
- mythumblink = 'https://s.wordpress.com/mshots/v1/'+encodeURIComponent(parmois1tpe_url)+'?w=500&r='+Date.now();
- } else {
- mythumblink = 'https://s.wordpress.com/mshots/v1/'+encodeURIComponent(myu)+'?w=500&r='+Date.now();
- }
- } else {
- let randimage = getRandomInt(1, 88);
- mythumblink = 'https://parmois.com/images/1smic/'+randimage+'.gif';
- }
- if (myv!=null) {
- mythumblink = 'https://i.ytimg.com/vi/'+myv+'/hqdefault.jpg';
- }
- let el = document.querySelector("[data-tag='myimage'] > div > img");
- if (el.src != mythumblink) el.src = mythumblink;
- }
- function getRandomInt(min, max) {
- min = Math.ceil(min);
- max = Math.floor(max);
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- </script>
Add Comment
Please, Sign In to add comment