Industrial Valves

Check Valves

Check valves are one-way valves that automatically stop backflow, protecting pumps, piping, and water supplies from contamination and reverse flow. Ï㽶ÊÓƵ carries swing, ball, spring, and double check valves in brass, stainless, and PVC, backed by over 50 years of valve expertise.

All Check Valves

977 products
. One opener variable + one Tab // clamp + restore-on-every-close-path; all close routes already funnel through // closeModal(), so restoration is centralized and listeners are not duplicated. var vmRfqOpener = null; function vmRfqTabbables() { var sel = 'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), iframe, [tabindex]:not([tabindex="-1"])'; return Array.prototype.filter.call(overlay.querySelectorAll(sel), function (el) { return el.offsetParent !== null || el === document.activeElement; }); } function openModal() { vmRfqOpener = document.activeElement; // A successful submit swaps the form out for the success panel and nothing used to put // it back, so the NEXT open showed a dead "thanks" panel with no form — the highest-value // lead on the site, dropped silently. Latent while the only openers scrolled out of view; // routine now that the sticky bar keeps an opener on screen for the whole grid. if (success && success.style.display === 'block') { success.style.display = 'none'; if (formWrap) formWrap.style.display = ''; if (form) { if (typeof form.reset === 'function') form.reset(); var vmReopenBtn = form.querySelector('[type="submit"]'); if (vmReopenBtn) { vmReopenBtn.disabled = false; var vmReopenLabel = vmReopenBtn.getAttribute('data-vm-label'); if (vmReopenLabel) vmReopenBtn.textContent = vmReopenLabel; } } var vmReopenErr = document.getElementById('vm-b2b-error'); if (vmReopenErr) vmReopenErr.style.display = 'none'; } overlay.classList.add('open'); document.body.style.overflow = 'hidden'; // ONE TOKEN PER SUBMIT: the submit handler already resets the widget after every // response, so on reopen it normally holds a fresh, valid token (or one is solving). // Reset here ONLY if it still holds the token already sent (a failed reset): an // unconditional reset would discard a valid token, and a visitor shown the checkbox // would have to tick it again or the quote goes out with none (flagged by the API). if (window.vmTurnstileRender) window.vmTurnstileRender(); // widget can't render while hidden var vmTsOpenBox = overlay.querySelector('.cf-turnstile'); if (vmTsOpenBox && window.vmTurnstile && window.vmTurnstile.isSpent(vmTsOpenBox)) window.vmTurnstile.reset(vmTsOpenBox); closeBtn.focus(); } function closeModal() { overlay.classList.remove('open'); document.body.style.overflow = ''; // document.contains() is still true for a visibility:hidden node, so when the opener was the // sticky bar's CTA and the bar has since hidden, .focus() silently no-ops and focus falls to //

Ï㽶ÊÓƵ

