SymphonyElectron/demo/win.html
Kiran Niranjan 6aca522a1e Typescript (Optimize loading styles & register global shortcuts) (#629)
* Typescript - Optimize loading styles and register global shortcuts

* Typescript - Update version info logic to support BC

* Typescript - Implement memory refresh logic

* Typescript - Optimize memory refresh, devtools & appBridge code

* Typescript - Mock window-handler to fix unit tests

* Typescript - Change logic to remove if else and early exit
2019-04-12 16:11:04 +05:30

52 lines
1.3 KiB
HTML

<html>
<head>
<meta charset="UTF-8">
<title>Test pop-out window</title>
</head>
Test Window has been opened
<p>
<label for='tag'>tag:</label>
<input type='text' id='tag' value=''/>
</p>
<button id="open-win">Open a new child window</button>
<br>
<br>
<button id="open-in-browser">Open Symphony in browser</button>
<br>
<br>
<a href="https://symphony.com" target="_blank">Open Symphony</a>
<hr>
<p>Badge Count:<p>
<button id='inc-badge'>increment badge count</button>
<br>
<script>
var badgeCount = 0;
var incBadgeEl = document.getElementById('inc-badge');
incBadgeEl.addEventListener('click', function() {
badgeCount++;
if (window.ssf) {
ssf.setBadgeCount(badgeCount);
} else {
postMessage({ method: 'set-badge-count', data: badgeCount }, window.origin);
}
});
var openWinButton = document.getElementById('open-win');
openWinButton.addEventListener('click', function() {
win = window.open('childWin.html?x=200&y=200', 'childWin', 'height=500,width=500');
});
var openInBrowser = document.getElementById('open-in-browser');
openInBrowser.addEventListener('click', function () {
window.open('https://symphony.com');
});
</script>
</html>