honestly cant remember

This commit is contained in:
Garrett Finucane 2015-03-14 13:18:05 -04:00
parent dd310aeaba
commit 6630e5723e
3 changed files with 14 additions and 15 deletions

View file

@ -80,10 +80,11 @@
<h1 class = 'instructions_body'>Instructions</h1>
<p class = 'instructions_body' id = 'inst_main_body'></p>
</div>
<div id="openSideBar" class = 'helpText'><i class="fa fa-info-circle fa-lg"></i> <i class="fa fa-arrow-left"><b> Help</b></i></div>
<img id="openSideBar" class = 'helpText' src="./images/btn_help.svg" />
<div class="faded overlay"></div>
<div id = 'pauseBtn'><div id = 'pauseBtnInner'><img src="./images/btn_pause.svg" /></div></div>
<div id = 'restartBtn'><div id = 'restartBtnInner'><i class="fa fa-refresh fa-2x"></i></div></div>
<div id = 'pauseBtn'><div id = 'pauseBtnInner'><img src="./images/btn_pause.svg" /></div></div>
<div id = 'restartBtn'><div id = 'restartBtnInner'><img src="./images/btn_restart.svg" /></div></div>
<div id="bottombar">
<div style="bottom:4px; padding-right:4px;" class="fb-like" data-href="http://hextris.github.io/hextris" data-width="20" data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>
<a onClick="tweetblock=true" href="https://twitter.com/intent/tweet?hashtags=hextris&original_referer=http%3A%2F%2F0.0.0.0%3A8080%2F&text=Play%20Hextris!%20-&tw_p=tweetbutton&url=http%3A%2F%2Fhextris.github.io%2F" class="twitter-share-button" data-url="http://hextris.github.io/" data-text="Play Hextris! -" data-hashtags="hextris">Tweet</a>

View file

@ -66,7 +66,7 @@ function addKeyListeners() {
keys: "enter",
on_keydown: function() {
if (gameState==2 || gameState==1 || importing == 1) {
init();
init(1);
}
if (gameState===0) {
resumeGame();
@ -82,7 +82,7 @@ function addKeyListeners() {
if ($('#helpScreen').is(":visible")) {
$('#helpScreen').fadeOut(150, "linear");
}
alert("hey");
pause();
return false;
});
@ -115,13 +115,13 @@ function addKeyListeners() {
if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$("#restartBtn").on('touchstart', function() {
init();
init(1);
canRestart = false;
});
}
else {
$("#restartBtn").on('mousedown', function() {
init();
init(1);
canRestart = false;
});
}
@ -174,7 +174,7 @@ function handleClickTap(x,y) {
}
else{
if (gameState != 1) {
init();
init(1);
}
}
return;
@ -192,7 +192,7 @@ function handleClickTap(x,y) {
resumeGame();
}
else {
init();
init(1);
}
}
@ -204,7 +204,7 @@ function handleClickTap(x,y) {
resumeGame();
}
else {
init();
init(1);
}
}
MainHex.rotate(-1);

View file

@ -74,6 +74,8 @@ button:focus {
#openSideBar {
position: absolute;
width:60px;
height:60px;
top: 2px;
left: 4px;
z-index: 3002;
@ -96,10 +98,6 @@ button:focus {
z-index:99;
}
#restartBtnInner {
margin-top:28px;
}
#restartBtn {
position:absolute;
left:0;
@ -108,8 +106,8 @@ button:focus {
bottom:0;
z-index:99;
position: absolute;
margin-bottom: 3px;
margin-left: 7px;
margin-bottom: 18px;
margin-left: 10px;
z-index:99;
color:#232323;
cursor:pointer;