Template:Team:UC Davis/KO3D
From 2013.igem.org
(Difference between revisions)
Line 264: | Line 264: | ||
$("#mutantwidget").append('<div id="mw_selectmenu"/>'); | $("#mutantwidget").append('<div id="mw_selectmenu"/>'); | ||
$("#mutantwidget").append('<div id="mw_optionsmenu"><table id="mw_optionstable"></table></div>'); | $("#mutantwidget").append('<div id="mw_optionsmenu"><table id="mw_optionstable"></table></div>'); | ||
+ | if($("#mutantwidget .maxData") .length > 1) | ||
+ | {$("#mutantwidget").append('<div id="mw_zoommenu"/><table id="mw_zoomoptionstable"></table></div>');} | ||
Line 277: | Line 279: | ||
} | } | ||
// $('#mw_optionstable').append("<tr><td>Sequence</td></tr>"); | // $('#mw_optionstable').append("<tr><td>Sequence</td></tr>"); | ||
- | + | if($("#mutantwidget .maxData") .length > 1) | |
+ | { | ||
+ | $('#mw_zoomoptionstable').append("<tr><td>80000</td></tr>"); | ||
+ | $('#mw_zoomoptionstable').append("<tr><td>10000</td></tr>"); | ||
+ | $('#mw_zoomoptionstable').append("<tr><td>2000</td></tr>"); | ||
+ | } | ||
$('#mw_optionstable td').css({opacity:0.3}); | $('#mw_optionstable td').css({opacity:0.3}); | ||
$('#mutantwidget').prepend('<div id="mw_grapharea"/>'); | $('#mutantwidget').prepend('<div id="mw_grapharea"/>'); | ||
Line 307: | Line 314: | ||
} | } | ||
}); | }); | ||
+ | $('#mw_zoommenu td').mouseover(function() | ||
+ | { | ||
+ | if(!$(this).hasClass("selected")) | ||
+ | { | ||
+ | $(this).dequeue().animate({"opacity":.6, "color":selectedColor}, 500); | ||
+ | } | ||
+ | }); | ||
+ | |||
$('#mw_optionsmenu td').mouseout(function() | $('#mw_optionsmenu td').mouseout(function() | ||
{ | { | ||
Line 321: | Line 336: | ||
$(this).dequeue().animate({"opacity":.3, color:"rgb(225, 225, 225)"}, 500); | $(this).dequeue().animate({"opacity":.3, color:"rgb(225, 225, 225)"}, 500); | ||
} | } | ||
+ | }); | ||
+ | $('#mw_zoommenu td').mouseout(function() | ||
+ | { | ||
+ | if(!$(this).hasClass("selected")) | ||
+ | { | ||
+ | $(this).dequeue().animate({"opacity":.3, color:"rgb(225, 225, 225)"}, 500); | ||
+ | } | ||
}); | }); | ||
+ | |||
+ | $('#mw_zoommenu td').click( | ||
+ | function() { | ||
+ | dataMax = $(this).parseInt(); | ||
+ | if (widget_mode == "2D") | ||
+ | {$('#mw_optionsmenu td').eq(0).mouseover().click();} | ||
+ | else | ||
+ | {$('#mw_selectmenu td').eq(1).mouseover().click();} | ||
+ | }); | ||
+ | |||
$('#mw_optionsmenu td').click( | $('#mw_optionsmenu td').click( | ||
function() { | function() { |
Revision as of 01:11, 28 October 2013