Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 1: Line 1:
{{WarHead}}
{{WarHead}}
<html>
<html>
-
<style>
 
-
#lightbox{ position: absolute; left: 0; width: 100%; z-index: 100; text-align: center; line-height: 0;}
 
-
#lightbox img{ width: auto; height: auto;}
 
-
#lightbox a img{ border: none; }
 
-
#outerImageContainer{ position: relative; background-color: #fff; width: 250px; height: 250px; margin: 0 auto; }
+
<div id="progress"></div>
-
#imageContainer{ padding: 10px; }
+
<div id="result"></div>
-
#loading{ position: absolute; top: 40%; left: 0%; height: 25%; width: 100%; text-align: center; line-height: 0; }
+
<script type="text/javascript">
-
#hoverNav{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; z-index: 10; }
+
-
#imageContainer>#hoverNav{ left: 0;}
+
-
#hoverNav a{ outline: none;}
+
-
#prevLink, #nextLink{ width: 49%; height: 100%; background-image: url(data:image/gif;base64,AAAA); /* Trick IE into showing hover */ display: block; }
+
/* <![CDATA[ */  
-
#prevLink { left: 0; float: left;}
+
-
#nextLink { right: 0; float: right;}
+
-
#prevLink:hover, #prevLink:visited:hover { background: url('https://static.igem.org/mediawiki/2008/4/4d/Prevlabel.gif') left 15% no-repeat; }
+
-
#nextLink:hover, #nextLink:visited:hover { background: url('https://static.igem.org/mediawiki/2008/8/82/Nextlabel.gif') right 15% no-repeat; }
+
-
#imageDataContainer{ font: 10px Verdana, Helvetica, sans-serif; background-color: #fff; margin: 0 auto; line-height: 1.4em; overflow: auto; width: 100% ; }
+
Array.prototype.indexOf = function( v, b, s ) {
 +
for( var i = +b || 0, l = this.length; i < l; i++ ) {
 +
  if( this[i]===v || s ) if ( this[i]==v ) { return i; }
 +
}
 +
return -1;
 +
};
-
#imageData{ padding:0 10px; color: #666; }
+
function and(cond1,cond2)
-
#imageData #imageDetails{ width: 70%; float: left; text-align: left; }
+
{
-
#imageData #caption{ font-weight: bold; }
+
if (cond1==true) if (cond2==true) return true;
-
#imageData #numberDisplay{ display: block; clear: left; padding-bottom: 1.0em; }
+
return false;
-
#imageData #bottomNavClose{ width: 66px; float: right;  padding-bottom: 0.7em; outline: none;}
+
}
-
#overlay{ position: absolute; top: 0; left: 0; z-index: 90; width: 100%; height: 500px; background-color: #000; }
+
function removeHTMLTags(strInputCode ){
 +
 +
strInputCode = strInputCode.replace(/&(lt|gt);/g, function (strMatch, p1){
 +
return (p1 == "lt")? "<" : ">";
 +
});
 +
var strTagStrippedText = strInputCode.replace(/<\/?[^>]+(>|$)/g, "");
 +
return strTagStrippedText;
 +
 +
}
 +
var authors=['Michał K.','Piotr','Antoni','Michał L.','Paweł'];
-
</style>
+
var adresbase='https://2008.igem.org/Team:Warsaw/Calendar-Main/';
 +
 
 +
var eday="empty";
 +
eday=eday.replace("y","yday");
 +
 
 +
function dom(nday)
 +
{
 +
 
 +
 
 +
document.getElementById("progress").innerHTML="Processing: "+nday;
 +
 
 +
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)
 +
            {
 +
document.getElementById("progress").innerHTML=req.statusText;           
 +
 
 +
 
 +
ans=document.createText­Node(req.responseText);
 +
//.getElementById("WarNotebook");
 +
            document.getElementById("result").innerHTML=ans.innerHTML;
 +
 
 +
}
 +
 
 +
 
 +
}; //koniec wewnętrznej funkcji
 +
 
 +
req.open('GET', adresbase+nday, true);
 +
req.send(null);
 +
}
 +
 
 +
 
 +
dom("10_July_2008");
 +
 
 +
 
 +
/* ]]> */</script>
-
<script language="JavaScript" src="http://www.lokeshdhakar.com/projects/lightbox2/js/prototype.js"></script>
 
-
<script type="text/javascript" src="http://www.huddletogether.com/projects/lightbox2/js/scriptaculous.js?load=effects,builder"></script>
 
-
<script type="text/javascript" src="http://www.huddletogether.com/projects/lightbox2/js/lightbox.js"></script>
 
-
 
-
<script language="JavaScript">
 
-
LightboxOptions.fileLoadingImage="https://static.igem.org/mediawiki/2008/4/42/Loading.gif";
 
-
LightboxOptions.fileBottomNavCloseImage="https://static.igem.org/mediawiki/2008/8/8e/Closelabel.gif";
 
-
</script>
 
-
<a href="https://static.igem.org/mediawiki/2008/a/a0/Egipt2.jpg" rel="lightbox[roadtrip]" title="Egipt">image #1</a>
 
-
<a href="https://static.igem.org/mediawiki/2008/7/75/Wir.jpg" rel="lightbox[roadtrip]" title="What Microbiologists do?">image #1</a>
 
-
<a href="https://static.igem.org/mediawiki/2008/b/b2/Chemotransformacja.jpg" rel="lightbox[roadtrip]" title="Chemotransformation">image #1</a>
 
</html>
</html>
{{WarNotebookEnd}}
{{WarNotebookEnd}}

Revision as of 18:46, 17 October 2008

Gallery Bricks Notebook Team Project Home