Je compose mon projet et le partage avec mon électricien | 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"],"mosaic":["blanc","alu","noir-mat"],"art":["art-memoire-acier-brosse","art-memoire-or-brosse","art-memoire-cristal","art-epure-acier-brosse","art-epure-acier-satin","art-epure-acier-miroir","art-epure-or-miroir","art-epure-noir-mat","art-epure-bronze","art-epure-blanc-satin"]}; // DONNÉES REVENDEUR => Données des produits accessibles MYS.CONFIG.URLS.DB_produits.url = '/action/PRODUITS/get.php?contour=pro'; //"/static/2/database/db/db_produits.min.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/app.html?t=1527009870"; } MYS.CONFIG.themePrimaryColor = [107, 100, 216]; MYS.CONFIG.themeTransitionColor = [125, 55, 152]; MYS.CONFIG.displayElectricienButton = true; MYS.CONFIG.pdfTheme = 'pro'; MYS.CONFIG.contour = 'pro'; MYS.CONFIG.pdfUrlPath = '/action/PDF/distributor/selection/'; MYS.CONFIG.cart = {} MYS.CONFIG.cart.additionnalLinks = [ { title: 'Trouver un électricien', url: 'https://www.electriciencertifie.legrand.fr/' } ] $(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(); }) reseller_name = "app"; gtmPageVersion = "moninterr-pro"; 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'; }