Team:Tec-Monterrey/antifreeze/notebook

From 2012.igem.org

(Difference between revisions)
Line 390: Line 390:
function replaceBox(day)
function replaceBox(day)
{
{
-
if (month == 0 && day <= apr_info.length)
+
if (month == 0)
{
{
$('#imgbox').attr("src",all_images[apr_type[day-1]]);
$('#imgbox').attr("src",all_images[apr_type[day-1]]);
$('#textbox').html(apr_info[day-1]);
$('#textbox').html(apr_info[day-1]);
}
}
-
else if (month == 1 && day <= may_info.length)
+
else if (month == 1)
{
{
$('#imgbox').attr("src",all_images[may_type[day-1]]);
$('#imgbox').attr("src",all_images[may_type[day-1]]);
$('#textbox').html(may_info[day-1]);
$('#textbox').html(may_info[day-1]);
}
}
-
else if (month == 2 && day <= jun_info.length)
+
else if (month == 2)
{
{
$('#imgbox').attr("src",all_images[jun_type[day-1]]);
$('#imgbox').attr("src",all_images[jun_type[day-1]]);
$('#textbox').html(jun_info[day-1]);
$('#textbox').html(jun_info[day-1]);
}
}
-
else if (month == 3 && day <= jul_info.length)
+
else if (month == 3)
{
{
$('#imgbox').attr("src",all_images[jul_type[day-1]]);
$('#imgbox').attr("src",all_images[jul_type[day-1]]);
$('#textbox').html(jul_info[day-1]);
$('#textbox').html(jul_info[day-1]);
}
}
-
else if (month == 4 && day <= aug_info.length)
+
else if (month == 4)
{
{
$('#imgbox').attr("src",all_images[aug_type[day-1]]);
$('#imgbox').attr("src",all_images[aug_type[day-1]]);
$('#textbox').html(aug_info[day-1]);
$('#textbox').html(aug_info[day-1]);
}
}
-
else if (month == 5 && day <= sep_info.length)
+
else if (month == 5)
{
{
$('#imgbox').attr("src",all_images[sep_type[day-1]]);
$('#imgbox').attr("src",all_images[sep_type[day-1]]);
Line 1,047: Line 1,047:
<td>
<td>
<div id="textbox">
<div id="textbox">
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
+
Enable Javascript to view notebook
</div>
</div>
</td>
</td>

Revision as of 02:53, 27 September 2012

Tec Igem 2012 1 2 3 4 5 6 7 8 9 10 11 12

project
imgbox
Enable Javascript to view notebook