Team:ETH Zurich/tpl/head/simplify

From 2014.igem.org

(Difference between revisions)
(Created page with "<html> <script> $(document).ready(function() { $("text").on("click", function(){ var ID = $(this).attr("name"); $(this).text(function(i, text){ retur...")
 
Line 5: Line 5:
$(document).ready(function() {
$(document).ready(function() {
-
     $("text").on("click", function(){
+
     $("text.simplify").on("click", function(){
       var ID = $(this).attr("name");
       var ID = $(this).attr("name");
       $(this).text(function(i, text){
       $(this).text(function(i, text){
Line 14: Line 14:
     });
     });
-
     $("polygon").on("click", function(){
+
     $("polygon.simplify").on("click", function(){
       var ID = $(this).next().attr("name");
       var ID = $(this).next().attr("name");
       $(this).next().text(function(i, text){
       $(this).next().text(function(i, text){

Latest revision as of 16:14, 12 September 2014