- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_json.html
More file actions
Latest commit
37 lines (25 loc) · 613 Bytes
/
Copy pathexample_json.html
File metadata and controls
37 lines (25 loc) · 613 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
32
33
34
35
36
37
<div>
<h1id="title">Json</h1>
<divclass="form-group">
<labelfor="input_fname">rrd file</label>
<selectid="file" onchange="input_update()">
</select>
</div>
<buttononclick="input_update()" class="btn btn-default">Update</button>
<hr/>
<preid="example" >
test
</pre>
<scripttype="text/javascript">
//<![CDATA[
functionupdate_info(bf){
$("#example").html(JSON.stringify(newRRDFile(bf)));
//datas(rrd_Graph.getFlotData()[0].data);
}
functioninput_update(){
newBinaryFile("rrd/"+$('#file').val()+".rrd",update_info);
}
fillFileOptions($('#file'));
//]]>
</script>
</div>