Template:Slider

From 2014.igem.org

(Difference between revisions)
Line 98: Line 98:
         var p=p||{};
         var p=p||{};
-
         var m=p&&p.slideshow_time_interval?p.slideshow_time_interval:"2000";
+
         var m=p and p.slideshow_time_interval?p.slideshow_time_interval:"2000";
-
         var q=p&&p.slideshow_window_width?p.slideshow_window_width:$("body").width();
+
         var q=p and p.slideshow_window_width?p.slideshow_window_width:$("body").width();
-
         var r=p&&p.slideshow_window_height?p.slideshow_window_height:$("body").width()/1.58;
+
         var r=p and p.slideshow_window_height?p.slideshow_window_height:$("body").width()/1.58;
-
         var sf=p&&p.soldeshow_foreColor?p.soldeshow_foreColor:"#000";
+
         var sf=p and p.soldeshow_foreColor?p.soldeshow_foreColor:"#000";
-
         var stc=p&&p.slideshow_title_color?p.slideshow_title_color:"#17CCCC";
+
         var stc=p and p.slideshow_title_color?p.slideshow_title_color:"#17CCCC";
-
         var d=p&&p.directory?p.directory:"images/";
+
         var d=p and p.directory?p.directory:"images/";
r_temp=q/2.4;
r_temp=q/2.4;
q += "px";
q += "px";

Revision as of 16:49, 16 October 2014