mirror of
https://hk.gh-proxy.com/https://github.com/NodeBB/nodebb-plugin-2factor.git
synced 2025-10-03 09:11:01 +08:00
18 lines
No EOL
620 B
JavaScript
18 lines
No EOL
620 B
JavaScript
"use strict";
|
|
|
|
(function() {
|
|
/*
|
|
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:
|
|
|
|
$(document).ready(); Fired when the DOM is ready
|
|
$(window).on('action:ajaxify.end', function(data) { ... }); "data" contains "url"
|
|
*/
|
|
|
|
console.log('nodebb-plugin-quickstart: loaded');
|
|
// Note how this is shown in the console on the first load of every page
|
|
}()); |