const setUpStickyHeader = () => { let header = document.querySelector("#header"); toggleHeaderStickiness = () => { if (window.scrollY > 0) { header.classList.add("sticky-header"); } else { header.classList.remove("sticky-header"); } } window.addEventListener("scroll", toggleHeaderStickiness); } window.addEventListener("DOMContentLoaded", setUpStickyHeader); const setUpBurgerMenu = () => { console.log("burger menu setup initiated..."); let burger = document.querySelector("#primary-menu-trigger"); let fries = document.querySelectorAll("#primary-menu > ul") const toggleFries = () => { console.log("fry toggling initiated..."); for (var i = 0; i < fries.length; i++) { console.log("enter the fry loop..."); var fry = fries[i]; if (fry.classList.contains("show")) { fry.classList.remove("show"); console.log("showed fry ", i); } else { fry.classList.add("show"); console.log("hid fry ", i); } } } burger.addEventListener("click", toggleFries); } window.addEventListener("DOMContentLoaded", setUpBurgerMenu); // This opens the search bar window.addEventListener("DOMContentLoaded", function(){ document.querySelector("#top-search-trigger").addEventListener("click", function(){document.querySelector("body").classList.toggle("top-search-open")}) }); // The body tag has to have this for the right header styles to get applied, and since we can't edit the body tag directly through Divi, this is easier than editing theme files... window.addEventListener("DOMContentLoaded", function() { document.querySelector("body").classList.add("stretched"); })
Managing the Crisis Effectively

Managing the Crisis Effectively

How to Develop a Successful Asset Management Strategy During the Coronavirus Downturn   COVID-19 is disrupting all sectors including asset management - plants around the world are operating in emergency mode or are shut down completely. There is no hint about how long...
No turning a blind eye

No turning a blind eye

Look the other way and hope for the best? Not a good idea when managing large shutdown projects where there is always a risk of something going wrong. Huge budgets and potential profit are on the line. Only professional risk management can help identify, avoid and –...
No turning a blind eye

A new kind of networking

A new kind of networking Twice a year, T.A. Cook invites top managers from the field of maintenance to theMaintenance Benchmarks Focus Group. This exclusive forum offers participants the opportunity to exchange experience and ideas on current organizational concepts,...
Beyond Contractor Management

Beyond Contractor Management

Beyond Contractor Management Increasingly, industrial organizations and plant operators are outsourcing their maintenance work to technical contractors in order to focus on their core businesses. For thousands of years, nature has shown how partners with different...