feat: Allow civet code to modify DOM (#4)
This commit uses the jQuery package for DOM manipulation. So far, it performs just a toy modification, on a page modified to include the object javascript. For this purpose the build script was modified to place object files in `public/js`. Adds a script to build and serve the resulting code. Resolves #2. Reviewed-on: #4 Co-authored-by: Glen Whitney <glen@studioinfinity.org> Co-committed-by: Glen Whitney <glen@studioinfinity.org>
This commit is contained in:
parent
16f38e769e
commit
10146073c8
6 changed files with 164 additions and 4 deletions
2
src/adapptlet.civet
Normal file
2
src/adapptlet.civet
Normal file
|
@ -0,0 +1,2 @@
|
|||
import https://code.jquery.com/jquery-3.7.1.slim.js
|
||||
$('body').append '<div id="helloDiv">Hello World</div>'
|
Loading…
Add table
Add a link
Reference in a new issue