This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
m3tam3re.com/themes/FixIt/assets/js/custom.js.example

36 lines
670 B
Plaintext
Raw Normal View History

2023-10-12 14:01:05 +02:00
/**
* Custom javascript for FixIt site.
* @author @Lruihao https://lruihao.cn
*/
const FixItCustom = new (function () {
/**
* Hello World
* You can define your own functions below.
* @returns {FixItCustom}
*/
this.hello = () => {
console.log('FixItCustom echo: Hello FixIt!');
return this;
};
/**
* Initialize.
* @returns {FixItCustom}
*/
this.init = () => {
// Custom infos.
this.hello();
return this;
};
})();
/**
* Immediate.
*/
(() => {
FixItCustom.init();
// It will be executed when the DOM tree is built.
document.addEventListener('DOMContentLoaded', () => {
// FixItCustom.init();
});
})();