|
57 | 57 | bottom: -2px;
|
58 | 58 | }
|
59 | 59 | .nav-tabs>li.active a,
|
60 |
| - .nav-tabs>li.active a:focus { |
| 60 | + .nav-tabs>li.active a:focus, |
| 61 | + .nav>li.active>a{ |
61 | 62 | background-color: #f5f5f5;
|
62 | 63 | height: 44px;
|
63 | 64 | }
|
|
70 | 71 | <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
71 | 72 | <![endif]-->
|
72 | 73 | </head>
|
73 |
| -<body> |
74 |
| -<div class="jumbotron sts-jumbotron text-center"> |
| 74 | +<body data-spy="scroll" data-target=".scrollspy"> |
| 75 | +<div class="jumbotron sts-jumbotron text-center" id="top"> |
75 | 76 | <div class="container">
|
76 | 77 | <h1 class="sts-title"><i class="fa fa-exchange"></i> jQuery StringToSlug</h1>
|
77 | 78 | <p class="sts-subtitle">Convert any string into slugs and bind using jQuery</p>
|
@@ -558,7 +559,7 @@ <h2 class="page-header">AND</h2>
|
558 | 559 | </div><!-- panel -->
|
559 | 560 | </section>
|
560 | 561 |
|
561 |
| - <section class="sts-section" id="js-options"> |
| 562 | + <section class="sts-section" id="js-options-options"> |
562 | 563 | <h2 class="page-header">options</h2>
|
563 | 564 | <p>Use <strong>options</strong> to customize <strong><a href="http://pid.github.io/speakingurl/">SpeakinURL</a></strong>.</p>
|
564 | 565 | <div class="panel panel-default">
|
@@ -648,16 +649,20 @@ <h2 class="page-header">callback</h2>
|
648 | 649 | </section>
|
649 | 650 | </div>
|
650 | 651 | <div class="col-sm-3 scrollspy">
|
651 |
| - <nav class="hidden-print hidden-xs hidden-sm affix-top" data-spy="affix"> |
| 652 | + <nav class="hidden-print hidden-xs hidden-sm" data-spy="affix"> |
652 | 653 | <ul class="nav">
|
653 | 654 | <li><a href="#js-getting-started">Getting Started</a></li>
|
654 | 655 | <li><a href="#js-basic-usage">Basic Usage</a></li>
|
655 |
| - <li><a href="#js-options">Options</a> |
656 |
| - <ul class="nav"> |
657 |
| - <li><a href="#js-setevents">setEvents</a></li> |
658 |
| - <li><a href="#js-getput">getPut</a></li> |
659 |
| - </ul> |
660 |
| - </li> |
| 656 | + <li><a href="#js-options">Options</a></li> |
| 657 | + <li><a href="#js-setevents">Options: setEvents</a></li> |
| 658 | + <li><a href="#js-getput">Options: getPut</a></li> |
| 659 | + <li><a href="#js-space">Options: space</a></li> |
| 660 | + <li><a href="#js-prefix">Options: prefix</a></li> |
| 661 | + <li><a href="#js-suffix">Options: suffix</a></li> |
| 662 | + <li><a href="#js-replace">Options: replace</a></li> |
| 663 | + <li><a href="#js-and">Options: AND</a></li> |
| 664 | + <li><a href="#js-options-options">Options: options</a></li> |
| 665 | + <li><a href="#js-callback">Options: callback</a></li> |
661 | 666 | </ul>
|
662 | 667 | <a class="back-to-top" href="#top">
|
663 | 668 | Back to top
|
@@ -735,9 +740,10 @@ <h2 class="page-header">callback</h2>
|
735 | 740 |
|
736 | 741 | $('[data-spy="affix"]').affix({
|
737 | 742 | offset: {
|
738 |
| - top: $('[data-spy="affix"]').offset().top |
| 743 | + top: $('[data-spy="affix"]').offset().top, |
| 744 | + bottom: 120 |
739 | 745 | }
|
740 |
| - }); |
| 746 | + } ).css('top','0'); |
741 | 747 | });
|
742 | 748 | </script>
|
743 | 749 | </body>
|
|
0 commit comments