Loblaws Weekly Flyer - Save.ca (2023)

Skip to main content

Loblaws Weekly Flyer - Save.ca (1)

Save.ca App

Download from the Play Store to view flyers, get cash-back offers and more.

ENG FR

My List

My Deals My Coupons

  • Login
  • Loblaws Weekly Flyer - Save.ca (8) Sign In
  • Language: français

Loblaws Weekly Flyer - Save.ca (9) Loblaws Weekly Flyer - Save.ca (10)

Loblaws Weekly Flyer - Save.ca (11) Back

Change Location

We use your postal code to find deals near you.

M5E1E5 (Toronto)

Loblaws Weekly Flyer - Save.ca (12) Loblaws Weekly Flyer - Save.ca (13)

Cancel

Please enter a valid postal code

or

Please enter a valid postal code

  • Flyers Loblaws Weekly Flyer - Save.ca (14) Loblaws Weekly Flyer - Save.ca (15)

    • Flyer Categories
    • All Categories
    • Grocery (22)
    • Electronics (2)
    • Entertainment (2)
    • Pets ()
    • Miscellaneous ()
    • Spring Cleaning ()
    • Deal Categories
    • All Categories
    • Grocery (22)
    • Entertainment (6)
    • Miscellaneous (2)
  • Coupons

  • Deals Loblaws Weekly Flyer - Save.ca (50) Loblaws Weekly Flyer - Save.ca (51)

  • Blog

M5E1E5 (Toronto) M5E1E5

Make sure this is your postal code, so that you're shown flyers & deals for stores near you!

Loblaws Weekly Flyer - Save.ca (52)

Loblaws Weekly Flyer - Save.ca (53) Sign In

Loblaws Weekly Flyer - Save.ca (54) M5E1E5 Change

  • Loblaws Weekly Flyer - Save.ca (55) My Deals
  • Loblaws Weekly Flyer - Save.ca (56) My Coupons 0
  • Loblaws Weekly Flyer - Save.ca (57) Flyers
  • Loblaws Weekly Flyer - Save.ca (58)
  • Loblaws Weekly Flyer - Save.ca (59)
  • Loblaws Weekly Flyer - Save.ca (60) Blog
  • Contact Us
  • FAQ

Language

English Français

"; htmlContent += "

"; htmlContent += "Are you sure you want to delete your list?"; htmlContent += "

"; htmlContent += "

"; htmlContent += " "; htmlContent += ""; htmlContent += "

"; jQuery.fancybox({ modal : true, content : htmlContent, padding : 5, fitToView : false, autoSize : false, width : 320, height : 180, scrolling : 'no', openEffect : 'elastic', closeEffect : 'elastic', beforeShow : function() { jQuery("#fancyConfirm_ok").click(function() { $.fancybox.close(); callbackYes(); }); jQuery("#fancyConfirm_cancel").click(function() { $.fancybox.close(); callbackNo(); }); } }); } else { alert ("Your shopping list is empty."); } }

Loblaws:

May. 25 2023 - May. 31, 2023

Loblaws Weekly Flyer - Save.ca (64) Loblaws Weekly Flyer - Save.ca (65)

Loblaws

Loblaws Weekly Flyer - Save.ca (66) Map View

Loblaws Weekly Flyer - Save.ca (67) Change Store

Loblaws Weekly Flyer - Save.ca (68) View Website

