forked from xebia/github-copilot-updates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail.html
33 lines (32 loc) · 1.5 KB
/
detail.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Feature Detail</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="feature-detail-container" style="text-align: center;">
<a href="javascript:history.back()" style="display: inline-block; margin-bottom: 20px;">Back</a>
<h1 id="feature-title">Feature Title</h1>
<div id="video-container">
<iframe id="feature-video" width="560" height="315" src="" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div id="description-container">
<p id="feature-description">Feature Description</p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const params = new URLSearchParams(window.location.search);
const title = params.get('title');
const videoUrl = params.get('videoUrl').replace("youtube.com", "youtube.com/embed");
const description = params.get('description');
document.getElementById('feature-title').textContent = decodeURIComponent(title);
document.getElementById('feature-video').src = decodeURIComponent(videoUrl);
document.getElementById('feature-description').textContent = decodeURIComponent(description);
});
</script>
</body>
</html>