Doc on demand

This commit is contained in:
Luis Fernando Molina committed 2020-09-21 21:33:35 +02:00
1 parent c8bc211201
commit 1e1292d747
3 files changed
+21 -4

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ function newListView() {
}
function drawBackground() {
let label = 'Your Workspaces'
let label = 'Available Workspaces'
let backgroundColor = UI_COLOR.WHITE
let params = {
+2
View File
@@ -69,10 +69,12 @@ function newSidePanelTab() {
function open() {
animation = 'opening'
thisObject.container.eventHandler.raiseEvent('opening')
}
function close() {
animation = 'closing'
thisObject.container.eventHandler.raiseEvent('closing')
}
function onMouseClick(event) {
+18 -3
View File
@@ -23,15 +23,19 @@ function newDocSpace() {
resize()
let openingEventSubscriptionId
let closedEventSubscriptionId
let browserResizedEventSubscriptionId
let openingEventSubscriptionId
let closingEventSubscriptionId
const DEFAULT_URL = 'https://julian-molina.github.io/Documentation/'
return thisObject
function initialize() {
thisObject.sidePanelTab = newSidePanelTab()
thisObject.sidePanelTab.container.connectToParent(thisObject.container, false, false)
thisObject.sidePanelTab.initialize('right')
openingEventSubscriptionId = thisObject.sidePanelTab.container.eventHandler.listenToEvent('opening', onOpening)
closingEventSubscriptionId = thisObject.sidePanelTab.container.eventHandler.listenToEvent('closing', onClosing)
browserResizedEventSubscriptionId = canvas.eventHandler.listenToEvent('Browser Resized', resize)
@@ -41,7 +45,18 @@ function newDocSpace() {
function finalize() {
canvas.eventHandler.stopListening(browserResizedEventSubscriptionId)
thisObject.sidePanelTab.container.eventHandler.stopListening(openingEventSubscriptionId)
thisObject.sidePanelTab.container.eventHandler.stopListening(closedEventSubscriptionId)
thisObject.sidePanelTab.container.eventHandler.stopListening(closingEventSubscriptionId)
}
function onOpening() {
let docIFrame = document.getElementById('docIFrame')
if (docIFrame.src === "") {
docIFrame.src = DEFAULT_URL
}
}
function onClosing() {
}
function navigateTo(url) {