Gluten-Free Banana Bread with Chocolate Chips


p, .entry-content > ul”,”classNames”:[],”skip”:2,”position”:”afterend”,”float”:false,”enabled”:true},”contextualAutoplayCollapsibleMobile”:{“elementSelector”:”.entry-content > p, .entry-content > ul”,”pageSelector”:”body.single”,”skip”:2,”position”:”afterend”},”partners”:{“roundel”:true,”mediaGrid”:true,”gumgum”:true,”telaria”:true,”districtM”:true,”amazonUAM”:true,”rubicon”:true,”appNexus”:true,”conversant”:true,”tripleLift”:true,”openx”:true,”spotx”:true,”pubMatic”:true,”indexExchange”:true},”sekindoMobilePlaylist”:{“pageSelector”:”body.single”,”elementSelector”:”.entry-content > p”,”classNames”:[],”skip”:3,”position”:”afterend”,”title”:”MY LATEST VIDEOS”,”enabled”:false},”jwPlaylistId”:”uo7yYSUJ”,”contextualAutoplayCollapsibleDesktop”:{“elementSelector”:”.entry-content > p, .entry-content > ul”,”pageSelector”:”body.single”,”skip”:2,”position”:”afterend”},”collapsible”:{“footerSelector”:”.site-footer”,”topMargin”:0,”experiment”:false,”desktopLocation”:”bottom”,”mobileLocation”:”bottom-right”,”mobileSize”:”medium”,”saveVideoCloseState”:false,”mobileLocationExperiment”:false,”shuffle”:true,”sidebarSelector”:”.sidebar”,”title”:”Latest Videos”},”autoplayPlaylistCollapsibleMobile”:{“pageSelector”:”body.single”,”experiment”:false,”elementSelector”:”.entry-content > p, .entry-content > ul”,”classNames”:[],”skip”:2,”position”:”afterend”,”enabled”:true},”sekindoDesktopPlaylist”:{“pageSelector”:null,”elementSelector”:”.sidebar-primary > .widget”,”classNames”:[],”skip”:2,”position”:”afterend”,”title”:”MY LATEST VIDEOS”,”enabled”:false},”jwPlayerId”:”wz88f0ns”,”jwCollapsiblePlayerId”:”wz88f0ns”},”version”:”v1″,”adTypes”:{“nativeMobileRecipe”:true,”expandableFooter”:false,”nativeDesktopSidebar”:true,”nativeDesktopContent”:true,”outstreamDesktop”:true,”interscroller”:true,”miniscroller”:true,”outstreamMobile”:true,”nativeDesktopRecipe”:true,”animatedFooter”:true,”nativeMobileContent”:true},”adUnits”:[{“targeting”:[{“value”:[“Header”],”key”:”location”}],”devices”:[“desktop”,”tablet”],”name”:”Header_970x90_728x90_468x60_320x50_320x100_300x50″,”sticky”:false,”location”:”Header”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0,”max”:1,”lazy”:false,”elementSelector”:”.site-header”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[970,90],[728,90],[468,60],[320,50],[320,100],[300,50]],”priority”:399,”autosize”:true},{“sequence”:1,”targeting”:[{“value”:[“Sidebar”],”key”:”location”}],”devices”:[“desktop”],”name”:”Sidebar_1″,”sticky”:false,”location”:”Sidebar”,”dynamic”:{“pageSelector”:null,”min”:1,”spacing”:0,”max”:1,”lazy”:false,”elementSelector”:”.sidebar-primary > .widget”,”skip”:3,”classNames”:[“widget”],”position”:”afterend”,”every”:2,”enabled”:true},”adSizes”:[[300,250],[250,250],[300,600],[120,240],[160,600],[300,1050],[336,280],[320,50],[320,100],[1,1],[300,420],[300,50]],”priority”:299,”autosize”:true},{“sequence”:9,”targeting”:[{“value”:[“Sidebar”],”key”:”location”},{“value”:true,”key”:”sticky”}],”devices”:[“desktop”],”name”:”Sidebar_9″,”sticky”:true,”location”:”Sidebar”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0,”max”:1,”lazy”:false,”elementSelector”:”.sidebar”,”skip”:0,”classNames”:[“widget”],”position”:”beforeend”,”every”:1,”enabled”:true},”stickyOverlapSelector”:”.site-footer”,”adSizes”:[[300,250],[250,250],[300,600],[120,240],[160,600],[300,1050],[336,280],[320,50],[320,100],[1,1],[300,420],[300,50]],”priority”:291,”autosize”:true},{“targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“desktop”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”min”:0,”spacing”:1,”max”:5,”lazy”:true,”lazyMax”:4,”elementSelector”:”.content .entry-content > *”,”skip”:4,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[336,280],[468,60],[728,90],[970,90],[1,1],[300,300],[552,334],[300,50],[728,250],[970,250],[1,2]],”priority”:199,”autosize”:true},{“targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“tablet”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single, body.page”,”min”:0,”spacing”:0.8,”max”:5,”lazy”:false,”elementSelector”:”.content .entry-content > *”,”skip”:5,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[336,280],[468,60],[728,90],[970,90],[1,1],[300,300],[552,334],[300,50],[728,250],[970,250],[1,2]],”priority”:199,”autosize”:true},{“targeting”:[{“value”:[“Content”],”key”:”location”}],”devices”:[“phone”],”name”:”Content”,”sticky”:false,”location”:”Content”,”dynamic”:{“pageSelector”:”body.single”,”min”:0,”spacing”:1,”max”:5,”lazy”:true,”lazyMax”:10,”elementSelector”:”.content .entry-content > *”,”skip”:1,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[336,280],[468,60],[728,90],[970,90],[1,1],[300,300],[552,334],[300,50],[728,250],[970,250],[1,2]],”priority”:199,”autosize”:true},{“targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0,”max”:2,”lazy”:false,”elementSelector”:”.tasty-recipes-ingredients, .tasty-recipes-instructions”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[1,1],[300,50],[1,2],[320,300],[300,390]],”priority”:-101,”autosize”:true},{“sequence”:3,”targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“phone”],”name”:”Recipe_3″,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0,”max”:1,”lazy”:false,”elementSelector”:”.tasty-recipes-instructions li”,”skip”:5,”classNames”:[],”position”:”afterend”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[1,1],[300,50],[1,2],[320,300],[300,390]],”priority”:-103,”autosize”:true},{“targeting”:[{“value”:[“Recipe”],”key”:”location”}],”devices”:[“tablet”,”desktop”],”name”:”Recipe”,”sticky”:false,”location”:”Recipe”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0.7,”max”:3,”lazy”:false,”elementSelector”:”.tasty-recipes-ingredients li, .tasty-recipes-instructions li, .tasty-recipes-notes p, .tasty-recipes-notes li”,”skip”:0,”classNames”:[],”position”:”beforebegin”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[1,1],[300,50],[1,2],[320,300],[300,390]],”priority”:-101,”autosize”:true},{“targeting”:[{“value”:[“Footer”],”key”:”location”},{“value”:true,”key”:”sticky”}],”devices”:[“tablet”,”phone”,”desktop”],”name”:”Footer”,”sticky”:true,”location”:”Footer”,”dynamic”:{“pageSelector”:null,”min”:0,”spacing”:0,”max”:1,”lazy”:false,”elementSelector”:”body”,”skip”:0,”classNames”:[],”position”:”beforeend”,”every”:1,”enabled”:true},”adSizes”:[[320,50],[320,100],[728,90],[970,90],[468,60],[1,1],[300,50]],”priority”:-1,”autosize”:true},{“targeting”:[{“value”:[“Below Post”],”key”:”location”}],”devices”:[“desktop”,”phone”,”tablet”],”name”:”Below_Post”,”sticky”:false,”location”:”Below Post”,”dynamic”:{“pageSelector”:”body.single, body.page:not(.home)”,”min”:0,”spacing”:0,”max”:0,”lazy”:true,”lazyMax”:1,”elementSelector”:”.entry-content”,”skip”:0,”classNames”:[],”position”:”beforeend”,”every”:1,”enabled”:true},”adSizes”:[[120,240],[250,250],[300,250],[320,50],[320,100],[336,280],[468,60],[728,90],[1,1]],”priority”:99,”autosize”:true}]};]]> Gluten-Free Banana Bread with Chocolate Chips – The Real Food Dietitians – 1; } /* Disable tracking if the opt-out cookie exists. */ if ( __gtagTrackerIsOptedOut() ) { window[disableStr] = true; } /* Opt-out function */ function __gtagTrackerOptout() { document.cookie = disableStr + ‘=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/’; window[disableStr] = true; } if ( ‘undefined’ === typeof gaOptout ) { function gaOptout() { __gtagTrackerOptout(); } } window.dataLayer = window.dataLayer || []; if ( mi_track_user ) { function __gtagTracker() {dataLayer.push( arguments );} __gtagTracker( ‘js’, new Date() ); __gtagTracker( ‘set’, { ‘developer_id.dZGIzZG’ : true, }); __gtagTracker( ‘config’, ‘UA-65810811-2’, { forceSSL:true,link_attribution:true, } ); window.gtag = __gtagTracker; ( function () { /* https://developers.google.com/analytics/devguides/collection/analyticsjs/ */ /* ga and __gaTracker compatibility shim. */ var noopfn = function () { return null; }; var newtracker = function () { return new Tracker(); }; var Tracker = function () { return null; }; var p = Tracker.prototype; p.get = noopfn; p.set = noopfn; p.send = function (){ var args = Array.prototype.slice.call(arguments); args.unshift( ‘send’ ); __gaTracker.apply(null, args); }; var __gaTracker = function () { var len = arguments.length; if ( len === 0 ) { return; } var f = arguments[len – 1]; if ( typeof f !== ‘object’ || f === null || typeof f.hitCallback !== ‘function’ ) { if ( ‘send’ === arguments[0] ) { var hitConverted, hitObject = false, action; if ( ‘event’ === arguments[1] ) { if ( ‘undefined’ !== typeof arguments[3] ) { hitObject = { ‘eventAction’: arguments[3], ‘eventCategory’: arguments[2], ‘eventLabel’: arguments[4], ‘value’: arguments[5] ? arguments[5] : 1, } } } if ( typeof arguments[2] === ‘object’ ) { hitObject = arguments[2]; } if ( typeof arguments[5] === ‘object’ ) { Object.assign( hitObject, arguments[5] ); } if ( ‘undefined’ !== typeof ( arguments[1].hitType ) ) { hitObject = arguments[1]; } if ( hitObject ) { action = ‘timing’ === arguments[1].hitType ? ‘timing_complete’ : hitObject.eventAction; hitConverted = mapArgs( hitObject ); __gtagTracker( ‘event’, action, hitConverted ); } } return; } function mapArgs( args ) { var gaKey, hit = {}; var gaMap = { ‘eventCategory’: ‘event_category’, ‘eventAction’: ‘event_action’, ‘eventLabel’: ‘event_label’, ‘eventValue’: ‘event_value’, ‘nonInteraction’: ‘non_interaction’, ‘timingCategory’: ‘event_category’, ‘timingVar’: ‘name’, ‘timingValue’: ‘value’, ‘timingLabel’: ‘event_label’, }; for ( gaKey in gaMap ) { if ( ‘undefined’ !== typeof args[gaKey] ) { hit[gaMap[gaKey]] = args[gaKey]; } } return hit; } try { f.hitCallback(); } catch ( ex ) { } }; __gaTracker.create = newtracker; __gaTracker.getByName = newtracker; __gaTracker.getAll = function () { return []; }; __gaTracker.remove = noopfn; __gaTracker.loaded = true; window[‘__gaTracker’] = __gaTracker; } )(); } else { console.log( “” ); ( function () { function __gtagTracker() { return null; } window[‘__gtagTracker’] = __gtagTracker; window[‘gtag’] = __gtagTracker; } )(); } ]]> {const s=t.toString(),e=this.extractAPICall(s,”disableAds”);e&&this.disableAllAds(this.extractPatterns(e));const i=this.extractAPICall(s,”disableContentAds”);i&&this.disableContentAds(this.extractPatterns(i));const a=this.extractAPICall(s,”disablePlaylistPlayers”);a&&this.disablePlaylistPlayers(this.extractPatterns(a))})}extractAPICall(t,s){const e=new RegExp(s+”\((.*?)\)”,”g”),i=t.match(e);return null!==i&&i[0]}extractPatterns(t){const s=t.match(/'(.*?)’/g);return null!==s&&s.map(t=>t.replaceAll(“‘”,””))}disableAllAds(t){t&&!this.urlMatch(t)||(this.all=!0,this.reasons.add(“all_plugin”))}disableContentAds(t){t&&!this.urlMatch(t)||(this.content=!0,this.recipe=!0,this.locations.add(“Content”),this.locations.add(“Recipe”),this.reasons.add(“content_plugin”))}disablePlaylistPlayers(t){t&&!this.urlMatch(t)||(this.video=!0,this.locations.add(“Video”),this.reasons.add(“video_page”))}urlMatch(t){const s=window.location.href;return t.some(t=>new RegExp(t,”i”).test(s))}checkValidUrl(){return!this.urlHasEmail(window.location.href)&&!this.urlHasEmail(window.document.referrer)}urlHasEmail(t){if(!t)return!1;return null!==t.match(/([A-Z0-9._%+-]+(@|%(25)*40)[A-Z0-9.-]+.[A-Z]{2,})/i)}}}(); ]]> 0){var d={clsDynamicAd:e,dynamicAd:e,element:r,sizes:s,name:”Header_1″,infinite:!1};window.adthriveCLS.injectedSlots.some(e=>”Header_1″===e.name)||window.adthriveCLS.injectedSlots.push(d),this.setMinHeight(r,t)}}}else window.requestAnimationFrame(this.attemptInject.bind(this,e,t))}}insertDivs(e){if(window.requestAnimationFrame&&(!window.adthriveCLS.disableAds||!window.adthriveCLS.disableAds.all)&&!/Edg/i.test(navigator.userAgent)&&(/Chrome/.test(navigator.userAgent)||/Safari/.test(navigator.userAgent)||/[Pinterest/iOS]/.test(navigator.userAgent)))for(var t=this.deviceByBreakpoint(e.breakpoints.tablet,e.breakpoints.desktop),i=this.getDynamicAds(t,e.adUnits),n=0;ne.dynamic&&e.dynamic.enabled&&”Header”===e.location).map(e=>({location:e.location,sequence:e.sequence||1,sizes:this.supportedSizes.filter((function(t){return e.adSizes.some((function(e){return t[0]==e[0]&&t[1]==e[1]}))})),devices:e.devices,pageSelector:e.dynamic.pageSelector?e.dynamic.pageSelector.trim():””,elementSelector:e.dynamic.elementSelector?e.dynamic.elementSelector.trim():””,position:e.dynamic.position?e.dynamic.position:”beforebegin”,min:Math.floor(e.dynamic.min?e.dynamic.min:0),max:Math.floor(e.dynamic.max?e.dynamic.max:0),spacing:e.dynamic.spacing?e.dynamic.spacing:0,skip:Math.floor(e.dynamic.skip?e.dynamic.skip:0),every:Math.max(Math.floor(e.dynamic.every?e.dynamic.every:1),1),classNames:e.dynamic.classNames?e.dynamic.classNames:[],sticky:e.sticky,stickyOverlapSelector:e.stickyOverlapSelector?e.stickyOverlapSelector.trim():””,autosize:e.autosize,special:(e.targeting?e.targeting:[]).filter(e=>”special”===e.key).reduce((e,t)=>e.concat(…t.value),[]),lazy:!!e.dynamic.lazy&&e.dynamic.lazy,lazyMax:e.dynamic.lazyMax?e.dynamic.lazyMax:2})).filter((function(t){var i=-1!==t.devices.indexOf(e),n=”Header”===t.location&&1===t.sequence&&1===t.max&&0===t.spacing;return i&&n}))}deviceByBreakpoint(e,t){const i=window.innerWidth;return i>=t?”desktop”:i>=e?”tablet”:”phone”}elementInnerWidth(e){let t=e.clientWidth;if(getComputedStyle){const i=getComputedStyle(e,null);t-=parseFloat(i.paddingLeft||”0″)+parseFloat(i.paddingRight||”0″)}return t}filterAdUnitSizes(e,t){var i=this.elementInnerWidth(t);return e.sizes.filter((function(t){return!e.autosize||(t[0]<=i||t[0] 0){var h=this.elementOffset(m).bottom;if(h<=s)continue;s=h+o}var y=d1&&(o=0);y>0;y–){var u=c[r],p=u.location+”_”+u.sequence;if(window.adthriveCLS.injectedSlots.some((function(e){return e.name===p})))r+=1;else{var f=”AdThrive_”+u.location+”_”+u.sequence+”_”+e,v=”adthrive-“+a.location.replace(“_”,”-“).toLowerCase(),g=v+”-“+a.sequence,S=a.classNames||[];S.push(v,g);var w=this.addAd(m,f,a.position,S,u.location);if(w){var z=this.filterAdUnitSizes(u,w);if(z.length>0){var M={clsDynamicAd:a,dynamicAd:u,element:w,sizes:z,name:p,infinite:!1};window.adthriveCLS.injectedSlots.push(M),i.push({location:u.location,element:w}),r+=1}m=w}}}}}i.forEach(({location:e,element:t})=>{t.style.minHeight=this.locationToMinHeight[e]})}addAd(e,t,i,n,a){if(!document.getElementById(t)){var o=[”].join(“”);e.insertAdjacentHTML(i,o)}return document.getElementById(t)}repeatDynamicAds(e){for(var t=[],i=e.lazy&&this.lazyMaxMap[e.location]?this.lazyMaxMap[e.location]:0,n=Math.max(e.min,e.max),a=0===i&&e.lazy?n+e.lazyMax:Math.min(Math.max(i-e.sequence+1,0),n+e.lazyMax),o=Math.max(n,a),s=0;s=n,l=Object.assign({},e,{sequence:r,lazy:c});l.sequence=r,l.lazy=c,t.push(l)}return t}getDynamicAds(e){return window.adthriveCLS.siteAds.adUnits.filter(e=>e.dynamic&&e.dynamic.enabled&&window.adthriveCLS.enabledLocations.indexOf(e.location)>=0).map(e=>({location:e.location.replace(/s+/g,”_”),sequence:e.sequence||1,sizes:this.supportedSizes.filter((function(t){return e.adSizes.some((function(e){return t[0]==e[0]&&t[1]==e[1]}))})),devices:e.devices,pageSelector:e.dynamic.pageSelector?e.dynamic.pageSelector.trim():””,elementSelector:e.dynamic.elementSelector?e.dynamic.elementSelector.trim():””,position:e.dynamic.position?e.dynamic.position:”beforebegin”,min:Math.floor(e.dynamic.min?e.dynamic.min:0),max:Math.floor(e.dynamic.max?e.dynamic.max:0),spacing:e.dynamic.spacing?e.dynamic.spacing:0,skip:Math.floor(e.dynamic.skip?e.dynamic.skip:0),every:Math.max(Math.floor(e.dynamic.every?e.dynamic.every:1),1),classNames:e.dynamic.classNames?e.dynamic.classNames:[],sticky:e.sticky,stickyOverlapSelector:e.stickyOverlapSelector?e.stickyOverlapSelector.trim():””,autosize:e.autosize,special:(e.targeting?e.targeting:[]).filter(e=>”special”===e.key).reduce((e,t)=>e.concat(…t.value),[]),lazy:!!e.dynamic.lazy&&e.dynamic.lazy,lazyMax:e.dynamic.lazyMax?e.dynamic.lazyMax:2})).filter((function(t){var i=-1!==t.devices.indexOf(e),n=0===t.pageSelector.length||null!==document.querySelector(t.pageSelector),a=document.body.classList.contains(“adthrive-disable-all”),o=”Recipe”!==t.location&&”Content”!==t.location||!document.body.classList.contains(“adthrive-disable-content”);return i&&n&&o&&!a}))}deviceByBreakpoint(e,t){const i=window.innerWidth;return i>=t?”desktop”:i>=e?”tablet”:”phone”}elementOffset(e){const t=e.offsetHeight,i=e.offsetWidth,n=e.getBoundingClientRect(),a=document.body,o=document.documentElement,s=window.pageYOffset||o.scrollTop||a.scrollTop,r=window.pageXOffset||o.scrollLeft||a.scrollLeft,c=o.clientTop||a.clientTop||0,l=o.clientLeft||a.clientLeft||0,d=Math.round(n.top+s-c),m=Math.round(n.left+r-l);return{top:d,left:m,bottom:d+t,right:m+i,width:i,height:t}}elementInnerWidth(e){let t=e.clientWidth;if(getComputedStyle){const i=getComputedStyle(e,null);t-=parseFloat(i.paddingLeft||”0″)+parseFloat(i.paddingRight||”0″)}return t}filterAdUnitSizes(e,t){var i=this.elementInnerWidth(t),n=e.sticky&&”Sidebar”===e.location;return e.sizes.filter((function(t){var a=!e.autosize||(t[0]<=i||t[0]<=320),o=!n||t[1]t.skip?o.elements[t.skip]:null:null}}new class{constructor(e){this._config=e,this._jwPlaylistIds=[],this._autoplayPlayerAdded=!1,this._IN_POST_SELECTOR=".adthrive-video-player",this._wrapperBarHeight=36,this._device=/Windows NT|Macintosh/i.test(navigator.userAgent)?"desktop":"mobile"}init(){const e="classList"in document.createElement("_");window.adthriveCLS.siteAds&&!window.adthriveVideosInjected&&e&&!/Edg/i.test(navigator.userAgent)&&(/Chrome/.test(navigator.userAgent)||/Safari/.test(navigator.userAgent)||/[Pinterest/iOS]/.test(navigator.userAgent))&&this._initializePlayers()}_initializePlayers(){this._initializeInPostPlayers(),this._shouldRunVideo()&&("desktop"===this._device?this._config.video.desktopCollapseSettings&&this._config.video.desktopCollapseSettings.enabled?this._initializeAutoplayCollapsePlayer(this._config.video.desktopCollapseSettings):this._config.video.sekindoDesktopSettings&&this._config.video.sekindoDesktopSettings.enabled&&this._initializeSekindo(this._config.video.sekindoDesktopSettings,320,250,!1):this._config.video.mobileCollapseSettings&&this._config.video.mobileCollapseSettings.enabled?this._initializeAutoplayCollapsePlayer(this._config.video.mobileCollapseSettings):this._config.video.sekindoMobileSettings&&this._config.video.sekindoMobileSettings.enabled&&this._initializeSekindo(this._config.video.sekindoMobileSettings,340,260,!1))}_initializeInPostPlayers(){const e=document.querySelectorAll(this._IN_POST_SELECTOR);let i="static";this._config.video.contextualSettings&&(i=this._config.video.contextualSettings.defaultPlayerType);for(let s=0;sThis website uses cookies to improve your experience. We’ll assume you’re ok with this, but you can opt-out if you wish.AcceptReject

Privacy & Cookies Policy

0) { adthrive.cmd.push(function() { adthrive.disableAds(); }); } ]]> 3) { var type = ‘event’; var eventName = ‘timing_complete’; fieldsArray = { event_category : ‘Scroll Depth’, name : action, event_label : label, value : timing, non_interaction: 1 }; MonsterInsightsObject.sendEvent( type, eventName, fieldsArray ); } } function calculateMarks(docHeight) { return { ‘25%’ : parseInt(docHeight * 0.25, 10), ‘50%’ : parseInt(docHeight * 0.50, 10), ‘75%’ : parseInt(docHeight * 0.75, 10), /* Cushion to trigger 100% event in iOS */ ‘100%’: docHeight – 5 }; } function checkMarks(marks, scrollDistance, timing) { /* Check each active mark */ $.each(marks, function(key, val) { if ( $.inArray(key, cache) === -1 && scrollDistance >= val ) { sendEvent(‘Percentage’, key, scrollDistance, timing); cache.push(key); } }); } function rounded(scrollDistance) { /* Returns String */ return (Math.floor(scrollDistance/250) * 250).toString(); } function init() { bindScrollDepth(); } /* * Public Methods */ /* Reset Scroll Depth with the originally initialized options */ $.scrollDepth.reset = function() { cache = []; lastPixelDepth = 0; $window.off(‘scroll.scrollDepth’); bindScrollDepth(); }; /* Add DOM elements to be tracked */ $.scrollDepth.addElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.merge(options.elements, elems); /* If scroll event has been unbound from window, rebind */ if (!scrollEventBound) { bindScrollDepth(); } }; /* Remove DOM elements currently tracked */ $.scrollDepth.removeElements = function(elems) { if (typeof elems == “undefined” || !$.isArray(elems)) { return; } $.each(elems, function(index, elem) { var inElementsArray = $.inArray(elem, options.elements); var inCacheArray = $.inArray(elem, cache); if (inElementsArray != -1) { options.elements.splice(inElementsArray, 1); } if (inCacheArray != -1) { cache.splice(inCacheArray, 1); } }); }; /* * Throttle function borrowed from: * Underscore.js 1.5.2 * http://underscorejs.org * (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Underscore may be freely distributed under the MIT license. */ function throttle(func, wait) { var context, args, result; var timeout = null; var previous = 0; var later = function() { previous = new Date; timeout = null; result = func.apply(context, args); }; return function() { var now = new Date; if (!previous) previous = now; var remaining = wait – (now – previous); context = this; args = arguments; if (remaining

Source

Leave a Comment

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