2014-06-04 20:08:24 +00:00
|
|
|
"use strict";
|
|
|
|
|
2017-01-05 16:47:08 +00:00
|
|
|
$(document).ready(function() {
|
2015-03-13 18:05:18 +00:00
|
|
|
/*
|
|
|
|
This file shows how client-side javascript can be included via a plugin.
|
|
|
|
If you check `plugin.json`, you'll see that this file is listed under "scripts".
|
|
|
|
That array tells NodeBB which files to bundle into the minified javascript
|
|
|
|
that is served to the end user.
|
|
|
|
|
|
|
|
Some events you can elect to listen for:
|
2014-06-04 20:08:24 +00:00
|
|
|
|
2015-03-13 18:05:18 +00:00
|
|
|
$(document).ready(); Fired when the DOM is ready
|
|
|
|
$(window).on('action:ajaxify.end', function(data) { ... }); "data" contains "url"
|
|
|
|
*/
|
2014-06-04 20:08:24 +00:00
|
|
|
|
2015-03-13 18:05:18 +00:00
|
|
|
console.log('nodebb-plugin-quickstart: loaded');
|
|
|
|
// Note how this is shown in the console on the first load of every page
|
2017-01-05 18:38:22 +00:00
|
|
|
});
|