document.addEventListener('DOMContentLoaded', function() { const tables = document.querySelectorAll('table'); tables.forEach(table => { const elements = table.querySelectorAll('*'); elements.forEach(element => { const bgcolor = element.getAttribute('bgcolor'); if (bgcolor) { // Convert bgcolor to RGB const r = parseInt(bgcolor.slice(1,3), 16); const g = parseInt(bgcolor.slice(3,5), 16); const b = parseInt(bgcolor.slice(5,7), 16); // Calculate luminance const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255; // Find all spans within this element const spans = element.querySelectorAll('span'); spans.forEach(span => { // Set text color based on background luminance span.style.color = luminance > 0.5 ? '#000000' : '#FFFFFF'; }); } }); }); });

  NPT Pipe Cap

HnF SKU Thread (inch) A (inch) Hex (inch)
HF213P-02 1/8 0.47 0.56
HF213P-04 1/4 0.60 0.68
HF213P-06 3/8 0.69 0.81
HF213P-08 1/2 0.78 0.93
HF213P-12 3/4 0.94 1.25
HF213P-16 1 1.13 1.50
  213P-Dimensions

Buy Here

HoseandFitings.Com Logo

Copyright © 2024. All Rights Reserved.