Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (79 loc) · 4.21 KB
/
Copy pathindex.html
File metadata and controls
87 lines (79 loc) · 4.21 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>learn english</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="dark-theme">
<div class="container py-4">
<!-- Test Mesajı -->
<div id="test-message" class="alert alert-info mb-3" style="display: none;">
JavaScript loading...
</div>
<!-- Video + Metin Bölümü (Birleştirilmiş) -->
<div class="video-text-section mb-4">
<div class="d-flex justify-content-between align-items-center mb-2">
<div class="d-flex align-items-center gap-3">
<button id="theme-toggle" class="btn btn-outline-secondary">
<i class="bi bi-sun-fill"></i>
</button>
<h2 class="text-success fs-4 mb-0">Learn English ( herşeyi öğrenmek zorunda değilsin)</h2>
</div>
<button id="video-ekle-btn" class="btn btn-success">+ Add Video</button>
</div>
<div class="video-text-container d-flex flex-column flex-md-row gap-3">
<div id="video-container" class="video-container rounded-3 bg-dark p-3 mb-3 mb-md-0" style="flex: 2 1 60%; min-width: 300px;">
<!-- Video buraya gelecek -->
</div>
<div class="metin-container rounded-3 bg-dark p-3 d-flex flex-column align-items-stretch" style="flex: 1 1 40%; min-width: 300px;">
<div class="flex-grow-1 position-relative">
<div id="text-viewer" class="form-control bg-dark text-light" style="height: 700px; width:100%; border: none; resize: none; overflow-y: auto; white-space: pre-line;"></div>
</div>
<div class="subtitle-controls mt-2 d-flex justify-content-center gap-2">
<button id="add-text-btn" class="btn btn-success">+ Add Text</button>
<button id="delete-text-btn" class="btn btn-danger">Delete Text</button>
</div>
</div>
</div>
<div id="anlam-goster-bar" style="height:50px; background:#222; color:rgb(242,255,0); font-size:1.2em; font-weight:bold; display:flex; align-items:center; padding-left:24px; border-radius:0 0 12px 12px; margin-top:-12px;"></div>
</div>
</div>
<!-- Add Text Modal -->
<div class="modal fade" id="addTextModal" tabindex="-1" aria-labelledby="addTextModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg modal-dialog-centered">
<div class="modal-content bg-dark text-light">
<div class="modal-header">
<h5 class="modal-title" id="addTextModalLabel">Add Text</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<textarea id="modal-textarea" class="form-control bg-dark text-light" rows="10" style="min-height:300px; font-size:1.2rem;"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Vazgeç</button>
<button type="button" class="btn btn-success" id="modal-save-btn">Kaydet</button>
</div>
</div>
</div>
</div>
<!-- JavaScript -->
<script src="script.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Sayfa yüklendiğinde test mesajını göster
window.onload = function() {
const testMessage = document.getElementById('test-message');
if (testMessage) {
testMessage.style.display = 'block';
setTimeout(() => {
testMessage.style.display = 'none';
}, 3000);
}
};
</script>
</body>
</html>