-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
96 lines (85 loc) · 2.91 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
<!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/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>
<a href="#nav-panel" data-icon="bars" data-iconpos="notext">Menu</a>
<a href="#add-form" data-icon="plus" data-iconpos="notext">Add Something</a>
</header>
<div data-role="panel" data-position="left" data-position-fixed="false" data-display="reveal" id="nav-panel" data-theme="a">
<ul data-role="listview" style="margin-top:-16px;" class="nav-search">
<li data-icon="delete" style="background-color:#111;">
<a href="#" data-rel="close">Close menu</a>
</li>
<li>
<a href="#">Something</a>
</li>
<li>
<a href="#">Something Else</a>
</li>
</ul>
</div>
<style>
.switch .ui-slider-switch { width: 8.5em !important }
</style>
<div data-role="panel" data-position="right" data-position-fixed="false" data-display="overlay" id="add-form">
<form class="userform">
<h2>Create new user</h2>
<label for="name">Name</label>
<input type="text" name="name" id="name" value="" data-clear-btn="true" data-mini="true">
<label for="email">Email</label>
<input type="email" name="email" id="status" value="" data-clear-btn="true" data-mini="true">
<label for="password">Password:</label>
<input type="password" name="password" id="password" value="" data-clear-btn="true" autocomplete="off" data-mini="true">
<div class="switch">
<label for="status">Status</label>
<select name="status" id="slider" data-role="slider" data-mini="true">
<option value="off">Inactive</option>
<option value="on">Active</option>
</select>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<a href="#" data-rel="close" data-role="button" data-mini="true">Cancel</a>
</div>
<div class="ui-block-b">
<a href="#" data-rel="close" data-role="button" data-mini="true">Save</a>
</div>
</div>
</form>
</div>
<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', 'jquery.mobile'], function($, Channel){
var chan = new Channel();
chan.getVideos();
});
</script>
</div>
</body>
</html>