3.4.3. Scripts
A theme can have one or more scripts, to add a script create a file in the <THEME TYPE>/resources/js
directory of your theme. Then add it to the scripts
property in theme.properties
.
For example to add script.js
to the mytheme
create themes/mytheme/login/resources/js/script.js
with the following content:
alert('Hello');
alert('Hello');
Then edit themes/mytheme/login/theme.properties
and add:
scripts=js/script.js
scripts=js/script.js