Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

PuttMat Fix for Safari 4.2.1

  • Loading branch information...
commit 52a1376e8bfef360254bf2b69bf252b1ddb280ce 1 parent c2277bb
@ryanki1 authored
View
19 AddCon_TravellingSalesman/Content/app.css
@@ -19,15 +19,17 @@ display: inline;
#puttMat a:link, a:visited {
float: left;
height: 16px;
-background: -webkit-radial-gradient(circle, grey 20%, black 40%);
-background: -moz-radial-gradient(circle, grey 20%, black 40%);
-background: radial-gradient(circle, grey 20%, black 40%);
+background: -webkit-gradient( radial, 8 8, 2, 8 8, 4, from(grey), to(black));
+/*background: -webkit-radial-gradient(circle, grey 20%, black 40%);*/
+/*background: -moz-radial-gradient(circle, grey 20%, black 40%);
+background: radial-gradient(circle, grey 20%, black 40%);*/
}
#puttMat a:hover, a:active {
-background: -webkit-radial-gradient(circle, white 20%, black 40%);
-background: -moz-radial-gradient(circle, white 20%, black 40%);
-background: radial-gradient(circle, white 20%, black 40%);
+background: -webkit-gradient( radial, 8 8, 2, 8 8, 4, from(white), to(black));
+/*background: -webkit-radial-gradient(circle, white 20%, black 40%);*/
+/*background: -moz-radial-gradient(circle, white 20%, black 40%);
+background: radial-gradient(circle, white 20%, black 40%);*/
}
/* Alternative to above but more costly in terms of having underlying 16 x 32 sprite
@@ -49,9 +51,10 @@ background-repeat: no-repeat;
*/
.ballInTheHole {
- background: -webkit-radial-gradient(circle, white 20%, black 40%)!important;
+ background: -webkit-gradient( radial, 8 8, 2, 8 8, 4, from(white), to(black))!important;
+ /*background: -webkit-radial-gradient(circle, white 20%, black 40%)!important;
background: -moz-radial-gradient(circle, white 20%, black 40%)!important;
- background: radial-gradient(circle, white 20%, black 40%)!important;
+ background: radial-gradient(circle, white 20%, black 40%)!important;*/
}
.activePage {
/*display: block;*/
View
6 AddCon_TravellingSalesman/Views/SalesmanModels/SalesmanPagePuttControl.cshtml
@@ -20,14 +20,14 @@
if (event.type == "swiperight") {
debugger;
var index = app.getPuttMatBallIndex();
- var range = app.getPuttMatHoles() - 1;
- index = index == range ? index : index + 1;
+ index = index == 0 ? 0 : index - 1;
app.teeOff(index);
}
if (event.type == "swipeleft") {
debugger;
var index = app.getPuttMatBallIndex();
- index = index == 0 ? 0 : index - 1;
+ var range = app.getPuttMatHoles() - 1;
+ index = index == range ? index : index + 1;
app.teeOff(index);
}
event.preventDefault();
View
BIN  AddCon_TravellingSalesman/bin/AddCon_TravellingSalesman.dll
Binary file not shown
View
BIN  AddCon_TravellingSalesman/bin/AddCon_TravellingSalesman.pdb
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.