Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jun 22, 2018
0 parents commit 289d163
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webgpufundamentals.org

38 changes: 38 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<style>
* {
box-sizing: border-box;
}
body {
font-family: monospace;
color: #0F0;
background-color: black;
font-size: 10pt;
}
@keyframes blink {
from, to { background-color: transparent }
50% { background-color: #0F0 }
}

.cursor {
display: inline-block;
position: relative;
top: 0.2em;
width:0.6em;
height:1em;
animation: 1s blink step-end infinite;
}

</style>
<div>$&nbsp;webgpufundamentals<span></span><div class="cursor"></div></div>
<script>
const code = document.querySelector('span');
const cursor = document.querySelector('.cursor');
window.addEventListener('keypress', enter);
function enter(e) {
if (e.keyCode === 13) {
code.innerHTML += '<br/>sh: webgpufundamentals: command not found<br/>$&nbsp;webgpufundamentals';
cursor.scrollIntoView();
}
}
</script>

0 comments on commit 289d163

Please sign in to comment.