“use strict”;

var positionImage = function positionImage(imageEl) {
var imageDimensions = imageEl.dataset.imageDimensions.split(‘x’);
var originalWidth = imageDimensions[0];
var originalHeight = imageDimensions[1];
var focalPoint = imageEl.dataset.imageFocalPoint.split(‘,’);
var focalPointX = focalPoint[0];
var focalPointY = focalPoint[1];
var parentNode = imageEl.parentNode;

var scale = function () {
var imageRatio = originalWidth / originalHeight;
var parentClientSize = {
height: parentNode.clientHeight,
width: parentNode.clientWidth
};
var parentRatio = parentClientSize.width / parentClientSize.height;

if (imageRatio > parentRatio) {
return parentClientSize.height / originalHeight;
}

return parentClientSize.width / originalWidth;
}();

var getRelativeOffset = function getRelativeOffset() {
var targetWidth = Math.ceil(originalWidth * scale);
var targetHeight = Math.ceil(originalHeight * scale);
var parentDimensionWidth = parentNode.offsetWidth;
var parentDimensionHeight = parentNode.offsetHeight;
var overflowWidth = targetWidth – parentDimensionWidth;
var overflowHeight = targetHeight – parentDimensionHeight;
var valueX;

if (overflowWidth === 0) {
valueX = focalPointX;
} else {
valueX = Math.max(Math.min(targetWidth * focalPointX – parentDimensionWidth * 0.5, overflowWidth), 0) / overflowWidth;
}

var valueY;

if (overflowHeight === 0) {
valueY = focalPointY;
} else {
valueY = Math.max(Math.min(targetHeight * focalPointY – parentDimensionHeight * 0.5, overflowHeight), 0) / overflowHeight;
}

return {
valueX: valueX,
valueY: valueY
};
};

var relativeOffset = getRelativeOffset();
var valueX = relativeOffset.valueX;
var valueY = relativeOffset.valueY;
imageEl.style.objectPosition = “”.concat(valueX * 100, “% “).concat(valueY * 100, “%”);
};

Liv Labs

Ultra-Premium Products

Powerful and proven hemp products designed to restore balance and wellness


Liv Labs Ultra-Premium Products - Liv Labs offers premium, powerful and proven hemp products designed to restore balance and wellness. Launched in 2018 by lifelong entrepreneurs David and Debbie Reeder, Liv Labs is focused on creating more than just high-quality products. We also offer a lucrative opportunity for motivated and passionate people with an entrepreneurial spirit.The company is founded on the idea that having products you believe in backed by a team that inspires you enables each of us to live our best lives.The products are derived from 100% organically grown U.S. hemp—certified free of THC. By employing a proprietary engineering process, we preserve nearly all beneficial hemp-derived cannabinoids and terpenes while simultaneously eliminating unwanted compounds.This commitment to excellence from the ground up—from planting to harvest to extraction and through a comprehensive three-process purification system—allows Liv Labs products to offer quality and efficacy that is unmatched in a crowded marketplace.
Black%2BLogo%2Bwith%2BSwirls.jpg

Liv Labs Ultra-Premium Products

Liv Labs offers premium, powerful and proven hemp products designed to restore balance and wellness. Launched in 2018 by lifelong entrepreneurs David and Debbie Reeder, Liv Labs is focused on creating more than just high-quality products. We also offer a lucrative opportunity for motivated and passionate people with an entrepreneurial spirit.

The company is founded on the idea that having products you believe in backed by a team that inspires you enables each of us to live our best lives.

The products are derived from 100% organically grown U.S. hemp—certified free of THC. By employing a proprietary engineering process, we preserve nearly all beneficial hemp-derived cannabinoids and terpenes while simultaneously eliminating unwanted compounds.

This commitment to excellence from the ground up—from planting to harvest to extraction and through a comprehensive three-process purification system—allows Liv Labs products to offer quality and efficacy that is unmatched in a crowded marketplace.