added variables in create_html with compact
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 !";
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user