Конфликт скриптов
Здравствуйте, пытаюсь вставить swiper(http://idangero.us/swiper/) в JQuery mobile. Но из-за скриптов jquery.mobile-1.4.5.min.js перестает работать swiper.
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script> <link rel="stylesheet" href="http://idangero.us/swiper/dist/css/swiper.min.css"> </head> <body> <div data-role="page" id="index"> <div role="main" class="ui-content"> <!-- Slider main container --> <div class="swiper-container"> <!-- Additional required wrapper --> <div class="swiper-wrapper"> <!-- Slides --> <div class="swiper-slide">Slide 1</div> <div class="swiper-slide">Slide 2</div> <div class="swiper-slide">Slide 3</div> </div> <!-- If we need navigation buttons --> <div class="swiper-button-prev"></div> <div class="swiper-button-next"></div> </div> </div> </div> <script src="http://idangero.us/swiper/dist/js/swiper.min.js"></script> <script type="text/javascript"> var swiper = new Swiper('.swiper-container', { nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', }); </script> </body> </html> Помогите решить проблему. |
Часовой пояс GMT +3, время: 09:12. |