====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
script_template [2015/04/11 01:22] cdfa [How to use the script] |
script_template [2015/05/05 20:27] (current) trianguloy |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== About the script ====== | ====== About the script ====== | ||
| - | * Purpose : automatically import .js files elsewhere on your device into lightning launcher when they have changed. This allows you to use external script editors! | + | * Purpose : explain what the script does |
| - | * Author : cdfa | + | * Author : who wrote this script |
| - | * Link: none yet | + | * Link: if needed, you may add a link here |
| ====== How to use the script ====== | ====== How to use the script ====== | ||
| - | Recommended to run the script on resumed event of the container which is your test environment, but you can use it really anytime anywhere. | ||
| - | ====== Script code ====== | ||
| - | <code> | ||
| - | //Old tag | ||
| - | yourJavaScriptCodeHere(); | ||
| - | </code> | ||
| + | Explain everything needed to use the script, whether some item configuration need to be done before, on which event to trigger the script, and so on | ||
| + | |||
| + | ====== Script code ====== | ||
| <sxh javascript> | <sxh javascript> | ||
| - | //New tag, line completion and colors | + | |
| + | //New tag, line completion and colors. | ||
| + | //The previous one was <code> script(); </code> | ||
| + | //remove those lines and write here your script | ||
| yourJavaScriptCodeHere(); | yourJavaScriptCodeHere(); | ||
| + | |||
| </sxh> | </sxh> | ||