mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
31 lines
695 B
HTML
31 lines
695 B
HTML
|
<!DOCTYPE HTML>
|
||
|
|
||
|
<!--
|
||
|
This is the webapp. It doesn't need to do anything in particular, just
|
||
|
whatever you want to test from your browser_ test file.
|
||
|
-->
|
||
|
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<script>
|
||
|
|
||
|
function onLoad() {
|
||
|
var msg = document.getElementById("msg");
|
||
|
var self = navigator.mozApps.getSelf();
|
||
|
self.onsuccess = function () {
|
||
|
msg.textContent = "Webapp getSelf OK: " + self.result;
|
||
|
};
|
||
|
self.onerror = function () {
|
||
|
msg.textContent = "Webapp getSelf failed: " + self.error.name;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="onLoad();" onunload="">
|
||
|
<p>This is the test webapp.</p>
|
||
|
<p id="msg">Webapp waiting for page load...</p>
|
||
|
</body>
|
||
|
</html>
|