Team:Tec-Monterrey/allergen/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]]);

Revision as of 02:52, 27 September 2012

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

project
imgbox