//

No Banner to display

Like Us on Facebook

Celebrate Your Lunch [Video]

var bptVideoPlayer = document.getElementById(“bptVideoPlayer”);
if (bptVideoPlayer) {
var cssText = “width: 100%;”;
cssText += ” background: url(‘” + bptVideoPlayer.getAttribute(“poster”) + “‘);”;
cssText += ” -webkit-background-size: cover;”;
cssText += ” -moz-background-size: cover;”;
cssText += ” -o-background-size: cover;”;
cssText += ” background-size: cover;”;
bptVideoPlayer.style.cssText = cssText;
bptVideoPlayer.setAttribute(“poster”, “http://www.brandpointcontent.com/printsite/images/spacer.gif”);
var bptVideoPlayerContainer = document.getElementById(“bptVideoPlayerContainer”);
if (bptVideoPlayerContainer) {
setTimeout(function () {
bptVideoPlayerContainer.style.cssText = “display: block; position: relative; margin-bottom: 10px;”;
var isIE = navigator.userAgent.match(/ MSIE(([0 – 9] +)(\.[0 – 9] +) ?) /);
var isEdge = navigator.userAgent.indexOf(“Edge”) > -1 || navigator.userAgent.indexOf(“Trident”) > -1;
if (isIE || isEdge) {
fixVideoPoster();
}
}, 1000);
}
var bptVideoPlayButton = document.getElementById(“bptVideoPlayButton”);
if (bptVideoPlayButton) {
bptVideoPlayButton.addEventListener(“click”, function () {
bptVideoPlayer.play();
}, false);
bptVideoPlayer.addEventListener(“play”, function () {
bptVideoPlayButton.style.cssText = “display: none;”;
}, false);
}
var mainImage = document.getElementById(“mainImageImgContainer_sm”);
if (mainImage) {
mainImage.style.cssText = “display: none;”;
}
var mainImage = document.getElementById(“photo-noresize”);
if (mainImage) {
mainImage.style.cssText = “display: none;”;
}
var assetGallery = document.getElementsByClassName(“asset_gallery”)[0];
if (assetGallery) {
assetGallery.style.cssText = “display: none;”;
}
var assetGallery = document.getElementsByClassName(“trb_article_leadart”)[0];
if (assetGallery) {
assetGallery.style.cssText = “display: none;”;
}
var assetGallery = document.querySelectorAll(“[src=’http://images.brandpointcontent.s3.amazonaws.com/31682670_web.jpg’]”)[0]; if (assetGallery) {
assetGallery.style.cssText = “display: none;”;
}
}
function fixVideoPoster() {
var videoPlayer = document.getElementById(“bptVideoPlayer”);
var videoPoster = document.getElementById(“bptVideoPoster”);
fixVideoPosterPosition(videoPlayer, videoPoster, true);
window.onresize = function() {
fixVideoPosterPosition(videoPlayer, videoPoster);
};
videoPoster.onclick = function() {
videoPlayer.play();
videoPoster.style.display = “none”;
};
videoPlayer.onplay = function() {
videoPoster.style.display = “none”;
};
}
function fixVideoPosterPosition(videoPlayer, videoPoster, display) {
setTimeout(function () {
var videoPosition = videoPlayer.getBoundingClientRect();
videoPoster.style.position = “absolute”;
videoPoster.style.top = “0”;
videoPoster.style.left = “0”;
videoPoster.style.width = videoPlayer.offsetWidth + “px”;
videoPoster.style.height = (videoPlayer.offsetHeight + 20) + “px”;
if (display) {
videoPoster.style.display = “inline”;
}
}, 1010);
}

Monster Munch, Grateful Gobble, Snow Delicious …with these ideas and more, you can celebrate lunch time — and the seasons — with the help of California Ripe Olives. For even more inspiration, check out CalOlive.org.


QR Code - Take this post Mobile!
Use this unique QR (Quick Response) code with your smart device. The code will save the url of this webpage to the device for mobile sharing and storage.

You must be logged in to post a comment Login