-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
200 lines (178 loc) · 8.51 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
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
<!DOCTYPE html>
<html>
<head>
<title>online playlist</title>
<meta charset="utf-8">
<link rel="shortcut icon" href="../favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<link rel="stylesheet" href="css/w3.css">
<!-- add styles and scripts -->
<link href="css/styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script>
// popup examples
$( document ).on( "pagecreate", function() {
// The window width and height are decreased by 30 to take the tolerance of 15 pixels at each side into account
function scale( width, height, padding, border ) {
var scrWidth = $( window ).width() - 30,
scrHeight = $( window ).height() - 30,
ifrPadding = 2 * padding,
ifrBorder = 2 * border,
ifrWidth = width + ifrPadding + ifrBorder,
ifrHeight = height + ifrPadding + ifrBorder,
h, w;
if ( ifrWidth < scrWidth && ifrHeight < scrHeight ) {
w = ifrWidth;
h = ifrHeight;
} else if ( ( ifrWidth / scrWidth ) > ( ifrHeight / scrHeight ) ) {
w = scrWidth;
h = ( scrWidth / ifrWidth ) * ifrHeight;
} else {
h = scrHeight;
w = ( scrHeight / ifrHeight ) * ifrWidth;
}
return {
'width': w - ( ifrPadding + ifrBorder ),
'height': h - ( ifrPadding + ifrBorder )
};
};
$( ".ui-popup iframe" )
.attr( "width", 0 )
.attr( "height", "auto" );
$( "#popupVideo" ).on({
popupbeforeposition: function() {
// call our custom function scale() to get the width and height
var size = scale( 497, 298, 15, 1 ),
w = size.width,
h = size.height;
$( "#popupVideo iframe" )
.attr( "width", w )
.attr( "height", h );
},
popupafterclose: function() {
$( "#popupVideo iframe" )
.attr( "width", 0 )
.attr( "height", 0 );
}
});
});
</script>
<style>
iframe {
border: none;
}
body {
margin: 0;
}
</style>
</head>
<body class="w3-black" data-theme="b" >
<div class="w3-black" data-role="page" data-theme="b" id="home">
<div data-role="header" data-position="fixed">
<h1>PlayList</h1>
</div><!-- /header -->
<div role="main" class=" w3-padding-64 w3-center ui-content">
<img src="cover.jpg" style="width:100px" alt="Car"><!-- COVER image -->
<p>Wakokin NAME?</p><!-- name of maiwaka-->
<div class="w3-row">
<div class="w3-col w3-border w3-container" style="width:50%"><p><a class="w3-button w3-text-white" href="#on_playlist"><i class="fa fa-headphones"></i>Online Playlist</a></p><!-- online playlist --></div>
<div class="w3-col w3-border w3-container" style="width:50%"><p><a class="w3-button w3-text-white" href="#playlist"><i class="fa fa-headphones"></i>Playlist</a></p><!-- offline playlist --></div>
</div>
<div class="w3-row">
<div class="w3-col w3-border w3-container" style="width:50%"><p><a class="w3-button w3-text-white" href="#videos">Videos<i class="fa fa-video"></i></a></p><!-- link to online server --></div>
<div class="w3-col w3-border w3-container" style="width:50%"><p><a class="w3-button w3-text-white" href="#about">About Me<i class="fa fa-video"></i></a></p><!-- link to online server --></div>
</div>
<br>
<br>
<br>
</div><!-- /footer -->
<div data-role="footer" data-position="fixed">
<h6>powerd by hytek</h6>
</div><!-- /footer -->
</div><!-- /page -->
<!-- start of the offline playlist -->
<div data-role="page" class="w3-black" id="playlist" data-theme="b" >
<div data-role="panel" data-display="push" data-theme="b" id="nav-panel">
<ul data-role="listview">
<li data-icon="delete"><a href="#" data-rel="close">Close menu</a></li>
</ul>
</div><!-- /panel -->
<div data-role="header" data-position="fixed">
<h1>playlist</h1>
<a href="#home" data-icon="back" data-iconpos="notext" class="close" onclick="stop_of();">Stop</a>
<script>
function stop_of(){
var iframe = document.getElementById('play');
iframe.src = iframe.src;
}
</script>
</div><!-- /header -->
<div role="main" class="ui-content">
<div id="popupVideo" data-overlay-theme="b" data-theme="b" class="ui-content"><!-- iframe for playlist-->
<iframe src="playlist/index.html" id="play" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" seamless=""></iframe>
</div>
</div><!-- /content -->
</div><!-- /page -->
<!--start of the online playlist -->
<div data-role="page" id="on_playlist" data-theme="b" >
<div data-role="panel" data-display="push" data-theme="b" id="nav-panel">
<ul data-role="listview">
<li data-icon="delete"><a href="#" data-rel="close">Close menu</a></li>
</ul>
</div><!-- /panel -->
<div data-role="header" data-position="fixed">
<h1>online playlist</h1>
<a href="#home" data-icon="back" data-iconpos="notext" class="close" onclick="stop_on();">Stop</a>
<script>
function stop_on(){
var iframe = document.getElementById('on_play');
iframe.src = iframe.src;
}
</script>
</div><!-- /header -->
<div role="main" class="ui-content">
<div id="popupVideo" data-overlay-theme="b" data-theme="b" class="ui-content"><!-- iframe for online playlist-->
<iframe src="http://www.cyclope.com.ng/comingsoon.php" id="on_play" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;" seamless=""></iframe>
</div>
</div><!-- /content -->
</div><!-- /page -->
<!-- start of videos-->
<div class="w3-black" data-role="page" id="videos" data-theme="b" >
<div data-role="panel" data-display="push" data-theme="b" id="nav-panel">
<ul data-role="listview">
<li data-icon="delete"><a href="#" data-rel="close">Close menu</a></li>
</ul>
</div><!-- /panel -->
<div data-role="header" data-position="fixed">
<h1>Online videos</h1>
<a href="#home" data-icon="back" data-iconpos="notext">Menu</a>
</div><!-- /header -->
<div role="main" class="ui-content">
</div><!-- /content -->
</div><!-- /page -->
<!-- start of about me- the owner of the app -->
<div class="w3-black" data-role="page" id="about" data-theme="b" >
<div data-role="panel" data-display="push" data-theme="b" id="nav-panel">
<ul data-role="listview">
<li data-icon="delete"><a href="#" data-rel="close">Close menu</a></li>
</ul>
</div><!-- /panel -->
<div data-role="header" data-position="fixed">
<h1>About</h1>
<a href="#home" data-icon="back" data-iconpos="notext">Menu</a>
</div><!-- /header -->
<div role="main" class="ui-content">
<p>About ME</p>
<p>~~~~~~!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>~~~~~~!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>~~~~~~!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
</div><!-- /content -->
</div><!-- /page -->
</body>