Template:WarNotebook

From 2008.igem.org

(Difference between revisions)
 
(45 intermediate revisions not shown)
Line 1: Line 1:
{{WarHead}}
{{WarHead}}
<html>
<html>
 +
<style>
 +
.hide {
 +
display:none
 +
}
 +
</style>
<br>
<br>
-
<table width="100%" class="month"><tr><td width="33%"><a id="back" class="sztrzalka">Previous day</a></td><td width="33%"><div align="center"><a href="https://2008.igem.org/wiki/Team:Warsaw/igem_notebook.htm" class="sztrzalka">Up</a></div></td>
+
<table width="100%" class="month" id="WarNotebook">
-
<td><div align="right"><a id="next" class="sztrzalka">Next day</a></div></td>
+
<tr><td width="33%"><a id="back" class="sztrzalka"><img src="https://static.igem.org/mediawiki/2008/2/2b/Previous_day.png" alt="Previous day"></a></td><td width="33%"><div align="center"><a href="https://2008.igem.org/wiki/Team:Warsaw/igem_notebook.htm" class="sztrzalka"><img src="https://static.igem.org/mediawiki/2008/d/da/Up.png" alt="return to main notebook page"></a></div></td>
-
<tr><td id="back_ajax"></td><td id="next_ajax"></td></tr>
+
<td><div align="right"><a id="next" class="sztrzalka"><img src="https://static.igem.org/mediawiki/2008/6/63/Next_day.png" alt="Next day"></a></div></td>
 +
 
 +
 
 +
<tr><td width="30%"><img src="https://static.igem.org/mediawiki/2008/c/c4/Progress.gif" id="prev_progress"/><a id="prev_fil" class="sztrzalka"><img src="https://static.igem.org/mediawiki/2008/7/72/Previous_entry.png" alt="Previous entry"></a></td>
 +
 
 +
 
 +
<td width="40%"><div align="right" style="display:inline"><a class="strzalka" href="https://2008.igem.org/Team:Warsaw/Calendar-Main/NoAtribution">Attribution analyzer</a>&nbsp;/</div>
 +
<div align="left" style="display:inline" class="blab"><a class="strzalka" href="https://2008.igem.org/Team:Warsaw/JSTest2">Interactive list of topics</a></div></td>
 +
 
 +
 
 +
<td><div align="right"><img src="https://static.igem.org/mediawiki/2008/c/c4/Progress.gif" id="next_progress"/><a id="next_fil" class="sztrzalka"><img src="https://static.igem.org/mediawiki/2008/6/62/Next_entry.png" alt="next notebook entry"></a></div></td>
 +
<tr><td id="back_ajax"></td><td id="next_ajax"></td></tr></tr>
Line 13: Line 29:
<p>&nbsp;</p>
<p>&nbsp;</p>
     <div align="center">
     <div align="center">
-
<h1 id=zz></h1>
+
<h1 id="zz"></h1>
<script type="text/javascript">
<script type="text/javascript">
Line 25: Line 41:
};
};
 +
document.getElementById("prev_fil").style.display = 'none';
 +
document.getElementById("next_fil").style.display = 'none';
 +
document.getElementById("next_ajax").style.display = 'none';
 +
