Template:ZJU-China/Tools

From 2014.igem.org

(Difference between revisions)
Line 11: Line 11:
     <script src="https://2014.igem.org/wiki/index.php?title=Team:ZJU-China/JS/form-fun.jquery.js&action=raw&ctype=text/css" type="text/javascript" charset="utf-8"></script>
     <script src="https://2014.igem.org/wiki/index.php?title=Team:ZJU-China/JS/form-fun.jquery.js&action=raw&ctype=text/css" type="text/javascript" charset="utf-8"></script>
     <script type="text/javascript">
     <script type="text/javascript">
-
         function sendpost() {
+
         <script type="text/javascript">
-
            $.post("http://bis.zju.edu.cn/GS_Box/index.php", {
+
function sendpost() {
-
                sequence1: $("#name_attendee_1").val(),
+
$.post("http://bis.zju.edu.cn/GS_Box/index.php",{
-
                sequence2: $("#name_attendee_2").val(),
+
sequence1: $("#name_attendee_1").val(),
-
                sequence3: $("#name_attendee_3").val(),
+
sequence2: $("#name_attendee_2").val(),
-
                sequence4: $("#name_attendee_4").val(),
+
sequence3: $("#name_attendee_3").val(),
-
                sequence5: $("#name_attendee_5").val(),
+
sequence4: $("#name_attendee_4").val(),
-
                mode: $("#modevalue").val()
+
sequence5: $("#name_attendee_5").val(),
-
            }, function (data) {
+
mode: $("#modevalue").val()
-
                data = eval("(" + data + ")");
+
},function(data){
-
                // alert(data)
+
data=eval("("+data+")");
-
                var txt = '';
+
// alert(data)
-
                // txt='<p>'+data[0]['homo']+'</p>';
+
var txt='';
-
                txt += '<table border="1" style="word-break: break-all;"><tr><td style="width: 4%">part</td><td style="width: 32%">homo</td><td style="width: 32%">pp</td><td style="width: 32%">fp</td></tr>';
+
// txt='<p>'+data[0]['homo']+'</p>';
-
                for (key in data) {
+
txt+='<table border="1" cellspacing="0" width="100%" bordercolorlight="#333333" bordercolordark="#efefef" width="100%" style="word-break: break-all;"><tr bgcolor=#cccccc><td style="width: 3%">part</td><td style="width: 17%">homo</td><td style="width: 27%">pp</td><td style="width: 5%">pp GC</td><td style="width: 5%">pp TM</td><td style="width: 26%">fp</td><td style="width: 5%">fp GC</td><td style="width: 5%">fp TM</td><td style="width: 7%">connect</td></tr>';
-
                    txt += '<tr><td>';
+
for (key in data) {
-
                    txt += (key * 1.0 + 1);
+
txt+='<tr bgcolor=#eafeff><td>';
-
                    txt += '</td><td>';
+
txt+=(key*1.0+1);
-
                    txt += data[key]['homo'];
+
txt+='</td><td>';
-
                    txt += '</td><td>';
+
txt+=data[key]['homo'];
-
                    txt += data[key]['pprimer'];
+
txt+='</td><td>';
-
                    txt += '</td><td>';
+
txt+=data[key]['pprimer'];
-
                    txt += data[key]['fprimer'];
+
txt+='</td><td>';
-
                    txt += '</td></tr>';
+
                txt+=data[key]['pp GC'];
-
                 }
+
txt+='</td><td>';
-
                txt += '</table>';
+
                txt+=data[key]['pp TM'];
-
                $("body").append(txt);
+
txt+='</td><td>';
-
            })
+
                txt+=data[key]['fprimer'];
-
        }
+
                txt+='</td><td>';
-
    </script>
+
                txt+=data[key]['fp GC'];
 +
txt+='</td><td>';
 +
                 txt+=data[key]['fp TM'];
 +
txt+='</td><td>';
 +
txt+=data[key]['connect'];
 +
txt+='</td></tr>';
 +
}
 +
txt+='</table>';
 +
$("body").append(txt);
 +
})
 +
}
 +
</script>
     <title>GS-Box</title>
     <title>GS-Box</title>

Revision as of 07:20, 17 October 2014

GS-Box