Add Subscriber to Segment

var peSegmentNames = []; // Array of segment ids e.g, [“segment1”, “segment2”] window.PushEngage = window.PushEngage || []; PushEngage.push(function() { PushEngage.addSegment(peSegmentNames).then(function(data) { console.log(data) }).catch(function error(error) { console.log(error.message) }); })Continue reading

Vertically center Instagram caption on hover

jQuery(window).on(‘sbiafterimagesloaded’, function (event) { $ = jQuery; $(‘.sbi_hover_top’).each(function(){ var $self = $(this); $self.css({ ‘position’ : ‘absolute’, ‘top’ : ( $self.parent().height() – $self.height() ) / 2 }); }); })Continue reading