Procházet zdrojové kódy

adding README Command to deploy

Medowar před 1 měsícem
rodič
revize
d7d00e20c7
2 změnil soubory, kde provedl 9 přidání a 1 odebrání
  1. 8 0
      README.md
  2. 1 1
      chrony-network-stats.sh

+ 8 - 0
README.md

@@ -160,6 +160,14 @@ To run the script every 5 minutes with `sudo` privileges, configure the root cro
    ```
 
 
+## Deployment
+
+To deploy the statstracking script, run the following command:
+
+```bash
+./deploy-statstracking.sh
+```
+
 ## License
 
 This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

+ 1 - 1
chrony-network-stats.sh

@@ -786,8 +786,8 @@ EOF
             document.getElementById(period + '-content').classList.add('active');
             const evt = event || window.event; // works with inline onclick
             if (evt && evt.target) {
-                evt.target.classList.add('active');
             }
+                evt.target.classList.add('active');
         }
 
         (function enableImageLightbox() {