Template:Team:UC Davis/KO3D
From 2013.igem.org
(Difference between revisions)
(29 intermediate revisions not shown) | |||
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 .dataMax"). | + | if($("#mutantwidget .dataMax").text() == 3) |
- | {$("#mutantwidget").append('<div id="mw_zoommenu" | + | {$("#mutantwidget").append('<div id="mw_zoommenu"><table id="mw_zoomoptionstable"></table></div>');} |
Line 281: | Line 281: | ||
if($("#mutantwidget .dataMax") .length == 1) | if($("#mutantwidget .dataMax") .length == 1) | ||
{ | { | ||
+ | $('#mw_zoomoptionstable').append("<tr><th>Ymax</th></tr>"); | ||
$('#mw_zoomoptionstable').append("<tr><td onClick>80000</td></tr>"); | $('#mw_zoomoptionstable').append("<tr><td onClick>80000</td></tr>"); | ||
$('#mw_zoomoptionstable').append("<tr><td>10000</td></tr>"); | $('#mw_zoomoptionstable').append("<tr><td>10000</td></tr>"); | ||
Line 286: | Line 287: | ||
} | } | ||
$('#mw_optionstable td').css({opacity:0.3}); | $('#mw_optionstable td').css({opacity:0.3}); | ||
- | $('# | + | $('#mw_zoomoptionstable td').css({opacity:0.3}); |
$('#mutantwidget').prepend('<div id="mw_grapharea"/>'); | $('#mutantwidget').prepend('<div id="mw_grapharea"/>'); | ||
$('#mw_grapharea').append('<div id="mw_plot"/>'); | $('#mw_grapharea').append('<div id="mw_plot"/>'); | ||
Line 353: | Line 354: | ||
$(this).addClass("selected"); | $(this).addClass("selected"); | ||
$('#mw_zoommenu td').mouseout(); | $('#mw_zoommenu td').mouseout(); | ||
- | dataMax = $(this). | + | dataMax = $(this).text(); |
} | } | ||
+ | $('#mw_optionsmenu td').removeClass("selected"); | ||
if (widget_mode == "2D") | if (widget_mode == "2D") | ||
{$('#mw_optionsmenu td').eq(0).mouseover().click();} | {$('#mw_optionsmenu td').eq(0).mouseover().click();} | ||
else | else | ||
- | { | + | {} |
}); | }); | ||
Line 375: | Line 377: | ||
$('.yaxis').show(); | $('.yaxis').show(); | ||
$('.xaxis').show(); | $('.xaxis').show(); | ||
+ | $('#mw_zoommenu').show(); | ||
widget_mode = "2D"; | widget_mode = "2D"; | ||
dataseries = []; | dataseries = []; | ||
Line 409: | Line 412: | ||
$('.yaxis').hide(); | $('.yaxis').hide(); | ||
$('.xaxis').hide(); | $('.xaxis').hide(); | ||
+ | $('#mw_zoommenu').hide(); | ||
widget_mode = "3D"; | widget_mode = "3D"; | ||
update3DPlotMeshes(); | update3DPlotMeshes(); | ||
Line 484: | Line 488: | ||
if (dataMax.length == 0) | if (dataMax.length == 0) | ||
{ dataMax = 90000; } | { dataMax = 90000; } | ||
+ | else if (dataMax == 3) | ||
+ | { dataMax = 80000; } | ||
axisdimensions = [0, 1, 0, 10, 0, dataMax]; | axisdimensions = [0, 1, 0, 10, 0, dataMax]; | ||
data = []; | data = []; | ||
Line 557: | Line 563: | ||
} | } | ||
); | ); | ||
- | axisdimensions = [0, 1, 0, 10, 0, | + | axisdimensions = [0, 1, 0, 10, 0, dataMax]; |
var numxpoints = 30; | var numxpoints = 30; | ||
var numypoints = 30; | var numypoints = 30; | ||
Line 1,044: | Line 1,050: | ||
$('#mw_selectmenu td').eq(0).mouseover().click(); | $('#mw_selectmenu td').eq(0).mouseover().click(); | ||
$('#mw_selectmenu td').eq(1).mouseover().click(); | $('#mw_selectmenu td').eq(1).mouseover().click(); | ||
+ | $('#mw_selectmenu td').eq(3).mouseover().click(); | ||
$('#mw_optionstable td').eq(1).mouseover().click(); | $('#mw_optionstable td').eq(1).mouseover().click(); | ||
+ | $('#mw_zoomoptionstable td').eq(0).mouseover().click(); | ||
}); | }); | ||
</script> | </script> | ||
Line 1,098: | Line 1,106: | ||
#mw_zoommenu { | #mw_zoommenu { | ||
top: 25px; | top: 25px; | ||
- | right: | + | right: 650px; |
padding: 3px 0px 4px 9px; | padding: 3px 0px 4px 9px; | ||
position: absolute; | position: absolute; | ||
Line 1,108: | Line 1,116: | ||
margin-left: 3px; | margin-left: 3px; | ||
background: rgba(0,0,0,.6); | background: rgba(0,0,0,.6); | ||
+ | } | ||
+ | |||
+ | #mw_zoomoptionstable th{ | ||
+ | color:rgba(225,225,225,1); | ||
} | } | ||
Latest revision as of 02:07, 29 October 2013