-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
251 lines (227 loc) · 8.99 KB
/
index.html
File metadata and controls
251 lines (227 loc) · 8.99 KB
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>Priflix</title>
<!-- Google Drive API Meta Tags -->
<meta id="title" content="Priflix">
<!-- Stylesheets -->
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">
<!-- Favicon -->
<link rel="shortcut icon" href="/logo.jpg" type="image/x-icon">
</head>
<body>
<style>
* {
-webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
-webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
outline: none !important;
}
.index-page .home-btn {
display: none;
}
</style>
<script>
// Check authentication
if (!localStorage.getItem('isAuthenticated')) {
window.location.href = 'login.html';
}
</script>
<!-- Header/Navigation -->
<header class="header">
<div class="header-content">
<div class="logo">
<img class="logo" onclick="window.location.href='/'" src="/Logo.png" alt="Logo" />
</div>
<nav class="main-nav">
<ul>
<li class="active"><a href="#">Home</a></li>
<li><a href="#movies">Movies</a></li>
<li><a href="#series">Series</a></li>
<li><a href="#anime">Anime</a></li>
<li><a href="#cartoons">Cartoons</a></li>
<li><a href="#mylist">My List</a></li>
</ul>
</nav>
<div class="header-right">
<div class="search-container">
<input type="text" id="searchInput" placeholder="Search for movies...">
<button id="searchBtn"><i class="fas fa-search"></i></button>
</div>
</div>
</div>
</header>
<!-- Hero Banner -->
<section class="hero-banner" id="heroBanner">
<!-- Content will be dynamically added here -->
<div class="hero-content">
<h2 class="hero-title">Loading...</h2>
<p class="hero-description">Please wait while we load content...</p>
<div class="hero-buttons">
<button class="play-btn"><i class="fas fa-play"></i> Play</button>
<button class="more-info-btn"><i class="fas fa-info-circle"></i> More Info</button>
</div>
</div>
</section>
<!-- Content Sections -->
<main class="content">
<!-- Seasonal content will be dynamically added here -->
<!-- Series Section -->
<section class="movie-row" id="series">
<h2 class="row-title">Series</h2>
<div class="movie-slider" id="seriesContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- Anime Section -->
<section class="movie-row" id="anime">
<h2 class="row-title">Anime</h2>
<div class="movie-slider" id="animeContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- Movies Section -->
<section class="movie-row" id="movies">
<h2 class="row-title">Movies</h2>
<div class="movie-slider" id="movieContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- Cartoon Movies Section -->
<section class="movie-row" id="cartoons">
<h2 class="row-title">Cartoon Movies</h2>
<div class="movie-slider" id="cartoonMoviesContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- Cartoon Series Section -->
<section class="movie-row" id="cartoonSeries">
<h2 class="row-title">Cartoon Series</h2>
<div class="movie-slider" id="cartoonSeriesContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- My List Section -->
<section class="movie-row" id="mylist">
<h2 class="row-title">My List</h2>
<div class="movie-slider" id="myListContent">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
<!-- Trending Now -->
<section class="movie-row">
<h2 class="row-title">Trending Now</h2>
<div class="movie-slider" id="trendingMovies">
<!-- Content will be dynamically added here -->
<div class="loading-spinner"></div>
</div>
<div class="slider-nav left">
<i class="fas fa-chevron-left"></i>
</div>
<div class="slider-nav right">
<i class="fas fa-chevron-right"></i>
</div>
</section>
</main>
<!-- Movie Details Modal -->
<div class="modal" id="movieModal">
<div class="modal-content">
<button class="close-modal" aria-label="Close modal">×</button>
<div class="modal-body">
<!-- Content will be dynamically added here -->
</div>
</div>
</div>
<!-- Footer -->
<footer class="footer">
<div class="footer-bottom">
<p>© 2025 Priflix. This website is for personal use only</p>
<p>
Designed by
<a href="https://tejasmali.vercel.app" target="_blank" rel="noopener noreferrer">Tejas Mali</a>
</p>
</div>
</footer>
<!-- Config and API keys -->
<script src="config.js"></script>
<!-- Content Data -->
<script src="content-data.js"></script>
<!-- URL Query Parameter Handling -->
<script>
// Function to handle direct content access via URL parameters
function handleDirectContentAccess() {
const urlParams = new URLSearchParams(window.location.search);
const folderId = urlParams.get('folderId');
const title = urlParams.get('title');
const type = urlParams.get('type');
// If we have direct content parameters, redirect to streaming page
if (folderId && title) {
const streamingUrl = new URL('streaming.html', window.location.origin);
streamingUrl.searchParams.set('folderId', folderId);
streamingUrl.searchParams.set('title', title);
if (type) streamingUrl.searchParams.set('type', type);
// Redirect to streaming page
window.location.href = streamingUrl.toString();
return true;
}
return false;
}
// Check for direct content access before app initialization
if (!handleDirectContentAccess()) {
// Continue normal app initialization if no direct content access
document.addEventListener('DOMContentLoaded', () => {
// Initialize My List after app loads
renderMyList();
});
}
</script>
<!-- Main JavaScript -->
<script src="app.js"></script>
<script src="js/pwa-app request.js"></script>
</body>
</html>