mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
33 lines
553 B
JavaScript
33 lines
553 B
JavaScript
|
/**
|
||
|
Custom module for you to write your own javascript functions
|
||
|
**/
|
||
|
var Custom = function () {
|
||
|
|
||
|
// private functions & variables
|
||
|
|
||
|
var myFunc = function(text) {
|
||
|
alert(text);
|
||
|
}
|
||
|
|
||
|
// public functions
|
||
|
return {
|
||
|
|
||
|
//main function
|
||
|
init: function () {
|
||
|
//initialize here something.
|
||
|
},
|
||
|
|
||
|
//some helper function
|
||
|
doSomeStuff: function () {
|
||
|
myFunc();
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
}();
|
||
|
|
||
|
/***
|
||
|
Usage
|
||
|
***/
|
||
|
//Custom.init();
|
||
|
//Custom.doSomeStuff();
|