Posted - 12/29/2025 : 10:05:34
Worked out the solution with some AI help - removes the side filter bar and does not require the top filter to be used. Keeps it nicely tucked together in a popup that is hidden until clicked, works with full screen down to mobile devices. You can choose to cleanup and add the css to your style sheet if you prefer but this is a good start for anyone that is interested in this Placed just before your <!-- #include file="vsadmin/inc/incproducts.asp"--> file <!-- Trigger Text --> <div class="menutop" id="openFilter" style="cursor: pointer;">Filter Results</div>
<!-- Pop Container --> <dialog id="filterDialog" style="border:none; border-radius:8px; padding:20px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);"> <div style="text-align: right;"> <button id="closeFilter" style="cursor:pointer; background:none; border:none; font-weight:bold;">[X] Close</button> </div> <!-- Include File --> <div class="filter-content"> <!--#include file="vsadmin/inc/incsidefilter.asp"--> </div> </dialog> Then at the bottom of the page, just before the closing page tag <script> const filterModal = document.getElementById('filterDialog'); const openBtn = document.getElementById('openFilter'); const closeBtn = document.getElementById('closeFilter');
// Open the popup when "Filter Results" is clicked openBtn.addEventListener('click', () => { filterModal.showModal(); });
// Close the popup closeBtn.addEventListener('click', () => { filterModal.close(); });
// Optional: Close if user clicks outside the white box filterModal.addEventListener('click', (e) => { if (e.target === filterModal) filterModal.close(); }); </script>

|