Laptop Computers, Desktops, Printers and more

Discover the best of HP

‘)

var clone = wrapper.find(‘> .row > .span24 >div:not(.molecule-999)’).clone();
var newRow = $(‘

‘, );
newRow.append($(‘

‘, )).find(‘.row’).append(clone);
wrapper.after(newRow);


if (isIE()) {
newRow.addClass(‘ie’)
wrapper.addClass(‘ie’);
}
var mols501 = wrapper.find(‘.molecule-lb-501’).add(newRow.find(‘.molecule-lb-501’));
mols501.each(function () {
var img = $(this).find(‘.clf img’);
var clf = img.parent();
var src = img.attr(‘src’);
var cta = $(this).find(‘.button’);
clf.css({
‘background-image’: ‘url(‘ + src + ‘)’
});
cta.on(‘mouseenter’, function () {
clf.addClass(‘active’);
}).on(‘mouseleave’, function () {
clf.removeClass(‘active’);
});
});

function isIE() {
var ua = window.navigator.userAgent;

var msie = ua.indexOf(‘MSIE ‘);
if (msie > 0) {
// IE 10 or older => return version number
return parseInt(ua.substring(msie + 5, ua.indexOf(‘.’, msie)), 10);
}

var trident = ua.indexOf(‘Trident/’);
if (trident > 0) {
// IE 11 => return version number
var rv = ua.indexOf(‘rv:’);
return parseInt(ua.substring(rv + 3, ua.indexOf(‘.’, rv)), 10);
}

var edge = ua.indexOf(‘Edge/’);
if (edge > 0) {
// Edge (IE 12+) => return version number
return parseInt(ua.substring(edge + 5, ua.indexOf(‘.’, edge)), 10);
}

// other browser
return false;
}

$(self).remove();
} else {
var script = document.querySelector(‘ script.use-script-element’);
script.className = ”;
Function(script.innerHTML).call(script);
}
})(this);

0

You May Also Like

About the Author:

I am a self a claimed blogger and author of websites.

Leave a Reply

Your email address will not be published. Required fields are marked *