Skip to content
This repository has been archived by the owner on Apr 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #33 from ldjb/master
Browse files Browse the repository at this point in the history
v1.0.2: Fix fullscreen button bug
  • Loading branch information
Leon Byford committed Mar 30, 2015
2 parents b0c99aa + 4572424 commit 40f6a12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ function title() {
ctx.fillStyle = "#fff";
ctx.textAlign = "center";
ctx.font = "16px Verdana";
ctx.fillText("v1.0.1", 640/2, 240);
ctx.fillText("©2015 Leon Byford", 640/2, 432);
ctx.fillText("v1.0.2", 640/2, 240);
ctx.fillText("©2015 Visual Archives Limited / Leon Byford", 640/2, 432);
ctx.fillText("http://ldjb.uk/pongy", 640/2, 464);
ctx.font = "32px Verdana";
ctx.fillText("Click to start", 640/2, 352);
Expand Down Expand Up @@ -222,7 +222,7 @@ $("#p").on("click", function() {
});

$("body").on("keypress", function(e) {
if (e.key == "f") {
if (e.which == 70 || e.which == 102) {
var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement;
if (!fullscreenElement) {
var elem = $("body")[0];
Expand Down

0 comments on commit 40f6a12

Please # to comment.