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'; }); } }); }); });

Jigs and Fixtures to Improve Production

Jigs and Fixtures to Improve Production

August 22, 2016

Check out this packing jig used for production This is a production jig we are building for a…

Jigs and fixtures, packing jigs, productions jigs

By webadmin

Our hydraulic testing beast

Our hydraulic testing beast

August 14, 2016

Say hello to our “beast”! Okay so it isn’t exactly a beast BUT it is a huge bench…

hydraulic fittings, hydraulic hoses, hydraulic pumps, hydraulic repairs, hydraulics

By webadmin

Minimize the Chance of Tapered Threads From Leaking

Minimize the Chance of Tapered Threads From Leaking

July 31, 2016

Tapered thread connections can have a tendency to leak. If you have to use tapered thread connections, there…

taper threads

By webadmin

The Best Time for a Maintenance and Reliability Audit

The Best Time for a Maintenance and Reliability Audit

July 24, 2016

The BEST time to carry out a maintenance and reliability audit on a piece of hydraulic equipment is BEFORE you…

hydraulic repairs, Hydraulic system, hydraulics

By webadmin

Part 3 of 3: Hydraulic Troubleshooting Guide 101

Part 3 of 3: Hydraulic Troubleshooting Guide 101

July 17, 2016

Here’s the final part of our 3 part series on hydraulic trouble shooting 101.  STEP 5 – Relief…

Uncategorized

By webadmin

Part 2 Of Hydraulic Troubleshooting Guide 101

Part 2 Of Hydraulic Troubleshooting Guide 101

July 10, 2016

Here’s part 2 of our 3 part series on hydraulic trouble shooting 101.  a  STEP 3 – Pump…

hydraulic repairs

By webadmin

Be Sociable, Share!

Copyright © 2024. All Rights Reserved.