Line 488: | Line 488: | ||
<div id="abstract" class="container-fluid text-center"> | <div id="abstract" class="container-fluid text-center"> | ||
<div class="row"> | <div class="row"> | ||
− | <nav class="col-sm-3" id=" | + | <nav class="col-sm-3" id="cool"> |
<ul class="nav nav-pills nav-stacked"> | <ul class="nav nav-pills nav-stacked"> | ||
<li class="active"><a href="#section1">Section 1</a></li> | <li class="active"><a href="#section1">Section 1</a></li> | ||
Line 611: | Line 611: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
// Add smooth scrolling to all links in navbar + footer link | // Add smooth scrolling to all links in navbar + footer link | ||
− | $(".navbar a, #myBtn[href='#top']").on('click', function(event) { | + | $(".navbar a, #myBtn[href='#top'], #cool").on('click', function(event) { |
// Make sure this.hash has a value before overriding default behavior | // Make sure this.hash has a value before overriding default behavior | ||
if (this.hash !== "") { | if (this.hash !== "") { |
Revision as of 13:29, 6 September 2018
Notebook
October
In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
September
In this example we have added a "plus" sign to each button. When the user clicks on the button, the "plus" sign is replaced with a "minus" sign.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Section 1
Try to scroll this section and look at the navigation list while scrolling!
Section 2
Try to scroll this section and look at the navigation list while scrolling!
Section 3
Try to scroll this section and look at the navigation list while scrolling!
Section 4-1
Try to scroll this section and look at the navigation list while scrolling!
Section 4-2
Try to scroll this section and look at the navigation list while scrolling!