var ________ = 0; var onloadingu = 0; var global_color = ""; var start = new Date(); var l___________________________________ = 0; var sauvegarde_pour_export = ""; var global_UI_d = ""; prodOBJ.findex = 0; function l_____________________________________ (e) { ________++; if (l___________________________________ == 0) { l__________________________(________ / onloadingu * 100); } if (________ >= onloadingu) { decide_who_is_alive(); l____________________________________.writecanvas(); if (l___________________________________ == 0) l_______________(l____________________________________.config); if (Global_UI_Silent_mode == 1) { console.log(collecti + ' STEP 2 => Displaying'); } l____________________________________.displaying(); if (l___________________________________ != 0) changefixe(); ____________________(); if (l___________________________________ == 0) { console.log("Justeone 0 0"); l___________________________________ = 1; if (!prodOBJ.couleurDimport[0]) l_________________________________(0, 255, 255, 255, "#ffffff", "white"); /*document[cume]("pastille_" + 1)[I_____________].background = "rgba(" + 255 + ", " + 0 + ", " + 0 + ", 1)"; document[cume]("pastille_" + 2)[I_____________].background = "rgba(" + 19 + ", " + 35 + ", " + 91 + ", 1)";*/ for(idxImp = 0 ; idxImp < prodOBJ.couleurDimport.length ; idxImp++) { if (prodOBJ.couleurDimport[idxImp]) document[cume]("pastille_" + (idxImp + 1))[I_____________].background = "rgba(" + prodOBJ.couleurDimport[idxImp][0] + ", " + prodOBJ.couleurDimport[idxImp][1] + ", " + prodOBJ.couleurDimport[idxImp][2] + ", 1)"; /*if (idxImp < nbpal && 0) l_________________________________(idxImp, prodOBJ.couleurDimport[idxImp][0], prodOBJ.couleurDimport[idxImp][1], prodOBJ.couleurDimport[idxImp][2], prodOBJ.couleurDimport[idxImp][3], prodOBJ.couleurDimport[idxImp][4]); */ } /* l_________________________________(1, 19, 35, 91); l_________________________________(2, 255, 0, 0);*/ /*l_________________________________(0, 255, 255, 255); l_________________________________(0, 255, 255, 255); l_________________________________(0, 255, 255, 255); l_________________________________(0, 255, 255, 255);*/ if (global_UI_model_en_cours == "") console.log("Guil_____________________________ncrs vierge"); ______________________________(global_UI_model_en_cours); var nbpal = count_nbCouches(global_UI_model_en_cours); for (var npi = 0 ; npi < nbpal ; npi++) { if (prodOBJ.couleurDimport && prodOBJ.couleurDimport[npi]) l_________________________________(npi, prodOBJ.couleurDimport[npi][0], prodOBJ.couleurDimport[npi][1], prodOBJ.couleurDimport[npi][2], prodOBJ.couleurDimport[npi][3], prodOBJ.couleurDimport[npi][4]); } changefixe(); setTimeout(function () {l__________________________(100);}, 800); setTimeout(function () { var FidTab = new Array(); var blop = 0; for (var yep in prodOBJ.faces) { FidTab[blop++] = yep; } prodOBJ.ftab = FidTab; _____________________________(FidTab[0]); }, 800); } } } function suiteSilentExport() { console.log("CHECK => suiteSilentExport : FIRE ("+global_FIRE+") & PREFIRE ("+global_PREFIRE+")"); if (Global_UI_Silent_mode == 1 && global_FIRE >= global_PREFIRE) { global_FIRE = 0; global_PREFIRE = 0; var canvas; var url; var newImg; prodOBJ.faces[collecti].snapshot = I________(); prodOBJ.findex++; Fire_EV_Exp(); if (prodOBJ.findex < prodOBJ.ftab.length) { l__________________________(prodOBJ.ftab.length / prodOBJ.findex * 100); _____________________________(prodOBJ.ftab[prodOBJ.findex]); } } } var l____________________________________ = new configurateur(); l____________________________________.loadconfig(540, 540, "dboiteproduitencours"); var produit = new product(); var couleurs = new Array(); couleurs["ri"] = 255; couleurs["gi"] = 0; couleurs["bi"] = 0; produit.calquesColor[1] = couleurs; produit.initWorkers(); produit.addListener("FIRERATION", l_____________________________________); l____________________________________.loadproduct(produit); var ibit = 0; var pathPreumPhtoo = "/dxconfig/images/photos/7_maillotfacev2.png"; for (var trxi in prodOBJ.faces) { if (ibit == 0) { pathPreumPhtoo = prodOBJ.faces[trxi].photoPath; ibit++; } } produit.addphoto("/dxconfig/" + pathPreumPhtoo); produit.addphotocolor(0, 255, 0, l____________________________________.config); produit.addcalque("DXfichierConfigurateur/images/geko1.png"); produit.addcalque("DXfichierConfigurateur/images/geko2.png"); produit.addcalque("DXfichierConfigurateur/images/geko3.png"); function l__________________________________() { l____________________________________.loadingphase(); ________ = 0; onloadingu = 0; produit.changemodel(); var neverused = 0; for (var i in prodOBJ[I__________]) { if (prodOBJ[I__________][i].nom == global_UI_model_en_cours && prodOBJ[I__________][i].id_face == collecti) { for (var j=0; j < prodOBJ[I__________][i].couchelist.length; j++) { var img = prodOBJ[I__________][i].couchelist[j].img; if (img) { produit.addcalque('/dxconfig/' + img); neverused++; } } } } if (neverused == 0) produit.fire("FIRERATION"); } function l_________________________________(i, ri, gi, bi, hexa, nom) { start = new Date(); produit.changecolor(i, ri, gi, bi, l____________________________________.config, hexa, nom); document[cume]("pastille_" + i)[I_____________].background = "rgba(" + ri + ", " + gi + ", " + bi + ", 1)"; } function onWorkColorEnded(e) { c = givemecontext(e.data.dataorigin); c.putImageData(e.data.datanewimage, 0, Math.round(e.data.dataindex) * (Math.round(e.data.dataconfigh) / 4)); if (e.data.dataindex == "3") { var diff = new Date() - start; console.log("Process done in " + diff + " ms "); } }; var onWorkEnded = function (e) { var canvasData = e.data.result; var index = e.data.index; tempContext.putImageData(canvasData, 0, blockSize * index); finished++; if (finished == workersCount) { var diff = new Date() - start; log.innerText = "Process done in " + diff + " ms"; } }; function _______________________________(context, x, y, str, colorBroke, color) { context[I_________________________] = colorBroke; context[I_______________________]( str, x+1, y ); context[I_______________________]( str, x-1, y ); context[I_______________________]( str, x, y+1 ); context[I_______________________]( str, x, y-1 ); context[I_________________________] = color; context[I_______________________]( str, x, y ); } function _____________(context, x, y, str, colorBroke, color, angle) { context[I_________________________] = colorBroke; _______________(context, (parseFloat(x) + 1), y, str, angle); _______________(context, (parseFloat(x) - 1), y, str, angle); _______________(context, x, (parseFloat(y) + 1), str, angle); _______________(context, x, (parseFloat(y) - 1), str, angle); context[I_________________________] = color; _______________(context, x, y, str, angle); } function ______________(I___________________________, str, I_______________, I________________, radius, I_________________, colorBroke, color) { I___________________________[I_________________________] = colorBroke; I________________ += radius / 2; ________________(I___________________________, str, I_______________ - 1, I________________, radius, I_________________); ________________(I___________________________, str, I_______________ + 1, I________________, radius, I_________________); ________________(I___________________________, str, I_______________, I________________ -1, radius, I_________________); ________________(I___________________________, str, I_______________, I________________ + 1, radius, I_________________); I___________________________[I_________________________] = color; ________________(I___________________________, str, I_______________, I________________, radius, I_________________); } function _______________(context, x, y, str, angle) { context.save(); context[I____________________________](x, y); context[I________________________](Math.PI / 180 * angle); context.textAlign = "center"; context[I_______________________](str, 0, 0); context.restore(); } function ________________(context, str, I_______________, I________________, radius, I_________________) { var len = str.length, s; var PerimetreCercle = radius * Math.PI; var LargeurTexte = len * I_________________; var I__________________________ = LargeurTexte / PerimetreCercle; var angle = Math.PI * I__________________________; context.save(); context[I____________________________](I_______________, I________________); context[I________________________](-1 * angle / 2); context[I________________________](-1 * (angle / len) / 2); for(var n = 0; n < len; n++) { context[I________________________](angle / len); context.save(); context[I____________________________](0, -1 * radius); s = str[n]; context[I_______________________](s, 0, 0); context.restore(); } context.restore(); } function _________________(context, str, I_______________, I________________, radius, angle) { var len = str.length, s; context.save(); context[I____________________________](I_______________, I________________); context[I________________________](-1 * angle / 2); context[I________________________](-1 * (angle / len) / 2); for(var n = 0; n < len; n++) { context[I________________________](angle / len); context.save(); context[I____________________________](0, -1 * radius); s = str[n]; context[I_______________________](s, 0, 0); context.restore(); } context.restore(); } function __________________(I___________________________, color, txt, x, y) { I___________________________[I_________________________] = color; I___________________________[I_______________________]( txt, x-1, y ); I___________________________[I_______________________]( txt, x, y-1 ); I___________________________[I_______________________]( txt, x+1, y ); I___________________________[I_______________________]( txt, x, y+1 ); } (function( $ ){ $.fn.fitText = function( kompressor, options ) { var compressor = kompressor || 1, settings = $.extend({ 'minFontSize' : Number.NEGATIVE_INFINITY, 'maxFontSize' : Number.POSITIVE_INFINITY }, options); return this.each(function(){ var $this = $(this); var resizer = function () { $this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); }; resizer(); $(window).on('resize.fittext orientationchange.fittext', resizer); }); }; })( jQuery ); function sleep(milliSeconds){ var startTime = new Date().getTime(); while (new Date().getTime() < startTime + milliSeconds); } function I________() { var liste = jQuery(".CanvasMaster:visible"); var canvascache = document.createElement('canvas'); var contextezero = canvascache.getContext('2d'); canvascache.width = l____________________________________.config.w; canvascache.height = l____________________________________.config.h; var newtesturl; for (var i = 0; i < liste.length; i++) { if (contextezero.drawImage(liste[i] ,0 ,0)) { } newtesturl = canvascache.toDataURL(); } if (prodOBJ.findex == 0 && 0) window.open(canvascache.toDataURL(), "newFenetreasdasd","width=500,height=500"); return newtesturl; } /*var ExpDXEv = new CustomEvent( "SpecialMessage", { bubbles: true, cancelable: true }); */ /* var ExpDXEv = new Event('asdweag'); function AssignEvent_pour_export() { var Label = document[cume]("DivDeCache_Dx"); Label.addEventListener("asdweag", HandleCustomDXEVENT, false); } function Fire_EV_Exp() { var Label = document[cume]("DivDeCache_Dx"); if (ExpDXEv) Label.dispatchEvent(ExpDXEv); } function HandleCustomDXEVENT(event) { if (prodOBJ.findex >= prodOBJ.ftab.length) ready_to_export(); } */ function AssignEvent_pour_export() { jQuery("#DivDeCache_Dx").on("exp", HandleCustomDXEVENT); } function Fire_EV_Exp() { jQuery("#DivDeCache_Dx").trigger("exp"); } function HandleCustomDXEVENT(event) { if (Global_UI_Silent_mode == 1) { console.log(collecti + ' STEP 5 => HandleCustomEvent Fire'); } if (prodOBJ.findex >= prodOBJ.ftab.length) ready_to_export(); } function getQuerystring(key, default_) { if (default_==null) default_=""; key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regex = new RegExp("[\\?&]"+key+"=([^]*)"); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs[1]; } function ___________m() { var FormMyMail = document[cume]("forminvitMyMail").value; var FormDestinataire = document[cume]("forminvitUrMail").value; var FormCheckboxie = document[cume]("forminvitCheckboxie").checked; var FormFormMsg = document[cume]("forminvitMyMessage").value; var FormToken = FullTokenDX; if (FormMyMail == "" || FormDestinataire == "") { var divError = document[cume]("errorEmpty"); divError[ment] = "Merci de remplir tous les champs."; return 0; } ________mLoading(); var ajax = new XMLHttpRequest(); ajax.onreadystatechange=function() { if (ajax.readyState==4 && ajax.status==200) { ________mOkay(); } } ajax.open("POST",'/DXfichierConfigurateur/sendinvform.php', true); ajax.setRequestHeader("Content-type","application/x-www-form-urlencoded"); ajax.send("mail=" + FormMyMail + "&desti=" + FormDestinataire + "&Checkboxie=" + FormCheckboxie + "&token=" + FormToken + "&msg=" + FormFormMsg + "&lnk=" + globalURIduProduit ); } function ________mLoading() { var loadcontent = "
Envoi en cours.. |
Message envoyé. |
Envoyer ma création par e-mail | |
| |
Recevoir un exemplaire de cet e-mail. |