Permalink
Browse files

- Players can now change their nick.

- Improved anonymous player code.
- Now using static file instead of template for HTML.
- Design improvements.
  • Loading branch information...
1 parent 959c15f commit 538f33f7af0c91a6ab65235d09ef289977f4648b @blixt committed Jun 11, 2008
Showing with 253 additions and 57 deletions.
  1. +4 −0 app.yaml
  2. +74 −17 css/site.css
  3. +5 −13 index.yaml
  4. +82 −10 js/monkey.js
  5. +23 −1 main.py
  6. +17 −0 misc/home.html
  7. +47 −15 monkey.py
  8. +1 −1 templates/home.html
View
@@ -4,6 +4,10 @@ runtime: python
api_version: 1
handlers:
+- url: /
+ static_files: misc/home.html
+ upload: misc/home\.html
+
- url: /favicon\.ico
mime_type: image/gif
static_files: misc/favicon.gif
View
@@ -5,16 +5,10 @@
padding: 15px;
}
-#user {
- font-size: medium;
- line-height: 40px;
- position: absolute;
- right: 55px;
- top: 30px;
-}
-
-#user a {
- color: #8f0;
+#source {
+ border-top: #080 solid 1px;
+ margin: 0;
+ padding-top: .5em;
}
* {
@@ -66,28 +60,34 @@ div.monkey button {
}
div.monkey div.game ol {
+ border-bottom: #080 solid 1px;
font-size: small;
line-height: 1em;
list-style: none;
- margin-bottom: 1em;
+ margin-bottom: .7em;
overflow: auto;
}
div.monkey div.game ol li {
background: #efe;
+ border-color: #080;
+ border-style: solid;
+ border-width: 1px 1px 0;
color: #080;
float: left;
margin-right: .5em;
- padding: .3em;
+ padding: .5em;
}
div.monkey div.game ol li.current {
background: #ffe;
- color: #760;
+ border-color: #a80;
+ color: #a80;
}
div.monkey div.game ol li.open {
background: #eee;
+ border-color: #666;
color: #666;
}
@@ -179,6 +179,11 @@ div.monkey div.lobby .rule-set {
width: 60%;
}
+div.monkey div.lobby tbody tr:hover {
+ outline-style: solid;
+ outline-width: 2px;
+}
+
div.monkey div.lobby td {
border-color: #eee;
border-style: solid;
@@ -197,59 +202,111 @@ div.monkey div.lobby td.rule-set small {
font-size: x-small;
}
-div.monkey div.lobby td.slot, div.monkey div.lobby td.slot button {
+div.monkey div.lobby td.slot {
font-size: small;
line-height: 1em;
}
+div.monkey div.lobby td.slot span {
+ color: #aaa;
+ font-style: italic;
+}
+
div.monkey div.lobby th {
font-family: Georgia, serif;
}
+div.monkey div.lobby tr {
+ outline-color: #ccc;
+}
+
div.monkey div.lobby tr.aborted td {
color: #aaa;
}
+div.monkey div.lobby tr.loss {
+ outline-color: #c00;
+}
+
div.monkey div.lobby tr.loss td {
background: #fee;
border-color: #fdd;
color: #c00;
}
+div.monkey div.lobby tr.win {
+ outline-color: #080;
+}
+
div.monkey div.lobby tr.win td {
background: #efe;
border-color: #dfd;
color: #080;
}
+div.monkey div.lobby tr.playing {
+ outline-color: #fc0;
+}
+
div.monkey div.lobby tr.playing td {
background: #ffc;
border-color: #fea;
}
div.monkey div.lobby ul {
+ border-bottom: #080 solid 1px;
list-style: none;
margin: 1em 0 .5em;
overflow: auto;
}
div.monkey div.lobby ul a {
background: #eee;
- border: #ccc solid 1px;
- color: #333;
+ border-color: #aaa;
+ border-style: solid;
+ border-width: 1px 1px 0;
+ color: #888;
display: block;
+ outline: none;
padding: .2em .5em;
text-decoration: none;
}
div.monkey div.lobby ul li {
float: left;
- margin-right: .5em;
+ margin-left: .3em;
+}
+
+div.monkey div.lobby.past li.past a,
+div.monkey div.lobby.play li.play a,
+div.monkey div.lobby.view li.view a {
+ background-color: #efe;
+ border-color: #080;
+ color: #080;
+}
+
+div.monkey p.player {
+ color: #fff;
+ font-size: medium;
+ line-height: 40px;
+ position: absolute;
+ right: 55px;
+ top: 30px;
+}
+
+div.monkey p.player a {
+ color: #8f0;
+}
+
+div.monkey p.player a.alert {
+ background: #8f0;
+ color: #333;
}
div.monkey select {
font-size: large;
margin-right: .5em;
+ width: 200px;
}
div.monkey table {
View
@@ -10,31 +10,23 @@ indexes:
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.
-# Used 1478 times in query history.
+# Used 290 times in query history.
- kind: Game
properties:
- name: players
- name: state
- name: last_update
direction: desc
-# Used 1250 times in query history.
+# Used 274 times in query history.
- kind: Game
properties:
- name: state
- name: last_update
direction: desc
-# Used 2 times in query history.
-- kind: Game
- properties:
- - name: state
- - name: players
-
# Used 6 times in query history.
-- kind: Game
+- kind: Player
properties:
- - name: state
- - name: players
- - name: last_update
- direction: desc
+ - name: session
+ - name: expires
Oops, something went wrong.

0 comments on commit 538f33f

Please sign in to comment.