Skip to content

Commit a4a39bf

Browse files
committed
Add scripts
1 parent f90ec46 commit a4a39bf

File tree

5,862 files changed

+3389
-288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,862 files changed

+3389
-288
lines changed

.gitignore

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
/dist
2-
3-
# Node
41
node_modules
5-
.env
6-
7-
# TSC
8-
dist/js/
9-
10-
# CSS
11-
dist/css/
12-
2+
/.env
3+
/dist
134
.github

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# mpp-ts
1+
# mpp-frontend-ts
22

3-
Multiplayerpiano.com files in typescript
3+
MPP frontend rewritten in TypeScript
44

55
### Roadmap
66
* Kill JQuery
@@ -10,4 +10,4 @@ Multiplayerpiano.com files in typescript
1010
* TSify ebsprite.js
1111
* Update and beautify css styles and html
1212
* Fix ease-in and ease-out classes in RoomManager.ts (They've been broken for ages)
13-
* Have not tested this with multiple clients
13+
* Have not tested this with multiple clients

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
echo "Removing old distribution assets..." && \
4+
rm -r dist && \
5+
echo "Copying distribution assets..." && \
6+
cp -r public dist && \
7+
echo "Building scripts..." && \
8+
pnpm build

public/countdown.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
<style>
3+
body, td {
4+
background: #631;
5+
color: orange;
6+
font: 256px monospace;
7+
text-shadow: 10px 10px 5px #531;
8+
9+
}
10+
</style>
11+
<table width="100%" height="100%">
12+
<td id="hours" align="center" valign="middle"></td>
13+
</table>
14+
<script>
15+
var then = new Date("January 7 2014 17:13:00 GMT-0400 (EDT)");
16+
var div = document.getElementById("hours");
17+
setInterval(function() {
18+
var now = Date.now();
19+
var hours = ((then - now) / (1000 * 60 * 60));
20+
hours = Math.round(hours * 100000) / 100000;
21+
hours = hours.toString();
22+
while(hours.length < 8)
23+
hours = hours + "0";
24+
hours = hours.substr(0, 8);
25+
div.innerHTML = hours;
26+
}, 10);
27+
</script>

0 commit comments

Comments
 (0)