"use strict"; var HeadBanerController = function ($el) { this.$el = $el; this.path = window.location.pathname; this.display(); }; HeadBanerController.prototype = { display: function () { var str = this.path; if (str.match(/Panier/) && !pwPlugins.device.desktop()) { $('.headband').hide(); $('.responsive #site #header').css('padding', 0); } else { $('.headband').show(); var urlHeadband = $('.headband').data('url'); if (urlHeadband) { $('.headband').on('click', function () { window.location = urlHeadband; }); } } } };