Description
- P.when('A','ready').execute(function(A) {
- function setFeatureBulletsExpanderCollapsedHeight() {
- var $ = A.$;
- var PRODUCT_OVERVIEW_V2_FEATURE_MAX_HEIGHT = 540;
- var FEATUREBULLETS_TOP_MARGIN_OFFSET_CORRECTION = 12;
- var EXPANDER_HEADING_HEIGHT = 20;
- var expanderElement = $("#pov2FeatureBulletsExpander");
- if(expanderElement !== null) {
- var productOverviewFeatureElement = $('#productOverview_feature_div');
- var featureBulletsExpanderContent = $('#pov2FeatureBulletsExpanderContent');
- var featureBulletsExpanderHeading = $('#pov2FeatureBulletsExpanderHeading');
- var expanderContentHeight = featureBulletsExpanderContent.height();
- var productOverviewFeatureElementHeight = productOverviewFeatureElement !== null ? productOverviewFeatureElement.height() : 0;
- var expanderCollapsedHeight = Math.min(PRODUCT_OVERVIEW_V2_FEATURE_MAX_HEIGHT - productOverviewFeatureElementHeight - FEATUREBULLETS_TOP_MARGIN_OFFSET_CORRECTION, expanderContentHeight);
- if (expanderContentHeight === expanderCollapsedHeight) {
- featureBulletsExpanderContent.css("padding-bottom", "0px");
- }
- expanderCollapsedHeight = expanderCollapsedHeight < EXPANDER_HEADING_HEIGHT ? EXPANDER_HEADING_HEIGHT : expanderCollapsedHeight;
- expanderElement.attr("data-a-expander-collapsed-height", expanderCollapsedHeight);
- featureBulletsExpanderContent.css('display', '');
- featureBulletsExpanderHeading.css('display', '');
- }
- }
- function logFeatureBulletsPOv2ExpanderMetric(metric) {
- if (typeof window.ue !== 'undefined' && typeof metric !== 'undefined' && typeof window.ue.count !== 'undefined') {
- window.ue.count(metric, ((window.ue.count(metric) || 0) + 1));
- }
- }
- setFeatureBulletsExpanderCollapsedHeight();
- A.on('a:expander:pov2FeatureBulletsExpander:toggle:expand', function(data) {
- logFeatureBulletsPOv2ExpanderMetric('featureBulletsPOv2DesktopExpanderExpanded');
- });
- A.on('a:expander:pov2FeatureBulletsExpander:toggle:collapse', function(data) {
- logFeatureBulletsPOv2ExpanderMetric('featureBulletsPOv2DesktopExpanderCollapsed');
- });
- });
DII (Design Imports) is a wholesale company with over 25 years of experience designing, manufacturing, and delivering quality products to our customers. We create fashionable, fun, and functional kitchen textiles, table linens, gifts and decorative accessories for the home year round. Design Imports offers a fresh, innovative line of home textiles, ceramics, tabletop, gifts, & home decor. Whether for Spring & Summer or for Fall & Holiday, we offer an inspired assortment of seasonal lifestyle collections in the hottest trends, colors, & themes. Year round, select from a wide range of regional and themed collections, and shop our Everyday Basics all through the year.