Load the noscript css file if jquery isn't detected.
This is because slick requires jquery to work, and the noscript.css file adjusts for the lack of slick.
This commit is contained in:
parent
f3d897ef65
commit
165d16f892
39
index.html
39
index.html
@ -196,25 +196,30 @@
|
||||
<script type="text/javascript" src="scripts/slick/slick/slick.min.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('#imagebar').slick({
|
||||
infinite: true,
|
||||
centerMode: true,
|
||||
slidesToScroll: 1,
|
||||
swipeToSlide: true,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
pauseOnHover: false,
|
||||
arrows: false,
|
||||
focusOnSelect: true,
|
||||
draggable: false,
|
||||
variableWidth: true
|
||||
});
|
||||
|
||||
smoothScroll.init({
|
||||
speed: 400,
|
||||
updateURL: false
|
||||
if (window.jQuery) {
|
||||
$(document).ready(function () {
|
||||
$('#imagebar').slick({
|
||||
infinite: true,
|
||||
centerMode: true,
|
||||
slidesToScroll: 1,
|
||||
swipeToSlide: true,
|
||||
autoplay: true,
|
||||
autoplaySpeed: 6000,
|
||||
pauseOnHover: false,
|
||||
arrows: false,
|
||||
focusOnSelect: true,
|
||||
draggable: false,
|
||||
variableWidth: true
|
||||
});
|
||||
});
|
||||
} else {
|
||||
document.write('<link rel="stylesheet" type="text/css" href="noscript.css">');
|
||||
}
|
||||
|
||||
smoothScroll.init({
|
||||
speed: 400,
|
||||
updateURL: false
|
||||
});
|
||||
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user