(function() {const configuration = {}; const fragmentElement = document.querySelector('#fragment-4d80be60-da00-07ec-5f52-fe52dd20e51f'); const fragmentEntryLinkNamespace = 'tzjd'; const fragmentNamespace = 'tzjd'; const layoutMode = 'view'; const editMode = layoutMode === 'edit'; // Event listener to hide the preloader when the page and all assets are fully loaded window.addEventListener('load', function() { // Get the desktop-tab element // const desktopTab = document.querySelector('.desktop-tab'); // Show the desktop-tab element by changing its display property // desktopTab.style.display = 'block'; //hideGlobalPreloader(); }); if(editMode){ hideLoader(); } window.onload = function() { hideLoader(); }; setTimeout(function() { hideLoader(); }, 4000); function hideLoader(){ const loader = document.getElementById("loader"); loader.style.display = "none"; // Hide the loader } ;}());