added variables in create_html with compact

This commit is contained in:
asus
2024-02-08 15:24:22 +01:00
parent 070364c992
commit 2f62f06f04
9 changed files with 37 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
const title = document.querySelector(".has-text-align-center.wp-block-post-title");
title.innerHTML = "coucou ;)";
const title = document.querySelector(".first_el_to_change");
title.innerHTML = "--- coucou ;)";
console.log("myvar_1: " + myvar_1);

View File

@@ -1,4 +1,4 @@
const title2 = document.querySelector(".wp-block-quote");
title2.innerHTML = "ho boy !";
const title2 = document.querySelector(".second_el_to_change");
title2.innerHTML = "--- ho boy !";

View File

@@ -1,5 +1,5 @@
const title3 = document.querySelector(".has-text-align-center.wp-block-post-title");
title3.innerHTML = "bye bye";
const title3 = document.querySelector(".third_el_to_change");
title3.innerHTML = "--- bye bye";
console.log("myvar_2: " + myvar_2);