forked from mitthu786/TS-JioTV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
132 lines (121 loc) · 5.71 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
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
<!--
* Copyright 2021-2023 SnehTV, Inc.
* Licensed under MIT (https://github.com/mitthu786/TS-JioTV/blob/main/LICENSE)
* Created By : TechieSneh
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title>JIOTV+</title>
<meta charset="utf-8">
<meta name="description" content="ENJOY FREE LIVE JIOTV">
<meta name="keywords" content="JIOTV, LIVETV, SPORTS, MOVIES, MUSIC">
<meta name="author" content="Techie Sneh">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" type="image/x-icon" href="https://i.ibb.co/37fVLxB/f4027915ec9335046755d489a14472f2.png">
<link rel="stylesheet" href="app/assets/css/techiesneh.min.css">
<link rel="stylesheet" href="app/assets/css/search.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lazysizes.min.js"></script>
<script src="https://code.iconify.design/2/2.1.2/iconify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lazysizes/4.1.5/lazysizes.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
<body>
<header>
<div id="jtvh1">
<img src="https://ik.imagekit.io/techiesneh/tv_logo/jtv-plus_TMaGGk6N0.png" alt="JIOTV+">
</div>
<div id="userButtons">
<button id="loginButton">Login</button>
<button id="logoutButton">Logout</button>
<button id="PlayListButton">PlayList</button>
</div>
</header></br>
<div id="searchWrapper">
<input type="text" name="searchBar" id="searchBar" placeholder="Search ..." />
</div>
<div id="content">
<div class="container">
<div class="filters">
<label for="genreFilter">Genre:</label>
<select id="genreFilter">
<option value="">All</option>
<option value="Entertainment">Entertainment</option>
<option value="Movies">Movies</option>
<option value="Kids">Kids</option>
<option value="Sports">Sports</option>
<option value="Lifestyle">Lifestyle</option>
<option value="Infotainment">Infotainment</option>
<option value="News">News</option>
<option value="Music">Music</option>
<option value="Devotional">Devotional</option>
<option value="Business">Business</option>
<option value="Educational">Educational</option>
<option value="Shopping">Shopping</option>
<option value="JioDarshan">JioDarshan</option>
</select>
<label for="langFilter">Language:</label>
<select id="langFilter">
<option value="">All</option>
<option value="Hindi">Hindi</option>
<option value="English">English</option>
<option value="Marathi">Marathi</option>
<option value="Punjabi">Punjabi</option>
<option value="Urdu">Urdu</option>
<option value="Bengali">Bengali</option>
<option value="Malayalam">Malayalam</option>
<option value="Tamil">Tamil</option>
<option value="Gujarati">Gujarati</option>
<option value="Odia">Odia</option>
<option value="Telugu">Telugu</option>
<option value="Bhojpuri">Bhojpuri</option>
<option value="Kannada">Kannada</option>
<option value="Assamese">Assamese</option>
<option value="Nepali">Nepali</option>
<option value="French">French</option>
</select>
</div>
<div id="charactersList" class="row">
</div>
</div>
</div>
<script src="app/assets/js/search.js"></script>
</body>
<script>
document.getElementById("loginButton").addEventListener("click", function() {
window.location.href = "app/login.php";
});
document.getElementById("logoutButton").addEventListener("click", function() {
var xhr = new XMLHttpRequest();
xhr.open("POST", "app/logout.php", true);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status === 200) {
alert(xhr.responseText);
}
};
xhr.send();
});
const PlayListButton = document.getElementById('PlayListButton');
PlayListButton.addEventListener('click', () => {
var protocol = window.location.protocol;
var localIP = window.location.hostname;
var port = window.location.port;
if (window.location.hostname !== "127.0.0.1" && window.location.hostname !== "localhost") {
var hostJio = window.location.host;
} else {
var hostJio = localIP + (port ? ':' + port : '');
}
var jioPath = protocol + '//' + hostJio + window.location.pathname.replace(/\/[^/]*$/, '');
var jioPath = jioPath + '/app/playlist.php';
navigator.clipboard.writeText(jioPath)
.then(() => {
alert('PlayList URL copied to Clipboard!');
})
.catch((error) => {
console.error('Error copying URL:', error);
});
});
</script>
</html>