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
| class Explique {} | |
| Explique.stack = [] | |
| Explique.on = false | |
| Explique.delay = (time) => new Promise(resolve => setTimeout(resolve, time)) | |
| Explique.phrase = (phrase, duration = 0) => { | |
| Explique.stack.push({phrase, duration}) | |
| if (!Explique.on){ | |
| Explique.on = true | |
| Explique.disNext() |
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
| const suspense = (f, t) => setTimeout(f, t * 1000) | |
| const message = () => { | |
| let t = 0 | |
| suspense(() => { | |
| console.log("Je veux que créer...") | |
| }, t) | |
| suspense(() => { | |
| console.log("...un peu de...") |
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
| var test = "Fabien"; |
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
| /** | |
| * | |
| * | |
| * Lunette | |
| * | |
| * @author Didier Brun | |
| * @version 1.0 | |
| * | |
| */ |
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
| /** | |
| * | |
| * | |
| * ScaleBitmap | |
| * | |
| * @author Didier Brun | |
| * @author Jerôme Decoster | |
| * @version 1.1 | |
| * | |
| */ |