All of xt:scripts functions and tools can be used to output fully customized javascript
As long as you follow a few rules and work within the constraints and peculiarities of Xtscript
Brackets containing maths or anything that could be evaluated as maths
should either be output with print_raw or broken up so the brackets are on separate lines
semi colons at the end of a print or print_raw line will be ignored so to add a semicolon at the end of a line use ; ; (semicolon space semicolon)
Show as text
Reload