Team:Lyon-INSA/notebook

From 2012.igem.org

(Difference between revisions)
Line 31: Line 31:
$(".month").click(function(){
$(".month").click(function(){
-
$(".month").removeClass("BNSelected");
 
-
$(this).addClass("BNSelected");
 
selectMonth($(this).text(),"asc");
selectMonth($(this).text(),"asc");
$("#noteBookTextContent").tinyscrollbar_update();
$("#noteBookTextContent").tinyscrollbar_update();
Line 158: Line 156:
function selectMonth(month_name,type)
function selectMonth(month_name,type)
{
{
 +
 +
$(".month").removeClass("BNSelected");
 +
$("#"+month_name).addClass("BNSelected");
         $(".textContent").text("");
         $(".textContent").text("");
Line 1,029: Line 1,030:
<br/>
<br/>
<div  id="monthSelection">
<div  id="monthSelection">
-
<div class="month">July</div>
+
<div class="month"  id="July">July</div>
-
        <div class="month">August</div>
+
        <div class="month" id="August">August</div>
-
                         <div class="month">September</div>
+
                         <div class="month" id="September">September</div>
-
                         <div class="month">October</div>
+
                         <div class="month" id="October">October</div>
</div>
</div>
<br/>
<br/>

Revision as of 11:20, 6 September 2012


The Notebook


July
August
September
October


Previous day

Next day
Watch us in action !