Skip to content

Commit

Permalink
Update github workflow build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ultraviolet-jordan committed Jan 5, 2024
1 parent c699b88 commit 61fd194
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: [ main ]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/node_modules
/.idea/
/js/
!/js/index.html
!/js/playground.html
!/js/jagex2/vendor/tinymidipcm/tinymidipcm.wasm
32 changes: 32 additions & 0 deletions js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<html>
<head>
<title>RuneScape 2</title>

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

<style>
body {
margin: 0;
padding: 0;
color: #fff;
background-color: #000;
}

canvas {
/* image-rendering: pixelated; */
display: block;
margin: 0 auto;
outline: none;
-webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
}
</style>
</head>
<body>
<canvas id="canvas" width="789" height="532"></canvas>

<script type="module" src="jagex2/vendor/midi.js"></script>
<script type="module" src="client.js"></script>
</body>
</html>
34 changes: 34 additions & 0 deletions js/playground.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<html>
<head>
<title>RuneScape 2 Playground</title>

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

<style>
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
color: #fff;
background-color: #000;
}

canvas {
image-rendering: pixelated;
display: block;
margin: 0 auto;
outline: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* mobile webkit */
}
</style>
</head>
<body>
<canvas id="canvas"></canvas>

<script type="module" src="jagex2/vendor/midi.js"></script>
<script type="module" src="playground.js"></script>
</body>
</html>

0 comments on commit 61fd194

Please sign in to comment.