The System Core's JavaScript (modules/jrCore/js/jrCore.js) is loaded on every page. These functions are useful in templates and modules:
| Function | What it does |
|---|---|
| jrCore_window_location(url) | Goes to a URL, with the CSRF cookie Jamroom checks |
| jrCore_set_csrf_cookie(url) | Sets that cookie before an AJAX request |
| jrSetCookie(name, value, days) | Sets a cookie |
| jrReadCookie(name) | Reads a cookie |
| jrEraseCookie(name) | Deletes a cookie |
Jamroom also sets core_system_url (your site's address) as a JavaScript variable, for building URLs.