Difference between revisions of "Team:TUDelft/js/start-slider-after"

(Created page with "(function () { $(function () { //slider var trans = 500; var inter = 6000; var h = Math.max(document.documentElement.clientHeight, window.i...")
 
Line 14: Line 14:
 
             transition: trans,
 
             transition: trans,
 
             interval: inter,
 
             interval: inter,
             indicators: false
+
             indicators: true
 
         });
 
         });
 
     }
 
     }
 
}
 
}

Revision as of 20:19, 14 December 2017

(function () {

   $(function () {
       //slider
       var trans = 500;
       var inter = 6000;
       var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
       if (!h) {
           console.log("ERROR: Cannot find h. Assign default of 700 px.")
           h = 700;
       }
       h = 0.9 * h; 
       $(".slider").slider({
           height: h,
           transition: trans,
           interval: inter,
           indicators: true
       });
   }

}