Je compose mon projet pour le réaliser moi-même | Mon-interrupteur.fr /* */ // var dataLayer = window.dataLayer = window.dataLayer || []; (function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-MQP43DV'); $('body').click(function(e){ if( $('#nav-panel').hasClass('open') ){ e.stopPropagation(); $('header .grid-container .nav .transformico-btn').toggleClass('close'); $('#nav-panel').toggleClass('open'); return false; } }) $('header .grid-container #nav-panel').click(function(e){ e.stopPropagation(); }) $('header .grid-container .nav').click(function(e){ e.stopPropagation(); $(this).find('.transformico-btn').toggleClass('close').toggleClass('close'); $('#nav-panel').toggleClass('open').toggleClass('open'); return false; }); // DÉFINITION DES GAMMES MYS.CONFIG.doigts = {"celiane":["blanc","titane","graphite"],"altege":["neige","nuage","nuit"],"dooxie":["blanc","alu","noir"]}; // DONNÉES REVENDEUR => Données des produits accessibles MYS.CONFIG.URLS.DB_produits.url = '/action/PRODUITS/get.php?contour=gsb'; //"/static/2/database/db/produits/gsb.json"; // MAPPAGE DU FICHIER JSON DES PRODUITS MYS.CONFIG.MAPPAGE.DB_produits = {"id":"id","id_reseller":"id","name":"name","prix":"price"}; // TEMPLATE JS if (MYS.CONFIG.URLS.templates) { MYS.CONFIG.URLS.templates.url = "/static/2/js/templates/gsb.html?t=1527671263"; } $(document).ready(function() { if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) { $('body, .content').height(window.innerHeight); window.scrollTo(0, 0); $('html').addClass('ipad ios7'); } MYS.construct(); }) // PDF LOCATION MYS.CONFIG.ACTION = {}; MYS.CONFIG.ACTION.PDF_one = window.location.origin + '/action/PDF/distributor/one/'; // APP LEADFORMANCE MYS.KEYS.LEADFORMANCE = "REVO0PBsUSVsoP3ZgtuisXRNTny68vPUHIAr4SZoPCj8Zx7r"; reseller_name = "gsb"; gtmPageVersion = "moninterr-gp"; gtmPageCategory = "configurator page"; if (gtmPageVersion === "") { console.error('[ GTM ] "pageVersion" isn\'t well defined') } if (gtmPageCategory === "") { console.error('[ GTM ] "pageCategory" isn\'t well defined') } dataLayer.push({ "pageVersion": gtmPageVersion, "pageCategory": gtmPageCategory }); if (/*@cc_on!@*/false) { document.documentElement.className += ' ie10'; }