mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-28 11:54:52 +00:00
Generated minified JS and some formatting
This commit is contained in:
parent
3533615be4
commit
23f940fede
6 changed files with 217 additions and 191 deletions
6
templates/munstrap/static/js/dynazoom.min.js
vendored
Normal file
6
templates/munstrap/static/js/dynazoom.min.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
function refreshZoom(t,a,g,w){function m(){a.plugin_name.value=c.get("plugin_name","localdomain/localhost.localdomain/if_eth0");a.start_epoch.value=c.get("start_epoch","1236561663");a.stop_epoch.value=c.get("stop_epoch","1237561663");a.lower_limit.value=c.get("lower_limit","");a.upper_limit.value=c.get("upper_limit","");a.size_x.value=c.get("size_x","");a.size_y.value=c.get("size_y","");h()}function e(b){g.src=c.get("cgiurl_graph","/munin-cgi/munin-cgi-graph")+"/"+a.plugin_name.value+"-pinpoint="+
|
||||
parseInt(a.start_epoch.value)+","+parseInt(a.stop_epoch.value)+".png?&lower_limit="+a.lower_limit.value+"&upper_limit="+a.upper_limit.value+"&size_x="+a.size_x.value+"&size_y="+a.size_y.value;return(+a.stop_epoch.value-+a.start_epoch.value)/+a.size_x.value}function h(){a.start_iso8601.value=(new Date(1E3*a.start_epoch.value)).formatDate(Date.DATE_ISO8601);a.stop_iso8601.value=(new Date(1E3*a.stop_epoch.value)).formatDate(Date.DATE_ISO8601)}function u(b){var d;b=n(b)[0];d=b-f;0>d?(b-=63,d=-d):b=f-
|
||||
63;a.start_epoch.value=k+l*b;a.stop_epoch.value=k+l*(b+d);h()}function p(a,d){return a+d.substring(a.length,d.length)}function q(b){var d=p(a.start_iso8601.value,"2009-01-01T00:00:00+0100");b=p(a.stop_iso8601.value,"2009-01-01T00:00:00+0100");var c=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d{4})/;c.test(d)&&(d=new Date(d.replace(c,"$2 $3, $1 $4:$5:$6")),a.start_epoch.value=d.getTime()/1E3);c.test(b)&&(d=new Date(b.replace(c,"$2 $3, $1 $4:$5:$6")),a.stop_epoch.value=d.getTime()/1E3);e()}function n(a){var d=
|
||||
0,c=0,b;b=g;if("undefined"!=typeof b.offsetParent){for(var e=0,f=0;b;b=b.offsetParent)e+=b.offsetLeft,f+=b.offsetTop;b=[e,f]}else b=[b.x,b.y];a||(a=window.event);if(a.pageX||a.pageY)d=a.pageX,c=a.pageY;else if(a.clientX||a.clientY)d=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;d-=b[0];c-=b[1];return[d,c]}var c=new Querystring(t);m();var l=e(),k=+c.get("rst_start_epoch",a.start_epoch.value),v=+c.get("rst_stop_epoch",
|
||||
a.stop_epoch.value),f;a.plugin_name.onblur=e;a.start_iso8601.onblur=q;a.stop_iso8601.onblur=q;a.start_epoch.onblur=e;a.stop_epoch.onblur=e;a.lower_limit.onblur=e;a.upper_limit.onblur=e;a.size_x.onblur=e;a.size_y.onblur=e;a.btnReset.onclick=function(b){m();a.start_epoch.value=k;a.stop_epoch.value=v;h();l=e();f=r=0;g.onmousemove=void 0;a.start_iso8601.disabled=!1;a.stop_iso8601.disabled=!1;a.start_epoch.disabled=!1;a.stop_epoch.disabled=!1};g.onclick=function(b){switch(r++%2){case 0:f=n(b)[0];a.start_iso8601.disabled=
|
||||
!0;a.stop_iso8601.disabled=!0;a.start_epoch.disabled=!0;a.stop_epoch.disabled=!0;g.onmousemove=u;break;case 1:g.onmousemove=void 0,a.start_iso8601.disabled=!1,a.stop_iso8601.disabled=!1,a.start_epoch.disabled=!1,a.stop_epoch.disabled=!1}};var r=0};
|
Loading…
Add table
Add a link
Reference in a new issue