2023-03-17 01:16:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
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]
|
2023-03-17 16:13:41 +00:00
|
|
|
fetch("http://localhost:8080/application/personal-properties/getcontent") //TODO Move to wde func
|
2023-03-17 01:16:51 +00:00
|
|
|
.then((response) => response.text())
|
|
|
|
.then((html) => {
|
|
|
|
contentFrame.innerHTML = html
|
|
|
|
})
|
|
|
|
.catch((error) => {
|
|
|
|
WebDesktopEnvironment.Alert(error);
|
|
|
|
});
|
|
|
|
|
|
|
|
// var link = document.createElement( "link" );
|
2023-03-17 16:13:41 +00:00
|
|
|
// link.href = "http://localhost:8080/system/applications/personal-properties/app.css"
|
2023-03-17 01:16:51 +00:00
|
|
|
// link.type = "text/css";
|
|
|
|
// link.rel = "stylesheet";
|
|
|
|
// link.media = "screen,print";
|
|
|
|
// document.getElementsByTagName( "head" )[0].appendChild(link);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
document.onload = function (params) {
|
|
|
|
console.log("pizda")
|
|
|
|
}
|