Template:Team:UC Davis/MutantWidget

From 2011.igem.org

(Difference between revisions)
Line 116: Line 116:
$(document).ready(function(){
$(document).ready(function(){
$("#mutantwidget").append('<div id="mw_selectmenu"/>');
$("#mutantwidget").append('<div id="mw_selectmenu"/>');
-
$("#mutantwidget").append('<div id="mw_optionsmenu"><table id="optionstable"></table></div>');
+
$("#mutantwidget").append('<div id="mw_optionsmenu"><table id="mw_optionstable"></table></div>');
 +
        if($("#mutantwidget .zdata_3d").length > 0)
 +
        {
 +
            $('#mw_optionstable').append("<tr><td>2D Plot</td></tr>");
 +
            $('#mw_optionstable').append("<tr><td>3D Plot</td></tr>");
 +
            $('#mw_optionstable').append("<tr><td>Sequence</td></tr>");
 +
        }
 +
 
 +
 
$("#mw_selectmenu").append("<table id='seltable'/>");
$("#mw_selectmenu").append("<table id='seltable'/>");
$('#mutantwidget h3').wrapInner('<td/>').children().unwrap().css({opacity:.3}).wrap('<tr/>');
$('#mutantwidget h3').wrapInner('<td/>').children().unwrap().css({opacity:.3}).wrap('<tr/>');

Revision as of 00:50, 25 September 2011