fix: Restore all files lost during destructive rebase
A previous `git pull --rebase origin main` dropped 177 local commits,
losing 3400+ files across admin-v2, backend, studio-v2, website,
klausur-service, and many other services. The partial restore attempt
(660295e2) only recovered some files.
This commit restores all missing files from pre-rebase ref 98933f5e
while preserving post-rebase additions (night-scheduler, night-mode UI,
NightModeWidget dashboard integration).
Restored features include:
- AI Module Sidebar (FAB), OCR Labeling, OCR Compare
- GPU Dashboard, RAG Pipeline, Magic Help
- Klausur-Korrektur (8 files), Abitur-Archiv (5+ files)
- Companion, Zeugnisse-Crawler, Screen Flow
- Full backend, studio-v2, website, klausur-service
- All compliance SDKs, agent-core, voice-service
- CI/CD configs, documentation, scripts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
358
h5p-service/players/course-presentation-player.html
Normal file
358
h5p-service/players/course-presentation-player.html
Normal file
@@ -0,0 +1,358 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Course Presentation - BreakPilot H5P</title>
|
||||
<style>
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
background: #1f2937;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
.presentation-container {
|
||||
max-width: 1200px;
|
||||
width: 100%;
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 24px 32px;
|
||||
text-align: center;
|
||||
}
|
||||
.header h1 {
|
||||
font-size: 28px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.header p {
|
||||
opacity: 0.9;
|
||||
font-size: 14px;
|
||||
}
|
||||
.slide-viewer {
|
||||
position: relative;
|
||||
min-height: 500px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 48px;
|
||||
}
|
||||
.slide {
|
||||
display: none;
|
||||
width: 100%;
|
||||
animation: slideIn 0.4s ease-out;
|
||||
}
|
||||
.slide.active {
|
||||
display: block;
|
||||
}
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateX(20px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateX(0);
|
||||
}
|
||||
}
|
||||
.slide-title {
|
||||
font-size: 36px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 24px;
|
||||
color: #1f2937;
|
||||
}
|
||||
.slide-content {
|
||||
font-size: 18px;
|
||||
line-height: 1.8;
|
||||
color: #4b5563;
|
||||
margin-bottom: 24px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
.slide-image {
|
||||
max-width: 100%;
|
||||
border-radius: 12px;
|
||||
margin-top: 24px;
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.15);
|
||||
}
|
||||
.controls {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 24px 32px;
|
||||
background: #f9fafb;
|
||||
border-top: 2px solid #e5e7eb;
|
||||
}
|
||||
.nav-buttons {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
.btn {
|
||||
padding: 12px 24px;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
transition: all 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.btn-primary {
|
||||
background: #667eea;
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: #5568d3;
|
||||
}
|
||||
.btn-primary:disabled {
|
||||
background: #9ca3af;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.btn-secondary {
|
||||
background: #e5e7eb;
|
||||
color: #374151;
|
||||
}
|
||||
.btn-secondary:hover {
|
||||
background: #d1d5db;
|
||||
}
|
||||
.progress-info {
|
||||
font-size: 14px;
|
||||
color: #6b7280;
|
||||
font-weight: 600;
|
||||
}
|
||||
.progress-bar {
|
||||
height: 4px;
|
||||
background: #e5e7eb;
|
||||
position: relative;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.progress-fill {
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
||||
transition: width 0.3s;
|
||||
}
|
||||
.thumbnails {
|
||||
display: none;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
padding: 24px;
|
||||
background: #f9fafb;
|
||||
border-top: 2px solid #e5e7eb;
|
||||
}
|
||||
.thumbnails.show {
|
||||
display: grid;
|
||||
}
|
||||
.thumbnail {
|
||||
background: white;
|
||||
border: 2px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.thumbnail:hover {
|
||||
border-color: #667eea;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
|
||||
}
|
||||
.thumbnail.active {
|
||||
border-color: #667eea;
|
||||
background: #f0f9ff;
|
||||
}
|
||||
.thumbnail-number {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
color: #667eea;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.thumbnail-title {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
margin-bottom: 4px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="presentation-container">
|
||||
<div class="header">
|
||||
<h1 id="presentationTitle"></h1>
|
||||
<p id="presentationDescription"></p>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" id="progressFill"></div>
|
||||
</div>
|
||||
|
||||
<div class="slide-viewer" id="slideViewer"></div>
|
||||
|
||||
<div class="controls">
|
||||
<div class="nav-buttons">
|
||||
<button class="btn btn-primary" id="prevBtn" onclick="previousSlide()">
|
||||
← Zurück
|
||||
</button>
|
||||
<button class="btn btn-primary" id="nextBtn" onclick="nextSlide()">
|
||||
Weiter →
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="progress-info">
|
||||
<span id="currentSlide">1</span> / <span id="totalSlides">1</span>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-secondary" onclick="toggleThumbnails()">
|
||||
📋 Übersicht
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="thumbnails" id="thumbnails"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let data = null;
|
||||
let currentSlideIndex = 0;
|
||||
|
||||
function loadContent() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const dataParam = urlParams.get('data');
|
||||
|
||||
if (dataParam) {
|
||||
try {
|
||||
data = JSON.parse(decodeURIComponent(dataParam));
|
||||
} catch (e) {
|
||||
alert('Fehler beim Laden!');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!data) {
|
||||
alert('Keine Daten gefunden!');
|
||||
return;
|
||||
}
|
||||
|
||||
document.getElementById('presentationTitle').textContent = data.title;
|
||||
document.getElementById('presentationDescription').textContent = data.description || '';
|
||||
document.getElementById('totalSlides').textContent = data.slides.length;
|
||||
|
||||
renderSlides();
|
||||
renderThumbnails();
|
||||
updateProgress();
|
||||
updateNavButtons();
|
||||
|
||||
// Keyboard navigation
|
||||
document.addEventListener('keydown', (e) => {
|
||||
if (e.key === 'ArrowLeft') previousSlide();
|
||||
if (e.key === 'ArrowRight') nextSlide();
|
||||
if (e.key === 'Escape') hideThumbnails();
|
||||
});
|
||||
}
|
||||
|
||||
function renderSlides() {
|
||||
const viewer = document.getElementById('slideViewer');
|
||||
viewer.innerHTML = '';
|
||||
|
||||
data.slides.forEach((slide, index) => {
|
||||
const slideEl = document.createElement('div');
|
||||
slideEl.className = 'slide';
|
||||
if (index === 0) slideEl.classList.add('active');
|
||||
|
||||
slideEl.style.backgroundColor = slide.backgroundColor;
|
||||
|
||||
slideEl.innerHTML = `
|
||||
<div class="slide-title">${slide.title}</div>
|
||||
<div class="slide-content">${slide.content}</div>
|
||||
${slide.imageUrl ? `<img src="${slide.imageUrl}" class="slide-image" alt="${slide.title}">` : ''}
|
||||
`;
|
||||
|
||||
viewer.appendChild(slideEl);
|
||||
});
|
||||
}
|
||||
|
||||
function renderThumbnails() {
|
||||
const container = document.getElementById('thumbnails');
|
||||
container.innerHTML = '';
|
||||
|
||||
data.slides.forEach((slide, index) => {
|
||||
const thumb = document.createElement('div');
|
||||
thumb.className = 'thumbnail';
|
||||
if (index === 0) thumb.classList.add('active');
|
||||
|
||||
thumb.innerHTML = `
|
||||
<div class="thumbnail-number">Folie ${index + 1}</div>
|
||||
<div class="thumbnail-title">${slide.title}</div>
|
||||
`;
|
||||
|
||||
thumb.onclick = () => goToSlide(index);
|
||||
container.appendChild(thumb);
|
||||
});
|
||||
}
|
||||
|
||||
function goToSlide(index) {
|
||||
if (index < 0 || index >= data.slides.length) return;
|
||||
|
||||
// Hide current slide
|
||||
const slides = document.querySelectorAll('.slide');
|
||||
slides[currentSlideIndex].classList.remove('active');
|
||||
|
||||
// Update thumbnails
|
||||
const thumbs = document.querySelectorAll('.thumbnail');
|
||||
thumbs[currentSlideIndex].classList.remove('active');
|
||||
|
||||
// Show new slide
|
||||
currentSlideIndex = index;
|
||||
slides[currentSlideIndex].classList.add('active');
|
||||
thumbs[currentSlideIndex].classList.add('active');
|
||||
|
||||
updateProgress();
|
||||
updateNavButtons();
|
||||
hideThumbnails();
|
||||
}
|
||||
|
||||
function nextSlide() {
|
||||
goToSlide(currentSlideIndex + 1);
|
||||
}
|
||||
|
||||
function previousSlide() {
|
||||
goToSlide(currentSlideIndex - 1);
|
||||
}
|
||||
|
||||
function updateProgress() {
|
||||
document.getElementById('currentSlide').textContent = currentSlideIndex + 1;
|
||||
const progress = ((currentSlideIndex + 1) / data.slides.length) * 100;
|
||||
document.getElementById('progressFill').style.width = progress + '%';
|
||||
}
|
||||
|
||||
function updateNavButtons() {
|
||||
const prevBtn = document.getElementById('prevBtn');
|
||||
const nextBtn = document.getElementById('nextBtn');
|
||||
|
||||
prevBtn.disabled = currentSlideIndex === 0;
|
||||
nextBtn.disabled = currentSlideIndex === data.slides.length - 1;
|
||||
}
|
||||
|
||||
function toggleThumbnails() {
|
||||
const thumbnails = document.getElementById('thumbnails');
|
||||
thumbnails.classList.toggle('show');
|
||||
}
|
||||
|
||||
function hideThumbnails() {
|
||||
const thumbnails = document.getElementById('thumbnails');
|
||||
thumbnails.classList.remove('show');
|
||||
}
|
||||
|
||||
loadContent();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user