diff --git a/public/activity_4/index.html b/public/activity_4/index.html index 21699fecf2a9ec0bfc290f2aec3575065a0f83eb..eaec65e639d85391255acd096e39ee5e45314cf8 100644 --- a/public/activity_4/index.html +++ b/public/activity_4/index.html @@ -33,7 +33,10 @@ <p>On estime qu'entre 400 000 et 700 000 personnes ont actuellement les yeux rivés sur leur téléviseur, attendant qu'arrive le signal depuis la lune.</p> <p>Le président des Etats-Unis, Richard Nixon, suit également l'événement depuis le bureau oval. Une fois Buzz Aldrin et Neil Armstrong sur la surface de la Lune, il apellera les deux astronautes par téléphone pour les féliciter.</p> <p>Il est donc vital que les communications marchent comme prévu !</p> - <p style="text-align: center;"><strong>A vous de jouer ! Ne les décevez pas !</strong></p> + <p style="text-align: center;"> + <iframe width="560" height="315" src="https://www.youtube.com/embed/U_8tawnlwr8?start=135" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> + </br> + <strong>A vous de jouer ! Ne les décevez pas !</strong></p> </div> </div> <header id="header"></header> diff --git a/public/res/blocks/arduino_blocks_gen.js b/public/res/blocks/arduino_blocks_gen.js index 11592d0c5cdff6d2cb7b041f615ec1690ea3294b..154eb320017c854b7c532d8e734d2cbc2ec94d65 100644 --- a/public/res/blocks/arduino_blocks_gen.js +++ b/public/res/blocks/arduino_blocks_gen.js @@ -212,7 +212,7 @@ Blockly.JavaScript['establish_telecoms'] = function(block) { Blockly.JavaScript['call_phone'] = function(block) { var value_num = Blockly.JavaScript.valueToCode(block, 'NUM', Blockly.JavaScript.ORDER_ATOMIC); // TODO: Assemble JavaScript into code variable. - var code = 'sendString("RING_'+ value_num + ';");\n'; + var code = 'var s = "RING_" + '+ value_num +' +";";\n '+ 'sendString(s);\n'; return code; };