-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathandre.html
More file actions
213 lines (190 loc) · 6.16 KB
/
Copy pathandre.html
File metadata and controls
213 lines (190 loc) · 6.16 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE HTML>
<!--
Future Imperfect by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Vidéos d'André</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="icon" type="image/svg+xml" href="assets/logotix-2.svg">
</head>
<script src="assets/js/jQuery.js" onload='$.getJSON("https:\\\\api.github.com/repos/PragmaCube/pragmacube.github.io/deployments", function(data) {
date = data[0].updated_at;
document.getElementsByClassName("update")[0].innerText = `Dernière mise à jour le ${String(date).split("T")[0]}`;
});'>
</script>
<script>
setTimeout(init, 200)
init();
function init(){
var videoplaylist = document.getElementById('videoplaylist');
var playlist = document.getElementById('playlist');
var tracks = playlist.getElementsByTagName('a');
videoplaylist.volume = 0.10;
//videoplaylist.play();
for(var track in tracks) {
var link = tracks[track];
if(typeof link === "function" || typeof link === "number") continue;
link.addEventListener('click', function(e) {
e.preventDefault();
var song = this.getAttribute('href');
run(song, videoplaylist, this);
});
}
videoplaylist.addEventListener('ended',function(e) {
for(var track in tracks) {
var link = tracks[track];
var nextTrack = parseInt(track) + 1;
if(typeof link === "function" || typeof link === "number") continue;
if(!this.src) this.src = tracks[0];
if(track == (tracks.length - 1)) nextTrack = 0;
console.log(nextTrack);
if(link.getAttribute('href') === this.src) {
var nextLink = tracks[nextTrack];
run(nextLink.getAttribute('href'), videoplaylist, nextLink);
break;
}
}
});
}
function run(song, videoplaylist, link){
var parent = link.parentElement;
//quitar el active de todos los elementos de la lista
var items = parent.parentElement.getElementsByTagName('li');
for(var item in items) {
if(items[item].classList)
items[item].classList.remove("active");
}
//agregar active a este elemento
parent.classList.add("active");
//tocar la cancion
videoplaylist.src = song;
videoplaylist.load();
videoplaylist.play();
}
</script>
<body class="single is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<h1><a href="index.html">Cours de C++ pour FRC</a></h1>
<nav class="links">
<ul>
<ul>
<li><a href="index.html#chapitre1">Chapitre 1</a></li>
<li><a href="index.html#chapitre2">Chapitre 2</a></li>
<li><a href="index.html#chapitre3">Chapitre 3</a></li>
</ul>
</ul>
</nav>
<nav class="main">
<ul>
<li class="menu">
<a style = "margin-top: 25%;" class="fa fa-bars" href="#menu">Menu</a>
</li>
</ul>
</nav>
</header>
<section id="menu">
<!-- Links -->
<section>
<ul class="links">
<li>
<a href="#chapitre1">
<h3>Chapitre 1</h3>
<p>Bases du C++</p>
</a>
</li>
<li>
<a href="#chapitre2">
<h3>Chapitre 2</h3>
<p>Versionnement et électronique</p>
</a>
</li>
<li>
<a href="#chapitre3">
<h3>Chapitre 3</h3>
<p>Programmation FRC</p>
</a>
</li>
<li>
<div class="dropdown">
<details>
<summary class="dropbtn">Documentation</summary>
<div class="dropdown-content">
<ul>
<li style="display: none;"></li>
<li><a href="https://github.wpilib.org/allwpilib/docs/release/cpp/index.html" target="_blank">WPILIB C++ API</a></li>
<li><a href="https://docs.wpilib.org/en/stable/index.html" target="_blank">FRC Control System </a></li>
<li><a href="https://codedocs.revrobotics.com/cpp/index.html" target="_blank">REVLib C++ API</a></li>
<li><a href="https://docs.ctr-electronics.com/" target="_blank">CTRE C++ API</a></li>
</ul>
</div>
</details>
</div>
</li>
</ul>
</section>
</section>
<!-- Main -->
<div id="main">
<!-- Post -->
<article class="post">
<header>
<div class="title">
<h2><a href="#">Vidéos d'André sur l'électronique</a></h2>
</div>
</header>
<div class ="formation_electronique">
<div style="margin: auto; overflow: hidden;">
<video style="float: left;" width="560" height="315" id="videoplaylist" preload="auto" tabindex="0" controls="" >
<source src="assets/videos/01.mp4" type="video/mp4">
</video>
<ul class = "videoUl" id="playlist" style="margin-left: 540px;list-style-type: none;">
<li class="active">
<a href="assets/videos/01.mp4">
Présentation des outils
</a>
</li>
<li>
<a href="assets/videos/02.mp4">
Présentation des embouts
</a>
</li>
<li>
<a href="assets/videos/03.mp4">
Tutoriel câblage
</a>
</li>
<li>
<a href="assets/videos/04.mp4">
Présentation hardware
</a>
</li>
<li>
<a href="assets/videos/05.mp4">
Tutoriel soudure
</a>
</li>
</ul>
</div>
</div>
</article>
</div>
<!-- Footer -->
<section id="footer">
Fait par Raphaël<br><div class="update"></div></section>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>