Permalink
Browse files

styling

  • Loading branch information...
1 parent 263a2dc commit e1c58483c804ebfe079f22d255ca078bccb95f2e wwwtyro committed Apr 8, 2012
Showing with 13 additions and 8 deletions.
  1. +9 −4 index.html
  2. +4 −4 keyzen.js
View
@@ -22,6 +22,12 @@
font-family: 'Ubuntu Monokz', sans-serif;
padding: 0;
margin: 0;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
}
#container {
@@ -36,7 +42,6 @@
top: 50%;
margin-top: -64px;
height:128px;
- font-family: 'Ubuntu Monokz', sans-serif;
font-size: 128px;
width:100%;
padding: 0px;
@@ -49,7 +54,6 @@
.keys-hit {
color: #CCC;
- font-family: 'Ubuntu Monokz', sans-serif;
font-size: 128px;
text-shadow: none;
}
@@ -62,7 +66,6 @@
}
#level-chars {
- font-family: 'Ubuntu Monokz', sans-serif;
font-size: 16px;
width:95%;
text-align: center;
@@ -76,15 +79,17 @@
}
#rigor {
+ font-size: 16px;
position: absolute;
right: 16px;
bottom: 16px;
color: #AAA;
+ font-weight: bold;
+ text-align: right;
}
#rigor-number {
color: #000;
- font-size: 64px;
cursor: hand;
}
View
@@ -2,7 +2,7 @@
var data = {};
data.chars = " jfkdlsahgyturieowpqbnvmcxz6758493021`-=[]\\;',./ABCDEFGHIJKLMNOPQRSTUVWXYZ~!@#$%^&*()_+{}|:\"<>?";
-data.consecutive = 10;
+data.consecutive = 5;
data.word_length = 7;
@@ -115,19 +115,19 @@ function render_level() {
chars += "</span>";
}
chars += "</span>";
- $("#level-chars").html(chars + ' &#8592; click to set level');
+ $("#level-chars").html('click to set level: ' + chars);
}
function render_rigor() {
chars = "<span id='rigor-number' onclick='inc_rigor();'>";
chars += '' + data.consecutive;
chars += '<span>';
- $('#rigor').html('click to set required repititions &#8594; ' + chars);
+ $('#rigor').html('click to set required repititions: ' + chars);
}
function inc_rigor() {
data.consecutive += 1;
- if (data.consecutive > 10) {
+ if (data.consecutive > 9) {
data.consecutive = 2;
}
render_rigor();

0 comments on commit e1c5848

Please sign in to comment.