This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name":"chatbot Karl Raf", | |
"type":"dialog", | |
"language":"fr", | |
"skill_id":"8dc1b3c0-8576-4aae-b724-8ee33a1324163", | |
"workspace":{ | |
"intents":[ | |
{ | |
"intent":"General_Security_Assurance", | |
"examples":[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Countdown</title> | |
<meta name="description" content="The final countdown"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let chronos = []; | |
let index = 0; | |
let countdown = () => { | |
if(chronos.length > 0){ | |
for(let i=0; i < chronos.length; i++){ | |
if(chronos[i].active && !! chronos[i].active){ | |
chronos[i].seconds -= 1; | |
if(chronos[i].seconds <= 0){ |