|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
23 Sep 2013, Stefan Ritt, Info, Custom page header implemented
|
12 Feb 2014, Stefan Ritt, Info, Custom page header implemented
|
18 Feb 2014, Konstantin Olchanski, Info, Custom page header implemented
|
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() + ' ' + 'Refr:' + refr;
</script>
/Stefan |