Files
grecia/docs/english-documentation/customization/javascript.md
2020-07-14 22:51:03 +00:00

17 lines
392 B
Markdown

# Javascript
If you want to add some custom Javascript code, `app/assets/javascripts/custom.js` is the file to do it. For example to create a new alert just add:
```javascript
$(function(){
alert('foobar');
});
```
If you work with Coffeescript code you can check it with [coffeelint](http://www.coffeelint.org/) \(install with `npm install -g coffeelint`\) :
```bash
coffeelint .
```