improved plugin class by changing for only one method to do all

This commit is contained in:
asus
2024-02-15 00:40:07 +01:00
parent 8d0122f63e
commit aaca16525b
7 changed files with 84 additions and 78 deletions

View File

@@ -1,6 +1,8 @@
console.log("PLGNTLS_data:");
console.log(PLGNTLS_data);
const title = document.querySelector(".first_el_to_change");
title.innerHTML = "--- coucou ;) " + myvar_1;
title.innerHTML = "--- coucou ;) " + PLGNTLS_data.myvar_1;
const ajax_button_1 = document.querySelector("#test_ajax_1");
ajax_button_1.addEventListener('click', () => {