This repository has been archived by the owner on Feb 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
/
index.php
42 lines (38 loc) · 1.45 KB
/
index.php
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
<html>
<!-- DO NO EDIT ANYTHING TO WORK PORPELY -->
<!-- © @AvishkarPatil | https://github.com/avipatilpro -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" />
<title>Avi JioTV LIVE</title>
<link rel="shortcut icon" type="image/x-icon" href="https://i.ibb.co/37fVLxB/f4027915ec9335046755d489a14472f2.png">
<meta name="robots" content="noindex" />
<link rel="stylesheet" href="data/css/darkmode.min.css">
<script src="https://cdn.jsdelivr.net/npm/lazysizes@5.3.2/lazysizes.min.js"></script>
</head>
<body>
<div id="jtvh1">
<a href="https://github.com/avipatilpro">
<h1>JioTV Live</h1> </div>
</a>
<div id="content">
<div class="container">
<div id="list" class="row">
<?php
$json = json_decode(file_get_contents('data/channels.json') , true);
foreach ($json['result'] as $channel)
{
echo '<div class="col-6 col-sm-4 col-md-3 col-lg-3 col-xl-2">' . PHP_EOL;
printf("<a href=\"play.php?c=%s\" class=\"card\">" . PHP_EOL, $channel['target']);
printf("<img class=\"lazyload\" data-src=\"http://jiotv.catchup.cdn.jio.com/dare_images/images/%s\" style=\"height: 120px\">" . PHP_EOL, $channel['logoUrl']);
echo '<div class="card-body">' . PHP_EOL;
printf("<p class=\"card-text\">%s</p>" . PHP_EOL, $channel['channel_name']);
echo '</div>' . PHP_EOL;
echo '</a>' . PHP_EOL;
echo '</div>' . PHP_EOL;
}
?> </div>
</div>
</div>
</body>
</html>