changed js file extensions
This commit is contained in:
parent
dc8f485c45
commit
43d0694e70
2 changed files with 27 additions and 0 deletions
18
src/themes/theme-fipamo-default/com/Base.js
Normal file
18
src/themes/theme-fipamo-default/com/Base.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
export default class Base {
|
||||||
|
//--------------------------
|
||||||
|
// constructor
|
||||||
|
//--------------------------
|
||||||
|
constructor() {
|
||||||
|
this.start();
|
||||||
|
}
|
||||||
|
start() {
|
||||||
|
console.log('Connected like F.E.');
|
||||||
|
}
|
||||||
|
//--------------------------
|
||||||
|
// methods
|
||||||
|
//--------------------------
|
||||||
|
|
||||||
|
//--------------------------
|
||||||
|
// event handlers
|
||||||
|
//--------------------------
|
||||||
|
}
|
9
src/themes/theme-fipamo-default/com/Start.js
Normal file
9
src/themes/theme-fipamo-default/com/Start.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import Base from "./Base.js";
|
||||||
|
|
||||||
|
document.addEventListener(
|
||||||
|
"DOMContentLoaded",
|
||||||
|
function () {
|
||||||
|
var base = new Base();
|
||||||
|
},
|
||||||
|
false
|
||||||
|
);
|
Loading…
Reference in a new issue