2012-07-13 13:51:35 -07:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<script>
|
|
|
|
function pingWorker() {
|
|
|
|
var port = navigator.mozSocial.getWorker().port;
|
2012-08-24 20:54:03 -07:00
|
|
|
port.postMessage({topic: "panel-message",
|
|
|
|
result: "ok",
|
|
|
|
location: window.location.href});
|
2012-07-13 13:51:35 -07:00
|
|
|
}
|
2012-08-20 11:25:47 -07:00
|
|
|
window.addEventListener("socialFrameShow", function(e) {
|
|
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
|
|
port.postMessage({topic: "status-panel-visibility", result: "shown"});
|
|
|
|
}, false);
|
|
|
|
window.addEventListener("socialFrameHide", function(e) {
|
|
|
|
var port = navigator.mozSocial.getWorker().port;
|
|
|
|
port.postMessage({topic: "status-panel-visibility", result: "hidden"});
|
|
|
|
}, false);
|
2012-07-13 13:51:35 -07:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body onload="pingWorker();">
|
|
|
|
<p>This is a test social panel.</p>
|
|
|
|
</body>
|
|
|
|
</html>
|