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

Uncategorized

Coming on Location to Help You Out!

Coming on Location to Help You Out!

August 28, 2016

A monster machine that bends 10″ pipe This machine is being built to bend 10″ round pipe. Tim…

hydraulics, Uncategorized

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

Cost of Air Leaks

Cost of Air Leaks

June 5, 2016

Air leaks are much easier to ignore than oil leaks because they don’t draw attention to themselves in…

Hydraulic problems, Uncategorized

By webadmin

Cheat Sheets to Make Your Job Easier!

Cheat Sheets to Make Your Job Easier!

April 24, 2016

Do you use our cheat sheets for fittings and components? The cheat sheets are ‘to scale’ so you…

Uncategorized

By webadmin

“The Beast” We Use to Test All Repairs

“The Beast” We Use to Test All Repairs

July 12, 2015

Check out “The Beast”                 Okay so it isn’t exactly a…

hydraulic repairs, Uncategorized

By webadmin

Copyright © 2024. All Rights Reserved.