Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
christian
guess-the-city
Commits
30f55301
Commit
30f55301
authored
Jul 10, 2014
by
christian
Browse files
update files
parent
a5801f57
Changes
4
Hide whitespace changes
Inline
Side-by-side
img/pause.png
0 → 100644
View file @
30f55301
5.9 KB
img/play.png
0 → 100644
View file @
30f55301
9.07 KB
index.html
View file @
30f55301
...
...
@@ -5,13 +5,13 @@
<title>
CityGuess alpha
</title>
<meta
name=
"description"
content=
"Guess the city by its skyline"
>
<link
rel=
"stylesheet"
href=
"css/main.css"
>
<script
src=
"js/lib/modernizr-2.6.2.min.js"
></script>
<!--normal layout-->
<script
src=
"js/lib/modernizr-2.6.2.min.js"
></script>
</head>
<body
id=
"body"
>
<div
id=
"hint-text"
><p></p></div>
<div
id=
"player"
class=
"player"
>
<img
alt=
"play"
id=
"play"
src=
"
http://www.tympanus.net/PausePlay/images
/play.png"
width=
"100"
height=
"100"
style=
"display:none;"
/>
<img
alt=
"pause"
id=
"pause"
src=
"
http://www.tympanus.net/PausePlay/images
/pause.png"
width=
"100"
height=
"100"
style=
"display:none;"
/>
<img
alt=
"play"
id=
"play"
src=
"
img
/play.png"
width=
"100"
height=
"100"
style=
"display:none;"
/>
<img
alt=
"pause"
id=
"pause"
src=
"
img
/pause.png"
width=
"100"
height=
"100"
style=
"display:none;"
/>
</div>
<div
id=
"container"
><div
class=
"progress"
></div>
<div
class=
"hide-container"
>
...
...
@@ -20,14 +20,15 @@
<div
class=
"slidebox"
></div>
</div>
<div
id=
"status-bar"
>
<div
id=
"score"
></div><div
id=
"best"
></div><div
id=
"timer"
></div>
<!-- <div id="score"></div><div id="best"></div> -->
<div
id=
"timer"
></div>
<div
class=
"player-state"
></div><button
class=
"hint"
></button>
</div>
</div>
<script
src=
"https://code.jquery.com/jquery-git2.min.js"
></script>
<script
src=
"/js/TimeManager.js"
></script>
<script
src=
"/js/bind.js"
></script>
<script
src=
"/js/main.js"
></script>
<script
src=
"
http://dev.monkeybiz.at/CityGuess
/js/TimeManager.js"
></script>
<script
src=
"
http://dev.monkeybiz.at/CityGuess
/js/bind.js"
></script>
<script
src=
"
http://dev.monkeybiz.at/CityGuess
/js/main.js"
></script>
</body>
</html>
\ No newline at end of file
js/main.js
View file @
30f55301
/*global window, body, $, jQuery*/
/*jslint passfail: false, ass: true, nomen: true, sloppy: true, stupid: true, sub: true, vars: true, white: true */
/* ------------------------------------------------------------------------
Use: Main JavaScript file
Author: Christian Weiss
Author URI: www.monkeybiz.at || @eiweiss_online
Version: 0.0.2
------------------------------------------------------------------------- */
/* global window, body, $, jQuery */
/*
* CityGuess
* simple game with Images from Flickr
* Version: 0.0.2
TODO'S:
Score system - LocalStorage-Manager - Levels etc
*/
function
db
()
{
'
use strict
'
;
var
x
=
arguments
,
...
...
@@ -292,7 +294,7 @@ CityGuess.prototype.createTiles = function (level) {
$
(
this
).
css
({
width
:
tileW
,
height
:
tileH
,
background
:
'
url(
..
/img/disto.png) repeat
'
,
background
:
'
url(
http://dev.monkeybiz.at/CityGuess
/img/disto.png) repeat
'
,
position
:
'
absolute
'
,
border
:
'
1px solid rgba(0,0,0, 0.035)
'
,
top
:
nTop
,
...
...
@@ -353,4 +355,4 @@ CityGuess.prototype.togglePlay = function () {
$
(
document
).
ready
(
function
()
{
var
el
=
document
.
getElementById
(
'
slider
'
);
new
CityGuess
(
el
,
'
big
'
,
TimeManager
);
});
});
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment