-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpopup.html
More file actions
27 lines (26 loc) · 752 Bytes
/
popup.html
File metadata and controls
27 lines (26 loc) · 752 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
<html>
<head>
<link rel="stylesheet" href="css/simple.css" />
<script type="text/javascript" src="js/xml.js"></script>
<script type="text/javascript" src="js/simple.js"></script>
</head>
<body>
<div id="maindiv">loading...</div>
<script>
var main = (function () {
//main entry point
if(localStorage['isp']) {
c_loadjs(localStorage['isp']+'.js', function() {
params = new UsageParam(localStorage['isp'],
localStorage['username'], localStorage['password']);
fetch(params, showUsage);
});
} else {
var data = mkError("error: No account details, enter your ISP login details in the options");
showUsage(data);
}
})();
</script>
<p><a href="javascript:refreshUsage();">Update Now and Refresh Data</a></p>
</body>
</html>