Skip to content

Commit 86dea12

Browse files
committed
adding wasm to webpage
1 parent 13a09bf commit 86dea12

18 files changed

+134
-40
lines changed
26.9 KB
Binary file not shown.
28.9 KB
Binary file not shown.
29 KB
Binary file not shown.
27.2 KB
Binary file not shown.
304 Bytes
Binary file not shown.
27.2 KB
Binary file not shown.
25.2 KB
Binary file not shown.

files/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<!-- End of Toast -->
5959

6060
<div id="daBod">
61-
<p class="mt-5 fs-5">Hello there! Welcome to my little nook. This page is a work in progress...</p>
61+
<p class="mt-5 fs-5">Hello there! Welcome to my little nook. This page is a work in progress... over-engineered using TypeScript and WASM.</p>
6262
<p class="t-5 fs-5">My name is Dan: I am a dad, a software development engineer, a lifelong learner,
6363
and a service member in the US Armed Forces.</p>
6464
<p class="mt-5 fs-5">I am a full stack developer with a heavier emphasis in the back-end and data science.</p>
@@ -83,6 +83,10 @@
8383
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/39/Kubernetes_logo_without_workmark.svg/1200px-Kubernetes_logo_without_workmark.svg.png" alt="" width="60" height="60">
8484
Kubernetes
8585
</li>
86+
<li class="list-group-item list-group-item-dark text-truncate">
87+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/WebAssembly_Logo.svg/600px-WebAssembly_Logo.svg.png" alt="" width="60" height="60">
88+
WebAssembly
89+
</li>
8690
<li class="list-group-item list-group-item-dark text-truncate">
8791
<img src="https://cdn4.iconfinder.com/data/icons/logos-and-brands/512/97_Docker_logo_logos-512.png" alt="" width="60" height="60">
8892
Docker
@@ -165,7 +169,7 @@
165169
</div>
166170
<div class="pt-5">
167171
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top">
168-
<p class="col-md-4 mb-0 mt-0 text-muted">Last Updated: 2024-01-02</p>
172+
<p class="col-md-4 mb-0 mt-0 text-muted">Last Updated: 2024-02-18</p>
169173
<a href="./files/public-key.pem" class="btn btn-dark">Public Key</a>
170174
</footer>
171175
</div>

src/material.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import * as $ from "jquery";
2-
import {greeting} from "./time";
3-
import {vidGen} from "./video";
2+
import { greeting } from "./time";
3+
import { vidGen } from "./video";
44
import * as BS from "bootstrap";
55

66
// window.showem = function(iden) {
@@ -12,10 +12,10 @@ import * as BS from "bootstrap";
1212
// let mCollection = new Object;
1313
//
1414
function timer(ms: number) {
15-
return new Promise(resolve => setTimeout(() => resolve(true), ms));
15+
return new Promise(resolve => setTimeout(() => resolve(true), ms));
1616
}
1717
async function startToast(x: number) {
18-
await timer(x);
18+
await timer(x);
1919
let toastLive = document.getElementById('liveToast');
2020
let toastbody = document.querySelector('#liveToast .toast-body');
2121
let toastheader = document.querySelector('#liveToast .me-auto');
@@ -31,18 +31,22 @@ async function startToast(x: number) {
3131
// mCollection.sidenav[0].close();
3232
// }
3333
//
34-
document.addEventListener('DOMContentLoaded', function() {
35-
// let elems = [
36-
// document.querySelectorAll('.collapsible'),
37-
// document.querySelectorAll('.tooltipped'),
38-
// document.querySelectorAll('.sidenav'),
39-
// ];
40-
// mCollection.collInst = M.Collapsible.init(elems[0]);
41-
// mCollection.toolInst = M.Tooltip.init(elems[1], {"position": "right"});
42-
// mCollection.sidenav = M.Sidenav.init(elems[2]);
43-
startToast(5000).then(() => console.log("Toast has launched!"));
44-
vidGen();
45-
console.log("STARTING!");
34+
document.addEventListener('readystatechange', function() {
35+
if (document.readyState === "complete") {
36+
// let elems = [
37+
// document.querySelectorAll('.collapsible'),
38+
// document.querySelectorAll('.tooltipped'),
39+
// document.querySelectorAll('.sidenav'),
40+
// ];
41+
// mCollection.collInst = M.Collapsible.init(elems[0]);
42+
// mCollection.toolInst = M.Tooltip.init(elems[1], {"position": "right"});
43+
// mCollection.sidenav = M.Sidenav.init(elems[2]);
44+
console.log("STARTING!");
45+
startToast(5000).then(() => console.log("Toast has launched!"));
46+
vidGen();
47+
console.log("STARTED!");
48+
49+
}
4650
});
4751
//
4852
// document.querySelector("#menu").addEventListener("click", function() {

0 commit comments

Comments
 (0)