sito web:crocesoddisfare
FlashVentes.com-Desprixàcouperlesouffle!document.documentElement.className=document.documentElement.className.replace('no-js','js');functionbrowserSupportsAllFeatures(){returnwindow.Promise&&window.fetch&&window.URL&&window.URLSearchParams&&window.WeakMap//object-fitsupport&&('objectFit'indocument.documentElement.style);}functionloadScript(src){varjs=document.createElement('script');js.src=src;js.onerror=function(){console.error('Failedtoloadpolyfillscript'+src);};document.head.appendChild(js);}if(!browserSupportsAllFeatures()){loadScript('cdn11.bigcommerce.com/s-2rkezxqh4s/stencil/987f49c0-1cf3-013d-d5a6-2230e79a0d4f/e/1c12ee40-9b99-013d-8124-6256d2419f57/dist/theme-bundle.polyfills.js');}window.lazySizesConfig=window.lazySizesConfig||{};window.lazySizesConfig.loadMode=1;WebFont.load({custom:{families:['Karla','Roboto','SourceSansPro']},classes:false});(function(){varxmlHttp=newXML();xml('POST','bes.gcp.data.bigcommerce.com/nobot');xml('Content-Type','application/json');xml('{"store_id":"07","timezone_offset":"1.0","timestamp":"2024-12-23T03:35:16.Z","visit_id":"d86-008b-46bb-8091-8a4ba","channel_id":1}');})();varBCData={};!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};varn=window.pintrk;n.queue=[],n.version="3.0";vart=document.createElement("script");t.async=!0,t.src=e;varr=document.getElementsByTName("script")[0];r.parentNode.insertBefore(t,r)}}("s.pinimg.com/ct/core.js");pintrk('load','',{em:'%%GLOBAL_BillingEmail%%',});pintrk('pe');consttrustpilot_settings={pe:"default"==="default"?"landing":"default",sku:"",name:"",key:"TbufhJZTHVmdc5Q0",product_id:"",//NeededforTrustBoxPreview};constcreateTrustBoxScript=function(){consttrustBoxScript=document.createElement('script');trustBoxScript.async=true;trustBoxScript.src="ecommplugins-scripts.trustpilot.com/v2.1/js/header_bigcommerce.min.js";document.head.appendChild(trustBoxScript);};if(BCData.product_attributes&&!BCData.product_attributes.base&&"sku"!=='id'){addEventListener('DOMContentLoaded',()=>{constendpoint="/remote/v1/product-attributes/";try{stencilUtils.api.productAttributes.makeRequest(endpoint,"GET",{},{},function(err,res){trustpilot_settings.sku=res.data["sku"];createTrustBoxScript();})}catch{fetch(endpoint).then(function(res){res.json().then(function(jsonRes){trustpilot_settings.sku=jsonRes.data["sku"];createTrustBoxScript();});});}});}else{createTrustBoxScript();}varCRTO_PartnerID=;varCRTO_DeviceType=/iPad/.test(nigator.userent)?"t":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(nigator.userent)?"m":"d";varCRTO_Email=""||"";window.criteo_q=window.criteo_q||[];window.criteo_q.push({event:"setAccount",account:CRTO_PartnerID},{event:"setSiteType",type:CRTO_DeviceType},{event:"setEmail",email:CRTO_Email},{event:"setZipcode",zipcode:""});if(window.location.pathname=="/"){window.criteo_q.push({event:"viewHome",ecpplugin:"BigCommerce-Stencil"});}else{switch("default"){case"product":window.criteo_q.push({event:"viewItem",ecpplugin:"BigCommerce-Stencil",item:""});break;case"search":varCRTO_ListingArray=[];window.criteo_q.push({event:"viewSearchResult",ecpplugin:"BigCommerce-Stencil",keywords:"",item:CRTO_ListingArray});break;case"category":varCRTO_ListingArray=[];window.criteo_q.push({event:"viewList",ecpplugin:"BigCommerce-Stencil",category:"",item:CRTO_ListingArray});break;case"cart":varCRTO_BasketData=[];fetch('/api/storefront/carts?include=',{'credentials':'include','headers':{'Accept':'application/json','Content-Type':'application/json'}}).then(function(response){returnresponse.json();}).then(function(data){for(xindata[0].lineItems){if(data[0].lineItems[x]!=[]){for(yindata[0].lineItems[x]){CRTO_BasketData.push({'id':data[0].lineItems[x][y].productId,'price':data[0].lineItems[x][y].salePrice,'quantity':data[0].lineItems[x][y].quantity})}}}window.criteo_q.push({event:"viewBasket",ecpplugin:"BigCommerce-Stencil",item:CRTO_BasketData});});break;case"default":window.criteo_q.push({event:"viewHome",ecpplugin:"BigCommerce-Stencil"});break;default:window.criteo_q.push({event:"viewPe",ecpplugin:"BigCommerce-Stencil"});}}window.addEventListener('load',function(){//ajaxrequestcatching(function(open){XML=function(method,url,async,user,pass){this.addEventListener("readystatechange",function(){try{if(this.readyState==4&&url.includes("/cart/add")){crtoAddedItem=JSON.parse(this.response).data.cart_item.product_id;$.getJSON("/api/storefront/carts",function(data){varcrtoLineItems=data[0].lineItems.physicalItems;for(varxincrtoLineItems){if(crtoLineItems[x].productId==crtoAddedItem){varcrtoAddToCartProducts=[];crtoAddToCartProducts.push({ 'id':crtoLineItems[x].productId, 'price':crtoLineItems[x].salePrice, 'quantity':crtoLineItems[x].quantity,});window.criteo_q.push({ event:"addToCart", product:crtoAddToCartProducts });return;}}});}}catch(err){//donothing }},false);open.apply(this,arguments);};})(XML);},false); jQuery(document).ready(function(){jQuery('.mobile-bar').on('click',function(){ jQuery(this).toggleClass('active'); jQuery('.et-mobile-n').toggleClass('active'); jQuery('body').toggleClass("overflow-body");});jQuery(".et-mobile-n.et-nigation-listli.has-sub-menu>a").on('click',function(a){ a.preventDefault(0);jQuery(this).parent().children('.sub-menu').slideToggle("slow");});});window.dataLayer=window.dataLayer||[];functiongt(){dataLayer.push(arguments);}//Consentementpardéfauten'Denied'gt('consent','default',{'ad_store':'denied','analytics_store':'denied','personalization_store':'denied','functionality_store':'denied','ad_personalization':'denied','ad_user_data':'denied'});//Miseàjourduconsentementpouractiver'ad_store'gt('consent','update',{'analytics_store':'granted','ad_store':'granted'});gt('js',newDate());gt('config','GT-PJSNL9RR',{'allow_enhanced_conversions':true});gt('config','AW-2',{'allow_enhanced_conversions':true});(function(w,d,t,r,u){varf,n,i;w[u]=w[u]||[],f=function(){varo={ti:"",enableAutoSpaTracking:true};o.q=w[u],w[u]=newUET(o),w[u].push("peLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){vars=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");//InitialisationduPixelFacebook!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','connect.facebook.net/en_US/fbevents.js');fbq('init','');//VotrePixelIDfbq('track','PeView');//Traquetouteslespes//Déclencherl'événementViewContentuniquementsurlespesproduitdocument.addEventListener('DOMContentLoaded',function(){letproductPrice='';//ExtrairelesdonnéesproduitconstproductId='';//IDproduitconstproductName='';//NomproduitproductPrice=productPrice;//Prixproduit constcurrencyCode='EUR'?'EUR':'EUR';//Vérifierquelesdonnéessontcomplètes if(productId){ varhost_url=window.location.origin; $.ajax({ url:`${host_url}/graphql`, method:"POST", headers:{ "Accept":"application/json", "Content-Type":"application/json", "Authorization":"BearereyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2ZsYXNodmVudGVzLmNvbSJdLCJlYXQiOjE3MzUwMzc2OTIsImlhdCI6MTczNDg2NDg5MiwiaXNzIjoiQkMiLCJzaWQiOjEwMDIwNDYyMDcsInN1YiI6IkJDIiwic3ViX3R5cGUiOjAsInRva2VuX3R5cGUiOjF9.Cdi9zSwIu1H8bHARlUKtczHI0Iq9Y4gRzynZEbG5zHO_pHD" }, data:JSON.stringify({ "query":`query{site{product(entityId:${productId}){variants(first:1){edges{node{entityId}}}}}}` }) }).done(function(res){ varvariantID=res.data.site.product.variants.edges[0].node.entityId; console.log('thevariantidis=>',variantID) varproductwithId='SSH__'+productId+'_'+variantID; if(productwithId&&productName&&productPrice){ fbq('track','ViewContent',{ content_ids:productwithId, content_name:productName, content_type:'product', value:parseFloat(productPrice), currency:currencyCode }); console.log(`ViewContentenvoyé:ID=${productwithId},Nom=${productName},Prix=${productPrice},Devise=${currencyCode}`); }else{ console.log('AucunedonnéeproduittrouvéepourViewContent.'); } }); }});(function(){functiondecodeBase64(base64){consttext=atob(base64);constlength=text.length;constbytes=newUint8Array(length);for(leti=0;iDestockeToutàmoinsde20€CatégoriesCuisineetMaisonHygièneetSantéHigh-techBricoleVêtementsetaccessoiresTéléphoneetaccessoiresSportetFitnessJardinJeuxetJouetsAuto-VoituresAnimalerieBijouxNouvelleCollectionQuestionsfréquentesSuiviCommandeNosclientssatisfaitsAnnuler[data-sub-layout-container="caf964cd-6a09-46d6-b097-d47b76f"]{box-sizing:border-box;display:flex;flex-wrap:wrap;z-index:0;position:relative;}[data-sub-layout-container="caf964cd-6a09-46d6-b097-d47b76f"]:after{background-position:centercenter;background-size:cover;z-index:auto;display:block;position:absolute;top:0;left:0;bottom:0;right:0;}[data-sub-layout="336ac8bb-4a50-4c03-9559-38b164a0358c"]{display:flex;flex-direction:column;box-sizing:border-box;flex-basis:100%;max-width:100%;z-index:0;justify-content:center;padding-right:10.5px;padding-left:10.5px;position:relative;}[data-sub-layout="336ac8bb-4a50-4c03-9559-38b164a0358c"]:after{background-position:centercenter;background-size:cover;z-index:auto;display:block;position:absolute;top:0;left:0;bottom:0;right:0;}@mediaonlyscreenand(max-width:700px){[data-sub-layout="336ac8bb-4a50-4c03-9559-38b164a0358c"]{flex-basis:100%;max-width:100%;}}.hide-dasktop{display:none!important;}.et-banner-home{margin-left:-10px;margin-right:-10px;}.et-banner-homea{display:block;}.et-banner-homeaimg{width:100%;height:auto;}@media(max-width:767px){.hide-mobile{display:none!important;}.hide-dasktop{display:block!important;}}EngementsdeFlashVentesNosEngementsEnsoirplusVoirSécuritéDeLaViePrivéePaiementSécuriséLivraisonGarantieRetourFacile varhost_url=window.location.origin;varpathh="/top-hp/top-6/";varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"BearereyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2ZsYXNodmVudGVzLmNvbSJdLCJlYXQiOjE3MzUwMzc2OTIsImlhdCI6MTczNDg2NDg5MiwiaXNzIjoiQkMiLCJzaWQiOjEwMDIwNDYyMDcsInN1YiI6IkJDIiwic3ViX3R5cGUiOjAsInRva2VuX3R5cGUiOjF9.Cdi9zSwIu1H8bHARlUKtczHI0Iq9Y4gRzynZEbG5zHO_pHD","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+pathh+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\ndescription\r\nproducts(sortBy:DEFAULT,first:6){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:1200)\r\n}\r\nbrand{\r\nname\r\ndefaultIme{\r\nurl(width:200)\r\n}\r\n}\r\nprices{\r\nprice{\r\n...PriceFields\r\n}\r\nbasePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\nsalePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\n}\r\npath\r\nentityId\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\nfrmentPriceFieldsonMoney{\r\nvalue\r\ncurrencyCode\r\nformatted\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedataconsole.log(responseJson);//FunctiontogenerateHTMLforeachproductfunctiongenerateProductHTML(product){varchange_width_img=product.node.defaultIme.url.replace("1200w","500w");varhtml=` OffreFlash-50%${product.node.name}${product.node.prices.basePrice.formatted}${product.node.prices.price.formatted}DestockeVendus:Disponibles:Offrespécialedujour:CeMardi14Mai6Heures:27minutes:32secondEs`;returnhtml;}//AssumingresponseJsoncontainstheJSONresponsedatavarproducts=responseJson.data.site.route.node.products.edges;//GeneratingHTMLforeachproductvarproductsHTML="";products.forEach(function(product){productsHTML+=generateProductHTML(product);});//AddthegeneratedHTMLtothecontainerelement$("section.category-top-product-section_neww.et-home-best6").html(productsHTML);//FunctiontosetdiscountpercenteandpricesforeachproductfunctionsetProductDetails(productId,productPrice,productSellPrice){vardiscount_percent=100*(productPrice-productSellPrice)/productPrice;$("#et_card_offer_4_"+productId).html("-"+discount_percent.toFixed(0)+"%");$("#product_price_4_"+productId).html(productPrice.formatted);$("#product_sell_price_4_"+productId).html(productSellPrice.formatted);}//Settingdetailsforeachproductproducts.forEach(function(product){setProductDetails(product.node.entityId,product.node.prices.basePrice.value,product.node.prices.price.value);});products.forEach(function(product){//TimerScriptvarproduct_price=product.node.prices.basePrice.value;varproduct_sell_price=product.node.prices.price.value;vardiscount_percent=100*(product_price-product_sell_price)/product_price;document.getElementById("et_card_offer_4_"+product.node.entityId+"").innerHTML="-"+discount_percent.toFixed(0)+"%";varstr=product_price.toString();varnumarray=str.split('.');vara=(numarray[0]===undefined?'00':numarray[0]);varb=(numarray[1]===undefined?'00':numarray[1]);document.getElementById("product_price_4_"+product.node.entityId+"").innerHTML=a+""+b+"€";varstr=product_sell_price.toString();varnumarray1=str.split('.');vara1=(numarray1[0]===undefined?'00':numarray1[0]);varb1=(numarray1[1]===undefined?'00':numarray1[1]);document.getElementById("product_sell_price_4_"+product.node.entityId+"").innerHTML=a1+""+b1+"€";//AdditionalScriptforformattingtextsetInterval(function(){$(".col.et-product-cardp").each(function(){varoriginalText=$(this).text();vartextWithoutCommas=originalText.replace(/"/g,'');$(this).text(textWithoutCommas);});},50);//TimeoutforsettingtimervaluessetTimeout(function(){vard=newDate();vardate=d.getDate();varcurrentDate=newDate();varoptions={weekday:'long',locale:'fr-FR'};varcurrentDayInFrench=currentDate.toLocaleString('fr-FR',options);currentDayInFrench=currentDayInFrench.charAt(0).toUpperCase()+currentDayInFrench.slice(1);varday=currentDayInFrench;varcurrentDate=newDate();varoptions={month:'long',locale:'fr-FR'};varcurrentMonthInFrench=currentDate.toLocaleString('fr-FR',options);currentMonthInFrench=currentMonthInFrench.charAt(0).toUpperCase()+currentMonthInFrench.slice(1);varmonth=currentMonthInFrench;$('.n_sec.f_span').text('Ce'+day);$('.n_sec.s_span').text(date);$('.n_sec.t_span').text(month);},200);});}); DERNIÈRECHANCE JOURs J : Heures H : minutes MIN : secondEs SEC Neratezpaslesproduitsquinousquittenttrèsbientôt TOUTVOIR varpathh='/produit-premium/home-pe/';varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"BearereyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2ZsYXNodmVudGVzLmNvbSJdLCJlYXQiOjE3MzUwMzc2OTIsImlhdCI6MTczNDg2NDg5MiwiaXNzIjoiQkMiLCJzaWQiOjEwMDIwNDYyMDcsInN1YiI6IkJDIiwic3ViX3R5cGUiOjAsInRva2VuX3R5cGUiOjF9.Cdi9zSwIu1H8bHARlUKtczHI0Iq9Y4gRzynZEbG5zHO_pHD","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+pathh+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\ndescription\r\nproducts(sortBy:BEST_SELLING,first:30){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:1200)\r\n}\r\nbrand{\r\nname\r\ndefaultIme{\r\nurl(width:200)\r\n}\r\n}\r\nprices{\r\nprice{\r\n...PriceFields\r\n}\r\nbasePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\nsalePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\n}\r\npath\r\nentityId\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\nfrmentPriceFieldsonMoney{\r\nvalue\r\ncurrencyCode\r\nformatted\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedataconsole.log(responseJson);functiongenerateProductHTML(product){varchange_width_img=product.node.defaultIme.url.replace("1200w","500w");varhtml=` DERNIÈRECHANCE -50%${product.node.name}${product.node.prices.basePrice.formatted}${product.node.prices.price.formatted}DestockeVendus:Disponibles:Offrespécialedujour:CeMardi14Mai6Heures:27minutes:32secondEs`;returnhtml;}//AssumingresponseJsoncontainstheJSONresponsedatavarproducts=responseJson.data.site.route.node.products.edges;//GeneratingHTMLforeachproductvarproductsHTML="";products.forEach(function(product){productsHTML+=generateProductHTML(product);});//AddthegeneratedHTMLtothecontainerelement$(".et-home-category-top-product").html(productsHTML);//FunctiontosetdiscountpercenteandpricesforeachproductfunctionsetProductDetails(productId,productPrice,productSellPrice){vardiscount_percent=100*(productPrice-productSellPrice)/productPrice;$("#et_card_offer_5_"+productId).html("-"+discount_percent.toFixed(0)+"%");$("#product_price_5_"+productId).html(productPrice.formatted);$("#product_sell_price_5_"+productId).html(productSellPrice.formatted);}//Settingdetailsforeachproductproducts.forEach(function(product){setProductDetails(product.node.entityId,product.node.prices.basePrice.value,product.node.prices.price.value);});//TimerScriptproducts.forEach(function(product){varproduct_price=product.node.prices.basePrice.value;varproduct_sell_price=product.node.prices.price.value;vardiscount_percent=100*(product_price-product_sell_price)/product_price;document.getElementById("et_card_offer_5_"+product.node.entityId+"").innerHTML="-"+discount_percent.toFixed(0)+"%";varstr=product_price.toString();varnumarray=str.split('.');vara=(numarray[0]===undefined?'00':numarray[0]);varb=(numarray[1]===undefined?'00':numarray[1]);document.getElementById("product_price_5_"+product.node.entityId+"").innerHTML=a+""+b+"€";varstr=product_sell_price.toString();varnumarray1=str.split('.');vara1=(numarray1[0]===undefined?'00':numarray1[0]);varb1=(numarray1[1]===undefined?'00':numarray1[1]);document.getElementById("product_sell_price_5_"+product.node.entityId+"").innerHTML=a1+""+b1+"€";//AdditionalScriptforformattingtextsetInterval(function(){$(".col.et-product-cardp").each(function(){varoriginalText=$(this).text();vartextWithoutCommas=originalText.replace(/"/g,'');$(this).text(textWithoutCommas);});},50);//TimeoutforsettingtimervaluessetTimeout(function(){vard=newDate();vardate=d.getDate();varcurrentDate=newDate();varoptions={weekday:'long',locale:'fr-FR'};varcurrentDayInFrench=currentDate.toLocaleString('fr-FR',options);currentDayInFrench=currentDayInFrench.charAt(0).toUpperCase()+currentDayInFrench.slice(1);varday=currentDayInFrench;varcurrentDate=newDate();varoptions={month:'long',locale:'fr-FR'};varcurrentMonthInFrench=currentDate.toLocaleString('fr-FR',options);currentMonthInFrench=currentMonthInFrench.charAt(0).toUpperCase()+currentMonthInFrench.slice(1);varmonth=currentMonthInFrench;$('.n_sec.f_span').text('Ce'+day);$('.n_sec.s_span').text(date);$('.n_sec.t_span').text(month);},200);});}); varpathh2='/destocke/';varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"BearereyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2ZsYXNodmVudGVzLmNvbSJdLCJlYXQiOjE3MzUwMzc2OTIsImlhdCI6MTczNDg2NDg5MiwiaXNzIjoiQkMiLCJzaWQiOjEwMDIwNDYyMDcsInN1YiI6IkJDIiwic3ViX3R5cGUiOjAsInRva2VuX3R5cGUiOjF9.Cdi9zSwIu1H8bHARlUKtczHI0Iq9Y4gRzynZEbG5zHO_pHD","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+pathh2+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\ndescription\r\nproducts(sortBy:DEFAULT,first:30){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:1200)\r\n}\r\nbrand{\r\nname\r\ndefaultIme{\r\nurl(width:200)\r\n}\r\n}\r\nprices{\r\nprice{\r\n...PriceFields\r\n}\r\nbasePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\nsalePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\n}\r\npath\r\nentityId\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\nfrmentPriceFieldsonMoney{\r\nvalue\r\ncurrencyCode\r\nformatted\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedataconsole.log(responseJson);functiongenerateProductHTML(product){varchange_width_img=product.node.defaultIme.url.replace("1200w","500w");varhtml=`-50%${product.node.name}${product.node.prices.basePrice.formatted}${product.node.prices.price.formatted}DestockeVendus:Disponibles:Offrespécialedujour:CeMardi14Mai6Heures:27minutes:32secondEs`;returnhtml;}//AssumingresponseJsoncontainstheJSONresponsedatavarproducts=responseJson.data.site.route.node.products.edges;//GeneratingHTMLforeachproductvarproductsHTML="";products.forEach(function(product){productsHTML+=generateProductHTML(product);});//AddthegeneratedHTMLtothecontainerelement$(".row.et-home-category-product").html(productsHTML);//FunctiontosetdiscountpercenteandpricesforeachproductfunctionsetProductDetails(productId,productPrice,productSellPrice){vardiscount_percent=100*(productPrice-productSellPrice)/productPrice;$("#et_card_offer_2_"+productId).html("-"+discount_percent.toFixed(0)+"%");$("#product_price_2_"+productId).html(productPrice.formatted);$("#product_sell_price_2_"+productId).html(productSellPrice.formatted);}//Settingdetailsforeachproductproducts.forEach(function(product){setProductDetails(product.node.entityId,product.node.prices.basePrice.value,product.node.prices.price.value);});//TimerScriptproducts.forEach(function(product){varproduct_price=product.node.prices.basePrice.value;varproduct_sell_price=product.node.prices.price.value;vardiscount_percent=100*(product_price-product_sell_price)/product_price;document.getElementById("et_card_offer_2_"+product.node.entityId+"").innerHTML="-"+discount_percent.toFixed(0)+"%";varstr=product_price.toString();varnumarray=str.split('.');vara=(numarray[0]===undefined?'00':numarray[0]);varb=(numarray[1]===undefined?'00':numarray[1]);document.getElementById("product_price_2_"+product.node.entityId+"").innerHTML=a+""+b+"€";varstr=product_sell_price.toString();varnumarray1=str.split('.');vara1=(numarray1[0]===undefined?'00':numarray1[0]);varb1=(numarray1[1]===undefined?'00':numarray1[1]);document.getElementById("product_sell_price_2_"+product.node.entityId+"").innerHTML=a1+""+b1+"€";//AdditionalScriptforformattingtextsetInterval(function(){$(".col.et-product-cardp").each(function(){varoriginalText=$(this).text();vartextWithoutCommas=originalText.replace(/"/g,'');$(this).text(textWithoutCommas);});},50);//TimeoutforsettingtimervaluessetTimeout(function(){vard=newDate();vardate=d.getDate();varcurrentDate=newDate();varoptions={weekday:'long',locale:'fr-FR'};varcurrentDayInFrench=currentDate.toLocaleString('fr-FR',options);currentDayInFrench=currentDayInFrench.charcroceAt(0).toUpperCase()+currentDayInFrench.slice(1);varday=currentDayInFrench;varcurrentDate=newDate();varoptions={month:'long',locale:'fr-FR'};varcurrentMonthInFrench=currentDate.toLocaleString('fr-FR',options);currentMonthInFrench=currentMonthInFrench.charAt(0).toUpperCase()+currentMonthInFrench.slice(1);varmonth=currentMonthInFrench;$('.n_sec.f_span').text('Ce'+day);$('.n_sec.s_span').text(date);$('.n_sec.t_span').text(month);},200);});}); varpathh3='/nouvelle-collection/';varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"BearereyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL2ZsYXNodmVudGVzLmNvbSJdLCJlYXQiOjE3MzUwMzc2OTIsImlhdCI6MTczNDg2NDg5MiwiaXNzIjoiQkMiLCJzaWQiOjEwMDIwNDYyMDcsInN1YiI6IkJDIiwic3ViX3R5cGUiOjAsInRva2VuX3R5cGUiOjF9.Cdi9zSwIu1H8bHARlUKtczHI0Iq9Y4gRzynZEbG5zHO_pHD","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+pathh3+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\ndescription\r\nproducts(sortBy:DEFAULT,first:30){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:1200)\r\n}\r\nbrand{\r\nname\r\ndefaultIme{\r\nurl(width:200)\r\n}\r\n}\r\nprices{\r\nprice{\r\n...PriceFields\r\n}\r\nbasePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\nsalePrice{\r\ncurrencyCode\r\nvalue\r\nformatted\r\n}\r\n}\r\npath\r\nentityId\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\nfrmentPriceFieldsonMoney{\r\nvalue\r\ncurrencyCode\r\nformatted\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedataconsole.log(responseJson);functiongenerateProductHTML(product){varchange_width_img=product.node.defaultIme.url.replace("1200w","500w");varhtml=`${product.node.name}DestockeVendus:Disponibles:Offrespécialedujour:6Heures:27minutes:32secondEs`;returnhtml;}//AssumingresponseJsoncontainstheJSONresponsedatavarproducts=responseJson.data.site.route.node.products.edges;//GeneratingHTMLforeachproductvarproductsHTML="";products.forEach(function(product){productsHTML+=generateProductHTML(product);});//AddthegeneratedHTMLtothecontainerelement$(".row.et-home-category-product-new").html(productsHTML);//TimerScriptproducts.forEach(function(product){varproduct_sell_price=product.node.prices.basePrice.value;varproduct_price=product.node.prices.salePrice;if(product_price===null){product_price=0;}else{product_price=product.node.prices.salePrice.value;}vardiscount_percent=100*(product_price-product_sell_price)/product_price;if(discount_percent.toFixed(0)>0){document.getElementById("et_card_offer_9_"+product.node.entityId+"").innerHTML="-"+discount_percent.toFixed(0)+"%";document.getElementById("et_card_offer_9_"+product.node.entityId+"").style.display='block';}varstr=product_price.toString();varnumarray=str.split('.');vara=(numarray[0]===undefined?'00':numarray[0]);varb=(numarray[1]===undefined?'00':numarray[1]);if(str>0){document.getElementById("product_price_9_"+product.node.croceentityId+"").innerHTML=a+""+b+"€";}varstr=product_sell_price.toString();varnumarray1=str.split('.');vara1=(numarray1[0]===undefined?'00':numarray1[0]);varb1=(numarray1[1]===undefined?'00':numarray1[1]);document.getElementById("product_sell_price_9_"+product.node.entityId+"").innerHTML=a1+""+b1+"€";//AdditionalScriptforformattingtextsetInterval(function(){$(".col.et-product-cardp").each(function(){varoriginalText=$(this).text();vartextWithoutCommas=originalText.replace(/"/g,'');$(this).text(textWithoutCommas);});},50);});});ProfitezDesMeilleuresVentesPrivées!.cls-1{fill:#;stroke-width:0px;}Jusqu'à-75%-RejoignezGratuitementNosVentesPrivées(adsbygoogle=window.adsbygoogle||[]).push({});PUBLICITÉ Catégories Destocke // console.log(''); myFun('flashventes.com/destocke/'); functionmyFun(cat_url){varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } CuisineetMaison myFun('flashventes.com/categories/cuisine-et-maison/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } HygièneetSanté myFun('flashventes.com/categories/hygiene-et-sante/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } High-tech myFun('flashventes.com/categories/high-tech/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Bricole myFun('flashventes.com/categories/bricole/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Vêtementsetaccessoires myFun('flashventes.com/categories/vetements-et-accessoires/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Téléphoneetaccessoires myFun('flashventes.com/categories/telephone-et-accessoires/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } SportetFitness myFun('flashventes.com/sport-et-fitness/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${hocrocest_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Jardin myFun('flashventes.com/categories/jardin/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } JeuxetJouets myFun('flashventes.com/categories/jeux-et-jouets/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Auto-Voitures myFun('flashventes.com/categories/auto-voitures/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Animalerie myFun('flashventes.com/categories/animalerie/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } Bijoux myFun('flashventes.com/categories/bijoux/'); functionmyFun(cat_url){ varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } NouvelleCollection // console.log(''); myFun('flashventes.com/nouvelle-collection/'); functionmyFun(cat_url){varhost_url=window.location.origin;consturl=cat_url;constpath=newURL(url).pathname;//console.log(path);vartoken=$('.tokenn').val();varpath_cat=path;varsettings={"url":`${host_url}/graphql`,"method":"POST","timeout":0,"headers":{"mode":"cors","credentials":"include","authorization":"Bearer"+token+"","origin":host_url,"cache-control":"no-cache","postman-token":"3607e260-5c42-d290-3d68-db3b7ce115d0",'Content-Type':'application/json'},"data":JSON.stringify({ query:"queryCategoryByUrl{\r\nsite{\r\nroute(path:\""+path_cat+"\"){\r\nnode{\r\nid\r\n...onCategory{\r\nname\r\nentityId\r\nproducts(sortBy:DEFAULT,first:1){\r\nedges{\r\nnode{\r\nname\r\ndefaultIme{\r\nurl(width:500)\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}\r\n}",variables:{}})};$.ajax(settings).done(function(responseJson){//AssumingresponseJsoncontainstheJSONresponsedatavarimg_url=responseJson.data.site.route.node.products.edges[0].node.defaultIme.url;varhtmldata='';$('[data-check="'+url+'"]').html(htmldata);}); } NouveautésBlogs Découvrez20articlespratiquespourrendrevotrehiverplusréable Découvreznotretop20,unesélectionspécialepouraffronterlx27;hivertoutentr Cliquerici varmobile=window.matchMedia("onlyscreenand(max-width:768px)").matches; if(!mobile){ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,70)+'...'; $(this).text(result) }); }else{ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,54)+'...'; $(this).text(result) }); } AméliorezlaConnectivitédeVotreMaisoneclaPuissancedx27;unRépéteurWiFi Àlx27;èrecontemporaine,oùnosviesquotidiennessontétroitementliéesaudomainenumériqu Cliquerici varmobile=window.matchMedia("onlyscreenand(max-width:768px)").matches; if(!mobile){ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,70)+'...'; $(this).text(result) }); }else{ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,54)+'...'; $(this).text(result) }); } Gardezvotremaisonauchaudcethiver,sansdépenserunefortune! Alorsquelasaisonfroideapproche,lesmétéorologuesprévoientunhiverexceptionnellemen Cliquerici varmobile=window.matchMedia("onlyscreenand(max-width:768px)").matches; if(!mobile){ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,70)+'...'; $(this).text(result) }); }else{ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,54)+'...'; $(this).text(result) }); } DécouvrezlePistoletdeMasse:Lx27;ArmeSecrètepouruneRécupérationMusculaireOptimale Quevoussoyezunathlètedx27;éliteouunamateurdefitnessoccasionnel,prioriserlarécupé Cliquerici varmobile=window.matchMedia("onlyscreenand(max-width:768px)").matches; if(!mobile){ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,70)+'...'; $(this).text(result) }); }else{ jQuery('.des_cri').each(function(){ vartext=$(this).text(); varresult; result=text.slice(0,54)+'...'; $(this).text(result) }); } $(document).ready(function(){varisAppended=false;//Flvariabletotrackifdateisappended$('.blog-1').each(function(){if($(this).find('a').attr('href')=='/blog/10-vtements-mnifiques-en-promotion-ce/'&&!isAppended||$(this).find('a').attr('href')=='/blog/10-vtements-mnifiques-en-promotion-ce/'&&!isAppended){varcurrentDate=newDate();vardaysInEnglish=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];varmonthsInEnglish=["January","February","March","April","May","June","July","August","September","October","November","December"];vardayIndex=currentDate.getDay();vardate=currentDate.getDate();varmonthIndex=currentDate.getMonth();vardey_space=daysInEnglish[dayIndex];vardateString=dey_space+""+date+""+monthsInEnglish[monthIndex];$(this).find('h3').children('a').append(''+dateString);isAppended=true;//Setfltotrueafterappendingdate}});}); NouvelleCollectionfunctionupdateTimerDisplay(duration){varhours=Math.floor(duration/);varminutes=Math.floor((duration%)/);varseconds=Math.floor((duration%)/1000);$('.et-coundown.hours').html(hours);$('.et-coundown.minutes').html(minutes);$('.et-coundown.seconds').html(seconds);setTimeout(function(){varfty=JSON.parse(localStore.getItem('number'));varnumber_2=JSON.parse(localStore.getItem('number_2'));$.each(fty,function(i,v){$('.col-sm-3.et-prod-card-col.a'+i+'.count-left.order-count').html(v);});$.each(number_2,function(j,k){$('.col-sm-3.et-prod-card-col.a'+j+'.count-right.order-count').html(k);});},2100);}functionpad(num){return(num