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

Line 2: Line 2:
 
     $(function () {
 
     $(function () {
 
         //slider
 
         //slider
 +
        console.log("Running start-slider-after");
 
         var trans = 500;
 
         var trans = 500;
 
         var inter = 6000;
 
         var inter = 6000;

Revision as of 20:37, 14 December 2017

(function () {

   $(function () {
       //slider
       console.log("Running start-slider-after");
       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
       });
   });

});