-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
78 lines (69 loc) · 2.87 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
<!doctype html>
<HTML lang="en" class="ui-mobile">
<head>
<meta charset="utf-8">
<title>AllPlayers</title>
<!--debug meta tags -->
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<meta name="description" content="">
<meta name="author" content="">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--Style-->
<!--Scripts-->
<!--<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>-->
<script type="text/javascript" src="modernizr.js"></script>
<script type="text/javascript" src="toucher.js"></script>
<script type="text/javascript" src="phoney.js"></script>
<script type="text/javascript">
var config = {
groups : { //groups will be evaluated as they are defined
//groups are matched using AND. if one of the properties does not match, the group falls out.
'html5': 'localStorage io',
'iphoneApp': 'iphone',
'default': 'default'
},
routers: {
'html5': { //routes for html5 group match
//search : replace
'http://www.google.com': 'http://www.bing.com',
'groups.html' : 'groups-html5.html',
'index.html' : 'index-html5.html',
'(somefolder)\\/([A-z0-9\\.]+)': 'somehtml5folder/$2', //all escape \ must be \\
'(somenewfolder)\\/([A-z0-9\\.]+)/([A-z0-9\\.]+)': 'somenewfolder/$2/index5',
'(somenewfolder)\\/([A-z0-9\\.]+)/([A-z0-9\\.]+)': '$1/anothernewfolder/$2/$35'
}
}
}
var Phoney = Phoney(config);
window.onload = function(){
console.log('ready');
Phoney.startListening();
}
</script>
<!--End Scripts-->
</head>
<body>
<div id="page">
<div data-role="content" id="content" class="main ui-content" role="main">
<ul>
<h3>direct router matches</h3>
<li><a href="http://www.google.com">External Google</a></li>
<li><a href="groups.html">groups.html - > groups-html5.html</a></li>
<li><a href="index.html">index.html -> index-html5.html</a></li>
<h3>router[3]</h3>
<li><a href="somefolder/somefile.html">somefolder/somefile.html - > somehtml5folder/somefile.html</a></li>
<li><a href="somefolder/somefile2.html">somefolder/somefile2.html - > somehtml5folder/somefile2.html</a></li>
<h3>router[4]</h3>
<li><a href="somenewfolder/bob/index">somenewfolder/bob/index - > somenewfolder/bob/index5</a></li>
<li><a href="somenewfolder/dollop/index">somenewfolder/dollop/index - > somenewfolder/dollop/index5</a></li>
<h3>router[5]</h3>
<li><a href="somenewfolder/dollop/index">
somenewfolder/dollop/index -> somenewfolder/anothernewfolder/dollop/index5
</a></li>
</ul>
</div><!--end content-->
</div> <!-- end of #page -->
</body>
</html>