-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-page.html
102 lines (85 loc) · 2.93 KB
/
content-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta id="api-key" content="AIzaSyC_vjcACAZfiM-UbXeHuSuvetOHsKJPPJk" />
<meta id="folderid" content="" />
<meta id="title" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>{title} - Priflix</title>
<link rel="stylesheet" href="/css/content-page.css" />
<link rel="stylesheet" href="/css/loader.css" />
<link rel="shortcut icon" href="/logo.jpg" type="image/x-icon" />
<!-- Font Awesome for icons -->
<link
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" />
</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;
}
</style>
<div class="loader-overlay">
<div class="progress-bar"></div>
<div class="loader"></div>
</div>
<div id="header"></div>
<main>
<div class="top-container">
<div class="player-container">
<div class="player" id="video-player"></div>
</div>
</div>
<div class="bottom-container">
<div class="content-info">
<h2 class="content-name">{title}</h2>
<div class="played-episode-name" id="played-episode-name"></div>
<button class="next-btn">
<i class="fa-solid fa-arrow-right"></i>
</button>
<!-- Download Button with Link -->
<a id="download-link" class="download-btn" target="_blank">
<span class="material-symbols-outlined">
download
</span>
<p id="download">Download</p>
</a>
</div>
<div class="episode-list" id="episode-list"></div>
</div>
</main>
<div id="footer"></div>
<script src="/js/content-data.js?v2"></script>
<script src="/js/content-page.js"></script>
<script src="/js/script.js"></script>
<script>// Function to get query parameters from the URL
function getQueryParams() {
const params = new URLSearchParams(window.location.search);
return {
title: params.get("title"),
folderid: params.get("folderid"),
};
}
// Update title and folderid dynamically
function updateContentPage() {
const { title, folderid } = getQueryParams();
// Update the meta and displayed title
if (title) {
document.getElementById("title").content = title;
document.querySelector(".content-name").textContent = title;
document.title = `${title} - Priflix`;
}
if (folderid) {
document.getElementById("folderid").content = folderid;
}
}
// Run the update on page load
document.addEventListener("DOMContentLoaded", updateContentPage);
</script>
</body>
</html>