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

Line 17: Line 17:
 
         });
 
         });
 
     }
 
     }
}
+
});

Revision as of 20:27, 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
       });
   }

});