-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathview.html
More file actions
104 lines (92 loc) · 4.07 KB
/
Copy pathview.html
File metadata and controls
104 lines (92 loc) · 4.07 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{% extends 'layout.html' %}
{% block content %}
<style>
.thumb {
position: relative;
display: inline-block;
display: flex;
justify-content: center;
align-items: center;
}
#customPlayer{
border-radius: 22px;
}
.thumb .play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 64px;
height: 64px;
background-image: url('static/assets/images/play.png');
background-repeat: no-repeat;
background-size: contain;
cursor: pointer;
z-index: 999;
}
</style>
<!-- ***** Featured Start ***** -->
<div class="row">
<div class="col-lg-12">
<div class="feature-banner header-text">
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="thumb">
<img id="customPlayer" src="{{ thumbnail }}" alt="Video Thumbnail">
<div class="play-button"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
const thumbContainer = document.querySelector('.thumb');
const playButton = thumbContainer.querySelector('.play-button');
playButton.addEventListener('click', () => {
thumbContainer.innerHTML = `<iframe id="customPlayer" width="800" height="450" src="https://www.youtube.com/embed/{{VIDEO_ID}}?autoplay=1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>`;
});
</script>
<!-- ***** Featured End ***** -->
<!-- ***** Details Start ***** -->
<div class="game-details">
<div class="row">
<div class="col-lg-12">
<h2></h2>
</div>
<div class="col-lg-12">
<div class="content">
<div class="row">
<div class="col-lg-10 mx-auto">
<div class="left-info primary">
<div class="left ">
<h4>{{ topic }}</h4>
<span>{{ courseName}}</span>
</div>
<ul>
<li><i class="fa-brands fa-youtube" style="color: red;"></i><a href="{{video_link}}"> Watch on YouTube</a></li>
<li><i class="fa fa-check" style="color: green;"></i> Verified By CodeColts</li>
</ul>
</div>
</div>
<div class="col-lg-10 mx-auto">
<p style="text-align: justify;">CodeColts is an open-source project providing free coding video courses from various sources. <br> We don't own or profit from the videos. All videos are owned by their respective creators. Our purpose is purely educational. We attribute and link to the original content. If you're a video creator and find your content here without proper attribution or consent, contact us to rectify. <br><a href="https://github.com/codeIntrovert/codeColts/blob/v1.0.0/LEGAL.md" target="_blank" style="color: #007AFF;"> Read our full disclaimer for details ↗️</a>, which may change over time.
<br>Thank you for using CodeColts!</p>
</div>
<div class="col-lg-10 mx-auto">
<div class="main-border-button">
<a id="goBackButton">Return to Course</a>
</div>
<script>
document.getElementById("goBackButton").addEventListener("click", function() {
window.history.back();
});
</script>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ***** Details End ***** -->
{% endblock %}