Skip to content
This repository
Browse code

mobile device sizing

  • Loading branch information...
commit 1b09283d2aa6d70617ade049fc9fd199f878e3da 1 parent 3a3bf7a
Jeffrey Warren authored September 20, 2010

Showing 1 changed file with 4 additions and 6 deletions. Show diff stats Hide diff stats

  1. 10  app/views/game/play.html.erb
10  app/views/game/play.html.erb
@@ -7,6 +7,8 @@
7 7
 	<title>Workraft</title>
8 8
 	<script src="/javascripts/prototype.js" type="text/javascript" charset="utf-8"></script>
9 9
 	<link rel="stylesheet" href="/stylesheets/style.css" type="text/css" media="screen" title="no title" charset="utf-8">
  10
+	<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
  11
+
10 12
 </head>
11 13
 <body>
12 14
 	
@@ -165,10 +167,6 @@
165 167
 	</script>
166 168
 	
167 169
 	<div id="header">
168  
-		<h1>Workraft</h1>
169  
-		<p>
170  
-			Welcome to Workraft, my lord, where you command...
171  
-		</p>
172 170
 	</div>
173 171
 
174 172
 	<div id="game">
@@ -226,8 +224,8 @@
226 224
 					}
227 225
 					if (this.mode == 'chopping') {
228 226
 						this.set = -48
229  
-						this.timber = parseInt(this.task_time/150)
230  
-						if (this.task_time > 3000) this.mode = "standing"
  227
+						this.timber = parseInt(this.task_time/100)
  228
+						if (this.task_time > 300) this.mode = "standing"
231 229
 					}
232 230
 					$(this.id).style.backgroundPosition = this.steps[this.step]+"px "+this.set+"px"
233 231
 					$(this.id).style.top = this.y+'px'

0 notes on commit 1b09283

Please sign in to comment.
Something went wrong with that request. Please try again.