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');
- });
- });
New Highland Bagpipe Practice Chanter Rosewood Brown Silver + 2 Practice Reeds Scottish Great Highland Bagpipe Practice Chanter Made Of Rose wood with Brown Color Silver Mounts and Mouth Piece and Out Side Smooth Glossy Finish and Bore are Polished. Rosewood Practice Chanter Natural Color Glossy Finish with 2 Practice Reeds Free