Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
mount app on DOMContentLoaded instead of load
  • Loading branch information
ArneshRC committed Aug 18, 2023
1 parent fbce000 commit 9b676c2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Polyrhythm Visualizer

This branch is currently WIP. A complete rewrite of the app with an entirely new vision.
A simple polyrhythm visualizer which leverages the Web Audio API to synthesize sounds at runtime.

To start a dev server on `localhost:5173`:

```
$ npm run dev
```

To build the project:

```
$ npm run build
```

6 changes: 0 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Abel&display=swap"
rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Polyrhythm Visualizer</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import App from "./App";

import "./styles/index.css";

window.addEventListener("load", () => {
window.addEventListener("DOMContentLoaded", () => {
mount(document.querySelector<HTMLDivElement>("#app")!, new App());
});

0 comments on commit 9b676c2

Please sign in to comment.