Team:SYSU-Software/cast designer.js
From 2013.igem.org
(Created page with " (function($) { $.fn.tips = function(options) { options = options || {}; return this.each(function() { $("#display-board img").attr("src", options.pic); $("#display-board s...") |
|||
Line 1: | Line 1: | ||
- | |||
(function($) { | (function($) { | ||
$.fn.tips = function(options) { | $.fn.tips = function(options) { | ||
Line 17: | Line 16: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:' | + | $("#assembly").tips({pic:'https://static.igem.org/mediawiki/2013/8/8b/Cast_Assembly.png',text:'Assembly'}); |
- | $("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:' | + | $("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'Simulating'}); |
- | $("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:' | + | $("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'Relationship'}); |
- | $("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:' | + | $("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'Parameter'}); |
}); | }); |
Revision as of 02:45, 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'});
$("#simulating").tips({pic:'https://static.igem.org/mediawiki/2013/f/f6/Cast_Simulating.png',text:'Simulating'});
$("#relationship").tips({pic:'https://static.igem.org/mediawiki/2013/9/9a/Cast_Relation.png',text:'Relationship'});
$("#parameter").tips({pic:'https://static.igem.org/mediawiki/2013/8/89/Cast_Parameter.png',text:'Parameter'});
});