gerryg Posted September 16, 2019 Share Posted September 16, 2019 Hi, I need a simple module for my page and I was thinking of developing it myself Is it possible to add a script programmed purely in html and javascript? (apart from the index file in php) The module is the following: Link to comment Share on other sites More sharing options...
joseantgv Posted September 16, 2019 Share Posted September 16, 2019 Yes! I would just create a front controller and then add the JS and create a template with the HTML code. Link to comment Share on other sites More sharing options...
JBW Posted September 18, 2019 Share Posted September 18, 2019 Simply change the template and add the JS inline or better in custom.js Link to comment Share on other sites More sharing options...
joseantgv Posted September 18, 2019 Share Posted September 18, 2019 hace 1 hora, JBW dijo: Simply change the template and add the JS inline or better in custom.js Not recommended if you need to use PS libraries like jQuery, because they could be loaded after yours. Link to comment Share on other sites More sharing options...
JBW Posted September 19, 2019 Share Posted September 19, 2019 Custom.js is loaded last Link to comment Share on other sites More sharing options...
joseantgv Posted September 19, 2019 Share Posted September 19, 2019 Well I meant inline JS 😅 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now