-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
executable file
·53 lines (39 loc) · 2.03 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
<!DOCTYPE html>
<html>
<head>
<title>Roookies</title>
<script src="http://dev.sencha.com/deploy/touch/sencha-touch.js" type="text/javascript"></script>
<script type="text/javascript">
// delete this whole script block if you want to hard-code the CSS and font files into your index.html instead
// eg:
// <link rel="stylesheet" type="text/css" href="theming/mytheme.css"/>
var qs = {},
re = /([^&=]+)=([^&]+)?/g; // naive, good enough
while (m = re.exec(location.search.substr(1))) {
qs[decodeURIComponent(m[1])] = decodeURIComponent(m[2]);
}
if (qs['style']=='demo') {
qs['style'] = 'theming/roookies.css';
qs['font'] = 'Pacifico';
}
if (!(style = qs['style'])) {
style = 'http://dev.sencha.com/deploy/touch/resources/css/sencha-touch.css';
}
document.write('<link id="style" rel="stylesheet" type="text/css" href="' + style + '"/>');
if (font = qs['font']) {
var fonts = font.split(',');
for (var f=0, l=fonts.length; f<l; f++) {
document.write('<link id="font" rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=' + fonts[f] + '"/>');
}
}
</script>
<script type="text/javascript" src="app/app.js"></script>
<script type="text/javascript" src="app/models/Player.js"></script>
<script type="text/javascript" src="app/models/Shot.js"></script>
<script type="text/javascript" src="app/models/Comment.js"></script>
<script type="text/javascript" src="app/views/Viewport.js"></script>
<script type="text/javascript" src="app/views/ShotsLists.js"></script>
<script type="text/javascript" src="app/views/ShotDetail.js"></script>
<script type="text/javascript" src="app/controllers/shots.js"></script>
</head><body></body>
</html>