-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
104 lines (89 loc) · 6.47 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html>
<head>
<title>Swiss GeoPuzzle</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="static/images/favicon.ico" rel="shortcut icon" />
<meta property="og:title" content="Swiss GeoPuzzle - How good are YOU at Swiss Geography ?"/>
<meta property="og:type" content="non_profit"/>
<meta property="og:url" content="http://maps.vasile.ch/geopuzzle/"/>
<meta property="og:image" content="http://maps.vasile.ch/geopuzzle/static/images/embed_social_200px.png"/>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
<link href="static/map.css?v=2013-10-27" rel="stylesheet" type="text/css" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCJkc_vUlnZCJzXfLWJR3oOeLbtEOoElpA&sensor=false&libraries=geometry"></script>
<script type="text/javascript" src="ext/google-maps-polygon-moveto/js/google.maps.Polygon.getBounds.js"></script>
<script type="text/javascript" src="ext/google-maps-polygon-moveto/js/google.maps.Polygon.moveTo.js"></script>
<script src="static/map.js?v=2013-10-27"></script>
<script src="static/map.js"></script>
</head>
<body>
<div data-role="page" id="map_page">
<div data-role="panel" id="game_init">
<div class="panel-content">
<h2>Swiss GeoPuzzle</h2>
<p>How good are you at Swiss Geography ? Try your skills by dragging and matching each polygon(canton) against the correct position on the map.</p>
<fieldset data-role="controlgroup" data-type="horizontal" id="game_type" class="hidden">
<legend>Choose the game type:</legend>
<div id="game_types"></div>
</fieldset>
<fieldset data-role="controlgroup" data-type="horizontal" id="difficulty">
<legend>Choose difficulty:</legend>
<input type="radio" name="difficulty" id="difficulty_easy" value="easy" checked="checked" />
<label for="difficulty_easy">Easy</label>
<input type="radio" name="difficulty" id="difficulty_hard" value="hard" />
<label for="difficulty_hard">Hard</label>
</fieldset>
<input type="button" data-rel="close" data-icon="arrow-r" data-inline="true" value="START" data-theme="e" />
<p>Created by <a href="http://www.vasile.ch/" target="_blank">Vasile Coțovanu</a> and inspired from <a href="http://www.morethanamap.com/demos/visualization/puzzle" target="_blank">Luke Mahe</a>'s hack on GMaps draggable polygons. Powered by <a href="http://view.jquerymobile.com/1.3.0/" target="_blank">jQueryMobile</a>.</p>
<p>Geodata source: <a href="http://www.bfs.admin.ch/bfs/portal/en/index/themen/00/04.html" target="_blank">BFS</a>.</p>
<p>The game source code is available on <a href="https://github.com/vasile/geopuzzle" target="_blank">Github</a>.
</div>
</div>
<div data-role="panel" id="game_end">
<div class="panel-content">
<h2>Congratulations !</h2>
<div>Your time: <b><span id="timer_stats_final"></span></b>
<div id="game_end_tweet_placeholder"></div>
</div>
<input type="button" value="START OVER" data-icon="arrow-l" data-inline="true" class="new_game" data-theme="e" data-ignore-warnings="yes" />
</div>
</div>
<div data-role="content" id="map_content">
<div id="map_canvas"></div>
<div id="stats_polygons" class="panel">
<h2 id="polygon_stats">0/0</h2>
<div class="details">matched polygons</div>
</div>
<div id="stats_time" class="panel hidden">
<h2 id="timer_stats">00:00</h2>
<input type="button" value="Stuck ?" id="load_polygon" data-theme="b" data-mini="true" />
<div class="details">Draw another polygon</div>
<input type="button" value="NEW GAME" class="new_game" data-theme="e" data-mini="true" />
</div>
<div id="game_bar_help" class="vis_hidden game_bar">Stuck ? Press spacebar to draw a new polygon</div>
<div id="social">
<div>
<a href="https://twitter.com/share" class="twitter-share-button" data-text="How good are you at Swiss Geography ?" data-lang="en" data-hashtags="quiz,trivia">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<div>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmaps.vasile.ch%2Fgeopuzzle%2F&send=false&layout=button_count&width=100&show_faces=true&action=like&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe>
</div>
<div>
<g:plusone size="medium"></g:plusone>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
</div>
</div>
</div>
</div>
</body>
</html>