forked from jazahn/mobility-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.21 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
<!DOCTYPE html>
<html>
<head>
<title>Mobility Workshop</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.4.2.min.css"></link>
<script src="/js/lib/jquery-2.1.0.min.js"></script>
<script src="/js/lib/jquery.mobile-1.4.2.min.js"></script>
<script src="/js/lib/require.js"></script>
<script>
requirejs.config({
paths: {
'jquery' : '/js/lib/jquery-2.1.0.min', //=> http://code.jquery.com/jquery-2.1.0.min
'jquery.mobile' : '/js/lib/jquery.mobile-1.4.2.min', //=> http://code.jquery.com/mobile/1.4.2/jquery.mobile-1.4.2.min
},
shim: {
'jquery' : '$',
'jquery.mobile': {
deps: ['jquery'],
},
},
});
</script>
</head>
<body>
<div data-role="page" data-theme="a">
<header data-role="header" data-position="fixed">
<h1>This is a header</h1>
</header>
<section data-role="main">
<input id="channel-input" data-type="search">
<ul id="channels" data-role="listview" data-filter="true" data-input="#channel-input">
</ul>
</section>
<script>
require(['jquery', 'js/Channel'], function($, Channel){
var chan = new Channel();
chan.getVideos();
});
</script>
</div>
</body>
</html>