37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
|
|
||
|
|
||
|
class PersonalProperties{
|
||
|
/**
|
||
|
* @param {HTMLElement} appElem
|
||
|
*/
|
||
|
constructor(appElem){
|
||
|
this.appElem = appElem
|
||
|
|
||
|
}
|
||
|
|
||
|
Init(){
|
||
|
this.appElem.innerHTML = WebDesktopEnvironment.GetBasicWindow()
|
||
|
|
||
|
let contentFrame = this.appElem.children[0].children[0].children[1]
|
||
|
fetch("http://192.168.88.10:8080/application/personal-properties/getcontent") //TODO Move to wde func
|
||
|
.then((response) => response.text())
|
||
|
.then((html) => {
|
||
|
contentFrame.innerHTML = html
|
||
|
})
|
||
|
.catch((error) => {
|
||
|
WebDesktopEnvironment.Alert(error);
|
||
|
});
|
||
|
|
||
|
// var link = document.createElement( "link" );
|
||
|
// link.href = "http://192.168.88.10:8080/system/applications/personal-properties/app.css"
|
||
|
// link.type = "text/css";
|
||
|
// link.rel = "stylesheet";
|
||
|
// link.media = "screen,print";
|
||
|
// document.getElementsByTagName( "head" )[0].appendChild(link);
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
document.onload = function (params) {
|
||
|
console.log("pizda")
|
||
|
}
|