1 2export default{ 3 4 navBarElements(){ 5 this.theme_url = theme_url; 6 this.toggleSearch = document.getElementById('toggleSearch'); 7 this.searchBox = document.getElementById('searchBox'); 8 this.closeIcon = `${this.theme_url}/assets/img/close-icon.svg`; 9 this.searchIcon = `${this.theme_url}/assets/img/header/lupa.svg`; 10 this.inputSearch = document.getElementById('inputSearch'); 11 12 this.main_header = document.querySelector(".main-header"); 13 this.navigation = document.querySelector(".main-header .main-nav .navigation"); 14 //this.indicator = document.querySelector(".indicator"); 15 16 this.header_fixed_class = 'fixed-menu'; 17 this.navgation_custom_class = 'navigation-custom'; 18 //this.indicator_class = 'none-mobile'; 19 20 this.active_class = 'active'; 21 22 this.toggleSearch.onclick = () => this.toggleSearchEvent(); 23 }, 24 lateralNavBarElements(){ 25 26 this.lateralNavRight = document.getElementById('lateralNavRight'); 27 this.btnOpenNav = document.getElementById('btnOpenNav'); 28 this.btnCloseNav = document.querySelector('.closeNavRight'); 29 this.subMenuLink = document.getElementById('sub-menu-parent'); 30 this.subMenuContent = document.getElementById('sub-menu-content'); 31 this.iconSubmenu = document.getElementById("icon_submenu"); 32 this.iconLateralSearch = document.getElementById("icon_busca_other"); 33 this.frmLateralSearch = document.getElementById("frm_busca_lateral"); 34 35 this.btnOpenNav.onclick = () => this.openNavBar(); 36 this.btnCloseNav.onclick = () => this.closeNavBar(); 37 this.subMenuLink.onclick = (e) => this.toggleSubMenu(e); 38 this.iconLateralSearch.onclick = (e) => this.toggleLateralSearch(e); 39 40 document.addEventListener('click', (e) => {this.checkNavBarEvent(e)}); 41 42 window.addEventListener('scroll', (e) => this.scrollEvent(e)); 43 }, 44}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.