# fluent-cart/1.6.5/assets/global.js

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.5. 2 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/assets/global.js
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.5/raw/assets/global.js
- Modified: 2026-05-14T15:41:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.5/code/assets/global.js#L10-L20`.

```javascript
document.addEventListener("DOMContentLoaded",function(){const n=document.querySelector("[data-fct-menu-toggle]");if(!n)return;const o=n.parentNode,t=o.querySelector("[data-fct-offcanvas-menu]"),c=o.querySelector("[data-fct-offcanvas-menu-close]"),e=o.querySelector("[data-fct-offcanvas-menu-overlay]"),a=()=>{e&&e.classList.remove("active"),t&&t.classList.remove("open"),document.body.style.overflow=""};n.addEventListener("click",()=>{!t||!e||(e.classList.toggle("active"),t.classList.toggle("open"),document.body.style.overflow="hidden")}),c&&c.addEventListener("click",a),e&&e.addEventListener("click",a)});

```
