X7ROOT File Manager
Current Path:
/home/okeydcqc/public_html/wp-content/themes/oceanwp/assets/src/js/theme
home
/
okeydcqc
/
public_html
/
wp-content
/
themes
/
oceanwp
/
assets
/
src
/
js
/
theme
/
ðŸ“
..
📄
blog-masonry.js
(766 B)
📄
carousel.js
(1.27 KB)
📄
equal-height-elements.js
(825 B)
📄
footer.js
(2.85 KB)
ðŸ“
header
ðŸ“
menu
ðŸ“
mobile-menu
📄
ow-infinite-scroll.js
(4.51 KB)
📄
ow-lightbox.js
(3.11 KB)
📄
ow-load-more.js
(4.62 KB)
📄
ow-slider.js
(974 B)
📄
scroll-effect.js
(5.26 KB)
📄
scroll-top.js
(1.59 KB)
ðŸ“
search
📄
select.js
(2.79 KB)
📄
theme.js
(908 B)
Editing: theme.js
import Menu from "./menu/menu"; import MegaMenu from "./menu/mega-menu"; import Search from "./search/search"; import Footer from "./footer"; class Theme { constructor() { this.#start(); this.#setupEventListeners(); } #start = () => { this.menu = new Menu(); this.megaMenu = new MegaMenu(); this.search = new Search(); this.footer = new Footer(); }; #setupEventListeners = () => { document.addEventListener( "keydown", this.#actionActive ); }; #actionActive = (event) => { const enterKey = event.keyCode === 13; if ( enterKey ) { document.querySelector('.skip-link').addEventListener('keydown', function(e) { var target = document.getElementById('main'); target.tabIndex = -1; target.focus(); }); } }; } ("use script"); window.oceanwp = window.oceanwp || {}; oceanwp.theme = new Theme();
Upload File
Create Folder