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'; }); } }); }); });
Here is an issue I heard about that came up recently on getting a vane pump pumping: "There is a 2 section vane pump with new cartridges. The problem is, 1 cartridge has no oil coming out when we crack open the hydraulic line going to the control valve. When we tighten the fitting the hose reacts as if it has pressure in it. When we crack it again - nothing." First off make sure the cartridge is the correct rotation. If it is in the correct rotation then this is most likely a priming issue. You see, unlike most other hydraulic pumps, vane pumps can be tricky to get pumping. The vanes in a vane pump don't have springs to hold the vanes in contact with the cam ring. Centrifugal force is supposed to throw the vanes out against the cam-ring. But it doesn't always work out that way. A downstream resistance is sometimes necessary to create back-pressure to hydraulically actuate the vanes against the cam ring, so the pump primes. The solution is usually simple enough. Ensure there's a head of oil above the outlet port. If the valve bank is below the pump, then head can be achieved by routing the hose so that at some point, it extends a foot or so higher than the outlet port. Till next time, Craig Cook

Copyright © 2024. All Rights Reserved.