-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
554 lines (503 loc) · 18.7 KB
/
index.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
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Robot pédagogique</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- JQuery -->
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-- Blockly -->
<script src="blockly/blockly_compressed.js"></script>
<script src="blockly/blocks_compressed.js"></script>
<script src ="blocklyduino/arduino_compressed.js" > </script>
<script src="blockly/msg/js/fr.js"></script>
<script src="blockly/appengine/storage.js"></script>
<script src="blockslibrary/blocks/arduino_base/arduino_base.js"></script>
<script src="blockslibrary/generators/arduino_base.js"></script>
<!--RobotduLAB Blockly -->
<script src ="robotGenerator.js"> </script>
<script src="robotBlock.js"> </script>
<!--Codemirror -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/codemirror.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/mode/clike/clike.js"></script>
<!--CSS-->
<link rel="stylesheet" href="css/main.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<style>
body {
font: 400 15px/1.8 Lato, sans-serif;
color: #777;
}
h3, h4 {
margin: 10px 0 30px 0;
letter-spacing: 10px;
font-size: 20px;
color: #111;
}
.container {
padding: 80px 120px;
}
.person {
border: 10px solid transparent;
margin-bottom: 25px;
width: 80%;
height: 80%;
opacity: 0.7;
}
.person:hover {
border-color: #f1f1f1;
}
.carousel-inner img {
-webkit-filter: grayscale(90%);
filter: grayscale(90%); /* make all photos black and white */
width: 60%;
margin: auto;
}
.carousel-caption h3 {
color: #fff !important;
}
@media (max-width: 600px) {
.carousel-caption {
display: none; /* Hide the carousel text when the screen is less than 600 pixels wide */
}
}
.bg-1 {
background: #2d2d30;
color: #bdbdbd;
}
.bg-1 h3 {color: #fff;}
.bg-1 p {font-style: italic;}
.list-group-item:first-child {
border-top-right-radius: 0;
border-top-left-radius: 0;
}
.list-group-item:last-child {
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
.thumbnail {
padding: 0 0 15px 0;
border: none;
border-radius: 0;
}
.thumbnail p {
margin-top: 15px;
color: #555;
}
.btn {
padding: 10px 20px;
background-color: #333;
color: #f1f1f1;
border-radius: 0;
transition: .2s;
}
.btn:hover, .btn:focus {
border: 1px solid #333;
background-color: #fff;
color: #000;
}
.modal-header, h4, .close {
background-color: #333;
color: #fff !important;
text-align: center;
font-size: 30px;
}
.modal-header, .modal-body {
padding: 40px 50px;
}
.nav-tabs li a {
color: #777;
}
#googleMap {
width: 100%;
height: 400px;
-webkit-filter: grayscale(80%);
filter: grayscale(80%);
}
.navbar {
font-family: Montserrat, sans-serif;
margin-bottom: 0;
background-color: #2d2d30;
border: 0;
font-size: 11px !important;
letter-spacing: 4px;
opacity: 0.9;
}
.navbar li a, .navbar .navbar-brand {
color: #d5d5d5 !important;
}
.navbar-nav li a:hover {
color: #fff !important;
}
.navbar-nav li.active a {
color: #fff !important;
background-color: #29292c !important;
}
.navbar-default .navbar-toggle {
border-color: transparent;
}
.open .dropdown-toggle {
color: #fff;
background-color: #555 !important;
}
.dropdown-menu li a {
color: #000 !important;
}
.dropdown-menu li a:hover {
background-color: red !important;
}
footer {
background-color: #2d2d30;
color: #f5f5f5;
padding: 32px;
}
footer a {
color: #f5f5f5;
}
footer a:hover {
color: #777;
text-decoration: none;
}
.form-control {
border-radius: 0;
}
textarea {
resize: none;
}
.CodeMirror {
height: 700px;
}
</style>
</head>
<body id="home" data-spy="scroll" data-target=".navbar" data-offset="50">
<!-- Navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">RobotDuLAB</a>
</div>
<ul class="nav navbar-nav">
<li><a href="#home">Accueil</a></li>
<li><a href="#blockly">Blockly</a></li>
<li><a href="#arduino">Code Arduino</a></li>
<li><a href="#lequipe">L'Équipe</a></li>
<li><a href="#contact">Contact</a></li>
<li><a href="#"><span class="glyphicon glyphicon-search"></span></a></li>
</ul>
</nav>
<!-- Container (Section Carousel photo) -->
<div id="Carousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#Carousel" data-slide-to="0" class="active"></li>
<li data-target="#Carousel" data-slide-to="1"></li>
<li data-target="#Carousel" data-slide-to="2"></li>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="images/RoboduLAB_avec_lego.jpg" alt="RobotDuLAB" width="1200" height="700">
<div class="carousel-caption">
<h3>Un robot simple, peux coûteux et facilement reproductible</h3>
</div>
</div>
<div class="item">
<img src="images/Schéma_sans_ring.JPG" alt="Schéma" width="1200" height="700">
<div class="carousel-caption">
<h3>Avec des schémas électroniques simples</h3>
</div>
</div>
<div class="item">
<img src="images/Logo_labo-3333px.png" alt="Laboratoire d'Aix-périmentation et de Bidouille" width="1200" height="700">
<div class="carousel-caption">
<h3>Imaginé et conçu par une large communauté de Makers</h3>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#Carousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#Carousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- Container (Section Présentation du projet) -->
<div id=presentation class="bg-1">
<div class="container">
<h3>Un robot pour apprendre à programmer aux enfants</h3>
<ul>
<li> Utilisable en écoles primaires, collèges et lycées </li>
<li>Toutes les pièces mécaniques sont imprimables (impression 3D – fichiers .stl fournis) </li>
<li>Partie électronique basée sur une carte de prototypage « arduino » </li>
<li>Libre (copiable, modifiable) et évolutif (de nombreuses options possibles) </li>
</ul>
<p>
RoboduLAB, permet une approche ludique de l’apprentissage du code à l’école primaire, des plots au format lego permettent de personnaliser le robot. En collège et en lycée RoboduLAB est un support de thème très riche pour le travail en équipes projets : conception, réalisation, expérimentation.
</p>
<p>
La programmation se fait par assemblage de blocs (type scratch). Le programme se télécharge directement dans le robot depuis le PC ou la tablette.
</p>
<p>
La documentation du projet ainsi que tous les fichiers nécessaires à la réalisation d'un RobotDuLAB sont disponibles à l'adresse suivante : <a href="http://wiki.labaixbidouille.com/index.php/RoboduLAB">http://wiki.labaixbidouille.com/index.php/RoboduLAB</a>
</p>
</div>
</div>
<!-- Container (Section Blockly) -->
<div id="blockly" class="container">
<h3 class="text-center">Blockly</h3>
<div id="blocklyDiv" style="height: 700px;"></div>
<xml id="toolbox" style="display: none">
<category name="Robot" colour="300">
<block type="Avancer"></block>
<block type="Reculer"></block>
<block type="Arreter"></block>
<block type="TournerAGauche"></block>
<block type="TournerADroite"></block>
<block type="Attendre">
<value name="DELAY_TIME">
<block type="math_number">
<field name="NUM">1000</field>
</block>
</value>
</block>
<block type="Distance"></block>
</category>
<category name="Anneau de LED" colour="50">
<block type="AnimerAnneauLed"></block>
<block type="Animation"></block>
<block type="VERT"></block>
<block type="ROUGE"></block>
<block type="MAGENTA"></block>
<block type="BLEU"></block>
<block type="TURQUOISE"></block>
<block type="JAUNE"></block>
<block type="VIOLET"></block>
</category>
<category name="Logique" colour="210">
<block type="if_inf">
<value name="Distance">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="if_sup">
<value name="Distance">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="controls_if"></block>
<block type="logic_compare"></block>
<block type="logic_operation"></block>
<block type="logic_negate"></block>
<block type="logic_null"></block>
</category>
<category name="Structure de Controle" colour="120">
<block type="base_setup"></block>
<block type="loop_dist_inf">
<value name="Distance">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="loop_dist_sup">
<value name="Distance">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
</block>
<block type="controls_for">
<value name="FROM">
<block type="math_number">
<field name="NUM">1</field>
</block>
</value>
<value name="TO">
<block type="math_number">
<field name="NUM">10</field>
</block>
</value>
</block>
<block type="controls_whileUntil"></block>
</category>
<category name="Math" colour="230">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
</category>
</xml>
</div>
<!-- Container (Section Arduino) -->
<div id="arduino" class="bg-1">
<div class="container">
<h3 class="text-center">Code Arduino</h3>
<textarea id="arduinocode" style="width: 100%; height: 700px;"></textarea>
<br/>
<button onclick="showCode()">Générer</button>
<button id="create"> <a download="info.txt" id="downloadlink">Télécharger</a></button>
</div>
</div>
<!-- Container (Section Equipe) -->
<div id="lequipe" class="text-center">
<div class="container">
<h3>L'Équipe</h3>
<div class="row">
<div class="col-sm-4">
<p class="text-center"><strong>Guy Sinnig</strong></p><br>
<a href="#demo" data-toggle="collapse">
<img src="images/guy.jpg" class="img-circle person" alt="Random Name" width="255" height="255">
</a>
<div id="demo" class="collapse">
<p>Responsable projet</p>
<p>Électronicien pédagogue</p>
<p>Membre depuis 2013</p>
</div>
</div>
<div class="col-sm-4">
<p class="text-center"><strong>Frank Anjeaux</strong></p><br>
<a href="#demo2" data-toggle="collapse">
<img src="images/frank.png" class="img-circle person" alt="Random Name" width="255" height="255">
</a>
<div id="demo2" class="collapse">
<p>Animation de communauté</p>
<p>Roboticien humoriste</p>
<p>Membre depuis 2013</p>
</div>
</div>
<div class="col-sm-4">
<p class="text-center"><strong>Sébastien NEDJAR</strong></p><br>
<a href="#demo3" data-toggle="collapse">
<img src="images/seb.png" class="img-circle person" alt="Random Name" width="255" height="255">
</a>
<div id="demo3" class="collapse">
<p>Troll</p>
<p>Informaticien geek</p>
<p>Membre depuis 2013</p>
</div>
</div>
</div>
</div>
</div>
<div id="googleMap"></div>
<!-- Container (Contact Section) -->
<div id="contact" class="bg-1">
<div class="container">
<h3 class="text-center">Contact</h3>
<p class="text-center"><em>N'hésitez pas à nous laisser un message</em></p>
<div class="row">
<div class="col-md-4">
<p><span class="glyphicon glyphicon-map-marker"></span>Aix-en-Provence, France</p>
<p><span class="glyphicon glyphicon-phone"></span>Phone: +33 04 42 93 90 91</p>
<p><span class="glyphicon glyphicon-envelope"></span>Email: robotdulab@labaixbidouille.com</p>
</div>
<div class="col-md-8">
<div class="row">
<div class="col-sm-6 form-group">
<input class="form-control" id="name" name="name" placeholder="Nom" type="text" required>
</div>
<div class="col-sm-6 form-group">
<input class="form-control" id="email" name="email" placeholder="Email" type="email" required>
</div>
</div>
<textarea class="form-control" id="comments" name="comments" placeholder="Commentaire" rows="5"></textarea>
<br>
<div class="row">
<div class="col-md-12 form-group">
<button class="btn pull-right" type="submit">Envoyer</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Add Google Maps -->
<script src="http://maps.googleapis.com/maps/api/js?callback=initializeMap" async defer></script>
<script>
function initializeMap() {
var myCenter = {lat: 43.513778, lng: 5.450874} ;
var mapProp = {
center: myCenter,
zoom:16,
scrollwheel:false,
draggable:false,
mapTypeId:google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("googleMap"),mapProp);
var marker = new google.maps.Marker({
position:myCenter,
});
marker.setMap(map);
}
var editor = CodeMirror.fromTextArea(document.getElementById("arduinocode"), {
lineNumbers: true,
matchBrackets: true,
mode: "text/x-c++src",
readOnly: true,
});
var workspace = Blockly.inject('blocklyDiv', {toolbox: document.getElementById('toolbox')});
function showCode(){
var code = Blockly.Arduino.workspaceToCode(workspace);
$("#arduinocode").text(code);
editor.setValue(code);
}
workspace.addChangeListener(showCode);
window.setTimeout(BlocklyStorage.restoreBlocks, 0);
BlocklyStorage.backupOnUnload();
function download(filename, text) {
var link = document.createElement('a');
link.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
link.setAttribute('download', filename);
link.click();
}
$(document).ready(function(){
// Initialize Tooltip
$('[data-toggle="tooltip"]').tooltip();
})
$("#create").click(function(){
download('code.ino', $("#arduinocode").val());
});
$(document).ready(function(){
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
},
900,
function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
})
</script>
<footer class="text-center">
<a class="up-arrow" href="#home" data-toggle="tooltip" title="TO TOP">
<span class="glyphicon glyphicon-chevron-up"></span>
</a><br>
<p>RobotDuLAB est un projet communautaire du <a href="http://labaixbidouille.com" data-toggle="tooltip" title="Visiter labaixbidouille.com">Laboratoire d'Aix-périmentation et de Bidouille</a></p>
</footer>
</body>
</html>