-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (27 loc) · 771 Bytes
/
index.html
File metadata and controls
27 lines (27 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!doctype html>
<html lang="en">
<head>
<script>
window.addEventListener("load", function(){
var theButton;
var ToolbarUIItemProperties = {
title: "OperaLL",
icon: "OperaLL.png",
popup: {
href: "popup.html",
width: 210,
height: 230
}
}
theButton = opera.contexts.toolbar.createItem(ToolbarUIItemProperties);
opera.contexts.toolbar.addItem(theButton);
}, false);
opera.extension.onmessage = function(event) {
event.source.postMessage(window.localStorage.getItem(event.data));
//window.opera.postError('Message received. Event source: ' + event.source + ' data: ' + event.data);
}
</script>
</head>
<body>
</body>
</html>