⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
skvinfotech.com
/
public
/
assets
/
_js
/
main
/
View File Name :
app.js
/* * Document : app.js * Author : pixelcave * Description: Main entry point * */ // Import global dependencies import './bootstrap'; // Import required modules import Template from './modules/template'; // App extends Template export default class App extends Template { /* * Auto called when creating a new instance * */ constructor() { super(); } /* * Here you can override or extend any function you want from Template class * if you would like to change/extend/remove the default functionality. * * This way it will be easier for you to update the module files if a new update * is released since all your changes will be in here overriding the original ones. * * Let's have a look at the _uiInit() function, the one that runs the first time * we create an instance of Template class or App class which extends it. This function * inits all vital functionality but you can change it to fit your own needs. * */ /* * EXAMPLE #1 - Removing default functionality by making it empty * */ // _uiInit() {} /* * EXAMPLE #2 - Extending default functionality with additional code * */ // _uiInit() { // // Call original function // super._uiInit(); // // // Your extra JS code afterwards // } /* * EXAMPLE #3 - Replacing default functionality by writing your own code * */ // _uiInit() { // // Your own JS code without ever calling the original function's code // } } // Once everything is loaded jQuery(() => { // Create a new instance of App window.One = new App(); });