From: oetiker Date: Mon, 9 May 2005 17:42:35 +0000 (+0000) Subject: oops this was copied from the smokeping web ... bad bad bad ... now we are standalone ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca51a585709245e80f7725b6723232e42953ad01;p=rrdtool-all.git oops this was copied from the smokeping web ... bad bad bad ... now we are standalone ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@527 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/website/download.wml b/website/download.wml index 3667a2a4..5ce37a9e 100644 --- a/website/download.wml +++ b/website/download.wml @@ -12,6 +12,8 @@ You can download RRD tool from several places:
  • Development SnapShots
  • +

    You might want to read the build instructions for inspiration on where to go after downloading the source.

    +

    Mirror Sites

    + + + + + + + + + + + + + + + + + + + my ($mcode, $CFG, $select) = @_; + # have the top selected too + $mcode =~ s|
    (.+?)
      |
      $1
        |g; + $mcode =~ s|
        ([^<]+?)
          |
          $1
            |g; + $mcode =~ s|
              |
          |g; + $mcode =~ s|
        \s*
    \s*||g; + return $mcode; +
    +
    + %body +
    +
    + + + + + + /> + diff --git a/website/inc/position.js b/website/inc/position.js new file mode 100644 index 00000000..7e95b678 --- /dev/null +++ b/website/inc/position.js @@ -0,0 +1,118 @@ +// position.js: make edge-positioning work on IE/Win +// version 0.5, 15-Jul-2003 +// written by Andrew Clover , use freely + +/*@cc_on +@if (@_win32 && @_jscript_version>4) + +var position_h= new Array(); +var position_v= new Array(); +var position_viewport; +var position_width= 0; +var position_height= 0; +var position_fontsize= 0; +var position_ARBITRARY= 200; + +// Binding. Called on each new element; if the it's , initialise script. +// Check all new elements to see if they need our help, make lists of them + +function position_bind(el) { + if (!position_viewport) { + if (!document.body) return; + // initialisation + position_viewport= (document.compatMode=='CSS1Compat') ? + document.documentElement : document.body; + window.attachEvent('onresize', position_delayout); + var em= document.createElement('div'); + em.setAttribute('id', 'position_em'); + em.style.position= 'absolute'; em.style.visibility= 'hidden'; + em.style.fontSize= 'xx-large'; em.style.height= '5em'; + em.style.top='-5em'; em.style.left= '0'; + em.style.setExpression('width', 'position_checkFont()'); + document.body.appendChild(em); + } + + // check for absolute edge-positioned elements (ignore ones from fixed.js!) + var st= el.style; var cs= el.currentStyle; + if (cs.position=='absolute' && !st.fixedPWidth) { + if (cs.left!='auto' && cs.right!='auto') { + position_h[position_h.length]= el; + st.position_width= position_ARBITRARY; + st.width= st.position_width+'px'; + position_delayout(); + } + if (cs.top!='auto' && cs.bottom!='auto') { + position_v[position_v.length]= el; + st.position_height= position_ARBITRARY; + st.height= st.position_height+'px'; + position_delayout(); + } } +} + +function position_checkFont() { position_delayout(); return '1em'; } + +// Layout. For each edge-positioned axis, measure difference between min-edge +// and max-edge positioning, set size to the difference + +// Request re-layout at next available moment +var position_delaying= false; +function position_delayout() { + if (position_delaying) return; + position_delaying= true; + window.setTimeout(position_layout, 0); +} + +function position_layout() { + position_delaying= false; + var i, el, st, pos, tmp; + var fs= document.all['position_em'].offsetWidth; + var newfs= (position_fontsize!=fs && position_fontsize!=0); + position_fontsize= fs; + + // horizontal axis + if (position_viewport.clientWidth!=position_width || newfs) { + position_width= position_viewport.clientWidth; + for (i= position_h.length; i-->0;) { + el= position_h[i]; st= el.style; cs= el.currentStyle; + pos= el.offsetLeft; tmp= cs.left; st.left= 'auto'; + st.position_width+= el.offsetLeft-pos; st.left= tmp; + if (st.position_width<1) st.position_width= 1; + st.width= st.position_width+'px'; + } } + // vertical axis + if (position_viewport.clientHeight!=position_height || newfs) { + position_height= position_viewport.clientHeight; + for (i= position_v.length; i-->0;) { + el= position_v[i]; st= el.style; cs= el.currentStyle; + pos= el.offsetTop; tmp= cs.top; st.top= 'auto'; + st.position_height+= el.offsetTop-pos; st.top= tmp; + if (st.position_height<1) st.position_height= 1; + st.height= st.position_height+'px'; + } } +} + +// Scanning. Check document every so often until it has finished loading. Do +// nothing until arrives, then call main init. Pass any new elements +// found on each scan to be bound + +var position_SCANDELAY= 500; + +var position_nscanned= 0; +function position_scan() { + var nall= document.all.length; + for (var i= position_nscanned; i + +# this must be the very first line to make doc-type switching work on IE +#use wml::std::logo +#use wml::std::tags +#use wml::des::space +#use wml::des::imgdot +#use wml::std::grid +#use wml::fmt::url +#include +#include +#include +#use wml::des::navbar +#include +#include <$(ROOT)/navbar.inc> + + + +