You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.8 KiB
JavaScript
35 lines
1.8 KiB
JavaScript
window.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
var storage = widget.preferences;
|
||||
var infotable = document.getElementById('infotable');
|
||||
|
||||
opera.extension.onmessage = function(e)
|
||||
{
|
||||
if (e.data.informst_fillpopup) {
|
||||
var data = e.data.informst_fillpopup;
|
||||
var xbody = document.createElement("tbody");
|
||||
infotable.appendChild(xbody);
|
||||
infotable = xbody;
|
||||
|
||||
if (data.iswarning)
|
||||
infotable.innerHTML = ' |
||||
else
|
||||
infotable.innerHTML = ' |
||||
|
||||
infotable.innerHTML += '\
|
||||
|
||||
|
||||
|
||||
';
|
||||
|
||||
if (data.islowb)
|
||||
infotable.innerHTML += ' |
||||
|
||||
if (data.islowt)
|
||||
infotable.innerHTML += ' |
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
opera.extension.postMessage({informst: 'fillPopup'});
|
||||
}, false); |