"; $("#flyerDiv").append(transparent_image_left); var transparent_image_right = ""; $("#flyerDiv").append(transparent_image_right); } screen_mode_changed = false; } function get_transparent_image_width(page_number) { var currentStateObject = $('#flyerDiv').lhpGigaImgViewer('getCurrentState'); var page_width = (page_width_array[page_number] - initialMarginWidthAdjustment) * +currentStateObject.scale; var tempBaseWidth = $("#flyerDiv").width(); var width = (+tempBaseWidth * +full_screen_ratio - +page_width) / 2; ///alert('page: ' + page_number + ' tempBaseWidth: ' + tempBaseWidth + ' full_screen_ratio: ' + full_screen_ratio + ' initial page widh: ' + page_width_array[page_number] + ' scale: ' + currentStateObject.scale); return width; } function hide_next_flyer() { if ($('#nextFlyerWrapper').length > 0) { document.getElementById('nextFlyerWrapper').style.visibility="hidden"; } } // Used for the 2001 Audio Video white label var toggle_single_mode_callback = function () {}; //Place holder function function toggle_single_mode(mode) { pageToggleEngagement(); if(single_mode == mode) { return; } $.post("/flyers/flyerviewmodechanged", { 'onepageview':mode } ); if(current_page == number_of_pages) { $('#moveRight').hide(); } if(current_page == 1) { $('#moveLeft').hide(); } single_mode = mode; init_page_view_mode(); if(single_mode) { $('#scrollbar').show(); $('#scrolltext').show(); if (!tracking_disabled) { trackerInsert('page_views', thisFlyerTracking); } var currentStateObject = $('#flyerDiv').lhpGigaImgViewer('getCurrentState'); multi_mode_scale = currentStateObject.scale; if(page_number == 0) { current_page = 1; } document.getElementById("scrollbar").style.left = '0.5%'; $('#single_view_mode').unbind('mouseenter', 'mouseexit'); $('#single_view_mode').css('opacity' , '1'); $('#multi_view_mode').css('opacity' , '0.5'); // set single-view button to opaque all the time $('#single_view_mode').hover(function(){ $("#single_view_mode").css('opacity', '1'); },function(){ $("#single_view_mode").css('opacity', '1'); }); // set multi-view button to opaque only when hovered over $('#multi_view_mode').hover(function(){ $("#multi_view_mode").css('opacity', '1'); },function(){ $("#multi_view_mode").css('opacity', '0.5'); }); var font = "1"; var html = 'Page ' + current_page + ' / ' + number_of_pages + ''; var scrolltxt = document.getElementById('scrolltext'); scrolltxt.innerHTML=html; scrolltxt.style.left = "1.9%"; $('#page_view_mode').removeClass('singlePageIcon').addClass('multiPageIcon'); $(window).trigger('resize'); window.setTimeout(init_page_view_mode, 250); $( "#single_view_mode" ).prop( "disabled", true); $( "#multi_view_mode" ).prop( "disabled", false); if(page_number > 0) { if(current_page < number_of_pages) { scrollPositionSingle(); } else { scrollPositionRight(); } } } else { $('#multi_view_mode').unbind('mouseenter', 'mouseexit'); $('#single_view_mode').css('opacity' , '0.5'); $('#multi_view_mode').css('opacity' , '1'); // set single-view button to opaque only when hovered over $('#single_view_mode').hover(function(){ $("#single_view_mode").css('opacity', '1'); },function(){ $("#single_view_mode").css('opacity', '0.5'); }); // set multi-view button to opaque all the time $('#multi_view_mode').hover(function(){ $("#multi_view_mode").css('opacity', '1'); },function(){ $("#multi_view_mode").css('opacity', '1'); }); $( "#single_view_mode" ).prop( "disabled", false ); $( "#multi_view_mode" ).prop( "disabled", true ); ///$(window).trigger('resize'); $('.fullSpan2').height($(window).height() - $('.fullSpan2').offset().top - $('.flyers-upper-container').height()); $(".flyerViewMainWrapper").css('height', '100%'); $(".viewMiddleColumn").css('height', '100%'); if ($('.recommendedOuterWrapper').length > 0) { $('.recommendedOuterWrapper').height($(window).height() - $('.recommendedOuterWrapper').offset().top -250); } if ($('.list_carouselHeight').length > 0) { $('.list_carouselHeight').height($(window).height() - $('.list_carouselHeight').offset().top); } var currentStateObject = $('#flyerDiv').lhpGigaImgViewer('getCurrentState'); currentPositionX = currentStateObject.xPosInCenter; currentPositionY = currentStateObject.yPosInCenter; $('#flyerDiv').lhpGigaImgViewer('setPosition', currentPositionX, currentPositionY, 0); } toggle_single_mode_callback(); }///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////* STATS TRACKER END */ var myTimeoutVar; var allowClickScroll = true; var startScale; var zoomStage=0; var products_shopping_list = new Array();; var viewheight; var thumbnailToShow; var page_width_array = {"1":1064,"2":445,"3":445,"4":445,"5":445,"6":1064,"7":1064,"8":1064,"9":1064,"10":1064,"11":1064,"12":1064,"13":1064,"14":945,"15":945,"16":945}; var page_number = 0; var current_page = (page_number == 0)? 1 : page_number; var single_mode = false; var imagePositioned = false; var page_center_array = new Array(); var image_base_width; var left_global = '0px'; var left_global_number = 0; var left_global_array = new Array(); var number_of_pages = 16; var allow_right_flag; var allow_left_flag; var firstTime = true; var transparent_image_height_ratio = 0.97; var full_screen_ratio = 1; var screen_mode = 0; // 0 - normal; 1 - full screen var image_width; var image_height; var previous_page = 1; var multi_mode_scale; var adjustedFitToViewportShortSideFlag; var originalFitToViewportShortSideFlag; var settings; var flyer_products_data = new Array(); var products_shopping_start = new Array(); var normal_screen_mode; var themeTemp = ''; var extraSinglePageHeight = !(themeTemp === "2001audiovideo" || themeTemp === "gibbys" || themeTemp === "fb" || themeTemp === "thestar" || themeTemp === "playback" || themeTemp === "national_sports"); var initPageViewModeReady = true; $(document).ready(function() { flyer_products_data.push('32332677'); flyer_products_data.push('32332679'); flyer_products_data.push('32332681'); flyer_products_data.push('32332683'); flyer_products_data.push('32332685'); flyer_products_data.push('32332687'); flyer_products_data.push('32332689'); flyer_products_data.push('32332691'); flyer_products_data.push('32332693'); flyer_products_data.push('32332695'); flyer_products_data.push('32332697'); flyer_products_data.push('32332699'); flyer_products_data.push('32332701'); flyer_products_data.push('32332703'); flyer_products_data.push('32332705'); flyer_products_data.push('32332707'); flyer_products_data.push('32332709'); flyer_products_data.push('32332711'); flyer_products_data.push('32332713'); flyer_products_data.push('32332715'); flyer_products_data.push('32332717'); flyer_products_data.push('32332719'); flyer_products_data.push('32332721'); flyer_products_data.push('32332723'); flyer_products_data.push('32332725'); flyer_products_data.push('32332727'); flyer_products_data.push('32332729'); flyer_products_data.push('32332731'); flyer_products_data.push('32332733'); flyer_products_data.push('32332735'); flyer_products_data.push('32332737'); flyer_products_data.push('32332739'); flyer_products_data.push('32332741'); flyer_products_data.push('32332743'); flyer_products_data.push('32332745'); flyer_products_data.push('32332747'); flyer_products_data.push('32332749'); flyer_products_data.push('32332751'); flyer_products_data.push('32332753'); flyer_products_data.push('32332755'); flyer_products_data.push('32332757'); flyer_products_data.push('32332759'); flyer_products_data.push('32332761'); flyer_products_data.push('32332763'); flyer_products_data.push('32332765'); flyer_products_data.push('32332767'); flyer_products_data.push('32332769'); flyer_products_data.push('32332771'); flyer_products_data.push('32332773'); flyer_products_data.push('32332775'); flyer_products_data.push('32332777'); flyer_products_data.push('32332779'); flyer_products_data.push('32332781'); flyer_products_data.push('32332783'); flyer_products_data.push('32332785'); flyer_products_data.push('32332787'); flyer_products_data.push('32332789'); flyer_products_data.push('32332791'); flyer_products_data.push('32332793'); flyer_products_data.push('32332795'); flyer_products_data.push('32332797'); flyer_products_data.push('32332801'); flyer_products_data.push('32332803'); flyer_products_data.push('32332805'); flyer_products_data.push('32332807'); flyer_products_data.push('32332809'); flyer_products_data.push('32332811'); flyer_products_data.push('32332813'); flyer_products_data.push('32332815'); flyer_products_data.push('32332817'); flyer_products_data.push('32332819'); flyer_products_data.push('32332821'); flyer_products_data.push('32332823'); flyer_products_data.push('32332825'); flyer_products_data.push('32332827'); flyer_products_data.push('32332829'); flyer_products_data.push('32332831'); flyer_products_data.push('32332799'); flyer_products_data.push('32332833'); flyer_products_data.push('32332835'); flyer_products_data.push('32332837'); flyer_products_data.push('32332839'); flyer_products_data.push('32332841'); flyer_products_data.push('32332843'); flyer_products_data.push('32332845'); flyer_products_data.push('32332847'); flyer_products_data.push('32332849'); flyer_products_data.push('32332851'); flyer_products_data.push('32332853'); flyer_products_data.push('32332855'); flyer_products_data.push('32332857'); flyer_products_data.push('32332859'); flyer_products_data.push('32332861'); flyer_products_data.push('32332863'); flyer_products_data.push('32332865'); flyer_products_data.push('32332867'); flyer_products_data.push('32332869'); flyer_products_data.push('32332871'); flyer_products_data.push('32332873'); flyer_products_data.push('32332875'); flyer_products_data.push('32332877'); flyer_products_data.push('32332879'); flyer_products_data.push('32332881'); flyer_products_data.push('32332883'); flyer_products_data.push('32332885'); flyer_products_data.push('32332887'); flyer_products_data.push('32332889'); flyer_products_data.push('32332891'); flyer_products_data.push('32332893'); flyer_products_data.push('32332895'); flyer_products_data.push('32332897'); flyer_products_data.push('32332899'); flyer_products_data.push('32332901'); flyer_products_data.push('32332903'); flyer_products_data.push('32332905'); flyer_products_data.push('32332907'); flyer_products_data.push('32332909'); flyer_products_data.push('32332911'); flyer_products_data.push('32332913'); flyer_products_data.push('32332915'); flyer_products_data.push('32332917'); flyer_products_data.push('32332919'); flyer_products_data.push('32332921'); flyer_products_data.push('32332923'); flyer_products_data.push('32332925'); flyer_products_data.push('32332927'); flyer_products_data.push('32332929'); flyer_products_data.push('32332931'); flyer_products_data.push('32332933'); flyer_products_data.push('32332935'); flyer_products_data.push('32332937'); flyer_products_data.push('32332939'); flyer_products_data.push('32332941'); flyer_products_data.push('32332943'); flyer_products_data.push('32332945'); flyer_products_data.push('32332947'); flyer_products_data.push('32332949'); flyer_products_data.push('32332951'); flyer_products_data.push('32332953'); flyer_products_data.push('32332955'); flyer_products_data.push('32332957'); flyer_products_data.push('32332959'); flyer_products_data.push('32332961'); flyer_products_data.push('32332963'); flyer_products_data.push('32332965'); flyer_products_data.push('32332967'); flyer_products_data.push('32332969'); flyer_products_data.push('32332971'); flyer_products_data.push('32332973'); flyer_products_data.push('32332975'); flyer_products_data.push('32332977'); flyer_products_data.push('32332979'); flyer_products_data.push('32332981'); flyer_products_data.push('32332983'); flyer_products_data.push('32332985'); flyer_products_data.push('32332987'); flyer_products_data.push('32332989'); flyer_products_data.push('32333057'); flyer_products_data.push('32333059'); flyer_products_data.push('32333061'); flyer_products_data.push('32333063'); flyer_products_data.push('32333029'); flyer_products_data.push('32333031'); flyer_products_data.push('32333033'); flyer_products_data.push('32333035'); flyer_products_data.push('32333037'); flyer_products_data.push('32333039'); flyer_products_data.push('32333041'); flyer_products_data.push('32333043'); flyer_products_data.push('32333045'); flyer_products_data.push('32333047'); flyer_products_data.push('32333049'); flyer_products_data.push('32333051'); flyer_products_data.push('32333053'); flyer_products_data.push('32333055'); flyer_products_data.push('32333079'); flyer_products_data.push('32333081'); flyer_products_data.push('32333083'); flyer_products_data.push('32333085'); flyer_products_data.push('32333087'); flyer_products_data.push('32333089'); flyer_products_data.push('32333091'); flyer_products_data.push('32333093'); flyer_products_data.push('32333095'); flyer_products_data.push('32333097'); flyer_products_data.push('32333099'); flyer_products_data.push('32333101'); flyer_products_data.push('32333103'); flyer_products_data.push('32333105'); flyer_products_data.push('32333107'); flyer_products_data.push('32333109'); flyer_products_data.push('32333111'); flyer_products_data.push('32333113'); flyer_products_data.push('32333149'); flyer_products_data.push('32333151'); flyer_products_data.push('32333153'); flyer_products_data.push('32333155'); flyer_products_data.push('32333157'); flyer_products_data.push('32333159'); flyer_products_data.push('32333161'); flyer_products_data.push('32333163'); flyer_products_data.push('32333165'); flyer_products_data.push('32333167'); flyer_products_data.push('32333169'); $('#single_view_mode').css('opacity' , '0.5'); $('#multi_view_mode').css('opacity' , '1'); $('#single_view_mode').hover(function(){ $("#single_view_mode").css('opacity', '1'); },function(){ $("#single_view_mode").css('opacity', '0.5'); }); $( "#single_view_mode" ).prop( "disabled", false ); $( "#multi_view_mode" ).prop( "disabled", true ); $("#nextFlyerWrapper").hide(); init_page_width_array(); image_height = $('base').attr('data-height'); image_width = 13167; var image_base_height = $("#flyerDiv").height(); var window_height = $(window).height(); image_base_width = $("#flyerDiv").width(); viewheight = ((window_height - 1)/window_height)*100; var image_ratio = +image_base_width / +image_width; var offset_koefficient = image_base_width / 1617; startScale = +image_base_height / +image_height; var fitToViewportShortSideFlag; if(number_of_pages != 4) { fitToViewportShortSideFlag = (image_ratio <= 0.38 * (offset_koefficient))? true : false; } else { fitToViewportShortSideFlag = (image_ratio <= 0.5 * (offset_koefficient))? true : false; } originalFitToViewportShortSideFlag = fitToViewportShortSideFlag; adjustedFitToViewportShortSideFlag = (!fitToViewportShortSideFlag)? !fitToViewportShortSideFlag : fitToViewportShortSideFlag; ///console.log('image_width: ' + image_width + ' image_height: ' + image_height + ' image_base_width: ' + image_base_width); panStep = +image_width / +number_of_pages; var recommended_flyers_count = 9; var screen_height = screen.height; //if(screen_height <= 800) { if($(window).height() <= 600) { thumbnailToShow = 2; } else { thumbnailToShow = (+recommended_flyers_count < 5)? recommended_flyers_count : 5; } if ($('#nextFlyerWrapper').length > 0) { //document.getElementById("nextFlyer").style.bottom=(100-viewheight) + '%'; //document.getElementById("prevFlyer").style.bottom=(100-viewheight) + '%'; } //console.log('width: ' + screen.width + ' height: ' + screen.height); settings = { 'viewportWidth' : '100%', 'viewportHeight' : viewheight + '%', 'fitToViewportShortSide' : fitToViewportShortSideFlag, 'contentSizeOver100' : false, 'startScale' : 0.125, 'startX' : 0, 'startY' : 0, 'animTime' : 400, 'draggInertia' : 0, 'imgDir' : '/img/flyerview/V8_T20230519095001_P1738ImgSrc/', 'mainImgWidth' : 13167, 'mainImgHeight' : 2000, 'intNavEnable' : true, 'intNavPos' : 'T', 'intNavAutoHide' : false, 'intNavMoveDownBtt' : false, 'intNavMoveUpBtt' : false, 'intNavMoveRightBtt' : false, 'intNavMoveLeftBtt' : false, 'intNavZoomBtt' : false, 'intNavUnzoomBtt' : false, 'intNavFitToViewportBtt' : false, 'intNavFullSizeBtt' : false, 'intNavBttSizeRation' : 1, 'mapEnable' : false, 'mapPos' : 'BL', 'popupShowAction' : 'click', 'testMode' : false }; $('#flyerDiv').lhpGigaImgViewer(settings, 'flyerHotSpots'); $('#flyerDiv').bind("givChange", function(e) { /* STATS TRACKER START */ document.getElementById("scrolltext").style.bottom=document.getElementById("scrollbar").style.bottom; document.getElementById("scrollback").style.height=document.getElementById("scrollbar").style.height; if (e.isScaled) { initalScale = true; } if(initalScale && pageViewActionReady) { pageViewActionReady = false; window.setTimeout(function() { pageViewActionReady = true; }, 250); processFlyerPageViews(); } if(!single_mode) { scrollBarLocation(); } /* STATS TRACKER END */ ///if(e.isScaled) { var temp = $("#FlyerWrapper").height(); startScale = +temp / +image_height; $('.product, .link, .bookmark, .shoppinglist').each(function(index) { var width = $(this).attr('data-width'); var height = $(this).attr('data-height'); var ratio = e.hPropViewpContent; width = +width * +startScale; height = +height * +startScale; var new_width = +width / +ratio; var new_height = +height / +ratio; ///console.log('width:' + new_width + 'height: ' + new_height + 'proportion:' + e.hPropViewpContent); $(this).css('width', new_width * 0.94); $(this).css('height', new_height * 0.94); // Check navigation }); $(window).resize(function(){ if ($.browser.msie && parseInt($.browser.version, 10) < 10) { return; } if(single_mode){ return; } if(firstTime){ currentStateObject = $('#flyerDiv').lhpGigaImgViewer('getCurrentState'); currentPositionX = currentStateObject.xPosInCenter; currentPositionY = currentStateObject.yPosInCenter; cuScale = currentStateObject.scale; firstTime=false; setTimeout(function(){firstTime=true;},500); } window_height = $(window).height(); viewheight = ((window_height - 1)/window_height)*100; settings = { 'viewportWidth' : '100%', 'viewportHeight' : viewheight + '%', 'fitToViewportShortSide' : fitToViewportShortSideFlag, 'contentSizeOver100' : false, 'startScale' : 0.123, 'startX' : currentPositionX, 'startY' : currentPositionY, 'animTime' : 400, 'draggInertia' : 0, 'imgDir' : '/img/flyerview/V8_T20230519095001_P1738ImgSrc/', 'mainImgWidth' : 13167, 'mainImgHeight' : 2000, 'intNavEnable' : true, 'intNavPos' : 'T', 'intNavAutoHide' : false, 'intNavMoveDownBtt' : false, 'intNavMoveUpBtt' : false, 'intNavMoveRightBtt' : false, 'intNavMoveLeftBtt' : false, 'intNavZoomBtt' : false, 'intNavUnzoomBtt' : false, 'intNavFitToViewportBtt' : false, 'intNavFullSizeBtt' : false, 'intNavBttSizeRation' : 1, 'mapEnable' : false, 'mapPos' : 'BL', 'popupShowAction' : 'click', 'testMode' : false }; $('#flyerDiv').lhpGigaImgViewer('destroy'); $('#flyerDiv').lhpGigaImgViewer(settings, 'flyerHotSpots'); if ($('#nextFlyerWrapper').length > 0) { //document.getElementById("nextFlyer").style.bottom=(100-viewheight) + '%'; //document.getElementById("prevFlyer").style.bottom=(100-viewheight) + '%'; } }); //updateAllproductOnShoppingList(); if((!single_mode && !e.allowRight) || (single_mode && !allow_right_flag)) { $('#moveLeft').hide(); } else { $('#moveLeft').show(); } if((!single_mode && !e.allowLeft) || (single_mode && !allow_left_flag)) { $('#moveRight').hide(); } else { $('#moveRight').show(); } var left = $('.lhp_giv_content_holder').css('left').substring(0, $('.lhp_giv_content_holder').css('left').length - 2); var flyerDiv_width = $('.flyerDiv').css('width').substring(0, $('.flyerDiv').css('width').length - 2); var scaled_image_width = +e.scale * +image_width; var offset = +scaled_image_width - (+flyerDiv_width - +left); // The padding that's visible after the last page of the flyer var lastPagePadding = $('.lhp_giv_holder').css('padding-right').substring(0, $('.lhp_giv_holder').css('padding-right').length - 2); ///console.log('scale: ' + e.scale + ' left: ' + left + ' offset: ' + offset); if((!e.allowLeft || Math.abs(+offset) < 100) && e.allowZoom && !e.isScaled && !single_mode) { ///console.log('OFFSET: ' + offset); var margin_left; if(image_width > 70000) { margin_left = '-260px'; } else if(image_width > 40000) { margin_left = '-70px'; } else if(image_width > 30000) { margin_left = '-60px'; } else if(image_width > 20000) { margin_left = '-35px'; } else { margin_left = '-30px'; } if(scaled_image_width <= flyerDiv_width) { margin_left = '0px'; }// var margin_left_number = (Math.ceil(image_width / 1000) * -1) - 5 ;// margin_left = margin_left_number + 'px'; $('.lhp_giv_content_holder').css('margin-left', margin_left); // Check if scroll left button should be disabled var offset = Math.abs(scaled_image_width + parseInt(lastPagePadding) - (flyerDiv_width - left)); if((offset < 3 || (scaled_image_width < flyerDiv_width)) && !single_mode) { $('#moveRight').hide(); } else { $('#moveRight').show(); } } else { $('.lhp_giv_content_holder').css('margin-left', '0px'); if(single_mode) { $('.lhp_giv_content_holder').css('left', left_global); } if(!single_mode) { $('#moveRight').show(); } } ///} }); if(image_height < 800) { var temp_height = image_height / 1.1; $("#FlyerWrapper").css('height', temp_height); } /* STATS TRACKER START */ $("#nextFlyerWrapper").show(); $("#nextFlyerWrapper").show(); var recStatsSaveScheduled = false; var recStatsResizeActionReady = true; var recommendedImpressions = ''; /* Caputres and saves impressions for recommended flyers. */ function recommendedFlyerImpressions() { var recommendedFlyers = $('.stats-impression-rec'); var num_recommended = recommendedFlyers.length; var top_button = $('#recommendedTopBtnWrapper'); var bottom_button = $('#recommendedBottomBtnWrapper'); if (top_button.length && bottom_button.length && num_recommended) { var top_button_edge = top_button.offset().top; var bottom_button_edge = bottom_button.offset().top; // Gather visible impressions for (var i = 0; i < num_recommended; i++) { var this_recommended = $(recommendedFlyers[i]); var this_recommended_edge = this_recommended.offset().top; if (top_button_edge < this_recommended_edge && this_recommended_edge < bottom_button_edge) { recommendedImpressions += this_recommended.attr('data-tracking') + ','; this_recommended.removeClass('stats-impression-rec'); } } // Schedule an impressions batch save if (!recStatsSaveScheduled) { if (recommendedImpressions) { recStatsSaveScheduled = true; window.setTimeout(function() { if (!tracking_disabled) { trackerInsert('impressions', recommendedImpressions); } recommendedImpressions = ''; recStatsSaveScheduled = false; }, 500); } } } } /** * Checks if at least part of one flyer is visible in the carousel. */ function carouselContentVisible() { var result = false; var top_button = $('#recommendedTopBtnWrapper'); var bottom_button = $('#recommendedBottomBtnWrapper'); if (top_button.length && bottom_button.length) { //30 is the height of the recommendedTopBtnWrapper var top_button_bottom_edge = top_button.offset().top + 30; var bottom_button_top_edge = bottom_button.offset().top; //50 is about a third the height of a recommended flyer if (top_button_bottom_edge + 50 < bottom_button_top_edge) { result = true; } } return result; } // On resize, other recommended flyers may come into view which // need to be recorded as impressions too. $(window).resize(function(){ if (recStatsResizeActionReady) { window.setTimeout(function() { recStatsResizeActionReady = true; }, 150); recommendedFlyerImpressions(); } }); $('#foo3').carouFredSel({ prev: '#prev3', next: '#next3', direction:'vertical', scroll : { items: 1, onAfter: function() { recommendedFlyerImpressions(); } }, items: thumbnailToShow, auto: false, onCreate: function() { //Checks to see when the carousel finishes loading. //It's needed because the onCreate event fires before anything is actually loaded. var carouselLoadedMonitor = setInterval(function(){ if(carouselContentVisible()) { recommendedFlyerImpressions(); clearInterval(carouselLoadedMonitor); } }, 500); //Cancel the carouselLoadedMonitor after 1 minute window.setTimeout(function() { clearInterval(carouselLoadedMonitor); }, 1000 * 60); } }); /* STATS TRACKER END */ if(page_number > 0) { setTimeout(function() { toggle_single_mode(true); }, 500); } if(false){ ///setTimeout(function() { toggle_single_mode(true); }, 500); } });
Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated: 07/07/2023

Views: 5941

Rating: 5 / 5 (60 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.