forked from noname25495/novafork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
229 lines (204 loc) · 14 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Single viewport meta tag -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Novafork2 - Your Gateway to Quality Content</title>
<link rel="icon" href="./logo.png" sizes="32x32" type="image/png">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<meta name="description" content="Novafork2 breaks down the paywall, ensuring that quality content is accessible to everyone. Click, watch, enjoy.">
<meta property="og:title" content="Novafork2">
<meta property="og:description" content="Click, watch, enjoy. Novafork2 breaks down the paywall, ensuring that quality content is accessible to everyone.">
<meta name="theme-color" content="#A17FC0">
<meta name="referrer" content="origin">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<!-- Versioning added to normalize.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css?v=1.16">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet">
<!-- Include Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Versioning added to Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css?v=1.16">
<!-- Consolidated in one Css file with versioning -->
<link rel="stylesheet" href="themes/themes.css?v=1.4.64">
<!-- jQuery with versioning -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js?v=1.8"></script>
</head>
<body class="font-poppins bg-gradient-to-br from-gray-900 to-black text-gray-100">
<main class="min-h-screen py-8 px-4 sm:px-6 lg:px-8">
<div class="container mx-auto">
<!-- Header Section -->
<div class="text-center mb-12">
<h1
class="text-4xl sm:text-6xl font-extrabold tracking-tight text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-600 neon-text">
<a href="/" id="logo" style="text-decoration: none;">
<span class="text-blue-500">Nova</span><span class="text-purple-500">fork2</span>
</a>
</h1>
<p class="text-sm sm:text-base text-gray-400 mt-2">
Discover and stream your favorite content
</p>
</div>
<!-- Search Section -->
<div class="relative flex-1 mb-6 sm:mb-8">
<input type="text" id="searchInput" placeholder="The Simpsons is nice!"
class="w-full p-2 sm:p-4 pl-10 sm:pl-12 glassmorphism text-white placeholder-gray-400 rounded-full focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out text-xs sm:text-base">
<i class="fas fa-search absolute left-3 sm:left-4 top-1/2 transform -translate-y-1/2 text-gray-400 text-xs sm:text-base"></i>
<button id="searchButton"
class="absolute inset-y-0 right-0 text-white font-bold py-1 px-3 sm:py-2 sm:px-6 rounded-full bg-gradient-to-r from-purple-600 to-pink-600 hover:from-purple-700 hover:to-pink-700 focus:outline-none transition duration-300 ease-in-out text-xs sm:text-base">Search</button>
<div id="searchSuggestions"
class="absolute w-full glassmorphism text-white rounded-lg mt-1 hidden z-10 max-h-96 overflow-y-auto hover:cursor-pointer transition duration-300 ease-in-out"></div>
</div>
<!-- Filter Settings -->
<div class="mb-12">
<h2 class="text-xs sm:text-sm font-semibold text-white mb-3 sm:mb-4">Filter Settings</h2>
<div class="flex flex-wrap items-center gap-2 sm:gap-4 mb-3 sm:mb-4">
<!-- Category Select -->
<select id="categorySelect"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out custom-select">
</select>
<!-- Type Select -->
<select id="typeSelect"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out custom-select">
</select>
<!-- Toggle Button for Additional Filters -->
<button id="toggleFiltersButton"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm flex items-center focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out">
<span id="toggleIcon" class="transform transition-transform duration-300 ease-in-out mr-1 sm:mr-2">
<!-- Down Arrow Icon -->
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 sm:h-5 sm:w-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path id="toggleIconPath" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 9l-7 7-7-7"/>
</svg>
</span>
Advanced Filters
</button>
</div>
<!-- Collapsible Section for Additional Filters -->
<div id="additionalFilters" class="mt-3 sm:mt-4 hidden">
<div class="flex flex-wrap items-center gap-2 sm:gap-4">
<!-- Actor Search Input -->
<input id="actorSearchInput" type="text" placeholder="Search by Actor"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm w-full sm:w-64 focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out"/>
<!-- Company Search Input and Suggestions -->
<div class="relative w-full sm:w-auto">
<!-- Company Search Input -->
<input id="companySearchInput" type="text" placeholder="Search by Company"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm w-full sm:w-64 focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out"/>
<div id="companySuggestions"
class="absolute z-10 w-full sm:w-64 bg-gray-800 text-white rounded-md shadow-lg overflow-hidden hidden">
</div>
</div>
<div class="relative w-full sm:w-auto">
<input id="collectionSearchInput" type="text" placeholder="Search by Collection"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm w-full sm:w-64 focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out"/>
<div id="collectionSuggestions"
class="absolute z-10 w-full sm:w-64 bg-gray-800 text-white rounded-md shadow-lg overflow-hidden hidden">
</div>
</div>
<div class="relative w-full sm:w-auto">
<input id="franchiseSearchInput" type="text" placeholder="Search by Franchise"
class="p-2 sm:p-3 glassmorphism rounded-full text-white text-xs sm:text-sm w-full sm:w-64 focus:ring-1 sm:focus:ring-2 focus:ring-purple-500 focus:outline-none transition duration-300 ease-in-out"/>
<div id="franchiseSuggestions"
class="absolute z-10 w-full sm:w-64 bg-gray-800 text-white rounded-md shadow-lg overflow-hidden hidden">
</div>
</div>
</div>
</div>
<!-- Selected Media Section -->
<section id="selectedMediaSection" class="mb-12 mt-16 hidden">
<h2 class="text-xl sm:text-2xl font-bold mb-4 text-white">Selected Media</h2>
<div id="selectedMovie" class="p-4 sm:p-6 rounded-lg flex glassmorphism glow">
<div id="videoPlayer" class="w-full max-w-xs sm:max-w-sm h-40 sm:h-60 overflow-hidden bg-gray-900 rounded-lg">
<iframe id="videoIframe" class="w-full h-full" style="border: none;" allowfullscreen></iframe>
</div>
</div>
</section>
<section class="mb-12 mt-16">
<div class="flex flex-col sm:flex-row justify-between items-center mb-4">
<h2 class="text-lg sm:text-2xl font-bold text-white">Trending Media</h2>
<button id="togglePopularMedia"
class="glassmorphism text-white font-bold py-2 px-4 sm:px-6 rounded-full hover:bg-purple-700 transition duration-300 ease-in-out text-sm sm:text-lg">
Hide Trending Media
</button>
</div>
<div id="popularMedia"
class="flex flex-nowrap sm:grid overflow-x-auto sm:overflow-visible space-x-4 sm:space-x-0 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-6 p-4 glassmorphism rounded-lg items-start">
<div class="card relative group flex-shrink-0 w-40 sm:w-48 md:w-auto rounded-lg overflow-hidden shadow-lg hover:shadow-xl transition duration-300 ease-in-out">
<img src="" alt="Media Title" class="w-full h-40 sm:h-60 object-cover">
<div class="absolute bottom-0 bg-gradient-to-t from-black to-transparent text-white p-2 sm:p-4 w-full">
<div class="flex flex-col">
<h3 class="text-md sm:text-lg font-semibold">Media Title</h3>
<p class="text-xs sm:text-sm">Genre, Year</p>
</div>
</div>
<div class="absolute top-2 right-2 bg-purple-600 text-white px-2 py-1 rounded-full text-xs sm:text-sm font-semibold">
NEW
</div>
</div>
<!-- Repeat similar cards as needed -->
</div>
</section>
<!-- Pagination and Footer -->
<div class="flex flex-col items-center mt-8 space-y-6">
<div class="flex space-x-4">
<button id="prevPage"
class="bg-gradient-to-r from-purple-600 to-pink-600 text-white font-medium py-2 px-4 sm:px-6 rounded-full shadow-lg hover:from-purple-700 hover:to-pink-700 transition duration-300 ease-in-out focus:outline-none focus:ring-4 focus:ring-purple-500 focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed"
aria-label="Previous Page">
<span class="flex items-center">
<i class="fas fa-chevron-left mr-2"></i>
Prev
</span>
</button>
<button id="nextPage"
class="bg-gradient-to-r from-purple-600 to-pink-600 text-white font-medium py-2 px-4 sm:px-6 rounded-full shadow-lg hover:from-purple-700 hover:to-pink-700 transition duration-300 ease-in-out focus:outline-none focus:ring-4 focus:ring-purple-500 focus:ring-opacity-50 disabled:opacity-50 disabled:cursor-not-allowed"
aria-label="Next Page">
<span class="flex items-center">
Next
<i class="fas fa-chevron-right ml-2"></i>
</span>
</button>
</div>
<footer class="w-full text-gray-400 mt-8">
<div
class="flex flex-col sm:flex-row justify-between items-center sm:items-start space-y-4 sm:space-y-0 sm:space-x-4 px-4">
<p class="text-center sm:text-left">© 2024 Novafork2. All rights reserved.</p>
</div>
<div class="mt-4 text-center">
<p><a href="https://github.com/An0n-00/novafork2" target="_blank" class="text-purple-400 hover:underline">This is a fork </a> of the forked project by <a href="https://github.com/noname25495/novafork" target="_blank" class="text-purple-400 hover:underline">Fanlim</a> of the original project by <a href="https://github.com/ambr0sial/nova" target="_blank" class="text-purple-400 hover:underline">Ambrosial</a>.</p>
</div>
</footer>
</div>
</div>
</div>
</main>
<!-- Scripts with versioning added -->
<script src="media/mediaplayer/mediaplayer.js?v=1.2.4.53"></script>
<script src="search/searchResults.js?v=1.1.3"></script>
<script type="module" src="index.js?v=1.1.6"></script>
<script src="media/mediahider/mediahider.js?v=1.3"></script>
<script src="media/mediaTemplate.html?v=1.20"></script>
<script src="advancedfilter/advanced-filters.js?v=1.5"></script>
<script>
document.getElementById('logo').addEventListener('click', function () {
window.location.href = window.location.origin;
});
</script>
<script>
// Card glow effect and cursor-following behavior
document.querySelectorAll('.card').forEach(card => {
card.addEventListener('mousemove', (e) => {
const rect = card.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
card.style.setProperty('--mouse-x', `${x}px`);
card.style.setProperty('--mouse-y', `${y}px`);
});
});
</script>
</body>
</html>