PHP Classes

File: app/js/scripts.js

Recommend this page to a friend!
  Classes of Faris AL-Otabi   PHP IP Logger   app/js/scripts.js   Download  
File: app/js/scripts.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP IP Logger
Track user IP addresses that access certain pages
Author: By
Last change:
Date: 1 year ago
Size: 976 bytes
 

Contents

Class file image Download
/*! * Start Bootstrap - SB Admin v7.0.5 (https://startbootstrap.com/template/sb-admin) * Copyright 2013-2022 Start Bootstrap * Licensed under MIT (https://github.com/StartBootstrap/startbootstrap-sb-admin/blob/master/LICENSE) */ // // Scripts // window.addEventListener('DOMContentLoaded', event => { // Toggle the side navigation const sidebarToggle = document.body.querySelector('#sidebarToggle'); if (sidebarToggle) { // Uncomment Below to persist sidebar toggle between refreshes // if (localStorage.getItem('sb|sidebar-toggle') === 'true') { // document.body.classList.toggle('sb-sidenav-toggled'); // } sidebarToggle.addEventListener('click', event => { event.preventDefault(); document.body.classList.toggle('sb-sidenav-toggled'); localStorage.setItem('sb|sidebar-toggle', document.body.classList.contains('sb-sidenav-toggled')); }); } });