Team:Freiburg/Templates/html/js.html

From 2014.igem.org

(Difference between revisions)
Line 94: Line 94:
 +
     
       $('.svg-container').each(function(){
       $('.svg-container').each(function(){
         var $this = $(this);
         var $this = $(this);
-
         $this.magnificPopup({
+
         if ($this.filter('svg a').length === 0){
-
           items: {
+
           $this.magnificPopup({
-
              src: $this.clone(),
+
            items: {
-
              type: 'inline'
+
                src: $this.clone(),
-
          }
+
                type: 'inline'
-
        });
+
            }
 +
          });
 +
        }
       });
       });

Revision as of 10:37, 16 October 2014