Template:Team:UC Davis/MutantWidget
From 2011.igem.org
(Difference between revisions)
Line 7: | Line 7: | ||
$("#mutantwidget").wrapInner("<table/>").wrapInner('<div id="mw_selectmenu"/>'); | $("#mutantwidget").wrapInner("<table/>").wrapInner('<div id="mw_selectmenu"/>'); | ||
$('#mutantwidget h3').wrapInner('<td/>').children().unwrap().css({opacity:.3}).wrap('<tr/>'); | $('#mutantwidget h3').wrapInner('<td/>').children().unwrap().css({opacity:.3}).wrap('<tr/>'); | ||
- | $('#mutantwidget').prepend('<div id="mw_grapharea"/>'); | + | $('#mutantwidget').prepend('<div id="mw_grapharea"/>').append('<div id="mw_plot/>"'); |
$('#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')); | ||
Line 25: | Line 25: | ||
}); | }); | ||
- | $.plot($("# | + | $.plot($("#mw_plot"), [ [[0, 0], [1, 1]] ], |
{ | { | ||
yaxis: { max: 1 }, | yaxis: { max: 1 }, | ||
Line 70: | Line 70: | ||
position:absolute; | position:absolute; | ||
background:rgba(0,0,0,.6); | background:rgba(0,0,0,.6); | ||
+ | padding: 5px; | ||
} | } | ||
#mw_selectmenu { | #mw_selectmenu { |
Revision as of 20:37, 21 September 2011