Software: Microsoft-IIS/10.0. PHP/7.4.33 uname -a: Windows NT LAKE 10.0 build 20348 (Windows Server 2016) AMD64 IWPD_801(traduongco) Safe-mode: OFF (not secure) C:\Windows\SystemApps\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\webapps\templates\js\ drwxrwxrwx | |
| Viewing file: Select action/file-type: define(["lib/knockout", "legacy/bridge"], (ko, bridge) => {
class CommonHeaderViewModel {
constructor(params, element) {
this.boundElement = element;
this.title = ko.isObservable(params.title) ? params.title : ko.observable(params.title);
// After the bindings are all applied, check if the header is visible and the title should be applied to the document title
setImmediate(() => {
this._updateDocumentTitle(this.title());
});
this.title.subscribe((newTitle) => {
this._updateDocumentTitle(newTitle);
});
// Register to be notified when a web page navigates between panel elements
this.panelChangedHandler = this.onPanelChanged.bind(this);
document.addEventListener("panelChanged", this.panelChangedHandler, true);
this.subtitle = params.subtitle;
}
dispose() {
document.removeEventListener("panelChanged", this.panelChangedHandler);
}
onPanelChanged(ev) {
bridge.invoke("CloudExperienceHost.notifyPanelChange");
this._updateDocumentTitle(this.title());
}
_updateDocumentTitle(newTitle) {
// If the element is visible, set the document title to the title string
if (this.boundElement.offsetHeight > 0) {
document.title = newTitle;
}
}
}
return CommonHeaderViewModel;
});
|
:: Command execute :: | |
--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5593 ]-- |