-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.html
211 lines (180 loc) · 9.95 KB
/
sidebar.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="Hazrat Ali" content="A PHP , VUE application">
<link rel="icon" href="/app/assets/img/favicon.png">
<title>Player Electron</title>
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- Our Custom CSS -->
<link rel="stylesheet" href="app/assets/css/style5.css">
<!-- JQuery -->
<script src="./app/assets/js/jquery.js"></script>
<!-- Vue -->
<script src="https://unpkg.com/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
</head>
<body>
<div id="wrapper" class="wrapper">
<!-- Sidebar Holder -->
<nav id="sidebar">
<div class="sidebar-header">
<h3>Bootstrap Sidebar</h3>
</div>
<ul class="list-unstyled components">
<p>Dummy Heading</p>
<li class="active">
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false">Home</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li><a href="#">Home 1</a></li>
<li><a href="#">Home 2</a></li>
<li><a href="#">Home 3</a></li>
</ul>
</li>
<li>
<a href="#">About</a>
<a href="#pageSubmenu" data-toggle="collapse" aria-expanded="false">Pages</a>
<ul class="collapse list-unstyled" id="pageSubmenu">
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
<li><a href="#">Page 3</a></li>
</ul>
</li>
<li>
<a href="#">Portfolio</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
<ul class="list-unstyled CTAs">
<li><a href="https://bootstrapious.com/tutorial/files/sidebar.zip" class="download">Download source</a></li>
<li><a href="https://bootstrapious.com/p/bootstrap-sidebar" class="article">Back to article</a></li>
</ul>
</nav>
<!-- Page Content Holder -->
<div id="content">
<nav id="nav" class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" id="sidebarCollapse" class="navbar-btn">
<span></span>
<span></span>
<span></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><button type="button" id="tv92" class="btn btn-success"> TV 92</button></li>
<li><button type="button" id="geotaiz" class="btn btn-info" data-target="http://stream.jeem.tv/geo/geotezz/playlist.m3u8"> Geo Taiz</button></li>
<li><button type="button" id="bigbunny" class="btn btn-info" data-target="https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8"> Big Bunny</button></li>
<li><button type="button" id="eye95" class="btn btn-info" data-target="http://cdn20.liveonlineservices.com/hls/eye95tv.m3u8"> Eye 95</button></li>
<li><button type="button" id="expressnews" class="btn btn-info" data-target="http://expressdigital.flashmediacast.com:1935/expressdigital/livestream/playlist.m3u8"> Express News</button></li>
<li><button type="button" id="fourthLeft" class="btn btn-info"> Fourth Left</button></li>
<li><button type="button" id="fourthRight" class="btn btn-info"> Fourth Right</button></li>
<li><button type="button" id="maxVideo" class="btn btn-info"> Max Video</button></li>
</ul>
</div>
</div>
</nav>
<div style="padding: 0; margin: 0">
<video id="video" autoplay style="width: 100%" controls></video>
</div>
<div class="line"></div>
<h2>Lorem Ipsum Dolor</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="line"></div>
<h3>Lorem Ipsum Dolor</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
<!-- jQuery CDN -->
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<!-- Bootstrap Js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
$(this).toggleClass('active');
});
function loadVideo(filePath) {
var video = document.getElementById('video');
if(Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(filePath);
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play();
});
}
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
video.addEventListener('loadedmetadata',function() {
video.play();
});
}
}
$('#tv92').on('click', function (e) {
loadVideo('http://92news.vdn.dstreamone.net/92newshd/92hd/playlist.m3u8');
});
$('#bigbunny').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#eye95').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#expressnews').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#geotaiz').on('click', function (e) {
var $target = $(this).data('target');
loadVideo($target);
});
$('#fourthLeft').on('click', function (e) {
window.resizeTo(screen.width/2, screen.height/2);
window.moveTo(0, 0);
});
$('#fourthRight').on('click', function (e) {
// window.resizeTo(screen.width/2, screen.height/2);
window.moveBy(50 , 10);
});
$('#maxVideo').on('click', function (e) {
$('#sidebar').toggleClass('inActive');
$('#wrapper').css("padding", "0");
$('#content').css("padding", "0");
$('#wrapper').css("margin", "0");
$('#content').css("margin", "0");
$('#nav').css("display", "none");
var vid = $('#video');
vid.css("width", "100%");
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script>
var video = document.getElementById('video');
if(Hls.isSupported()) {
var hls = new Hls();
hls.loadSource('http://stream.jeem.tv/geo/geotezz/playlist.m3u8');
hls.attachMedia(video);
hls.on(Hls.Events.MANIFEST_PARSED,function() {
video.play();
});
}
else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = 'https://video-dev.github.io/streams/x36xhzz/x36xhzz.m3u8';
video.addEventListener('loadedmetadata',function() {
video.play();
});
}
</script>
</body>
</html>