html5 - jQuery Pin It Impementation -


i trying make navigation bar on site:

contemporarypool.biz "sticky" using jquery.pin. however, i'm new javascript world, , not having success implementing script. have javascript called in header, i'm not sure how call navigation bar.

to pin element you're suppose use this: $(".pinned").pin()

does class go .pin is? include code?

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>  <script type="text/javascript">                 jquery(document).ready(function(){        jquery(".nav-content").pin();      });                 </script> 

where ".nav-content” class apply pin to.

you can put anywhere after jquery file included.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -