tak / viewer.html
mbasaranoglu's picture
Upload 6 files
364c53f verified
Raw
History Blame Contribute Delete
6.86 kB
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Video İzleme</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #000000;
color: #ffffff;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: #1a1a1a;
border: 1px solid #333;
padding: 40px;
}
h1 {
color: #ffffff;
margin-bottom: 10px;
font-size: 2.5em;
}
.subtitle {
color: #888;
margin-bottom: 30px;
font-size: 1.1em;
}
.error-container {
text-align: center;
padding: 60px 20px;
}
.error-icon {
font-size: 4em;
margin-bottom: 20px;
}
.error-message {
color: #fff;
font-size: 1.5em;
margin-bottom: 20px;
}
.error-description {
color: #888;
font-size: 1.1em;
margin-bottom: 30px;
}
.back-btn {
background: #fff;
color: #000;
padding: 15px 30px;
border: 1px solid #fff;
border-radius: 10px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
text-decoration: none;
display: inline-block;
}
.back-btn:hover {
transform: translateY(-2px);
background: #ccc;
border-color: #ccc;
}
.video-container {
margin-top: 30px;
}
.video-info {
background: #333;
padding: 20px;
border: 1px solid #444;
margin-bottom: 20px;
}
.video-info h3 {
color: #fff;
margin-bottom: 10px;
}
.video-info p {
color: #ccc;
margin-bottom: 5px;
}
.video-wrapper {
background: #000;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
video {
width: 100%;
display: block;
}
.view-counter {
background: #333;
padding: 15px;
border: 1px solid #444;
margin-top: 20px;
text-align: center;
}
.view-counter strong {
color: #fff;
font-size: 1.3em;
}
.timer-container {
background: #333;
padding: 20px;
border: 1px solid #444;
margin-top: 20px;
text-align: center;
}
.timer-display {
font-size: 2.5em;
font-weight: bold;
color: #fff;
margin-bottom: 10px;
}
.timer-bar {
width: 100%;
height: 10px;
background: #444;
border-radius: 5px;
overflow: hidden;
}
.timer-progress {
height: 100%;
background: linear-gradient(90deg, #667eea, #764ba2);
transition: width 1s linear;
}
.timer-label {
color: #888;
font-size: 1em;
margin-top: 10px;
}
.notification {
position: fixed;
top: 20px;
right: 20px;
background: #333;
color: white;
padding: 15px 25px;
border: 1px solid #555;
z-index: 1000;
display: none;
animation: slideIn 0.3s ease;
}
.notification.error {
background: #444;
}
@keyframes slideIn {
from {
transform: translateX(400px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.loading {
text-align: center;
padding: 60px 20px;
}
.loading-spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
</style>
</head>
<body>
<div class="container">
<div id="loading" class="loading">
<div class="loading-spinner"></div>
<p>Yükleniyor...</p>
</div>
<div id="error" class="error-container" style="display: none;">
<div class="error-icon"></div>
<h1 class="error-message">Geçersiz Link</h1>
<p class="error-description">Bu link geçersiz veya süresi dolmuş olabilir.</p>
<a href="admin.html" class="back-btn">Admin Paneline Dön</a>
</div>
<div id="videoSection" style="display: none;">
<h1>🎬 Video İzleme</h1>
<div class="timer-container" id="timerContainer" style="display: none;">
<div class="timer-display" id="timerDisplay">00:00</div>
<div class="timer-bar">
<div class="timer-progress" id="timerProgress"></div>
</div>
<p class="timer-label">Kalan Süre</p>
</div>
<div class="view-counter" id="viewCounter">
<p>Bu link ile <strong id="viewCountDisplay"></strong> kez daha izleyebilirsiniz.</p>
</div>
<div class="video-info">
<h3>📋 Video Bilgileri</h3>
<p><strong>Link Kodu:</strong> <span id="linkCode"></span></p>
<p><strong>Kalan İzleme Hakkı:</strong> <span id="remainingViews"></span></p>
</div>
<div class="video-wrapper">
<video
id="videoPlayer"
controls
controlsList="nodownload nofullscreen"
oncontextmenu="return false;"
style="width: 100%; display: block;">
Tarayıcınız video öğesini desteklemiyor.
</video>
</div>
</div>
</div>
<div class="notification" id="notification"></div>
<script src="./viewer.js"></script>
</body>
</html>