You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
568 B
36 lines
568 B
/**
|
|
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();
|
|
}
|
|
|
|
};
|
|
|
|
}();
|
|
|
|
jQuery(document).ready(function() {
|
|
Custom.init();
|
|
});
|
|
|
|
/***
|
|
Usage
|
|
***/
|
|
//Custom.doSomeStuff();
|