Skip to content

Commit

Permalink
Add find out more button
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Oct 25, 2023
1 parent 6d8d330 commit 4385834
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions public/monotile/hat.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,24 @@ function setup() {
tiles = [initH(), initT(), initP(), initF()];
level = 1;

// Reset button
reset_btn = addButton("Reset", () => reset());
reset_btn.class('btn btn-secondary');
reset_btn.style('height', '35px');

// Monotile button
monotile_btn = addButton("Monotile", () => monotile());
monotile_btn.class('btn btn-secondary');
monotile_btn.style('height', '35px');

// Find out more button
more_btn = addButton("More", () => {
// open url
window.open('https://cs.uwaterloo.ca/~csk/hat/', '_blank');
});
more_btn.class('btn btn-secondary');
more_btn.style('height', '35px');

// Little animation at the beginning
setTimeout(monotile, 50);
setTimeout(monotile, 90);
Expand Down

0 comments on commit 4385834

Please sign in to comment.