Team:TUDelft/js/start-slider-after

(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: false
       });
   }

}