aboutsummaryrefslogtreecommitdiff
path: root/static/index.js
diff options
context:
space:
mode:
authorB Wu <bxwu@amazon.com>2024-08-07 20:11:52 -0700
committerB Wu <bxwu@amazon.com>2024-08-07 20:11:52 -0700
commit514b0338844334aa4aaf332c6e29efb6a1aadaa6 (patch)
tree74cccb983214a43688c6422bc2459c7fef73f194 /static/index.js
parent6f03348e5aac33118840324a96e9321dca483b9f (diff)
downloadkennel.hatecomputers.club-514b0338844334aa4aaf332c6e29efb6a1aadaa6.tar.gz
kennel.hatecomputers.club-514b0338844334aa4aaf332c6e29efb6a1aadaa6.zip
feat: add static and template rendering
Diffstat (limited to 'static/index.js')
-rw-r--r--static/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/index.js b/static/index.js
new file mode 100644
index 0000000..2c8ed38
--- /dev/null
+++ b/static/index.js
@@ -0,0 +1,5 @@
+window.onload = () => {
+ console.log('from js');
+ const kennelWindowEle = document.querySelector('#kennel-window');
+ kennelWindowEle.innerHTML = 'rendered from static/index.js';
+}