var getCookie = getCookie || function (cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
}
return '';
};
var setCookie = setCookie || function (name, value, days) {
var expires = "";
if (days) {
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
expires = "; expires=" + date.toUTCString();
}
document.cookie = name + "=" + (value || "") + expires + "; path=/";
};
var moovCookieLookup = {"9c9c3b3d-ebfd-4bef-ab0d-7226eb9a6fc8":"default"};
var mwPageData; // this will be used by utag.js
var moovMode = 'default';
var moovCookie = getCookie('moov_') || '';
if (moovCookie) {
moovMode = moovCookieLookup[moovCookie];
}
if (moovMode && document.querySelector('body').getAttribute('mw-build-version')) {
moovMode = moovMode + '-' + document.querySelector('body').getAttribute('mw-build-version');
}
if (document.querySelector('body').classList.contains('mw-error-500')) {
moovMode = 'cookieError';
}
mwPageData = { 'moovwebABTestDim' : moovMode };
var utag_data = {
"brand_current": "18B",
"brand_entering": ["1001"],
"cellid": "WW55",
"country_code": "US",
"page_language": "en",
"page_name": "Category",
"page_type": "category"
};
$(document).ready(function(){
if(window.espotBrand!=undefined) {
addBrandClassToBody(window.espotBrand);
}
});
(function(a,b,c,d){
a='//tags.tiqcdn.com/utag/1800flowers/ww55/prod/utag.js';
b=document;c='script';d=b.createElement(c);d.src=a;d.type='text/java'+c;d.async=true;
a=b.getElementsByTagName(c)[0];a.parentNode.insertBefore(d,a);
})();
window.origWindowName = window.name;
$(document).ready(function() {
$("#flexForm .header span").text("Valentine's Delivery Options");
});
$(document).ready(function() {
// GA Tracking
$('.UsableNetAssistive').on('click', function() {
var usableNetGaAction;
var usableNetButtonState = $(this).text().trim();
if (usableNetButtonState === 'Enable Accessibility') {
usableNetGaAction = 'Enable';
} else if (usableNetButtonState === 'Disable Accessibility') {
usableNetGaAction = 'Disable';
} else {
return console.warn('Usablenet tagging err: Could not set action.');
}
ga('fd_mbp.send', 'event', 'UsableNet', usableNetGaAction, utag_data.page_type);
});
function fdConsoleLog(msg) {
if(console && console.log && (typeof console.log == 'function')) {
console.log(msg);
}
}
var showSignInWidgetForMs = 0;
var showNewSignInWidget = 'N';
try {
showNewSignInWidget = 'N';
showSignInWidgetForMs = '5000';
showSignInWidgetForMs = parseInt(showSignInWidgetForMs);
if( ! showNewSignInWidget || ( showNewSignInWidget != 'Y' && showNewSignInWidget != 'y' )){
showSignInWidgetForMs = 0;
}
} catch(err) {
fdConsoleLog('Exceptpion occured while showing new signin widget:' + err);
}
try{
if (document.addEventListener)
document.addEventListener("DOMContentLoaded", function() {
if (/iPad/i.test(navigator.userAgent))
$("body").addClass("ipad")
}, false);
}
catch (e){}
MainJS.HomePageURL = 'TopCategoriesDisplay?storeId=21551&catalogId=17302&langId=-1';
MainJS.pageIdentifier = '';
MainJS.FDFaceBookLogon = 'FDFaceBookLogon?langId=-1&storeId=21551&catalogId=17302';
MainJS.isMDMAuthEnabled = 'Y';
MainJS.isSocialABTestingEnabled = 'Y';
if(utag_data.brand_current == "TPF" || utag_data.brand_current == "CCO" || utag_data.brand_current == "18B" || utag_data.brand_current == "SCH") {
jQuery(document).on('click', '.ShippingAddress img', function() {
var phoneTrim = jQuery('#saveAddress input#WC_ShoppingCartAddressEntryForm_FormInput_phone1_1').val();
var trimphone = phoneTrim.trim()
jQuery('#saveAddress input#WC_ShoppingCartAddressEntryForm_FormInput_phone1_1').val(trimphone);
});
if ($('#EXP-BillingColumn').length === 1) {
console.log('express checkout');
if ($("#EXP-BillingColumn #exp-deliveryDateSecId .n-textfieldDelivery").is(":visible")) {
$("#EXP-BillingColumn #exp-deliveryDateSecId .BP-Deliveryhdr").css({
"width": "auto",
"background-color": "#FFF",
"padding": "0",
"margin": "20px 20px 0 20px",
"border": "none"
});
}
$("#EXP-BillingColumn .bubble").each(function() {
if ($(this).text() === "Promotion is successfully applied to the order.") {
$(this).addClass("successful");
}
});
exp_check = {
responsive: function() {
if ($('.BP-ShippingAddresses').length === 1) {
$(".BP-ShippingAddresses").insertBefore($("#BPC-ShippingAddresses"));
if ($("#n-chkPlaceOrderContainer").hasClass("exp-checkout")) {
$("#passRegularRPBtm").css("display", "none");
}
$('Open Address Book ').insertBefore('.BP-ShippingAddresses')
$(".address_button").click(function() {
if ($(this).text() == "Open Address Book") {
$(this).text("Close Address Book");
$(this).next(".BP-ShippingAddresses").show()
} else {
$(this).text("Open Address Book");
$(this).next(".BP-ShippingAddresses").hide()
}
});
}
$(function() {
var $rrordsum = $("#EXP-BillingColumn #exp-summaryColumn"),
$window = $(window),
offset = $rrordsum.offset(),
topPadding = 20;
//$("#EXP-BillingColumn #exp-summaryColumn").css("margin-top",$cartHeightInt)
setTimeout(function() {
$cartHeightInt = $('.active .exp-cart-item-wrap').height();
$("#EXP-BillingColumn #exp-summaryColumn").css("margin-top", $cartHeightInt)
}, 1000)
$window.scroll(function() {
$cartHeight = $('.active .exp-cart-item-wrap').height();
$rrordsum.css('top', $cartHeight);
if ($('.tablet-set').length == 0) {
$("#EXP-BillingColumn #exp-summaryColumn").addClass('tablet-set')
}
if ($window.scrollTop() > offset.top + ($cartHeight - topPadding)) {
$rrordsum.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$rrordsum.stop().animate({
marginTop: 0 + $cartHeight
});
}
});
});
},
non_responsive: function() {
$("#BP-ShippingAddresses").insertBefore($("#BPC-ShippingAddresses"));
if ($("#n-chkPlaceOrderContainer").hasClass("exp-checkout")) {
$("#passRegularRPBtm").css("display", "none");
}
$(function() {
var $rrordsum = $("#EXP-BillingColumn #exp-summaryColumn"),
$window = $(window),
offset = $rrordsum.offset(),
topPadding = 20;
$window.scroll(function() {
if ($window.scrollTop() > offset.top) {
$rrordsum.stop().animate({
marginTop: $window.scrollTop() - offset.top + topPadding
});
} else {
$rrordsum.stop().animate({
marginTop: 0
});
}
});
});
}
}
$('meta[name="viewport"]').length ? exp_check.responsive() : exp_check.non_responsive();
}
}
googleSignInDataJSON = new Object();
googleSignInDataJSON.googleSigInEnabled = 'Y';
googleSignInDataJSON.gplusClientId = '420182500441-m0t5ei6no0tp9javq3vkjp9lgcvuj28p.apps.googleusercontent.com';
googleSignInDataJSON.gplusstoreId = '21551';
googleSignInDataJSON.gpluscatId = '17302';
window.trackOrderSwitch = 'y';
window.switchForFBConnect = 'Y';
window.newSignInWidget = 'N';
window.authDebug = 'N';
showAndHideGlobalHeaderEspot();
window.mmoLinkEnabled = 'N'; getUser();
MainJS.HeaderUrlJSON = new Object();
MainJS.HeaderUrlJSON.SignInSrc="//cdn1.wolfermans.com/wcsstore/Wolfermans/images/btn_signin_dropdown.png";
MainJS.HeaderUrlJSON.registerURL='/AjaxUserRegistrationForm?new=Y&catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.myAccountURL = '/AjaxLogonForm?MyAccount=Y&catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.trackOrderURL = '/OrderTrackingLogonView?catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.giftHistoryURL = '/AjaxLogonForm?fromLink=giftHistory&catalogId=17302&langId=-1&isGiftHistory=Y&storeId=21551';
MainJS.HeaderUrlJSON.AddressBookViewURL = '/AjaxLogonForm?isAddressBook=Y&catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.myAccountFreshRewardsURL = '/AjaxLogonForm?isFreshRewards=Y&catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.myPassportURL = '/AjaxLogonForm?MyAccount=Y&catalogId=17302&isPrimePassport=Y&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.trackOrderURLReg = '/OrderTrackingSearch?userAction=OrderTrackingByEmail&catalogId=17302&langId=-1&storeId=21551';
MainJS.HeaderUrlJSON.reminderEnabled = 'N';
MainJS.HeaderUrlJSON.ReminderViewURL = '';
MainJS.HeaderUrlJSON.LogonURL = 'https://m.www.wolfermans.com/webapp/wcs/stores/servlet/LogonForm?langId=-1&storeId=21551&catalogId=17302';
MainJS.HeaderUrlJSON.SEOHomePageUrl ='//m.www.wolfermans.com';
MainJS.HeaderUrlJSON.passportLogonURL = '/passport-baskets?isPrimePassportHomePage=Yes';
MainJS.HeaderUrlJSON.AjaxLogonURL = 'https://m.www.wolfermans.com/webapp/wcs/stores/servlet/AjaxLogon?langId=-1&storeId=21551&catalogId=17302';
MainJS.HeaderUrlJSON.OrderItemMoveURL = '/webapp/wcs/stores/servlet/OrderItemMove?langId=-1&storeId=21551&catalogId=17302';
MainJS.HeaderUrlJSON.ShowGiftHistoryURL = '/ShowGiftHistory?catalogId=17302&langId=-1&storeId=21551';
//MainJS.HeaderUrlJSON.trackOrderURL = '/OrderTrackingLogonView?catalogId=17302&langId=-1&storeId=21551';
//MainJS.HeaderUrlJSON.trackOrderURLReg ='/OrderTrackingSearch?userAction=OrderTrackingByEmail&catalogId=17302&langId=-1&storeId=21551';
var silentWebAuth = new auth0.WebAuth({
domain: 'login.celebrations.com',
clientID: 'n1mUYlundYYGkDDbTnsLCzYq1oCOcAww',
responseType: 'id_token token',
audience: 'https://celebrations-prod.auth0.com/api/v2/',
scope: 'openid email profile',
redirectUri: location.protocol+"//"+window.location.hostname+"/webapp/wcs/stores/servlet/"+'SignOn?langId=-1&storeId=21551&catalogId=17302&URL=%2fTopCategoriesDisplay%3fcatalogId%3d17302%26langId%3d-1%26storeId%3d21551',
prompt: 'none'
});
var showSpinner = 'true';
if(typeof showSpinner == 'string' && showSpinner == 'true') {
showSpinner = true;
} else {
showSpinner = false;
}
var crossDomainSilentAuthEnabled = 'true';
if(typeof crossDomainSilentAuthEnabled == 'string' && crossDomainSilentAuthEnabled == 'true') {
crossDomainSilentAuthEnabled = true;
} else {
crossDomainSilentAuthEnabled = false;
}
if(typeof RememberMe != "undefined" && RememberMe.isKeepMeSign() && RememberMe.isRememberedUser()) {
$(function(){
if(showSpinner) {
showSilentAuthSpinner(21551);
}
silentWebAuth.checkSession({}, function(err, result) {
if (err) {
fdConsoleLog("silentAuth checksession err::" + err.error);
if(showSpinner) {
hideSilentAuthSpinner();
}
} else if(result != null) {
silentAuthLogin(result.accessToken, '/AjaxAuth0SignOn?catalogId=17302&langId=-1&storeId=21551&silentAuth=Y&URL=%2FTopCategoriesDisplay%3FcatalogId%3D17302%26langId%3D-1%26storeId%3D21551', showSpinner);
RememberMe.isSilentAuthSuccessful = true;
}
});
});
} else if (crossDomainSilentAuthEnabled && typeof RememberMe != "undefined" && RememberMe.isGuestUser() && ! RememberMe.hasSilentAuthFailedBefore()) {
$(function(){
silentWebAuth.checkSession({}, function(err, result) {
if (err) {
fdConsoleLog("silentAuth checksession err::" + err.error);
RememberMe.setSilentAuthFailed();
} else if(result != null) {
var keepMeSignFromToken = false;
if(showSpinner && RememberMe.isKeepMeSignInToken(result.idToken)) {
keepMeSignFromToken = true;
showSilentAuthSpinner(21551);
}
silentAuthLogin(result.accessToken, '/AjaxAuth0SignOn?catalogId=17302&langId=-1&storeId=21551&silentAuth=Y&URL=%2FTopCategoriesDisplay%3FcatalogId%3D17302%26langId%3D-1%26storeId%3D21551', (showSpinner && keepMeSignFromToken));
RememberMe.isSilentAuthSuccessful = true;
}
});
});
}
function openAuthPopUp(url) {
var popUpUrl=location.protocol+"//"+window.location.hostname+"/webapp/wcs/stores/servlet/"+url;
var w = 1100,h = 750;
var brandName = 'WLF';
if(brandName!=undefined && brandName!=null && brandName!=''){
popUpUrl = popUpUrl+"&brandName="+brandName;
}
var isPrimeCookie = getCookie("isPrimeMember");// check for G only
if(isPrimeCookie!=null && isPrimeCookie!='' && isPrimeCookie!="undefined" && isPrimeCookie=="G"){
popUpUrl += '&passport=Y';
}
popUpUrl = popUpUrl+"&homePageURL="+'www.wolfermans.com';
var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
var left = ((width / 2) - (w / 2)) + dualScreenLeft;
var top = ((height / 2) - (h / 2)) + dualScreenTop;
var newWindow = window.open(popUpUrl, 'SignIn', 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left)
if(!newWindow || newWindow.closed || typeof newWindow.closed=='undefined'){
//POPUP BLOCKED
popUpUrl+="&popupBlocked=true";
window.location.href = popUpUrl;
}else if (window.focus) {
newWindow.focus();
}
}
$(function() {
$(".drop-sign").click(function(e) {
e.preventDefault();
openAuthPopUp('AuthLogin?langId=-1&storeId=21551&catalogId=17302&isAzureAddressOutage=false');
});
$("#activityId_18f-hdr_signIn-dd-starthere").click(function(e) {
e.preventDefault();
openAuthPopUp('AuthLogin?langId=-1&storeId=21551&catalogId=17302&isAzureAddressOutage=false');
});
$(".drop-link").click(function(e) {
e.preventDefault();
openAuthPopUp('AuthLogin?langId=-1&storeId=21551&catalogId=17302&isAzureAddressOutage=false®ister=Y');
});
$(".reg-cus").click(function(e) {
e.preventDefault();
openAuthPopUp('AuthLogin?langId=-1&storeId=21551&catalogId=17302&isAzureAddressOutage=false');
});
$(".create-acc").click(function(e) {
e.preventDefault();
openAuthPopUp('AuthLogin?langId=-1&storeId=21551&catalogId=17302&isAzureAddressOutage=false®ister=Y');
});
});
MainJS.myPassportURL = '/AjaxLogonForm?MyAccount=Y&catalogId=17302&isPrimePassport=Y&langId=-1&storeId=21551';
hideHeaderImages();
$(document).ready(function(){
updateHeaderLinkUrlsWhenAuth0Enabled();
}); RememberMe.isRememberMeEnabled = true;
if( typeof RememberMe !="undefined" && ! RememberMe.isSilentAuthSuccessful) {
if(RememberMe.isRememberMeEnabled) {
RememberMe.contactIdCookieVal = getCookie("cont.id");
if(RememberMe.isRememberedUser()){
RememberMe.executeOnThisWindow = true;
}
}
}
window.urlVal = '/Logoff?catalogId=17302&langId=-1&origStoreId=21551&storeId=21551&remember=true';
window.facebookDisconnectURL = '/FDFaceBookDisconnect?catalogId=17302&langId=-1&storeId=21551&fbConnect=N'; if((typeof storeId==='undefined' || typeof storeId==='object') && typeof storeID!=='undefined'){var storeId=storeID;}if((typeof catalogId==='undefined' || typeof catalogId==='object') && typeof catalogID!=='undefined'){var catalogId=catalogID;}if(typeof orderId==='undefined'){var orderId='';}
var GHcreateAccount = "/webapp/wcs/stores/servlet/AjaxUserRegistrationForm?langId=-1&storeId="+storeId+"&catalogId="+catalogId+"&new=Y";
var GHtrackOrder = "/webapp/wcs/stores/servlet/OrderTrackingSearch?userAction=OrderTrackingByEmail&catalogId="+catalogId+"&langId=-1&storeId="+storeId+"";
$(function() {
$("#nav_1 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Holiday Gifts All');
}
});
$("#nav_1 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Holiday Gift Towers');
}
});
$("#nav_1 #subnav .dropdownLink.link3").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Holiday Treats');
}
});
$("#nav_1 #subnav .dropdownLink.link4").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Holiday Fruit Baskets');
}
});
$("#nav_1 #subnav .dropdownLink.link5").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Hanukkah');
}
});
});
$(function() {
$("#nav_2 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'All Gift Baskets');
}
});
$("#nav_2 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', '#1 Gourmet Gift Basket');
}
});
$("#nav_2 #subnav .dropdownLink.link3").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', '#1 Fruit Gift Basket');
}
});
});
$(function() {
$("#nav_3 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Anniversary Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Baby Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link3").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Birthday Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link4").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Congratulation Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link5").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Get Well Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link6").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gift Clubs');
}
});
$("#nav_3 #subnav .dropdownLink.link7").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Love and Romance');
}
});
$("#nav_3 #subnav .dropdownLink.link8").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Sympathy Gifts');
}
});
$("#nav_3 #subnav .dropdownLink.link9").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Thank You Gifts');
}
});
});
$(function() {
$("#nav_4 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Innovation Studio');
}
});
$("#nav_4 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Best Sellers');
}
});
$("#nav_4 #subnav .dropdownLink.link3").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Baked Goods');
}
});
$("#nav_4 #subnav .dropdownLink.link4").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Cakes Pies');
}
});
$("#nav_4 #subnav .dropdownLink.link5").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Chocolate Candy Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link6").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Coffee and Tea Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link7").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Cookie Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link8").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Dipped Strawberry Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link9").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Fruit Baskets Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link10").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts For Her');
}
});
$("#nav_4 #subnav .dropdownLink.link11").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts For Him');
}
});
$("#nav_4 #subnav .dropdownLink.link12").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gluten Free Collection');
}
});
$("#nav_4 #subnav .dropdownLink.link13").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Kosher Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link14").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Market Box Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link15").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Meat Cheese Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link16").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Organic Collection');
}
});
$("#nav_4 #subnav .dropdownLink.link17").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Pets Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link18").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Prepared Meals');
}
});
$("#nav_4 #subnav .dropdownLink.link19").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Snack Gifts');
}
});
$("#nav_4 #subnav .dropdownLink.link20").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Spa');
}
});
$("#nav_4 #subnav .dropdownLink.link21").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Sugar Free Collection');
}
});
});
$(function() {
$("#nav_5 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Wine Gifts');
}
});
$("#nav_5 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Beer Bar');
}
});
});
$(function() {
$("#nav_6 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts under 30');
}
});
$("#nav_6 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts under 60');
}
});
$("#nav_6 #subnav .dropdownLink.link3").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts under 100');
}
});
$("#nav_6 #subnav .dropdownLink.link4").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Gifts 100 or more');
}
});
});
$(function() {
$("#nav_7 #subnav .dropdownLink.link1").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Sale');
}
});
$("#nav_7 #subnav .dropdownLink.link2").click(function() {
if (typeof ga == 'function') {
ga('fd_mbp.send', 'event', '18B Global Nav', 'Dropdown - Click', 'Free Shipping Gifts');
}
});
}); var fsDomain = "18B";
if (typeof updateTopNavESpot === "function") {
updateTopNavESpot();
}
// US
function getCookiePop(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
function setCookiePop(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
var expires = "expires=" + d.toUTCString();
document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}
var gdpr_v = "US";
// Test country code
var gdpr_v_test = gdpr_v.replace(/[^\w\s]/gi, '').toLowerCase();
if (gdpr_v !== "US" && gdpr_v_test !== "country_code") {
// Test if cookie exists
if (getCookiePop("gdpr_closed") !== "Y") {
var fadeElem = document.getElementById('gdpr_notification');
setTimeout(function () { fadeElem.className += ' fade'; }, 100)
var click_dismiss = document.querySelector('.gdpr--dismiss')
click_dismiss.addEventListener("click", function () {
fadeElem.className = '';
// Set cookie when closed
setCookiePop("gdpr_closed", "Y", "3650")
})
}
}
window.espotBrand = "18B_";
var freeTrailPassURL = '/JoinFreeTrialPassportRegisterPageView?catalogId=17302&langId=-1&storeId=21551';
//setFreeTrailPassURL();
displayBannerForPartnerCookie("//cdn1.1800flowers.com/wcsstore/Flowers/images/banners/"); window.partnerEspotView = '/PartnerEspotView?catalogId=17302&langId=-1&storeId=21551';
partnerEspotViewCall('fhbc_browse_banner_partner','fhbc_browse_banner','categoryId=400086128','18B');
cookieonLoad();
authZeroDataJSON = new Object();
authZeroDataJSON.authClientID = 'n1mUYlundYYGkDDbTnsLCzYq1oCOcAww';
authZeroDataJSON.authDomainName = 'login.celebrations.com';
authZeroDataJSON.signOn = '/SignOn?catalogId=17302&langId=-1&storeId=21551';
authZeroDataJSON.authLogin = '/AuthLogin?catalogId=17302&langId=-1&storeId=21551';
authZeroDataJSON.authZeroAudience = 'https://celebrations-prod.auth0.com/api/v2/'; window.partnerEspotView = '/PartnerEspotView?catalogId=17302&langId=-1&storeId=21551';
var urlParams = "categoryId=400086128";
cookieLoadForPrime('passRegularBP','passPartnerBP');
if('' == 'Y' && getUserType()=="G"){//hide passport banners
$("#"+'passRegularBP'+"_Div").removeClass("display-block");
$("#"+'passPartnerBP'+"_Div").removeClass("display-block");
$("#"+'passRegularBP'+"_Div").addClass("display-none");
$("#"+'passPartnerBP'+"_Div").addClass("display-none");
}
var gnModalContainer = $('#GN-modal-container').attr('class');
if (gnModalContainer.indexOf('gplaces_gnav') !== -1) {
$('#fdGnavModal div#TB_window').css('cssText', 'width: 800px !important');
$('body.bd-category.bd-responsive.bd-18f div#TB_window').css('cssText', 'margin-left: -450px;');
$('#TB_window').css('cssText', 'width: 800px !important; margin-left: -460px !important;');
} else {
// $('.GN-modal-locfield label').css('cssText', 'display: initial !important');
}
var facetArray = new Array();
var facetBrandArray = new Array();
function filterSelectAll()
{
submit = false;
var categoryPageFilter = document.getElementById("categoryPageFilter")!=null ? document.getElementById("categoryPageFilter").value : '';
var searchPageFilter = document.getElementById("searchPageFilter")!=null ? document.getElementById("searchPageFilter").value : '';
var facetId = '';
try
{
if (facetArray && facetArray.length <= parseInt(facetCount))
{
$('input:checkbox[id^="facet"]').each(function(){
addHidden(document.submitFacet, "facet", $(this).val());
addHidden(document.submitFacet, "facetBrand", $(this).attr('data-brandid'));
});
submit = true;
}
if (submit)
{
if((null != categoryPageFilter && categoryPageFilter == 'Y') || (null != searchPageFilter && searchPageFilter == 'Y'))
{
ajaxFacetSubmit(facetId);
}
else
{
document.submitFacet.submit();
}
}
}
catch(e)
{
; //window.console && console.log(e);
}
}
function filterByFacet(isChecked, value, submit, facetBrand , facetId)
{
var categoryPageFilter = document.getElementById("categoryPageFilter")!=null ? document.getElementById("categoryPageFilter").value : '';
var searchPageFilter = document.getElementById("searchPageFilter")!=null ? document.getElementById("searchPageFilter").value : '';
if (isChecked)
{
facetArray.push(value);
facetBrandArray.push(facetBrand);
var element =document.getElementById(facetId);
if(element != null)
element.classList.add("focusfacet");
}
else
{
// Find and remove item from an array
var i = facetArray.indexOf(value);
if(i != -1)
{
facetArray.splice(i, 1);
facetBrandArray.splice(i, 1);
}
if((null != categoryPageFilter && categoryPageFilter == 'Y') || (null != searchPageFilter && searchPageFilter == 'Y'))
{
var filterValue = $("label[for='"+facetId+"']").html().trim();
if( null != filterValue && filterValue.indexOf("&") != -1){
filterValue = filterValue.replace(/&/g, '&');
}
if( null != filterValue && filterValue.indexOf("'") != -1){
filterValue = filterValue.replace("'", '');
}
if(document.getElementById("activefilters") != null && document.getElementById("activefilters") != undefined && typeof document.getElementById("selectedFilters_"+filterValue) != "undefined"){
setTimeout(function() {
document.getElementById("activefilters").innerHTML = activefilters;
$("div#activefilters [id='selectedFilters_"+filterValue+"']").remove();
activefilters = document.getElementById("activefilters").innerHTML;
}, 1000);
}
$("input[type='hidden'][value='"+value+"']").remove();
var element =document.getElementById(facetId);
if(element != null)
element.classList.remove("focusfacet");
if(document.getElementById("unCheckedFilter") != null && document.getElementById("unCheckedFilter") != undefined){
document.getElementById("unCheckedFilter").value = 'Y';
}
}
}
if (submit)
{
facetSubmit(facetArray, facetBrandArray, facetId);
}
}
function facetSubmit(facets, facetBrands, facetId)
{
var categoryPageFilter = document.getElementById("categoryPageFilter")!=null ? document.getElementById("categoryPageFilter").value : '';
var searchPageFilter = document.getElementById("searchPageFilter")!=null ? document.getElementById("searchPageFilter").value : '';
if (facets)
{
if (facets.length > 0)
{
for (var index = 0; index < facets.length; index++)
{
addHidden(document.submitFacet, "facet", facets[index]);
addHidden(document.submitFacet, "facetBrand", facetBrands[index]);
}
}
else
{
addHidden(document.submitFacet, "selectAll", "true");
}
if((null != categoryPageFilter && categoryPageFilter == 'Y') || (null != searchPageFilter && searchPageFilter == 'Y'))
{
document.getElementById("ajax-loader").style.display = "block";
ajaxFacetSubmit(facetId);
if(document.getElementById("clear_all_filter") != null && document.getElementById("clear_all_filter") != undefined){
document.getElementById("clear_all_filter").style.display = "block";
}
document.getElementById("ajax-loader").style.display = "none";
}
else
{
document.submitFacet.submit();
}
}
}
function addFacetToGNav(facet, facetBrand)
{
try
{
addHidden(document.guidedCollectionForm_1, "facet", facet);
addHidden(document.guidedCollectionForm_1, "facetBrand", facetBrand);
addHidden(document.guidedCollectionForm_2, "facet", facet);
addHidden(document.guidedCollectionForm_2, "facetBrand", facetBrand);
}
catch(e)
{
}
}
var facetCount = '2';
var facetCount = '3';
var facetCount = '5';
var facetCount = '2';
$(document).ready(function(){
if(document.getElementById("activefilters")!=null && typeof selectedFacetsList!=null && typeof selectedFacetsList!=undefined && selectedFacetsList!=''){
document.getElementById("activefilters").innerHTML+= selectedFacetsList;
activefilters = document.getElementById("activefilters").innerHTML;
}
function expandSelectedFacets(id){
try {
var selectedFacets= [];
$(".facetContainer #productsFacets").find("input:checked").each(function (i, ob) {
var facetId = $(this).attr("id");
if(selectedFacets.indexOf(facetId) == -1){
selectedFacets.push(facetId);
}
});
if(selectedFacets.length > 0){
selectedFacets.forEach(expandFacet, this);
}
} catch (ex) {
console.warn("FacetNavigation_UI :: expandSelectedFacets : exception occured ==> " + ex.message);
}
}
function expandFacet(id){
try {
$('.facetContainer #productsFacets #'+id).click();
} catch (ex) {
console.warn("FacetNavigation_UI : expandFacet : exception occured ==> " + ex.message);
}
}
});
setRegWidgetSignUpElements('/mothers-day-gift-baskets-11210','/ProductDisplay?storeId=21551&productId=&urlRequestType=Base&langId=-1&catalogId=17302');
setRegWidgetSignInElements('/mothers-day-gift-baskets-11210','/ProductDisplay?storeId=21551&productId=&urlRequestType=Base&langId=-1&catalogId=17302','OrderItemMove?langId=-1&storeId=21551&catalogId=17302');
$("div#showRegWidgetSignIn").find("input#logonId").val('');
var processing = new Image();
processing.src = "//cdn3.1800flowers.com/wcsstore/Flowers/images/widget_processing.gif";
var processingError = new Image();
processingError.src = "//cdn3.1800flowers.com/wcsstore/Flowers/images/btn_submit.gif";
var forgotPasswordURL = location.protocol+"//"+window.location.hostname+"/webapp/wcs/stores/servlet/"+ "ResetPasswordForm?langId=-1&storeId=21551&catalogId=17302";
$('#forgotPasswordLink').attr('href', forgotPasswordURL);
removeErrorMessageInSignUpWidget();
showRegwidgetBanner('');
document.getElementById('recentProd').className = document.getElementById('recentProd').className + ' recentProdustDiv';
$(function(){
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
return c.substring(name.length, c.length);
}
}
return "";
}
var promoName, promoVal;
var referral = getCookie('ReferralURL');
if(referral.indexOf('promo=') >= 0){
promoName = referral.split('promo=')[1].split('&')[0];
promoVal = referral.split('pcode=')[1].split('&')[0];
var promoMessage, promoBanner = $('.imoc-promo');
if(promoBanner.length > 0){
var promoText = promoBanner.text().toLowerCase();
if(promoText.indexOf(promoName.toLowerCase())>=0){
console.log(promoName, promoVal);
$('.Products .Product').each(function(){
var finalPrice,discount;
var thisPrice = $(this).find('span[itemprop="price"]').text().trim();
if(thisPrice.indexOf('SALE') < 0){
if(promoVal.indexOf('p') > 0){
discount = parseInt(promoVal.replace('p', ''));
finalPrice = getDiscountedPriceByPercent(thisPrice, discount);
promoMessage = finalPrice + ' with code ' + promoName.toUpperCase();
}else if(promoVal.indexOf('d') > 0){
discount = parseInt(promoVal.replace('d', ''));
finalPrice = getDiscountedPriceByDollars(thisPrice, discount);
promoMessage = finalPrice + ' with code ' + promoName.toUpperCase();
}else if(promoVal == 's'){
promoMessage = 'Use Promo Code : ' + promoName.toUpperCase();
}
$(this).find('.Product__desc').append('' + promoMessage + ' ');
}
});
}
}
}
if($('.imoc-generic').attr('data-promocode') != undefined && $('.imoc-generic').attr('data-promo') != undefined){
promoName = $('.imoc-generic').attr('data-promocode');
promoVal = $('.imoc-generic').attr('data-promo');
$('.Products .Product').each(function(){
var finalPrice,discount;
var thisPrice = $(this).find('span[itemprop="price"]').text().replace('SALE', '').trim();
if(promoVal.indexOf('p') > 0){
discount = parseInt(promoVal.replace('p', ''));
finalPrice = getDiscountedPriceByPercent(thisPrice, discount);
}else if(promoVal.indexOf('d') > 0){
discount = parseInt(promoVal.replace('d', ''));
finalPrice = getDiscountedPriceByDollars(thisPrice, discount);
}
$(this).find('.Product__desc').append('' + finalPrice + ' with code ' + promoName + ' ');
});
}
function getDiscountedPriceByPercent(thisPrice, discount){
var finalPrice;
var discountVal = (100 - discount)/100;
if(thisPrice.indexOf('-') >= 0){
thisPrice = thisPrice.split('-');
priceLeft = discountVal * parseFloat(thisPrice[0].replace('$', ''));
priceRight = discountVal * parseFloat(thisPrice[1].replace('$', ''));
finalPrice = '$'+priceLeft.toFixed(2)+' - $' + priceRight.toFixed(2);
return finalPrice;
}else{
finalPrice = '$'+(discountVal * parseFloat(thisPrice.replace('$', ''))).toFixed(2);
return finalPrice;
}
}
function getDiscountedPriceByDollars(thisPrice, discount){
var finalPrice;
if(thisPrice.indexOf('-') >= 0){
thisPrice = thisPrice.split('-');
priceLeft = parseFloat(thisPrice[0].replace('$', '')) - discount;
priceRight = parseFloat(thisPrice[1].replace('$', '')) - discount;
finalPrice = '$'+priceLeft.toFixed(2)+' - $' + priceRight.toFixed(2);
return finalPrice;
}else{
finalPrice = '$'+(parseFloat(thisPrice.replace('$', '')) - discount).toFixed(2);
return finalPrice;
}
}
});
function replaceTabURLs(params){
try{
var str_array = params.tabURLs.split(',');
var brandTab = '';
var brandTabValue = '';
for(var i = 0; i < str_array.length; i++) {
brandTab = str_array[i].split('=');
if(brandTab[0] !='18F'){
brandTabValue = brandTab[1];
document.getElementById(brandTab[0]).href = '/'+brandTabValue;
if(document.getElementById(brandTab[0]+'_GlobalLogoEspot') != null){
document.getElementById(brandTab[0]+'_GlobalLogoEspot').getElementsByTagName('a')[0].href = '/'+brandTabValue;
}
}else{
document.getElementById(brandTab[0]).href = params.homeURL;
if(document.getElementById(brandTab[0]+'_GlobalLogoEspot') != null){
document.getElementById(brandTab[0]+'_GlobalLogoEspot').getElementsByTagName('a')[0].href = params.homeURL;
}
}
}
}catch (e){
console.warn("Unable to replace Tab URLs.", e);
}
}
$(function() {
$(".scopy").before(" "); $(".scopy").after(" ");
});
var category_data_layer = {
"category_canonical_url": "/mothers-day-gift-baskets-11210",
"category_id": "400086128",
"category_identifier": "11210",
"category_name": "Mother's Day Gift Baskets",
"category_sympathy_flag": "",
"product_baseCodes": [
"149957",
"141470",
"174871",
"102607",
"141938",
"93038",
"149389",
"149990",
"170038",
"162437",
"106696"
],
"product_brands": [
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009"
],
"product_categories": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"product_ids": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_imp_brands": [
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009",
"1009"
],
"product_imp_categories": [
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"product_imp_ids": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_imp_list_names": [
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets"
],
"product_imp_list_positions": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"product_imp_names": [
"Tea Forte® Cherry Blossom Teapot & Tea",
"Chocolate Strawberries in Red Velvet Heart Box",
"Sweet Chocolate Covered Donut & Cake Pop Bouquet",
"Flower in Bloom Gourmet Fruit & Nuts",
"Tea Forte® Tea Over Ice® Pitcher Gift Set",
"Best of Junior's 4-Flavor Cheesecake Sampler",
"Treat Yourself Organic Tea Book",
"Plymouth Cheese & Just Jan's Spreads Gourmet Gift",
"Godiva Ballotin & Chocolate Covered Strawberries",
"Ahmad of London Afternoon Tea Collection",
"Enticing Raspberry Almond Cookie Pie"
],
"product_imp_prices": [
"49.99",
"59.99",
"49.99",
"59.99",
"59.99",
"59.99",
"59.99",
"79.99",
"54.99-74.99",
"29.99",
"29.99"
],
"product_imp_skus": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_imp_variants": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_list_names": [
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets",
"Mothers Day Gift Baskets"
],
"product_list_positions": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11
],
"product_names": [
"Tea Forte® Cherry Blossom Teapot & Tea",
"Chocolate Strawberries in Red Velvet Heart Box",
"Sweet Chocolate Covered Donut & Cake Pop Bouquet",
"Flower in Bloom Gourmet Fruit & Nuts",
"Tea Forte® Tea Over Ice® Pitcher Gift Set",
"Best of Junior's 4-Flavor Cheesecake Sampler",
"Treat Yourself Organic Tea Book",
"Plymouth Cheese & Just Jan's Spreads Gourmet Gift",
"Godiva Ballotin & Chocolate Covered Strawberries",
"Ahmad of London Afternoon Tea Collection",
"Enticing Raspberry Almond Cookie Pie"
],
"product_prices": [
"49.99",
"59.99",
"49.99",
"59.99",
"59.99",
"59.99",
"59.99",
"79.99",
"54.99-74.99",
"29.99",
"29.99"
],
"product_sku_ids": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_skus": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
],
"product_variants": [
"1009-P-149957",
"1009-P-141470",
"1009-P-174871",
"1009-P-102607",
"1009-P-141938",
"1009-P-93038",
"1009-P-149389",
"1009-P-149990",
"1009-P-170038",
"1009-P-162437",
"1009-P-106696"
]
};
$(function() {
//ABOVE HERO PROMO
$(".promo a").click(function(e) {
if (typeof ga == 'function') {
//e.preventDefault();
var section = $(this).closest('.col-1-2').attr('data-ga-name'); //data('ga-name');
var gaActionName = 'Above Hero - Click';
var gaLabelValue = section+'_offer';
//console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//HERO (Marquee)
$(".hero").click(function(e) {
if (typeof ga == 'function') {
//e.preventDefault();
var imgSrc = $(this).find('#heroIMG').attr('src');
var heroName = imgSrc.split('hero/')[1].replace('.jpg', '');
var section = $(this).closest('.grid').attr('data-ga-name'); //data('ga-name');
var gaActionName = 'Hero - Click';
var gaLabelValue = section+'_'+heroName;
//console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//CAROUSEL
$(".carousel-prod").click(function(e) {
if (typeof ga == 'function') {
// e.preventDefault();
var imgSrc = $(this).find('img.ProductCategoryImage').attr('src');
var productCode = imgSrc.split('carousel/')[1].replace('_silo_b.jpg', '').replace('_silo_B.jpg', '').replace('_silo_c.jpg', '');
var thisIndex = parseInt($(this).closest(".slide").index()) + 1;
var section = $(this).closest('.grid.grid-pad').attr('data-ga-name'); //data('ga-name');
var gaActionName = 'Carousel - Click';
var gaLabelValue = section+'_prod'+ thisIndex +'_'+productCode;
// console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//3-PROD TILES
$(".typeFeature").click(function(e) {
if (typeof ga == 'function') {
// e.preventDefault();
var imgSrc = $(this).find('img.ProductCategoryImage').attr('src');
var productCode = imgSrc.split('images/catalog/')[1].replace('x.jpg', '').replace('c.jpg', '').replace('z.jpg', '');
var thisIndex = parseInt($(this).closest(".col-4-12").index()) + 1;
var section = $(this).closest('.grid.grid-pad').attr('data-ga-name'); //data('ga-name');
var gaActionName = 'Feature-Row' + $(this).closest('.grid.grid-pad').attr('data-ga-row') + ' - Click';
var gaLabelValue = section+'_prod'+ thisIndex +'_'+productCode;
// console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
// COLLECTION - OCCASIONS - BEST SELLERS
$(".SubProductThumb a").click(function(e) {
if (typeof ga == 'function') {
// e.preventDefault();
var imgSrc = $(this).find('img.ProductCategoryImage').attr('src');
var productCode = imgSrc.split('images/catalog/')[1].replace('x.jpg', '').replace('c.jpg', '').replace('z.jpg', '');
var thisIndex = parseInt($(this).closest(".col-3-12").index()) + 1;
var section = $(this).closest('.grid.grid-pad').attr('data-ga-name'); //data('ga-name');
var gaActionName = 'Tiles-Row' + $(this).closest('.grid.grid-pad').attr('data-ga-row') + ' - Click';
var gaLabelValue = section+'_prod'+ thisIndex +'_'+productCode;
// console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//BOTTOM GRID TABS (Above Footer)
$(".media_component a").click(function(e) {
if (typeof ga == 'function') {
//e.preventDefault();
var gaActionName = 'Misc - Click';
var gaGetNames = $(this).text().trim();
var gaLabelValue = $(this).closest(".col-4-12").attr('data-ga-name')+ '_'+ gaGetNames;
// console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//SOCIAL LINKS in GLOBAL FOOTER
$(".social li a").click(function(e) {
if (typeof ga == 'function') {
//e.preventDefault();
var gaActionName = 'Footer - Click';
var gaGetNames = $(this).text().trim();
var gaLabelValue = 'footer_'+ gaGetNames;
//console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
//FOOTER LINKS in GLOBAL FOOTER
$(".footernav li a").click(function(e) {
if (typeof ga == 'function') {
//e.preventDefault();
var gaActionName = 'Footer - Click';
var gaGetNames = $(this).text().trim();
var gaLabelValue = 'footer_'+ gaGetNames;
//console.log('18B Homepage'+ '--' +gaActionName + '--' +gaLabelValue)
ga('fd_mbp.send', 'event', '18B Homepage', gaActionName , gaLabelValue);
}
});
});
jQuery( document ).ready(function() {
$.each($('#Track-ordernum-wrap'), function (index, value) {
var targ = $(value).find('.rowName > strong');
if(targ.text().indexOf('Passport') > -1 && targ.text().indexOf('Membership') > -1 && targ.text().toLowerCase().indexOf('passport annual membership') > -1){
console.log(targ.text().indexOf('Passport'));
jQuery(value).find('.rowTrack').attr('style','display:none ;');
jQuery(value).find('.rowShip').attr('style','display:none;');
jQuery(value).find('.progress-wrapper').attr('style','display:none;');
$('').appendTo('head');
}
});
})
$(document).ready(function () {
$('.skip').click(function (event) {
var skipTo = '#' + this.href.split('#')[1];
$(skipTo).attr('tabindex', -1).on('blur focusout', function () {
$(this).removeAttr('tabindex');
}).focus();
});
$('img:not([alt])').attr('alt', '');
});
checkAndHidePassport(100);
initFlowersService('category');
$(document).ready(function() {
displayFAGFDate();
var catDescName = "Mothers Day Gift Baskets";
var showGNavModel = getCookie("showGNavModel");
var cellId=getCookie("cellid");cellId=cellId==undefined||cellId==null?"":cellId;
var cmFlag = document.getElementById("cmFlag").value;
if(cmFlag =='' || cmFlag =='Y'){
if($( "div#TB_window" ).length && showGNavModel !=null && undefined != showGNavModel && showGNavModel=='Y'){
cmCreatePageviewTag('18B : COLLECTION-GNAV : '+catDescName+' (11210)', '18B : 11210', null, null, '21551', ' -_- -_- -_- -_- -_- -_-'+cellId);
}else{
var gnavFlag='';gnavFlag=gnavFlag==''?' ':gnavFlag;
var gnavInteraction='';gnavInteraction=gnavInteraction==''?' ':gnavInteraction;
cmCreatePageviewTag('18B : COLLECTION : '+catDescName+' (11210)', '18B : 11210', '', null, '21551', gnavFlag+'-_-'+gnavInteraction+'-_- -_- -_- -_- -_-'+cellId);
}
}
});
setcm_sp('');
if(getCookie("FuneralHomeBannerContext")=='true'){
displayBanner();
}
setUpNaturalSearchCookie(); loadJSAsync('//cdn2.wolfermans.com/wcsstore/RAPIDStorefrontAssetStore/ww55/AJAXUserInterface/javascript/Lazy.js');