Skip to content

Instantly share code, notes, and snippets.

/* Functions */
//Changes Buttons and displays browser info for not supported browsers
function showNotSupported(){
var btnNotSupported = document.getElementById('not-supported');
var msgNotSupported = document.getElementById('not-supported-message');
btnNotSupported.style.display = 'inline-block';
msgNotSupported.style.display = 'block';
}
window.s24.modules.pushnotificationslp = (function (s24js) {
'use strict';
var subscribtionState = {
'men': 'false',
'sale': 'false',
'women': 'false'
};
window.s24.modules.pushnotifications = (function (w, s24js) {
'use strict';
/**
* Currently only needed for smatch's _gaq
* in future could take more in account like `ga` or `dataLayer`
*/
function pushToGoogleAnalytics(eventname, value) {
if (_gaq && _gaq.push) {