-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
217 lines (163 loc) · 6.24 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!doctype html>
<meta charset="utf-8">
<title>Ultimate Scoreboard</title>
<meta name="description" content="Scoreboard app specifically for ultimate frisbee">
<meta name="author" content="Gregory Pike">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="user-scalable=yes; width=device-width; height=device-height; initial-scale=1.0;" />
<!-- Place favicon.ico and apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!--[if IE]><![endif]--><!-- Used to speed CSS loading -->
<link rel="stylesheet" href="reset.css">
<link rel="stylesheet" href="styles.css?v=1.0">
<link rel="stylesheet" href="bootstrap.min.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- BEGIN CONTENT - EDIT HERE -->
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Ultimate Scoreboard</a>
<ul class="nav pull-right">
<li class="pull-right"><a href="#new-game">
<i class="icon-plus-sign icon-white"></i>
New Game
</a></li>
<!--<li class="pull-right"><a href="#game-settings">
<i class="icon-cog icon-white"></i>
Game Settings
</a></li>-->
</ul>
</div>
</div>
</div>
<!-- End Nav -->
<div class="container-fluid scoreboard-back">
<div class="row-fluid">
<h1 class="our-name team-score data-us text-align-center">Us</h1>
<h1 class="their-name team-score data-them text-align-center">Them</h1>
</div>
<div class="row-fluid">
<div class="team-score" data-team="us">
<div class="displayed-score data-usScore text-align-center">0</div>
<div class="score-actions">
<button class="action-increment-score btn btn-large btn-inverse">Goal!</button>
<button class="action-decrement-score fix">Fix</button>
</div>
</div>
<div class="team-score" data-team="them">
<div class="displayed-score data-themScore text-align-center">0</div>
<div class="score-actions">
<button class="action-increment-score btn btn-large btn-inverse">Goal!</button>
<button class="action-decrement-score fix">Fix</button>
</div>
</div>
</div>
</div>
<!-- Modals -->
<div class="modal hide" id="game-settings-modal">
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h3>Game Settings</h3>
</div>
<div class="modal-body container-fluid">
<form class="well">
<div class="row-fluid">
<div class="span6">
<label>Our Team Name</label>
<input type="text" class="settings-us span3" placeholder="Us">
<label>Their Team Name</label>
<input type="text" class="settings-them span3" placeholder="Them">
</div>
<div class="span6">
<label>Our Current Score</label>
<input type="text" class="settings-usScore span1" placeholder="0">
<label>Their Current Score</label>
<input type="text" class="settings-themScore span1" placeholder="0">
</div>
</div>
<div class="row-fluid">
<label>Time Cap</label>
<input type="text" class="settings-timeCap span1" placeholder="0">
</div>
</form>
</div>
<div class="modal-footer">
<a href="#cancel" class="btn" data-dismiss="modal">Cancel</a>
<a href="#continue" class="btn btn-primary">Continue</a>
</div>
</div>
<!-- Team name -->
<div class="modal hide team-name-modal-override" id="team-name-modal">
<div class="modal-body container-fluid">
<div class="row-fluid">
<label>Team Name</label>
<div class="input-prepend">
<span class="add-on"><i class="icon-home"></i></span><input type="text" class="span11 update-team">
</div>
<!--<input type="text" class="update-team span12" placeholder="Team name">-->
</div>
<div class="row-fluid">
<a href="#cancel" class="btn" data-dismiss="modal">Cancel</a>
<a href="#update" class="btn btn-primary hide">Update</a>
</div>
</div>
</div>
<!-- END CONTENT - STOP EDITING -->
<!-- JAVASCRIPT -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script>if (typeof jQuery == "undefined") document.write(unescape('%3Cscript src="js/jquery-1.7.1.min.js" type="text/javascript"%3E%3C/script%3E'));</script>
<script src="js/bootstrap.min.js"></script>
<!--<script src="https://raw.github.com/davatron5000/FitText.js/master/jquery.fittext.js"></script>-->
<script>
/*global jQuery */
/*!
* FitText.js 1.0
*
* Copyright 2011, Dave Rupert http://daverupert.com
* Released under the WTFPL license
* http://sam.zoy.org/wtfpl/
*
* Date: Thu May 05 14:23:00 2011 -0600
*/
(function( $ ){
$.fn.fitText = function( kompressor, options ) {
var settings = {
'minFontSize' : Number.NEGATIVE_INFINITY,
'maxFontSize' : Number.POSITIVE_INFINITY
};
return this.each(function(){
var $this = $(this); // store the object
var compressor = kompressor || 1; // set the compressor
if ( options ) {
$.extend( settings, options );
}
// Resizer() resizes items based on the object width divided by the compressor * 10
var resizer = function () {
$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
};
// Call once to set.
resizer();
// Call on resize. Opera debounces their resize by default.
$(window).resize(resizer);
});
};
})( jQuery );
</script>
<script src="js/scoreboard.js"></script>
<!-- asynchronous google analytics
change the UA-XXXXX-X to be your site's ID -->
<script>
var _gaq = [['_setAccount', 'UA-XXXXX-X'], ['_trackPageview']];
(function(d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.async = true;
g.src = '//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
})(document, 'script');
</script>