Skip to content

Commit

Permalink
Added missing example file
Browse files Browse the repository at this point in the history
  • Loading branch information
mstahv committed Aug 7, 2023
1 parent e136ca9 commit 2f1523e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/test/resources/js.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Similar example as inlined, but this is a separate file
// This approach is useful when you have larger
// javascript code that you want to keep in a separate file
setTimeout(() => {${serverElement}.style.color = "red";}, 4000);

var p = document.createElement("p");
p.textContent = "Hello, I'm coming through js.js file in resources. specialparameter1: $specialparameter1";
this.appendChild(p);

0 comments on commit 2f1523e

Please sign in to comment.