Revision f32530f7
Added by Hamish Coleman about 15 years ago
- ID f32530f77ac1d984cc625d7e37c7ac080295c62b
indexgraph.html | ||
---|---|---|
<tr>
|
||
<td> <a href="javascript:index_load()">reload index</a> </td>
|
||
<td> <a href="javascript:reload_graph()">reload graph</a> </td>
|
||
<td> <div id="status"></div> </td>
|
||
<td> <a href="javascript:setall_graph('day')">Day</a> </td>
|
||
<td> <a href="javascript:setall_graph('week')">Week</a> </td>
|
||
<td> <a href="javascript:setall_graph('month')">Month</a> </td>
|
||
<td> <a href="javascript:setall_graph('year')">Year</a> </td>
|
||
<td> <div id="status"></div> </td>
|
||
</tr>
|
||
</table>
|
||
|
||
... | ... | |
var list = document.getElementById('list');
|
||
div.setAttribute("id","list");
|
||
list.parentNode.replaceChild(div,list);
|
||
|
||
//setTimeout('reload_graph()',300000);
|
||
}
|
||
|
||
function setall_graph(type) {
|
||
var status = document.getElementById('status');
|
||
status.innerHTML='GET';
|
||
for (i in global_index.graph) {
|
||
status.innerHTML=i;
|
||
var g = global_index.graph[i];
|
||
document.images[g.name].src = g.img.URL[type];
|
||
}
|
||
status.innerHTML='';
|
||
}
|
||
|
||
function reload_graph() {
|
||
var status = document.getElementById('status');
|
||
status.innerHTML='GET';
|
||
var now = new Date();
|
||
for (i in global_index.graph) {
|
||
status.innerHTML=i;
|
||
var g = global_index.graph[i];
|
||
document.images[g.name].src = document.images[g.name].src
|
||
+ "?" + now.getTime();
|
||
}
|
||
status.innerHTML='';
|
||
}
|
||
|
||
function index_load() {
|
Also available in: Unified diff
CLEANUP