Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| info:dw:todo [2022/05/05 08:17] – créée radeff | info:dw:todo [2023/08/15 08:33] (Version actuelle) – radeff | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| https:// | https:// | ||
| + | |||
| + | ====== Voir aussi ====== | ||
| + | [[info: | ||
| + | |||
| + | ====== Astuce pour insérer rapidement un todo ====== | ||
| + | edit | ||
| + | lib/ | ||
| + | add at the end | ||
| + | <code js> | ||
| + | if (typeof window.toolbar !== ' | ||
| + | var dateObj = new Date(); | ||
| + | var month = dateObj.getUTCMonth() + 1; //months from 1-12 | ||
| + | var day = dateObj.getUTCDate(); | ||
| + | var year = dateObj.getUTCFullYear(); | ||
| + | newdate = year + " | ||
| + | toolbar[toolbar.length] = { | ||
| + | type: " | ||
| + | title: "Todo Button", | ||
| + | icon: " | ||
| + | key: " | ||
| + | open: " | ||
| + | sample: " | ||
| + | close: "</ | ||
| + | block: " | ||
| + | }; | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | result: a nice button {{: | ||
| + | |||
| + | < | ||
| + | & | ||
| + | </ | ||
| + | |||
| + | Adapted from: https:// | ||