Skip to content

Commit

Permalink
improvements to unicode.html, also taking training wheels off JoshSad…
Browse files Browse the repository at this point in the history
…ieDash.html
  • Loading branch information
Jesse-Hufstetler committed Aug 10, 2023
1 parent 35ea616 commit 3b7f670
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
4 changes: 2 additions & 2 deletions JoshSadieDash.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
color = `hsla(250, 20%, 100%, 0.2)`;
break;
case 2: //Tuesday
color = `hsla(200, 100%, 50%, 0.2)`;
color = `hsla(83, 50%, 100%, 0.3)`;
break;
case 3: //Wednesday
color = `hsla(83, 50%, 100%, 0.3)`;
Expand All @@ -273,7 +273,7 @@
color = `hsla(83, 50%, 100%, 0.3)`;
break;
case 5: //Friday
color = `hsla(60, 100%, 50%, 0.4)`;
color = `hsla(83, 50%, 100%, 0.3)`;
break;
case 6: //Saturday
color = `hsla(23, 0%, 70%, 0.5)`;
Expand Down
46 changes: 30 additions & 16 deletions unicode.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@
</head>

<body>
<button onclick="back();back();back();back();back();back();back();back();">Back x8</button>
<button onclick="back();back();back();back();">Back x4</button>
<button onclick="back();back();">Back x2</button>
<button onclick="backx(256);">Back x256</button>
<button onclick="backx(8);">Back x8</button>
<button onclick="backx(4);">Back x4</button>
<button onclick="backx(2);">Back x2</button>
<button onclick="back();">Back</button>
<button onclick="next();">Next</button>
<button onclick="next();next();">Next x2</button>
<button onclick="next();next();next();next();">Next x4</button>
<button onclick="next();next();next();next();next();next();next();next();">Next x8</button>
<button onclick="nextx(2);">Next x2</button>
<button onclick="nextx(4);">Next x4</button>
<button onclick="nextx(8);">Next x8</button>
<button onclick="nextx(256);">Next x256</button>
<br>
<button onclick="start = 0;dump();">Beginning</button>
<button onclick="start = 9728;dump();">Miscellaneous Symbols 2600</button>
Expand All @@ -40,18 +42,30 @@
var wide = 4;
var perPage = 64
addEventListener('wheel', (event) => {
console.log(event.deltaY)
if (event.deltaY > 9) start += perPage;
if (event.deltaY < -9) start -= perPage;
dump();
console.log(event.deltaY)
if (event.deltaY > 9) start += perPage;
if (event.deltaY < -9) start -= perPage;
dump();
});

function back() {
start -= perPage;
dump();
start -= perPage;
dump();
}

function backx(x) {
start -= perPage * x;
dump();
}

function next() {
start += perPage;
dump();
start += perPage;
dump();
}

function nextx(x) {
start += perPage * x;
dump();
}

function dump() {
Expand All @@ -75,8 +89,8 @@
}
dump();
</script>
<br/><br/><br/>
<br /><br /><br />
<a style="font-size: 200%;font-weight: bold;" href="index.html">MY OTHER STUFF</a>
</body>

</html>
</html>

0 comments on commit 3b7f670

Please sign in to comment.