javascript - Why is my JQuery function not being called inside bootstrap html template -
i have started developing websites , facing issues. trying include jquery plugin html thumbnail carousel bar. issue jq function not being called. tried using other plugins facing same issue. here code. thanks
<!doctype html> <html> <head> <script src="/media/js/jquery-ui.min.js"></script> <script src="/media/js/css3-mediaqueries.js"></script> <script src="/media/js/fwslider.js"></script> <script type="text/javascript" src="/media/js/jquery1.min.js"></script> <script type="text/javascript"> // junction working jquery(document).ready(function($) { $(".scroll").click(function(event){ event.preventdefault(); $('html,body').animate({scrolltop:$(this.hash).offset().top},1200); }); }); </script> <script src="/media/js/jquery.easydropdown.js"></script> // junction working <script type="text/javascript" src="/media/js/jquery.mixitup.min.js"></script> <script type="text/javascript"> $(function () { hovereffect: function () { // code on animation working } }); </script> </head> <body> <!-- header-section-starts --> <div class="header"> <div class="top-header" ><!--to work on style="position:fixed; width:100%; top: 0px; z- index:0;"--> <div class="container"> <!-- navbar code --> <script><!--script-nav--> $("span.menu").click(function(){ $(".top-menu ul").slidetoggle("slow" , function(){ }); }); </script> </div> </div> <div id="fwslider"> <div class="slider_container"> <div class="slide"> <img src="/media/images/banner.jpg" class="img-responsive" alt=""/> </div> <div class="slide" id="home"> <img src="/media/images/banner1.jpg" class="img-responsive" alt=""/> </div> </div> <div class="timers"></div> <div class="slideprev"><span></span></div> <div class="slidenext"><span></span></div> </div> </div> <!-- header-section-ends --> <!-- content-section-starts --> <div class="content"> <div class="container"> <div class="about-section-left-grid"> <section class="slider"> <div class="flexslider"> <ul class="slides"> <li> <img src="/media/images/tiger1.jpg" class="img-responsive" alt="" /> </li> <li> <img src="/media/images/pic2.jpg" class="img-responsive" alt="" /> </li> </ul> </div> </section> <script defer src="/media/js/jquery.flexslider.js"></script> <script type="text/javascript"><!-- works --> $(function(){ syntaxhighlighter.all(); }); $(window).load(function(){ $('.flexslider').flexslider({ animation: "slide", start: function(slider){ $('body').removeclass('loading'); } }); }); </script> </div> </div> <!-- here div block thumbnail starts------------------------------------------------ --> <div class="container-fluid" style="padding:0;"> <div id="custom_carousel" class="carousel slide" data-ride="carousel" data-interval="2500"> <!-- wrapper slides --> <div class="controls"> <ul class="nav"> <li data-target="#custom_carousel" data-slide-to="0" class="active"><a href="#"><small>individual lessons</small></a></li> <li data-target="#custom_carousel" data-slide-to="1"><a href="#"><small>player development program</small></a></li> </ul> </div> <script><!--this fuction not being called. taken jq plugin thumbnail carousel --> $(document).ready(function(){ $('#custom_carousel').on('slide.bs.carousel', function (evt) { $('#custom_carousel .controls li.active').removeclass('active'); $('#custom_carousel .controls li:eq('+$(evt.relatedtarget).index()+')').addclass('active'); }) }); </script> <div class="carousel-inner"> <div class="item active"> <div class="container-fluid" style="background-color:#282b30;"> <div class="row" > <div class="col-md-12"> <article style="position: relative; width: 100%; opacity: 1;"> <div class="col-md-4 clients-image"> <img src="/media/images/beauty.jpg" class="img-responsive" alt="" /> </div> <div class="col-md-8 clients-text"> <p>claritatem</p> </div> </article> </div> </div> </div> </div> <div class="item"> <div class="container-fluid" style="background-color:#282b30;"> <div class="row" > <div class="col-md-12"> <article style="position: relative; width: 100%; opacity: 1;"> <div class="col-md-4 clients-image"> <img src="/media/images/beauty.jpg" class="img-responsive" alt="" /> </div> <div class="col-md-8 clients-text"> <p>claritatem</p> </div> </article> </div> </div> </div> </div> </div> </div><!-- end carousel inner --> </div><!-- end carousel --> </div><!-- end content --> </body> </html>
Comments
Post a Comment