<?php
/**
 * (c) ININOUT & PYXIS. All Rights Reserved.
 * Wszelkie modyfikacje tego pliku wymagaja zgloszenia oraz zgody autorow.
 * Any modifications to this file require notification and consent of the authors.
 */
/**
 * Particles.js — navbar background (subtle)
 * Include inside <nav> element, before container-fluid
 */
?>
<div id="particles-navbar"></div>
<script nonce="<?= csp_nonce() ?>">
document.addEventListener('DOMContentLoaded', function() {
    if (typeof particlesJS === 'function') {
        particlesJS("particles-navbar", {
            particles: {
                number: { value: 40, density: { enable: false } },
                color: { value: "#ffffff" },
                shape: { type: "circle" },
                opacity: { value: 0.2, random: true, anim: { enable: true, speed: 0.5, opacity_min: 0.05, sync: false } },
                size: { value: 2, random: true },
                line_linked: { enable: true, distance: 100, color: "#ffffff", opacity: 0.12, width: 1 },
                move: { enable: true, speed: 0.8, direction: "right", random: true, straight: false, out_mode: "out", bounce: false }
            },
            interactivity: {
                detect_on: "canvas",
                events: { onhover: { enable: false }, onclick: { enable: false }, resize: true }
            },
            retina_detect: true
        });
    }
});
</script>
