browser: add basic close action to welcome.html
Change-Id: I7a2d4245f10aba23836b6b756d7473ccb531b4bf Signed-off-by: Henry Castro <hcastro@collabora.com>
This commit is contained in:
parent
924d63a764
commit
5eff9950db
1 changed files with 19 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<body onload="onLoaded()">
|
||||||
<div id="user-welcome">
|
<div id="user-welcome">
|
||||||
<div class="slider">
|
<div class="slider">
|
||||||
<div class="slides">
|
<div class="slides">
|
||||||
|
@ -33,7 +36,7 @@
|
||||||
<h2 id="welcome-slide3-heading-2"></h2>
|
<h2 id="welcome-slide3-heading-2"></h2>
|
||||||
<p id="welcome-slide3-content"></p>
|
<p id="welcome-slide3-content"></p>
|
||||||
<div id="user-welcome--buttons">
|
<div id="user-welcome--buttons">
|
||||||
<button id='welcome-button-close' type="button" class="ui-pushbutton jsdialog" onclick="vex.closeAll()"></button>
|
<button id='welcome-button-close' type="button" class="ui-pushbutton jsdialog" onclick="onClose()"></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,3 +46,18 @@
|
||||||
</div>
|
</div>
|
||||||
<a id="view-supported-versions" href="https://www.collaboraoffice.com/subscriptions/" target="_blank"></a>
|
<a id="view-supported-versions" href="https://www.collaboraoffice.com/subscriptions/" target="_blank"></a>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
function onLoaded() {
|
||||||
|
if (window.parent !== window.self) {
|
||||||
|
window.parent.postMessage('welcome-show', '*');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onClose() {
|
||||||
|
if (window.parent !== window.self) {
|
||||||
|
window.parent.postMessage('welcome-close', '*');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue