====== Differences ====== This shows you the differences between two versions of the page.
script_multi_container_bookmark [2014/03/31 13:54] trianguloy created |
script_multi_container_bookmark [2014/07/22 14:46] (current) trianguloy |
||
---|---|---|---|
Line 14: | Line 14: | ||
====== Script code ====== | ====== Script code ====== | ||
- | <code> | + | <sxh javascript> |
var parent = LL.getEvent().getContainer() || LL.getCurrentDesktop(); | var parent = LL.getEvent().getContainer() || LL.getCurrentDesktop(); | ||
if(parent.getId()==-1)parent=LL.getCurrentDesktop(); | if(parent.getId()==-1)parent=LL.getCurrentDesktop(); | ||
Line 43: | Line 43: | ||
var animations = confirm("Do you want to go smoothly? (not instantly)"); | var animations = confirm("Do you want to go smoothly? (not instantly)"); | ||
prompt("Script to use: Copy, paste and run",run(parent)); | prompt("Script to use: Copy, paste and run",run(parent)); | ||
- | </code> | + | </sxh> |