— defeating the focus-parity fix this guard exists for. offsetParent is null while // an element is hidden, so it distinguishes the two. if (vmRfqOpener && typeof vmRfqOpener.focus === 'function' && document.contains(vmRfqOpener) && vmRfqOpener.offsetParent !== null) { vmRfqOpener.focus(); } vmRfqOpener = null; } if (overlay && closeBtn) { openBtns.forEach(function (btn) { btn.addEventListener('click', openModal); }); closeBtn.addEventListener('click', closeModal); overlay.addEventListener('click', function (e) { if (e.target === overlay) closeModal(); }); document.addEventListener('keydown', function (e) { if (e.key === 'Escape' && overlay.classList.contains('open')) closeModal(); // Tab clamp: cycle within the open dialog in both directions. if (e.key === 'Tab' && overlay.classList.contains('open')) { var t = vmRfqTabbables(); if (!t.length) return; var first = t[0], last = t[t.length - 1]; if (e.shiftKey && (document.activeElement === first || !overlay.contains(document.activeElement))) { e.preventDefault(); last.focus(); } else if (!e.shiftKey && (document.activeElement === last || !overlay.contains(document.activeElement))) { e.preventDefault(); first.focus(); } } }); } // ── QUOTE-REQUEST (RFQ) FORM SUBMIT ── var form = document.getElementById('vm-b2b-quote-form'); var success = document.getElementById('vm-b2b-success'); var formWrap = document.getElementById('vm-b2b-modal-form-wrap'); if (form) { var VM_QUOTE_API = "https:\/\/valveman-storefront-api.vercel.app\/api\/quote"; var VM_FALLBACK = ' Please try again, call 888-825-8800, or email info@valveman.com.'; function vmQuoteError(html) { var err = document.getElementById('vm-b2b-error'); if (!err) { err = document.createElement('p'); err.id = 'vm-b2b-error'; err.setAttribute('role', 'alert'); err.style.cssText = 'color:#b91c1c !important;background:#fef2f2 !important;border:1px solid #fecaca;border-radius:6px;padding:10px 12px;margin:10px 0 0;font-size:.9rem;'; form.appendChild(err); } err.innerHTML = html; err.style.display = 'block'; } /* Phone error sits right under the phone field (not after Submit, which can be off-screen), tied to it with aria-describedby + aria-invalid, and clears as soon as the visitor types. */ // keep: another message is showing too (name/email), so leave it up and don't move focus. function vmPhoneError(el, msg, keep) { if (!el) return; var id = (el.id || 'vm-quote-phone') + '-err'; var p = document.getElementById(id); var desc = (el.getAttribute('aria-describedby') || '').split(' ').filter(function (t) { return t && t !== id; }); if (!msg) { if (p) p.style.display = 'none'; el.removeAttribute('aria-invalid'); el.style.removeProperty('border-color'); if (desc.length) el.setAttribute('aria-describedby', desc.join(' ')); else el.removeAttribute('aria-describedby'); return; } if (!p) { p = document.createElement('p'); p.id = id; p.className = 'vm-phone-err'; p.setAttribute('role', 'alert'); p.style.cssText = 'color:#b91c1c !important;font-size:.85rem;font-weight:600;margin:4px 0 0;'; el.insertAdjacentElement('afterend', p); el.addEventListener('input', function () { vmPhoneError(el, ''); }); } p.textContent = msg; p.style.display = 'block'; el.setAttribute('aria-invalid', 'true'); el.style.setProperty('border-color', '#b91c1c', 'important'); desc.push(id); el.setAttribute('aria-describedby', desc.join(' ')); if (keep) return; var stale = form.querySelector('[role="alert"]:not(.vm-phone-err)'); if (stale) stale.style.display = 'none'; el.focus(); } form.addEventListener('submit', function (e) { e.preventDefault(); var data = new FormData(form); var body = {}; data.forEach(function (v, k) { body[k] = v; }); body.source_url = window.location.href; // The form is novalidate, so enforce the API's required fields here for inline feedback. // Phone is required on every lead form (Gil, Oct 2026). var vmPhone = String(body.phone || '').trim(); var vmPhoneEl = form.querySelector('[name="phone"]'); var vmPhoneMsg = (!/^[0-9()+\-.\s]{7,}$/.test(vmPhone) || vmPhone.replace(/\D/g, '').length < 7) ? (vmPhone ? 'Please enter a valid phone number.' : 'Please add a phone number so we can reach you.') : ''; if (!String(body.name || '').trim() || !String(body.email || '').trim()) { vmQuoteError('Please fill in your name and email so we can get back to you.'); // Show a bad phone at the same time, so the visitor isn't sent round twice. vmPhoneError(vmPhoneEl, vmPhoneMsg, true); return; } if (vmPhoneMsg) { vmPhoneError(vmPhoneEl, vmPhoneMsg); return; } vmPhoneError(vmPhoneEl, ''); var submitBtn = form.querySelector('[type="submit"]'); if (submitBtn) { submitBtn.disabled = true; if (!submitBtn.getAttribute('data-vm-label')) submitBtn.setAttribute('data-vm-label', submitBtn.textContent); submitBtn.textContent = 'Sending…'; } // Bot check — contract in assets/vm-turnstile.js (window.vmTurnstile). Scoped to THIS // form's widget. Wait up to 4s (wall clock) for an UNSPENT token. The API flags a // missing token exactly like a spent one ("FAILED BOT CHECK"), so sending none is only // the last resort, chosen over refusing (which would lose the lead). Replace the // FormData copy of the hidden cf-turnstile-response input (it can still hold the // last, spent token), mark the token spent, and reset after EVERY response below. var vmTsBox = form.querySelector('.cf-turnstile'); // Reset only while the widget holds the token already sent: never discard a valid one. var vmTsReset = function () { if (vmTsBox && window.vmTurnstile && window.vmTurnstile.isSpent(vmTsBox)) window.vmTurnstile.reset(vmTsBox); }; if (vmTsBox && window.vmTurnstile) window.vmTurnstile.whenToken(vmTsBox, 4000, vmQuoteSend); else vmQuoteSend(null); function vmQuoteSend(vmTsToken) { if (vmTsToken !== null) { delete body['cf-turnstile-response']; if (vmTsToken) { body.turnstile_token = vmTsToken; body['cf-turnstile-response'] = vmTsToken; window.vmTurnstile.spend(vmTsBox, vmTsToken); } } fetch(VM_QUOTE_API, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) }) .then(function (r) { return r.json().catch(function () { return {}; }).then(function (j) { if (!r.ok || !j.ok) { var httpErr = new Error('HTTP ' + r.status); httpErr.status = r.status; httpErr.fields = j.fields; throw httpErr; } vmTsReset(); var err = document.getElementById('vm-b2b-error'); if (err) err.style.display = 'none'; formWrap.style.display = 'none'; success.style.display = 'block'; }); }) .catch(function (submitErr) { vmTsReset(); // HTTP error or network failure — the token sent is spent either way // Failure must NOT look like success — quote requests are the highest-value // lead on the site. Show an inline error with the phone/email fallback. if (submitBtn) { submitBtn.disabled = false; if (submitBtn.getAttribute('data-vm-label')) submitBtn.textContent = submitBtn.getAttribute('data-vm-label'); } if (submitErr && submitErr.status === 429) { vmQuoteError('Too many requests from this connection — please wait a minute and try again, or call 888-825-8800.'); } else if (submitErr && submitErr.status === 400) { if (submitErr.fields && submitErr.fields.indexOf('turnstile') !== -1) { vmQuoteError('The bot check didn\'t pass.' + VM_FALLBACK); } else { vmQuoteError('Please double-check your name and email.' + VM_FALLBACK); } } else { vmQuoteError('Something went wrong sending your request.' + VM_FALLBACK); } }); } }); } // ── ADD TO CART BUTTONS ── // Delegated so cards appended by infinite scroll keep a working button // (per-button binding only covered the first page — buttons past page 1 were dead). if (!window.__vmAtcDelegated) { window.__vmAtcDelegated = true; document.addEventListener('click', function (e) { var btn = e.target.closest('.vm-brand-atc-btn'); if (!btn) return; e.preventDefault(); var variantId = btn.getAttribute('data-variant-id'); if (!variantId) return; btn.textContent = VM_T.adding; btn.disabled = true; fetch('/cart/add.js', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ id: variantId, quantity: 1 }) }) .then(function (r) { return r.json(); }) .then(function () { btn.textContent = VM_T.added; setTimeout(function () { btn.textContent = VM_T.atc; btn.disabled = false; }, 2000); // Task 5: open the cart drawer so the add is visible (header also listens for cart:update) if (window.vmOpenCartDrawer) { window.vmOpenCartDrawer(); } else { document.dispatchEvent(new CustomEvent('cart:update')); } }) .catch(function () { var url = btn.getAttribute('data-product-url'); if (url) window.location.href = url; }); }); } // ── Add-to-Quote card buttons removed — Task 3. ── // ── FACETS + SORT: auto-submit on change; manage parents-only default ── // One GET form carries all active filter params + sort_by. The hidden input // #vm-parent-default keeps is_series_parent=1 on EVERY request, Size included // (Sep 2026 — parents carry specs.size, so the family grid stays a family grid // when a Size is picked). While S&D doesn't expose the filter, the input isn't // rendered at all and this is a no-op. (function () { var facetForm = document.getElementById('vm-cat-faceted-search'); if (!facetForm) return; // Scroll-position memory lives in snippets/vm-facet-scroll-restore.liquid (rendered // above this script); it defines window.vmRememberScroll used below. var parentInput = document.getElementById('vm-parent-default'); function syncParentDefault() { if (!parentInput) return; // Sep 2026: parents-only now HOLDS through a Size selection. Series parents // carry specs.size (every size the family is offered in), so Search & // Discovery can answer "which families come in 1/2\"" natively — picking a // Size narrows the family grid instead of swapping it for a mixed // parent+child one. The hidden input is therefore never disabled. Kept as a // function so the policy stays a one-line change in either direction. parentInput.disabled = false; } facetForm.addEventListener('change', function (e) { // Price number inputs should NOT auto-submit on each keystroke — wait for blur if (e.target && e.target.type === 'number') return; syncParentDefault(); if (window.vmRememberScroll) window.vmRememberScroll(); facetForm.submit(); }); // Price inputs submit on blur (user has finished typing) facetForm.querySelectorAll('input[type="number"]').forEach(function (inp) { inp.addEventListener('blur', function () { syncParentDefault(); if (window.vmRememberScroll) window.vmRememberScroll(); facetForm.submit(); }); }); // Also handle the sort select which is outside the sidebar form but uses form="vm-cat-faceted-search" var sortSelect = document.getElementById('vm-sort-select'); if (sortSelect) { sortSelect.addEventListener('change', function () { syncParentDefault(); if (window.vmRememberScroll) window.vmRememberScroll(); facetForm.submit(); }); } // Sync on load (handles browser back/forward with checked state restored) syncParentDefault(); })(); // ── SHOW-MORE TOGGLES (sidebar facets) ── // Each facet with >8 values gets a "+ Show N more" button. Clicking it expands // the hidden .vm-facet-more div via max-height transition (CLS-safe, all values // pre-rendered in DOM). document.querySelectorAll('.vm-cat-facet__showmore').forEach(function (btn) { var targetId = btn.getAttribute('data-target'); var target = document.getElementById(targetId); if (!target) return; // Store the remaining count from the button text to restore it var remainingCount = target.querySelectorAll('li').length; btn.addEventListener('click', function () { var expanded = btn.getAttribute('aria-expanded') === 'true'; if (expanded) { target.style.maxHeight = '0'; target.setAttribute('aria-hidden', 'true'); btn.setAttribute('aria-expanded', 'false'); btn.textContent = '+ Show ' + remainingCount + ' more'; } else { // scrollHeight gives the full natural height of the element target.style.maxHeight = target.scrollHeight + 'px'; target.removeAttribute('aria-hidden'); btn.setAttribute('aria-expanded', 'true'); btn.textContent = '- Show fewer'; } }); }); // ── MOBILE SIDEBAR DRAWER ── (function () { var trigger = document.getElementById('vm-cat-filter-trigger'); var sidebar = document.getElementById('vm-cat-sidebar'); var closeSbBtn = document.getElementById('vm-cat-sidebar-close'); var backdrop = document.getElementById('vm-cat-overlay'); if (!trigger || !sidebar) return; // Sep 2026 (Gil): arm the one-shot Filter "jiggle" (vm-brand.css) only once the // button is fully on screen, so it never plays unseen below the fold. The 2s delay // runs from that moment. On desktop the button is display:none and never arms. // Oct 2026 (Gil): jiggle only until the shopper picks their first filter. A // shopper-set filter.* param in the URL (not the hidden parents-only default) // or any change inside the filter panel marks Filter as found; that is kept in // localStorage, so the button never jiggles again on later pages or visits. var filterFound = false; try { new URLSearchParams(window.location.search).forEach(function (v, k) { if (k.indexOf('filter.') === 0 && k !== 'filter.p.m.custom.is_series_parent' && v !== '') filterFound = true; }); if (filterFound) localStorage.setItem('vmFilterUsed', '1'); else filterFound = localStorage.getItem('vmFilterUsed') === '1'; } catch (e) {} sidebar.addEventListener('change', function () { trigger.classList.remove('vm-cat-filter-trigger--jiggle'); try { localStorage.setItem('vmFilterUsed', '1'); } catch (e) {} }); if (!filterFound && 'IntersectionObserver' in window) { var jiggleIO = new IntersectionObserver(function (entries) { if (!entries[0].isIntersecting) return; trigger.classList.add('vm-cat-filter-trigger--jiggle'); jiggleIO.disconnect(); }, { threshold: 1 }); jiggleIO.observe(trigger); } function openSidebar() { sidebar.classList.add('vm-cat-sidebar--open'); if (backdrop) backdrop.classList.add('vm-cat-overlay--visible'); document.body.style.overflow = 'hidden'; trigger.setAttribute('aria-expanded', 'true'); sidebar.removeAttribute('aria-hidden'); // Move focus into the sidebar for keyboard/screen-reader users. // `summary` comes FIRST (independent review of PR #164, Sep 2 2026): the facets are // now
, and the old selector picked the first checkbox — which, on any // collection where the first facet is not an open Size facet, sits inside a CLOSED //
. Focus then landed on an element the shopper could not see. The facet // header is always visible and keyboard-operable, so it is the right first stop. // querySelector returns the first match in DOCUMENT order, not selector-list order, so // listing summary first did nothing — it only worked because nothing focusable precedes // the first
today. Ask for the summary explicitly, then fall back (round-8 review). var firstFocusable = sidebar.querySelector('summary') || sidebar.querySelector('input:not([disabled]), button:not(#vm-cat-sidebar-close), select, a'); if (firstFocusable) firstFocusable.focus(); } function closeSidebar() { sidebar.classList.remove('vm-cat-sidebar--open'); if (backdrop) backdrop.classList.remove('vm-cat-overlay--visible'); document.body.style.overflow = ''; trigger.setAttribute('aria-expanded', 'false'); trigger.focus(); } trigger.addEventListener('click', openSidebar); if (closeSbBtn) closeSbBtn.addEventListener('click', closeSidebar); if (backdrop) backdrop.addEventListener('click', closeSidebar); document.addEventListener('keydown', function (e) { if (e.key === 'Escape' && sidebar.classList.contains('vm-cat-sidebar--open')) closeSidebar(); }); // On desktop (>= 768px) sidebar is always visible — remove aria-hidden function onResize() { if (window.innerWidth >= 768) { sidebar.removeAttribute('aria-hidden'); // Don't lock body scroll on resize from mobile open state if (sidebar.classList.contains('vm-cat-sidebar--open')) { sidebar.classList.remove('vm-cat-sidebar--open'); if (backdrop) backdrop.classList.remove('vm-cat-overlay--visible'); document.body.style.overflow = ''; trigger.setAttribute('aria-expanded', 'false'); } } } window.addEventListener('resize', onResize, { passive: true }); onResize(); })(); // ── MOBILE SORT RELOCATION REMOVED (Task 18, Jul 23) ────────────────────── // The sort