-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (27 loc) · 894 Bytes
/
index.html
File metadata and controls
28 lines (27 loc) · 894 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
28
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="/static/addonslib/style.css">
<script src="/static/addonslib/library.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body class="plugin-pane">
<div class="plugin-header">
<h4 class="title">Sample</h4>
</div>
<div class="plugin-body">
<div id="result"></div>
</div>
<script>
(function () {
var countText = function(source) {
if (source != null) {
$("#result").text(source.length+" characters");
}
}
api.files.read(null, countText);
api.on("file/change", countText);
}());
</script>
</body>
</html>