var kk_slides = [ { video: { src: [ 'bilder/systemhaus1.mp4' ], loop: true, mute: false }, }, { video: { src: [ 'bilder/systemhaus1.mp4' ], loop: true, mute: false }, }, { video: { src: [ 'bilder/systemhaus1.mp4' ], loop: true, mute: false }, }, { video: { src: [ 'bilder/systemhaus1.mp4' ], loop: true, mute: false }, } ]; if(window.innerWidth<1200){ var kk_slides = [ {src: 'resize_bilder-___-04_1920_1080_90.png', loop: false, mute: false }, {src: 'resize_bilder-___-03_1920_1080_90.png', loop: false, mute: false }, {src: 'resize_bilder-___-05_1920_1080_90.png', loop: false, mute: false }, {src: 'resize_bilder-___-02_1920_1080_90.png', loop: false, mute: false } ]; }else if(typeof kk_slides[0].video !== 'undefined'){ kk_slides.splice(1,3); }/* $( document ).ready(function() { var timestamp=Math.floor(Date.now()/1000); if (timestamp<=1482101999) { if(timestamp>=1481929200) $('head').append(''); }*/ $('body').vegas({ cover: true, timer: false, transition: 'fade', transitionDuration: 1000, delay: 20000, valign: '0%', slides: kk_slides, overlay:'dateien/layout/bg-dummy.png', walk: function (index, slideSettings) { if(slideSettings.src == undefined){ $('.vegas-overlay').css('background-image', 'url(dateien/layout/bg-raster.png)'); }else{ $('.vegas-overlay').css('background-image', 'none'); } } }); });