diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-22 15:34:10 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-22 15:34:10 -0500 |
commit | 601c0ae6a27a226a97e43920b85255bcce4cbac4 (patch) | |
tree | 45b99f5784111de2ecbc8ef8a3780040846d4a09 /code | |
download | office-601c0ae6a27a226a97e43920b85255bcce4cbac4.tar.gz office-601c0ae6a27a226a97e43920b85255bcce4cbac4.tar.bz2 office-601c0ae6a27a226a97e43920b85255bcce4cbac4.zip |
initial commit
Diffstat (limited to 'code')
-rw-r--r-- | code/index.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/code/index.html b/code/index.html new file mode 100644 index 0000000..e0c7556 --- /dev/null +++ b/code/index.html @@ -0,0 +1 @@ +<body oninput="i.srcdoc=h.value+'<style>'+c.value+'</style><script>'+j.value+'</script>'"><style>textarea,iframe{width:100%;height:50%;}body{margin:0;}textarea{width: 33.33%;font-size:18px;padding:0.5em}</style><textarea placeholder="HTML" id="h"></textarea><textarea placeholder="CSS" id="c"></textarea><textarea placeholder="JS" id="j"></textarea><iframe id="i"></iframe><script>document.querySelectorAll("textarea").forEach((t)=>t.addEventListener("keydown",function(t){var e,s;"Tab"==t.key&&(t.preventDefault(),e=this.selectionStart,s=this.selectionEnd,this.value=this.value.substring(0,e)+" "+this.value.substring(s),this.selectionStart=this.selectionEnd=e+1)}))</script></body> |