-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (31 loc) · 767 Bytes
/
Copy pathindex.html
File metadata and controls
31 lines (31 loc) · 767 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
29
30
31
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>streamer</title>
<script src="jquery.js"></script>
</head>
<body>
<a href="/_all">/_all</a> a listing of all streams.<br/>
<div id="result"></div>
<script>
$(document).ready(function(){
$.post('/images?data={"x":"hello"}', function(data) {
});
$.post('/_all', function(data) {
$( "#result" ).empty();
var list = data.split('\n');
for ( x in list)
{
var url = list[x];
if(url.length >1)
{
var imgstr = '<img src="'+url+'" width="300"/><br/>';
$( "#result" ).append( imgstr );
}
}
});
});
</script>
</body>
</html>