Just Because eCards
Thinking of someone special? Let them know with free online Just Because cards! A beautiful and thoughtful free ecard is an easy way to stay in touch. Personalize the messages inside Just Because cards and deliver these ecards instantly by text or email. You can also schedule delivery of these free Just Because ecards in advance.
Care & Concern eCards
In addition to Just Because ecards, we have a large collection of Care & Concern ecards that include Thinking of You ecards, Stay Safe ecards, Get Well ecards, and Sympathy ecards.
')
$('.design-studio-favorite-modal').removeClass('hidden')
}
});
// Make a request to toggle the favorite status of the package
function toggleFavorite(el) {
hasToggleFavoritesRequest = true;
var data = {
user_favorite_package: {
package_id: $(el).data('package-id'),
package_type: 'ecard'
}
}
var favoriteButton = $(el);
if (favoriteButton.hasClass('icon-heart')) {
$.ajax({
type: 'DELETE',
url: '/user/favorites',
headers: { 'X-CSRF-Token': csrfToken },
data: data,
success: function(_data) {
PBS.user.removeFavoriteEcard(data['user_favorite_package']['package_id'])
favoriteButton.addClass('icon-heart-empty');
favoriteButton.removeClass('icon-heart');
hasToggleFavoritesRequest = false;
},
error: function(_data) {
alert("Sorry, your card couldn't be removed from your favorites. Please try again.");
hasToggleFavoritesRequest = false;
}
});
} else {
$.ajax({
type: 'POST',
url: '/user/favorites',
headers: { 'X-CSRF-Token': csrfToken },
data: data,
success: function(_data) {
window.dataLayer.push({
event: 'ecard_design_favorited',
package_id: data.user_favorite_package.package_id
});
PBS.user.addFavoriteEcard(data['user_favorite_package']['package_id'])
favoriteButton.addClass('icon-heart');
favoriteButton.removeClass('icon-heart-empty');
hasToggleFavoritesRequest = false;
},
error: function(_data) {
alert("Sorry, your card couldn't be favorited. Please try again.");
hasToggleFavoritesRequest = false;
}
});
}
}
$('.design-studio-favorite-modal .close-modal').click(function() {
$('.design-studio-favorite-modal').addClass('hidden')
$('.favorite-modal-overlay').remove()
})
function setHeartsFromLocalStorage() {
setHeartsFromIds(PBS.user.favoritesData().ecard_favorite_ids)
}
function setHeartsFromIds(ecard_favorite_ids) {
_.forEach(ecard_favorite_ids, function(package_id) {
$('.is-favorite[data-package-id="' + package_id + '"]').addClass('icon-heart').removeClass('icon-heart-empty');
})
}
// Only set hearts if the user is logged in
if (PBS.current_user.registered) {
setHeartsFromLocalStorage(); // set hearts from local storage prior to making ajax request to prevent late-loading of hearts that haven't changed
$.ajax({
url: '/user/favorites',
method: 'GET',
dataType: 'json',
success: function(data) {
try {
localStorage.setItem('userFavorites', JSON.stringify(data));
setHeartsFromLocalStorage();
} catch (err) {
// if local storage could not be set due to size constraints, don't let it break the rest of the js on the page
console.log(err);
setHeartsFromIds(data.ecard_favorite_ids)
}
}
})
} else {
localStorage.removeItem('userFavorites')
}
// Track category load
window.dataLayer.push({
event: 'viewed_card_gallery_category',
category_name: 'Just Because'
})
PBS.Analytics.CardTracking.impression("4e6bee62ec8d83135600009e", {"61bcd511d976ba39400066fe":"1","62851576d976ba3aba00578e":"2","5f1af6bfd976ba73b200492d":"3","62e833c8d976ba083fbca9a5":"4","62e835c7e8a4d22e03b0f6ea":"5","605b5a32d976ba77b400ad32":"6","4e6cf16af92ea17029000118":"7","6059f2f0e8a4d26a0c014c37":"8","4e6ceedb85216d5ef4000107":"9","4e6cf4ff85216d653400010d":"10","4e6cf87dec8d83782a000164":"11","4e6a81bc85216d0b5d0000af":"12","4e6cf9aaec8d8375310001b6":"13","60303307d976ba07b1002bc8":"14","4e6cf247f92ea13c0b0001bd":"15","4e6d4a05f92ea1617700008a":"16","4e6cfcdbf92ea10297000112":"17","4e6cefe2f92ea1195f000270":"18","4e6d070fec8d837945000245":"19","4e6cf37d85216d37b50001b9":"20","4e6d081ff92ea173be000156":"21","5b1803b124e4b35b77001394":"22","5fc64b17e8a4d25944016532":"23","5f7732b8d976ba32f4001ecf":"24","605b5adbd976ba12b6006377":"25","605b5b65e8a4d21bd3001acd":"26"});
});
Save greeting cards to your favorites list!