Files
Mostly-Harmless/html/popup.html
T
Kerrick Long 2c6c3754d5 Reorganized, made object-oriented, cleaned up.
Note that I have not yet gotten voting working again.
2011-06-28 01:24:40 -05:00

30 lines
970 B
HTML

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Mostly Harmless Popup</title>
<link type="text/css" rel="stylesheet" href="/css/popup.css">
<script type="text/javascript" src="/fancy-settings/lib/store.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript">
var popup;
popup = new Popup();
function initPopup() {
chrome.tabs.getSelected(null, function(currTab) {
if (cache.get(currTab.url) !== undefined) {
document.getElementById('body').innerHTML = popup.createListHTML(currTab.url);
document.getElementById('body').style.width = '700px';
}
});
}
// Show the loader for a little while, just to make it look like the extension is working hard. ;)
window.setTimeout('initPopup()', 500);
</script>
</head>
<body id="body">
<img id="loading" src="/pix/ajaxload.info.gif" width="32" height="32" alt="Loading..." />
</body>
</html>