diff --git a/images/btn_back.svg b/images/btn_back.svg new file mode 100644 index 0000000..97db82e --- /dev/null +++ b/images/btn_back.svg @@ -0,0 +1,15 @@ + + + + Back button + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_facebook.svg b/images/btn_facebook.svg new file mode 100644 index 0000000..42421cc --- /dev/null +++ b/images/btn_facebook.svg @@ -0,0 +1,19 @@ + + + + Facebook + Created with Sketch. + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_help.svg b/images/btn_help.svg new file mode 100644 index 0000000..6859881 --- /dev/null +++ b/images/btn_help.svg @@ -0,0 +1,17 @@ + + + + Help + Created with Sketch. + + + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_pause.svg b/images/btn_pause.svg new file mode 100644 index 0000000..08d6e56 --- /dev/null +++ b/images/btn_pause.svg @@ -0,0 +1,15 @@ + + + + Pause button + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_restart.svg b/images/btn_restart.svg new file mode 100644 index 0000000..0c5246a --- /dev/null +++ b/images/btn_restart.svg @@ -0,0 +1,15 @@ + + + + Restart button + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_resume.svg b/images/btn_resume.svg new file mode 100644 index 0000000..bb963f2 --- /dev/null +++ b/images/btn_resume.svg @@ -0,0 +1,15 @@ + + + + Resume button + Created with Sketch. + + + + + + + + + + \ No newline at end of file diff --git a/images/btn_share.svg b/images/btn_share.svg new file mode 100644 index 0000000..9607e85 --- /dev/null +++ b/images/btn_share.svg @@ -0,0 +1,17 @@ + + + + Share button + Created with Sketch. + + + + + + + SHARE MY SCORE! + + + + + \ No newline at end of file diff --git a/images/btn_twitter.svg b/images/btn_twitter.svg new file mode 100644 index 0000000..868cfab --- /dev/null +++ b/images/btn_twitter.svg @@ -0,0 +1,19 @@ + + + + Twitter + Created with Sketch. + + + + + + + + + + + + + + \ No newline at end of file diff --git a/images/icon_arrows.svg b/images/icon_arrows.svg new file mode 100644 index 0000000..11d6530 --- /dev/null +++ b/images/icon_arrows.svg @@ -0,0 +1,14 @@ + + + + Arrows icon + Created with Sketch. + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index 4e91797..e980c1d 100644 --- a/index.html +++ b/index.html @@ -82,8 +82,7 @@
-
-
+
diff --git a/js_v9/input.js b/js_v9/input.js index a095099..b7431d5 100644 --- a/js_v9/input.js +++ b/js_v9/input.js @@ -75,6 +75,8 @@ function addKeyListeners() { }); $("#pauseBtn").on('touchstart mousedown', function() { + + alert("hey"); if (gameState != 1 && gameState != -1) { return; } @@ -82,7 +84,6 @@ function addKeyListeners() { if ($('#helpScreen').is(":visible")) { $('#helpScreen').fadeOut(150, "linear"); } - alert("hey"); pause(); return false; }); diff --git a/js_v9/main.js b/js_v9/main.js index 73c081b..22aa1ee 100644 --- a/js_v9/main.js +++ b/js_v9/main.js @@ -83,7 +83,7 @@ function init(b) { } infobuttonfading = true; - $("#pauseBtnInner").html(''); + $("#pauseBtn").html(''); hideUIElements(); var saveState = localStorage.getItem("saveState") || "{}"; saveState = JSONfn.parse(saveState); @@ -331,7 +331,7 @@ function showHelp() { pause(); } - if($("#pauseBtnInner").children()[0].src.replace(/^.*[\\\/]/, '') == "btn_pause.svg" && gameState != 0 && !infobuttonfading) { + if($("#pauseBtn").children()[0].src.replace(/^.*[\\\/]/, '') == "btn_pause.svg" && gameState != 0 && !infobuttonfading) { return; } diff --git a/js_v9/view.js b/js_v9/view.js index 5443024..9da86db 100644 --- a/js_v9/view.js +++ b/js_v9/view.js @@ -155,10 +155,10 @@ function setMainMenu() { canRestart = 's'; }, 500); $('#restartBtn').hide(); - if ($($("#pauseBtn").children()[0]).replace(/^.*[\\\/]/, '') == "btn_pause.svg") { - $("#pauseBtnInner").html(''); + if ($("#pauseBtn").replace(/^.*[\\\/]/, '') == "btn_pause.svg") { + $("#pauseBtn").attr("src","./images/btn_resume.svg"); } else { - $("#pauseBtnInner").html(''); + $("#pauseBtn").attr("src","./images/btn_pause.svg"); } } @@ -230,7 +230,7 @@ function pause(o) { $('#helpScreen').fadeOut(150, "linear"); } - $("#pauseBtnInner").html(''); + $("#pauseBtn").attr("src", "./images/btn_pause.svg"); $('.helpText').fadeOut(200, 'linear'); hideText(); hidebottombar(); @@ -245,7 +245,7 @@ function pause(o) { showText(message); } - $("#pauseBtnInner").html(''); + $("#pauseBtn").attr("src","./images/btn_resume.svg"); prevGameState = gameState; gameState = -1; }