Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 11: Line 11:
$('#mutantwidget').append('<div id="mw_sequencearea"/>');
$('#mutantwidget').append('<div id="mw_sequencearea"/>');
$('#mutantwidget .sequence').hide().appendTo($('#mutantwidget #mw_sequencearea'));
$('#mutantwidget .sequence').hide().appendTo($('#mutantwidget #mw_sequencearea'));
-
$('#mw_selectmenu td').mouseover(function(){$(this).dequeue().animate({"opacity":1}, 500)});
+
$('#mw_selectmenu td').mouseover(function()
-
$('#mw_selectmenu td').mouseout(function(){$(this).dequeue().animate({"opacity":.3}, 500)});
+
{
 +
if(!$(this).hasClass("selected"))
 +
{
 +
$(this).dequeue().animate({"opacity":1}, 500);
 +
}
 +
});
 +
$('#mw_selectmenu td').mouseout(function()
 +
{
 +
if(!$(this).hasClass("selected"))
 +
{
 +
$(this).dequeue().animate({"opacity":.3}, 500);
 +
}
 +
 
 +
});
$.plot($("#mw_grapharea"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
$.plot($("#mw_grapharea"), [ [[0, 0], [1, 1]] ], { yaxis: { max: 1 } });
$('#mutantwidget td').click(
$('#mutantwidget td').click(
Line 35: Line 48:
selectedelements[curelement].children().eq($(this).parent().index()).hide();
selectedelements[curelement].children().eq($(this).parent().index()).hide();
}
}
 +
$(this).dequeue().css({opacity:1});
selectedelements[curelement] = $(this);
selectedelements[curelement] = $(this);
$(this).addClass("selected");
$(this).addClass("selected");

Revision as of 19:46, 21 September 2011