tiny-slider
Version:
Vanilla javascript slider for all purposes, inspired by Owl Carousel.
15 lines (13 loc) • 484 B
JavaScript
import { docElement } from './docElement.js';
export function setFakeBody (body) {
var docOverflow = '';
if (body.fake) {
docOverflow = docElement.style.overflow;
//avoid crashing IE8, if background image is used
body.style.background = '';
//Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible
body.style.overflow = docElement.style.overflow = 'hidden';
docElement.appendChild(body);
}
return docOverflow;
}