amp-web-push-widget button.amp-subscribe { display: inline-flex; align-items: center; border-radius: 5px; border: 0; box-sizing: border-box; margin: 0; padding: 10px 15px; cursor: pointer; outline: none; font-size: 15px; font-weight: 500; background: #4A90E2; margin-top: 7px; color: white; box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.5); -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } .amp-logo amp-img{width:190px} .amp-menu input{display:none;}.amp-menu li.menu-item-has-children ul{display:none;}.amp-menu li{position:relative;display:block;}.amp-menu > li a{display:block;} .icon-widgets:before {content: "\e1bd";}.icon-search:before {content: "\e8b6";}.icon-shopping-cart:after {content: "\e8cc";}
Difference (inches) | US Cup | UK Cup | EU Cup |
---|---|---|---|
0-1 | AA | AA | AA |
1-2 | A | A | A |
2-3 | B | B | B |
3-4 | C | C | C |
4-5 | D | D | D |
5-6 | DD/E | DD | E |
6-7 | DDD/F | E | F |
7-8 | G | F | G |
// Clear previous results errorElement.textContent = ''; resultElement.style.display = 'none'; conversionElement.style.display = 'none';
// Validate inputs if (isNaN(bustSize) || isNaN(bandSize)) { errorElement.textContent = 'Please enter valid numbers for both measurements'; return; } if (bustSize <= 0 || bandSize <= 0) { errorElement.textContent = 'Measurements must be positive numbers'; return; } if (bustSize <= bandSize) { errorElement.textContent = 'Bust measurement should be larger than band measurement'; return; } // Convert to inches if necessary let bustInInches = bustUnit === 'cm' ? bustSize / 2.54 : bustSize; let bandInInches = bandUnit === 'cm' ? bandSize / 2.54 : bandSize; // Calculate difference and round band size const difference = bustInInches - bandInInches; const roundedBand = Math.round(bandInInches); const finalBand = roundedBand % 2 === 0 ? roundedBand : roundedBand - 1; // Determine US cup size let usCup = ''; if (difference < 1) usCup = 'AA'; else if (difference < 2) usCup = 'A'; else if (difference < 3) usCup = 'B'; else if (difference < 4) usCup = 'C'; else if (difference < 5) usCup = 'D'; else if (difference < 6) usCup = 'DD/E'; else if (difference < 7) usCup = 'DDD/F'; else if (difference < 8) usCup = 'G'; else if (difference < 9) usCup = 'H'; else if (difference < 10) usCup = 'I'; else if (difference < 11) usCup = 'J'; else usCup = 'K+'; // Determine UK cup size let ukCup = ''; if (difference < 1) ukCup = 'AA'; else if (difference < 2) ukCup = 'A'; else if (difference < 3) ukCup = 'B'; else if (difference < 4) ukCup = 'C'; else if (difference < 5) ukCup = 'D'; else if (difference < 6) ukCup = 'DD'; else if (difference < 7) ukCup = 'E'; else if (difference < 8) ukCup = 'F'; else if (difference < 9) ukCup = 'FF'; else if (difference < 10) ukCup = 'G'; else if (difference < 11) ukCup = 'GG'; else ukCup = 'H+'; // Show results resultElement.innerHTML = `
US Size: ${finalBand}${usCup}
UK Size: ${finalBand}${ukCup}
EU Band Size: ${Math.round(bandSize)}
`; resultElement.style.display = 'block';
// Show conversion conversionElement.innerHTML = `
FR/BE/ES: ${Math.round(bandSize + 10)}${usCup}
AU/NZ: ${finalBand - 22}${ukCup}
`; conversionElement.style.display = 'block'; }