PHP Classes

File: frontend/js/app.js

Recommend this page to a friend!
  Classes of Rodrigo Faustino   Livraria   frontend/js/app.js   Download  
File: frontend/js/app.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Livraria
Manage a bookstore using micro-services
Author: By
Last change:
Date: 15 days ago
Size: 654 bytes
 

Contents

Class file image Download
import { initializeNavbar } from './componentes/navbar.js'; import { renderContent } from './componentes/utils/router.js'; import { initializeSidebar } from './componentes/sidebar.js'; import { syncOfflineProducts } from './componentes/controllers/productController.js'; document.addEventListener('DOMContentLoaded', () => { initializeNavbar(); initializeSidebar() const initialPage = window.location.hash.substring(1) || 'shop'; renderContent(initialPage); window.addEventListener('hashchange', () => { renderContent(window.location.hash.substring(1)); }); window.addEventListener('online', syncOfflineProducts); });