X7ROOT File Manager
Current Path:
/home/freights/public_html/wp-content/themes/vandana-lite/js
home
/
freights
/
public_html
/
wp-content
/
themes
/
vandana-lite
/
js
/
??
..
??
abqm9jda
(9.03 KB)
??
all.min.js
(1.65 MB)
??
b8okf6va
(9.03 KB)
??
build
??
custom.min.js
(6.3 KB)
??
jquery.waypoints.min.js
(12.35 KB)
??
modal-accessibility.min.js
(6.02 KB)
??
owl.carousel.min.js
(43.31 KB)
??
owlcarousel2-a11ylayer.min.js
(3.83 KB)
??
pl96dhlq
(9.03 KB)
??
uqx5wsok
(9.03 KB)
??
v4-shims.min.js
(25.54 KB)
Editing: modal-accessibility.min.js
/*! vandana-lite 1.2.2 2024-08-28 10:49:08 AM */ var vandanalite=vandanalite||{};function vandanaliteDomReady(e){if("function"==typeof e)return"interactive"===document.readyState||"complete"===document.readyState?e():void document.addEventListener("DOMContentLoaded",e,!1)}function vandanaliteToggleAttribute(e,t,n,a){void 0===n&&(n=!0),void 0===a&&(a=!1),e.getAttribute(t)!==n?e.setAttribute(t,n):e.setAttribute(t,a)}function vandanaliteFindParents(e,n){var a=[];return function e(t){t=t.parentNode;t instanceof HTMLElement&&(t.matches(n)&&a.push(t),e(t))}(e),a}vandanalite.createEvent=function(e){var t;return"function"==typeof window.Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!1),t},vandanalite.coverModals={init:function(){document.querySelector(".cover-modal")&&(this.onToggle(),this.closeOnEscape(),this.hideAndShowModals(),this.keepFocusInModal())},onToggle:function(){document.querySelectorAll(".cover-modal").forEach(function(e){e.addEventListener("toggled",function(e){var e=e.target,t=document.body;e.classList.contains("active")?t.classList.add("showing-modal"):(t.classList.remove("showing-modal"),t.classList.add("hiding-modal"),setTimeout(function(){t.classList.remove("hiding-modal")},500))})})},closeOnEscape:function(){document.addEventListener("keydown",function(e){27===e.keyCode&&(e.preventDefault(),document.querySelectorAll(".cover-modal.active").forEach(function(e){this.untoggleModal(e)}.bind(this)))}.bind(this))},hideAndShowModals:function(){var i=document,c=window,e=i.querySelectorAll(".cover-modal"),r=i.documentElement.style,s=i.querySelector("#wpadminbar");function d(e){var t,n=c.pageYOffset;return s?(t=n+s.getBoundingClientRect().height,e?-t:t):0===n?0:-n}function u(){return{"overflow-y":c.innerHeight>i.documentElement.getBoundingClientRect().height?"hidden":"scroll",position:"fixed",width:"100%",top:d(!0)+"px",left:0}}e.forEach(function(l){l.addEventListener("toggle-target-before-inactive",function(e){var t=u(),n=c.pageYOffset,a=Math.abs(d())-n+"px",o=c.matchMedia("(max-width: 600px)");e.target===l&&(Object.keys(t).forEach(function(e){r.setProperty(e,t[e])}),c.vandanalite.scrolled=parseInt(t.top,10),s&&(i.body.style.setProperty("padding-top",a),o.matches)&&(n>=d()?l.style.setProperty("top",0):l.style.setProperty("top",d()-n+"px")),l.classList.add("show-modal"))}),l.addEventListener("toggle-target-after-inactive",function(e){e.target===l&&setTimeout(function(){var e=vandanalite.toggles.clickedEl;l.classList.remove("show-modal"),Object.keys(u()).forEach(function(e){r.removeProperty(e)}),s&&(i.body.style.removeProperty("padding-top"),l.style.removeProperty("top")),!1!==e&&(e.focus(),e=!1),c.scrollTo(0,Math.abs(c.vandanalite.scrolled+d())),c.vandanalite.scrolled=0},500)})})},untoggleModal:function(e){var t,n=!1;e.dataset.modalTargetString&&(t=e.dataset.modalTargetString,n=document.querySelector('*[data-toggle-target="'+t+'"]')),n?n.click():e.classList.remove("active")},keepFocusInModal:function(){var r=document;r.addEventListener("keydown",function(e){var t,n,a,o,l,i,c=vandanalite.toggles.clickedEl;c&&r.body.classList.contains("showing-modal")&&(c=c.dataset.toggleTarget,l="input, a, button",o=r.querySelector(c),t=o.querySelectorAll(l),t=Array.prototype.slice.call(t),".menu-modal"===c&&(n=(n=window.matchMedia("(min-width: 99999px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(n)&&null!==e.offsetParent})).unshift(r.querySelector(".close-nav-toggle")),a=r.querySelector(".menu-bottom > nav"))&&a.querySelectorAll(l).forEach(function(e){t.push(e)}),".main-menu-modal"===c&&(n=(n=window.matchMedia("(min-width: 1025px)").matches)?".expanded-menu":".mobile-menu",(t=t.filter(function(e){return null!==e.closest(n)&&null!==e.offsetParent})).unshift(r.querySelector(".close-main-nav-toggle")),a=r.querySelector(".menu-bottom > nav"))&&a.querySelectorAll(l).forEach(function(e){t.push(e)}),o=t[t.length-1],c=t[0],a=r.activeElement,l=9===e.keyCode,!(i=e.shiftKey)&&l&&o===a&&(e.preventDefault(),c.focus()),i)&&l&&c===a&&(e.preventDefault(),o.focus())})}},vandanalite.modalMenu={init:function(){this.expandLevel()},expandLevel:function(){document.querySelectorAll(".modal-menu").forEach(function(e){e=e.querySelector(".current-menu-item");e&&vandanaliteFindParents(e,"li").forEach(function(e){e=e.querySelector(".submenu-toggle");e&&vandanalite.toggles.performToggle(e,!0)})})}},vandanalite.toggles={clickedEl:!1,init:function(){this.toggle()},performToggle:function(e,n){var a,o,l=this,i=document,c=e,r=c.dataset.toggleTarget,s="active";i.querySelectorAll(".show-modal").length||(l.clickedEl=i.activeElement),(a="next"===r?c.nextSibling:i.querySelector(r)).classList.contains(s)?a.dispatchEvent(vandanalite.createEvent("toggle-target-before-active")):a.dispatchEvent(vandanalite.createEvent("toggle-target-before-inactive")),o=c.dataset.classToToggle||s,e=0,a.classList.contains("cover-modal")&&(e=10),setTimeout(function(){var e=a.classList.contains("sub-menu")?c.closest(".menu-item").querySelector(".sub-menu"):a,t=c.dataset.toggleDuration;"slidetoggle"!==c.dataset.toggleType||n||"0"===t?e.classList.toggle(o):vandanaliteMenuToggle(e,t),("next"===r||a.classList.contains("sub-menu")?c:i.querySelector('*[data-toggle-target="'+r+'"]')).classList.toggle(s),vandanaliteToggleAttribute(c,"aria-expanded","true","false"),l.clickedEl&&-1!==c.getAttribute("class").indexOf("close-")&&vandanaliteToggleAttribute(l.clickedEl,"aria-expanded","true","false"),c.dataset.toggleBodyClass&&i.body.classList.toggle(c.dataset.toggleBodyClass),c.dataset.setFocus&&(e=i.querySelector(c.dataset.setFocus))&&(a.classList.contains(s)?e.focus():e.blur()),a.dispatchEvent(vandanalite.createEvent("toggled")),a.classList.contains(s)?a.dispatchEvent(vandanalite.createEvent("toggle-target-after-active")):a.dispatchEvent(vandanalite.createEvent("toggle-target-after-inactive"))},e)},toggle:function(){var n=this;document.querySelectorAll("*[data-toggle-target]").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault(),n.performToggle(t)})})}},vandanaliteDomReady(function(){vandanalite.toggles.init(),vandanalite.coverModals.init()});
Upload File
Create Folder