Line 10: | Line 10: | ||
h = 700; | h = 700; | ||
} | } | ||
− | h = 0. | + | h = 0.8 * h; |
$(".slider").slider({ | $(".slider").slider({ | ||
height: h, | height: h, |
Latest revision as of 20:41, 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.8 * h; $(".slider").slider({ height: h, transition: trans, interval: inter, indicators: true }); });
}());