====== 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:20] cdfa [About 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 ====== | ||
| Line 8: | Line 9: | ||
| ====== Script code ====== | ====== Script code ====== | ||
| - | <code> | ||
| - | //Old tag | ||
| - | yourJavaScriptCodeHere(); | ||
| - | </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> | ||