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 | + | 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 | + | 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 | + | 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 | + | 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 | + | 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 | + | 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
|
||||||||||||||||||||||||||||||||||||||
|