PHP Classes

File: resources/js/app.js

Recommend this page to a friend!
  Classes of Everton C B Junior   Joćo de Barro   resources/js/app.js   Download  
File: resources/js/app.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Joćo de Barro
Manage the orders of handcrafted products
Author: By
Last change:
Date: 2 months ago
Size: 898 bytes
 

Contents

Class file image Download
require('./bootstrap'); const iconNavbarSidenav = document.getElementById('iconNavbarSidenav'); const iconSidenav = document.getElementById('iconSidenav'); const sidenav = document.getElementById('sidenav-main'); let body = document.getElementsByTagName('body')[0]; let className = 'g-sidenav-pinned'; if (iconNavbarSidenav) { iconNavbarSidenav.addEventListener("click", toggleSidenav); } if (iconSidenav) { iconSidenav.addEventListener("click", toggleSidenav); } function toggleSidenav() { if (body.classList.contains(className)) { body.classList.remove(className); setTimeout(function() { sidenav.classList.remove('bg-white'); }, 100); sidenav.classList.remove('bg-transparent'); } else { body.classList.add(className); sidenav.classList.add('bg-white'); sidenav.classList.remove('bg-transparent'); iconSidenav.classList.remove('d-none'); } }