document.getElementById("back_ajax").style.display = 'none';
var months=['January','February','March','April','May','June','July','August','September','October','November','December'];
var months=['January','February','March','April','May','June','July','August','September','October','November','December'];
Line 90: Line 110:
document.getElementById("back").href=adresbase+prevday(tokeny[tokeny.length-1].replace('/ /g','_'));
document.getElementById("back").href=adresbase+prevday(tokeny[tokeny.length-1].replace('/ /g','_'));
-
function getFile(url) {
+
 
-
  if (window.XMLHttpRequest) {            
+
 
-
    AJAX=new XMLHttpRequest();            
+
 
-
  } else {                                 
+
var eday="empty";
-
    AJAX=new ActiveXObject("Microsoft.XMLHTTP");
+
eday=eday.replace("y","yday");
-
  }
+
 
-
  if (AJAX) {
+
function next_fil(day)
-
    AJAX.open("GET", url, false);                           
+
{
-
    AJAX.send(null);
+
 
-
    return AJAX.responseText;                                       
+
var nday=nextday(day);
-
  } else {
+
 
-
    return false;
+
document.getElementById("next_ajax").innerHTML=document.getElementById("next_ajax").innerHTML+"<br>Call: "+day;
-
  }                                           
+
 
 +
if (window.XMLHttpRequest) { // Mozilla, Safari, Opera ...
 +
  var req = new XMLHttpRequest();
 +
} else if (window.ActiveXObject) { // IE
 +
  var req = new ActiveXObject("Microsoft.XMLHTTP");
}
}
 +
var ans;
 +
if (window.overrideMimeType) req.overrideMimeType('text/xml');
 +
req.onreadystatechange = function() { //początek wewnętrznej funkcji
 +
if (req.readyState == 4) {
 +
            if (req.status == 200) {
 +
                ans=req.responseText;
 +
                if(ans.search(eday)>0) next_fil(nday);
 +
                else
 +
                {
 +
                document.getElementById("next_ajax").innerHTML=document.getElementById("next_ajax").innerHTML+"<br>Hit: "+nday;
 +
                document.getElementById("next_fil").href=adresbase+nday;
 +
                document.getElementById("next_fil").style.display = 'block';
 +
                document.getElementById("next_progress").style.display = 'none';
 +
                }
 +
            }
 +
}
 +
}; //koniec wewnętrznej funkcji
-
function ajaxsearch(url,phrase)
+
req.open('GET', adresbase+nday, true);
 +
req.send(null);
 +
}
 +
 
 +
next_fil(tokeny[tokeny.length-1].replace('/ /g','_'));
 +
 
 +
 
 +
 
 +
function prev_fil(day)
{
{
-
var fil=getfile(url);
 
-
if (!fil) return false;
 
-
var result=fil.search(phrase);
+
var pday=prevday(day);
-
if (result>0) return true;
+
 
-
else return false;
+
document.getElementById("back_ajax").innerHTML=document.getElementById("back_ajax").innerHTML+"<br>Call: "+day;
 +
 
 +
if (window.XMLHttpRequest) { // Mozilla, Safari, Opera ...
 +
  var req = new XMLHttpRequest();
 +
} else if (window.ActiveXObject) { // IE
 +
  var req = new ActiveXObject("Microsoft.XMLHTTP");
 +
}
 +
var ans;
 +
if (window.overrideMimeType) req.overrideMimeType('text/xml');
 +
req.onreadystatechange = function() { //początek wewnętrznej funkcji
 +
if (req.readyState == 4) {
 +
            if (req.status == 200) {
 +
                ans=req.responseText;
 +
                if(ans.search(eday)>0) prev_fil(pday);
 +
                else
 +
                {
 +
                document.getElementById("back_ajax").innerHTML=document.getElementById("back_ajax").innerHTML+"<br>Back Hit: "+pday;
 +
                document.getElementById("prev_fil").href=adresbase+pday;
 +
                document.getElementById("prev_fil").style.display = 'block';
 +
                document.getElementById("prev_progress").style.display = 'none';
 +
                }
 +
            }
 +
}
 +
 
 +
}; //koniec wewnętrznej funkcji
 +
 
 +
req.open('GET', adresbase+pday, true);
 +
req.send(null);
}
}
-
alert(ajaxsearch("https://2008.igem.org/Team:Warsaw/Calendar-Main/6_June_2008","construct"));
+
prev_fil(tokeny[tokeny.length-1].replace('/ /g','_'));
/* ]]> */</script>
/* ]]> */</script>
<br/>
<br/>
 +
<start>
</html>
</html>

Latest revision as of 22:35, 29 October 2008

Gallery Bricks Notebook Team Project Home


Previous day
return to main notebook page
Previous entry
next notebook entry