Team:SYSU-Software/cast designer.js
From 2013.igem.org
Guoskyhero (Talk | contribs) |
Guoskyhero (Talk | contribs) |
||
Line 17: | Line 17: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:'Assembly:Gene circuit is assemblied comply with assembly standard.'}); | $("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:'Assembly:Gene circuit is assemblied comply with assembly standard.'}); | ||
- | $("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'Simulating:The simulation result is decided by parameters of each part, | + | $("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'Simulating:The simulation result is decided by parameters of each part, specific parts is chosen for satisfying simulation results.'}); |
- | $("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'Relationship:Regulation parts have | + | $("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'Relationship:Regulation parts have correspondences between each other, which is very important in choosing parts automatically.'}); |
- | $("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'Parameter:In CAST designer, parts are chosen | + | $("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'Parameter:In CAST designer, parts are chosen automatically when user modifies the dynamic parameters.'}); |
}); | }); |
Latest revision as of 03:32, 28 September 2013
(function($) { $.fn.tips = function(options) { options = options || {}; return this.each(function() { $("#display-board img").attr("src", options.pic); $("#display-board span").text(options.text); $(this).bind("mouseover", function(){ console.log("iaiai"); $("#display-board img").attr("src", options.pic); $("#display-board span").text(options.text); }); }); } })(jQuery);
$(document).ready(function(){
$("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:'Assembly:Gene circuit is assemblied comply with assembly standard.'});
$("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'Simulating:The simulation result is decided by parameters of each part, specific parts is chosen for satisfying simulation results.'});
$("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'Relationship:Regulation parts have correspondences between each other, which is very important in choosing parts automatically.'});
$("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'Parameter:In CAST designer, parts are chosen automatically when user modifies the dynamic parameters.'});
});