();

        const loadPreset = async (preset) => {
            await tsParticles.load({
                id: "tsparticles",
                options: tsParticles.configs[preset]
            });
        };

        let preset = sessionStorage.preset || "basic";

        loadPreset(preset);

        const cmbPreset = document.getElementById("preset");

        cmbPreset.value = preset;

        cmbPreset.addEventListener("change", () => {
            sessionStorage.preset = cmbPreset.value;

            loadPr