Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  23 Sep 2013, Stefan Ritt, Info, Custom page header implemented Screen_Shot_2013-09-23_at_15.17.40_.png
    Reply  12 Feb 2014, Stefan Ritt, Info, Custom page header implemented 
       Reply  18 Feb 2014, Konstantin Olchanski, Info, Custom page header implemented 
          Reply  19 Feb 2014, Stefan Ritt, Info, Custom page header implemented 
Message ID: 959     Entry time: 12 Feb 2014     In reply to: 908     Reply to this: 961
Author: Stefan Ritt 
Topic: Info 
Subject: Custom page header implemented 
As reported in the bug tracker, the proposed header does not work if no specific (= different from the default 60 sec.) update period is specified, 
since then no cookie is present. Here is the updated code which works for all cases:



<div id="footerDiv" class="footerDiv">
<div style="display:inline; float:left;">MIDAS experiment "Test"</div>
<div id="refr" style="display:inline; float:right;"></div>
</div>
<script type="text/javascript">
var r = document.getElementById('refr');
var now = new Date();
var refr;
if (document.cookie.search('midas_refr') == -1)
   refr = 60;
else {
   var c = document.cookie.split('midas_refr=');
   refr = c.pop().split(';').shift();
}
r.innerHTML = now.toString() + '&nbsp;&nbsp;&nbsp;' + 'Refr:' + refr;
</script>



/Stefan
ELOG V3.1.4-2e1708b5