html - Suddenly JavaScript/jQuery stopped working -


my site working extremely fine jquery ui , changed color , stopped! hints why happened? tried writing javascript in html file linking separate .js file. both did not seem work.

my html :

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />      <title>spree 2014 | bits - pilani, k. k. birla goa campus sports festival</title>      <link rel="stylesheet" type="text/css" href="teaser.css" />     <link rel="shortcut icon" href="http://s9.postimg.org/jtx29pdbf/bits.png" />      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>     <script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>     <script type="text/javascript" src="teaser.js"></script>  </head>  <body>     <div id="sidebar">         <img src = "images/arrow.png" alt = "click open" id = "arrow">     </div>          <div id ="gallery" class = "hidden"><div class="text">gallery</div></div>         <div id = "lookback" class = "hidden"><div class="text">lookback</div></div>         <div id = "timer" class = "hidden"><div class="text">timer</div></div>      <div id="social">         <a href="https://www.facebook.com/bitsspree?fref=ts"><img src="images/fb.png" alt = "contact on facebook" id = "fb"></a>         <a href="https://twitter.com/bitsspree"><img src="images/twitter.png" alt = "stay tuned on twitter" id = "twitter"></a>     </div>      <div id="tabs">             <ul>                 <li><a href="">about</a></li>                 <li><a href="">sponsors</a></li>                 <li><a href="">contact</a></li>                 <li><a href="">subscribe</a></li>             </ul>     </div>     <div>      <div id="logo">         <img src="images/spreelogo.png" alt="spree pure sport | run | rise | reach"></img>     </div>      <div id="bits">         <img src="images/bits.png" alt="spree pure sport | run | rise | reach"></img>     </div>      <div id="man">         <img src="images/runningman.png" alt="spree pure sport | run | rise | reach"></img>     </div> </body> 

my js file:

$(document).ready(function(){     $("#bits").hide();     $("#lookback").hide();     $("#timer").hide();     $("#arrow").click(function(){         $("#sidebar").hide();         $("#gallery").show( "fold", 2000 );         $("#lookback").show( "fold", 2000 );         $("#timer").show( "fold", 2000 );     }); }); 

your script tag importing jquery missing "http:" before url. break jquery-ui.

change to:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -