|
|
(51 intermediate revisions by 4 users not shown) |
Line 4: |
Line 4: |
| <meta http-equiv="x-ua-compatible" content="IE=edge" /> | | <meta http-equiv="x-ua-compatible" content="IE=edge" /> |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> | | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> |
− | | + | <script> |
− | <script>
| + | $('.js-anchor-link').click(function(e){ |
− | $(document).ready(function() {
| + | e.preventDefault(); |
− | $("#HQ_page").removeAttr('id');
| + | var target = $($(this).attr('href')); |
− | $("#globalWrapper").removeAttr('id');
| + | if(target.length){ |
− | $("#content").removeAttr('id');
| + | var scrollTo = target.offset().top; |
− | $("#bodyContent").removeAttr('id');
| + | $('body, html').animate({scrollTop: scrollTo+'px'}, 800); |
− | $("#mw-content-text").removeAttr('id');
| + | } |
− | });
| + | }); |
− | | + | </script> |
− | </script>
| + | |
| <style> | | <style> |
| /* om MediaWiki style weg te halen*/ | | /* om MediaWiki style weg te halen*/ |
| + | |
| p{ | | p{ |
| margin-bottom: 0 !important; | | margin-bottom: 0 !important; |
Line 32: |
Line 32: |
| } | | } |
| | | |
− | .centerjustify a {
| |
− | color: #0072B2;
| |
− | }
| |
− |
| |
− | .centerjustify2 a {
| |
− | color: #0072B2;
| |
− | }
| |
− |
| |
− | .centerjustify a:visited {
| |
− | color:#0072B2;
| |
− | }
| |
− | .centerjustify2 a:visited {
| |
− | color:#0072B2;
| |
− | }
| |
− |
| |
− | #home_logo, #sideMenu {
| |
− | display:none;
| |
− | }
| |
− | #sideMenu, #top_title, .patrollink {
| |
− | display:none;
| |
− | }
| |
− |
| |
− | /Bootstrap.min altered the way the top menu looks, by changing box-sizing: from border-box to initial, the damage is undone/
| |
− | #top_menu_14 {
| |
− | box-sizing: initial;
| |
− | }
| |
− | td a{
| |
− | padding-right: 0px !important;
| |
− | }
| |
− |
| |
− | .subttt{color: white !important;}
| |
− | a.subtt { color: white !important; }
| |
− | a.subtt:hover { color: #4a90e2 !important; }
| |
− |
| |
− |
| |
− |
| |
− | /* general font */
| |
− | * {
| |
− | font-family: "Trebuchet MS", Helvetica, sans-serif;
| |
− | }
| |
− |
| |
− | /* menu bar */
| |
− | .navbartu {
| |
− | z-index: 1;
| |
− | background-color: rgba(2,2,2,0.5);
| |
− | top:16px;
| |
− | width:100%;
| |
− | position:fixed;
| |
− |
| |
− | }
| |
− | .floatingNav {
| |
− | box-shadow: 0px 1px 10px #999;
| |
− | }
| |
− | .navbartu a {
| |
− | float: left;
| |
− | display:block;
| |
− | font-size: 16px;
| |
− | color: black;
| |
− | text-align: center;
| |
− | padding: 14px 16px;
| |
− | text-decoration: none;
| |
− |
| |
− |
| |
− | }
| |
− | .navbartu .test {
| |
− | font-size: 16px;
| |
− | color: white;
| |
− | text-align: center;
| |
− | padding: 25px 16px;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | .navbartu .social{
| |
− | float:right;
| |
− | padding: 22px 4px;
| |
− | }
| |
− |
| |
− | .dropdowntu {
| |
− | float: left;
| |
− |
| |
− | }
| |
− |
| |
− | .dropdowntu .dropbtn {
| |
− | font-size: 16px;
| |
− | border: none;
| |
− | outline: none;
| |
− | color: white;
| |
− | padding: 25px 16px;
| |
− | background-color: inherit;
| |
− | font-family: inherit;
| |
− | margin:0px;
| |
− | text-decoration: none;
| |
− |
| |
− | }
| |
− |
| |
− | .navbartu a:hover, .dropdowntu:hover .dropbtn {
| |
− | background-color: rgba(2,2,2,0.2);
| |
− | text-decoration:none;
| |
− | color:#FFFFFF;
| |
− | }
| |
− |
| |
− | .dropdown-content {
| |
− | display: none;
| |
− | position: absolute;
| |
− | background-color: #f9f9f9;
| |
− | min-width: 160px;
| |
− | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
| |
− | z-index: 1;
| |
− |
| |
− | }
| |
− |
| |
− | .dropdown-content a {
| |
− | float: none;
| |
− | color: black;
| |
− | padding: 12px 16px;
| |
− | text-decoration: none;
| |
− | display: block;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | .dropdown-content a:hover {
| |
− | background-color: #ddd;
| |
− | text-decoration:none;
| |
− | color:#000000;
| |
− | }
| |
− |
| |
− | .dropdowntu:hover .dropdown-content {
| |
− | display: block;
| |
− | text-decoration:none;
| |
− | }
| |
− | .navbartu .icon {
| |
− | display: none;
| |
− | padding:25px;
| |
− | }
| |
− |
| |
− | /* <!-- ---- Banner
| |
− | -------------------------------------------- --> */
| |
− | .Banner{
| |
− | background: linear-gradient( rgba(188, 233, 246,1), rgba(233, 248, 252,0.1));
| |
− | background-repeat: no-repeat;
| |
− | background-size:100% 100%;
| |
− | width:100%;
| |
− |
| |
− | }
| |
− |
| |
− | /* <!-- ---- References
| |
− | -------------------------------------------- --> */
| |
− | .reftu {
| |
− | font-size: 14px;
| |
− | }
| |
− | .reftu a:link {
| |
− | color:black;
| |
− | background-color:transparent;
| |
− | text-decoration: none;
| |
− | }
| |
− | .reftu a:hover {
| |
− | color: #00A6D6;
| |
− | background-color: transparent;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− | /* <!-- ---- top button
| |
− | ---------------------------------------------- -->*/
| |
− | #myBtn {
| |
− | display: none; /* Hidden by default */
| |
− | position: fixed; /* Fixed/sticky position */
| |
− | bottom: 20px; /* Place the button at the bottom of the page */
| |
− | right: 30px; /* Place the button 30px from the right */
| |
− | z-index: 99; /* Make sure it does not overlap */
| |
− | border: none; /* Remove borders */
| |
− | outline: none; /* Remove outline */
| |
− | background-color: white; /* Set a background color */
| |
− | opacity: 0.65;
| |
− | cursor: pointer; /* Add a mouse pointer on hover */
| |
− | padding: 10px; /* Some padding */
| |
− | border-radius: 10px; /* Rounded corners */
| |
− | }
| |
− |
| |
− | #myBtn:hover {
| |
− | background-color: #def4fa; /* Add a background on hover */
| |
− | opacity: 0.8;
| |
− | }
| |
− |
| |
− |
| |
− | #logo {
| |
− | height:40px;}
| |
− |
| |
− | #social {
| |
− | height:25px;}
| |
− | /* <!-- ---- Body
| |
− | ---------------------------------------------- -->*/
| |
− |
| |
− | .main {
| |
− | padding:16px;
| |
− | margin-top: 60px;
| |
− | height:1500px;
| |
− | }
| |
− |
| |
− | body {
| |
− | background-color: #f8fcfe;
| |
− | background-position: 0% 15%;
| |
− | background-repeat: repeat;
| |
− | background-size: 50%;
| |
− | }
| |
− |
| |
− | body {
| |
− | font-size:19px;
| |
− | }
| |
− | .centerjustify {
| |
− | margin-left: auto;
| |
− | margin-right: auto;
| |
− | width: 60%;
| |
− | margin-top: 60px;
| |
− | margin-bottom: 60px;
| |
− | text-align: justify;
| |
− | }
| |
− |
| |
− | .centerjustify2 {
| |
− | margin-left: auto;
| |
− | margin-right: 10%;
| |
− | width: 60%;
| |
− | margin-top: 60px;
| |
− | margin-bottom: 60px;
| |
− | text-align: justify;
| |
− | }
| |
− | /* <!-- ---- figures-img-table
| |
− | ---------------------------------------------- -->*/
| |
− |
| |
− | figcaption{
| |
− | text-align: left;
| |
− | font-size:13px;
| |
− | }
| |
− | .imagetu {
| |
− | width:60%;
| |
− | }
| |
− |
| |
− | #tabletu {
| |
− | background-color: transparent;
| |
− | border-collapse: collapse;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | #tabletu td, #customers th {
| |
− | border: 3px solid #f8fcfe;;
| |
− | padding: 8px;
| |
− | }
| |
− |
| |
− | #tabletu th {
| |
− | padding: 8px;
| |
− | text-align: left;
| |
− | border: 3px solid #f8fcfe;;
| |
− | background-color: rgba(0,110,167);
| |
− | color: white;
| |
− |
| |
− | }
| |
− | #tabletu tr:nth-child(odd) {
| |
− | background-color: rgba(2,2,2,0.1);
| |
− | }
| |
− | ul#rondje {
| |
− | list-style-type: circle;
| |
− | }
| |
− |
| |
− |
| |
− | /* <!-- ---- dropdown page
| |
− | ---------------------------------------------- -->*/
| |
− | .toggle{
| |
− | margin-left:0px;
| |
− | }
| |
− | ul.accordion {
| |
− | list-style: none;
| |
− | padding: 0;
| |
− | margin:0;
| |
− |
| |
− | }
| |
− |
| |
− |
| |
− | ul.accordion .inner {
| |
− | padding: 10px;
| |
− | overflow: hidden;
| |
− | display: none;
| |
− | list-style: none;
| |
− | }
| |
− |
| |
− |
| |
− | ul.accordion li {
| |
− | margin: .5em 0;
| |
− | font-weight: 300;
| |
− | }
| |
− |
| |
− | ul.accordion li a.toggle {
| |
− |
| |
− | display: block;
| |
− | background: rgba(0,114,178, 1);
| |
− | color: #fefefe;
| |
− | padding: .75em;
| |
− | padding-left: 50px;
| |
− | border-top-radius: 0.4em;
| |
− | transition: background .3s ease;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− | ul li a.toggle:hover {
| |
− | background: rgba(0,114,178, 0.75);
| |
− |
| |
− | }
| |
− |
| |
− | .boxxx{
| |
− | border: 1px solid #888888;
| |
− | box-shadow: 2.5px 5px rgba(136, 136, 136,0.8);
| |
− | border-top-style:none;}
| |
| | | |
− | /* ===== sub tab nav bar ===== */
| |
− | .subnavbtn2x {
| |
− | font-size: 16px;
| |
− | border: none;
| |
− | outline: none;
| |
− | color: white;
| |
− | background-color: inherit;
| |
− | font-family: inherit;
| |
− | margin: 0px;
| |
− | padding:0px;
| |
− | }
| |
− |
| |
− | .subnav-content2x {
| |
− | display: none;
| |
− | position: absolute;
| |
− | background-color: #f9f9f9;
| |
− | margin-left: 1px;
| |
− | top: 1%;
| |
− | left: 100%;
| |
− | min-width: fit-content;
| |
− | z-index: 1;
| |
− | min-width: 160px;
| |
− | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
| |
− | }
| |
− |
| |
− | .subnav-content2x a {
| |
− | float: left;
| |
− | text-decoration: none;
| |
− | display: block;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | .navbartu .subnav-content-subnav:hover .subnav-content2x {
| |
− | display: block;
| |
− | }
| |
− |
| |
− | .subnav-content-subnav{
| |
− | position: relative;
| |
− | }
| |
− | @media screen and (max-width: 1320px) {
| |
− | .dropdown-content a {
| |
− | font-size: 15px; }
| |
− | .navbartu .test {font-size:15px;
| |
− | padding: 24px 15px;}
| |
− | .navbartu .dropbtn{font-size:15px;
| |
− | padding: 24px 15px;}
| |
− | #logo{height:37px;}
| |
− | #social{height:21px;}
| |
− | body{font-size:18px;
| |
− | }
| |
− |
| |
− | }
| |
− |
| |
− | @media screen and (max-width: 1220px) {
| |
− | .dropdown-content a {
| |
− | font-size: 14px; }
| |
− | .navbartu .test {font-size:14px;
| |
− | padding: 23px 14px;}
| |
− | .navbartu .dropbtn{font-size:14px;
| |
− | padding: 23px 14px;}
| |
− | .navbartu .social{
| |
− | padding: 21px 4px;
| |
− | }
| |
− | #logo{height:34px;}
| |
− | #social{height:18px;}
| |
− |
| |
− | body{font-size:17px;
| |
− | }
| |
− | }
| |
− |
| |
− | /* <!-- ---- side bar
| |
− | ---------------------------------------------- -->*/
| |
− | .affix {
| |
− | top: 30%;
| |
− | left: 5%;
| |
− |
| |
− | }
| |
− |
| |
− | ul.nav-pills {
| |
− | top: 20%;
| |
− | left: 4%;
| |
− | position:fixed;
| |
− | font-size:medium;
| |
− | }
| |
− | .nav-pills>li>a {
| |
− | display: block;
| |
− | color: rgba(0,114,178, 1)!important;
| |
− | padding: .5em;
| |
− | border-radius: 0.2em;
| |
− | transition: background .3s ease;
| |
− | text-decoration: none;
| |
− |
| |
− | }
| |
− |
| |
− | .nav-pills>li>a:hover {
| |
− | display: block;
| |
− | background: rgba(2, 2, 2,0.1);
| |
− | padding: .5em;
| |
− | border-radius: 0.2em;
| |
− | transition: background .3s ease;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− | .nav-pills>li.active>a, .nav-pills>li.active>a:focus, .nav-pills>li.active>a:hover {
| |
− | color: #fff;
| |
− | display: block;
| |
− | background: rgba(0,114,178, 1);
| |
− | color: #fefefe!important;
| |
− | padding: .5em;
| |
− | border-radius: 0.2em;
| |
− | transition: background .3s ease;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− | @media screen and (max-width: 1140px) {
| |
− | .dropdown-content a {
| |
− | font-size: 13px; }
| |
− | .navbartu .test {font-size:13px;
| |
− | padding: 22px 13px;}
| |
− | .navbartu .dropbtn{font-size:13px;
| |
− | padding: 22px 13px;}
| |
− | .navbartu .social{
| |
− | padding: 20px 4px;
| |
− | }
| |
− | #logo{height:31px;}
| |
− | #social{height:15px;}
| |
− | body{font-size:16px;
| |
− | }
| |
− | }
| |
− |
| |
− | @media screen and (max-width: 1060px) {
| |
− | .dropdown-content a {
| |
− | font-size: 12px; }
| |
− | .navbartu .test {font-size:12px;
| |
− | padding: 21px 12px;}
| |
− | .navbartu .dropbtn{font-size:12px;
| |
− | padding: 21px 12px;}
| |
− | .navbartu .social{
| |
− | padding: 18.5px 4px;
| |
− | }
| |
− | #logo{height:28px;}
| |
− | #social{height:12px;}
| |
− | body{font-size:15px;
| |
− | }
| |
− |
| |
− | }
| |
− | @media screen and (max-width: 980px) {
| |
− | .dropdown-content a {
| |
− | font-size: 11px; }
| |
− | .navbartu .test {font-size:11px;
| |
− | padding: 20px 11px;}
| |
− | .navbartu .dropbtn{font-size:11px;
| |
− | padding: 20px 11px;}
| |
− | .navbartu .social{
| |
− | padding: 16.5px 4px;
| |
− | }
| |
− | #logo{height:24px;}
| |
− | #social{height:9px;}
| |
− | body{font-size:14px;
| |
− | }
| |
− |
| |
− | }
| |
− |
| |
− | @media screen and (max-width: 900px) {
| |
− | .dropdown-content a {
| |
− | font-size: 10px; }
| |
− | .navbartu .test {font-size:10px;
| |
− | padding: 19px 10px;}
| |
− | .navbartu .dropbtn{font-size:10px;
| |
− | padding: 19px 10px;}
| |
− | .navbartu .social{
| |
− | padding: 15px 4px;
| |
− | }
| |
− | #logo{height:21px;}
| |
− | #social{height:8px;}
| |
− | body{font-size:13px;
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
− | @media screen and (max-width: 800px) {
| |
− | .navbartu a:not(:first-child), .dropdowntu .dropbtn {
| |
− | display: none;
| |
− | }
| |
− | .navbartu a.icon {
| |
− | float: right;
| |
− | display: block;
| |
− | }
| |
− |
| |
− | .navbartu.responsive {position: relative;}
| |
− | .navbartu.responsive .icon {
| |
− | position: absolute;
| |
− | right: 0;
| |
− | top: 0;
| |
− | }
| |
− | .navbartu.responsive a {
| |
− | float: none;
| |
− | display: block;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | .navbartu.responsive .dropdowntu {float: none;}
| |
− | .navbartu.responsive .dropdown-content {position: relative;}
| |
− | .navbartu.responsive .dropdowntu .dropbtn {
| |
− | display: block;
| |
− | width: 100%;
| |
− | text-align: left;
| |
− | }
| |
− |
| |
− | .dropdown-content a {font-size: 16px;}
| |
− | .navbartu .test {font-size:16px;}
| |
− | .navbartu .dropbtn{font-size:16px;}
| |
− | #logo {height:40px;}
| |
− | #social {height:25px;}
| |
− | .centerjustify {width: 85%;}
| |
− | .imagetu {
| |
− | width:100%;
| |
− | }
| |
− | figure{margin:0px 0px}
| |
− |
| |
− | #myScrollspy {
| |
− | display:none;
| |
− | }
| |
− | .centerjustify2 {
| |
− | margin-left: auto;
| |
− | margin-right: auto;
| |
− | width: 70%;
| |
− | margin-top: 60px;
| |
− | margin-bottom: 60px;
| |
− | text-align: justify;
| |
− | }
| |
− | body{font-size:12px;
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
| </style> | | </style> |
| </head> | | </head> |
Line 621: |
Line 73: |
| <a href="https://2019.igem.org/Team:TUDelft/Safety">Safety</a> | | <a href="https://2019.igem.org/Team:TUDelft/Safety">Safety</a> |
| <a href="https://2019.igem.org/Team:TUDelft/Notebook">Notebook</a> | | <a href="https://2019.igem.org/Team:TUDelft/Notebook">Notebook</a> |
− | <a href="https://2019.igem.org/Team:TUDelft/Measurement">Measurement</a>
| + | |
| | | |
| </div> | | </div> |
Line 632: |
Line 84: |
| <a href="https://2019.igem.org/Team:TUDelft/Model">Model</a> | | <a href="https://2019.igem.org/Team:TUDelft/Model">Model</a> |
| <div class="subnav-content-subnav"> | | <div class="subnav-content-subnav"> |
− | <button class="subnavbtn2x"><a href="https://2019.igem.org/Team:TUDelft/ModelReactionKinetics">Reaction Kinetics</a></button>
| + | <button class="subnavbtn2x"><a style="padding-right: 48px;" href="https://2019.igem.org/Team:TUDelft/Model#Kinetics">Reaction Kinetics</a></button> |
| <div class="subnav-content2x"> | | <div class="subnav-content2x"> |
− | <a href="#">Copy Number Indepence</a> | + | <a href="https://2019.igem.org/Team:TUDelft/Model#Kinetics">Copy Number independence</a> |
− | <a href="#">Transcription Variation</a> | + | <a href="https://2019.igem.org/Team:TUDelft/Model#TranscriptionalVariations">Transcription Variation</a> |
− | <a href="#">Translation Variation</a> | + | <a href="https://2019.igem.org/Team:TUDelft/Model#TranslationalVariations">Translation Variation</a> |
| </div> | | </div> |
| </div> | | </div> |
− | <a href="https://2019.igem.org/Team:TUDelft/ModelCodonHarmonization">Codon Harmonization</a> | + | <a href="https://2019.igem.org/Team:TUDelft/Model#CodonUsage">Codon Harmonization</a> |
| </div> | | </div> |
| </div> | | </div> |
− | <div class="dropdowntu">
| + | <div class="dropdowntu"> |
| <button class="dropbtn"><b>Parts</b> | | <button class="dropbtn"><b>Parts</b> |
| <i class="fa fa-caret-down"></i> | | <i class="fa fa-caret-down"></i> |
Line 648: |
Line 100: |
| <div class="dropdown-content"> | | <div class="dropdown-content"> |
| <a href="https://2019.igem.org/Team:TUDelft/Parts">Parts Overview</a> | | <a href="https://2019.igem.org/Team:TUDelft/Parts">Parts Overview</a> |
− | <a href="https://2019.igem.org/Team:TUDelft/Basic_Part">Basic Parts</a>
| + | |
− | <a href="https://2019.igem.org/Team:TUDelft/Composite_Part">Composite Parts</a>
| + | |
− | <a href="https://2019.igem.org/Team:TUDelft/Part_Collection">Parts Collection</a>
| + | |
− | <a href="https://2019.igem.org/Team:TUDelft/Contribution">Contribution</a>
| + | |
− | <a href="https://2019.igem.org/Team:TUDelft/Improve">Improve</a>
| + | |
− | | + | |
| </div> | | </div> |
| </div> | | </div> |
| + | |
| + | |
| + | |
| <div class="dropdowntu"> | | <div class="dropdowntu"> |
| <button class="dropbtn"><b>Human Practices</b> | | <button class="dropbtn"><b>Human Practices</b> |
Line 693: |
Line 143: |
| </div> | | </div> |
| </div> | | </div> |
| + | |
| + | |
| + | |
| | | |
| <a class="social" href="mailto:igem@tudelft.nl"><img id="social" src="https://static.igem.org/mediawiki/2019/b/b4/T--TUDELFT--mailicon.png" alt="Email" /></a> | | <a class="social" href="mailto:igem@tudelft.nl"><img id="social" src="https://static.igem.org/mediawiki/2019/b/b4/T--TUDELFT--mailicon.png" alt="Email" /></a> |
Line 707: |
Line 160: |
| | | |
| </div> | | </div> |
− |
| |
− | <script>// When the user scrolls down 20px from the top of the document, show the button
| |
− | window.onscroll = function() {scrollFunction()};
| |
− | function scrollFunction() {
| |
− |
| |
− | if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
| |
− | document.getElementById("myBtn").style.display = "block";
| |
− | } else {
| |
− | document.getElementById("myBtn").style.display = "none";
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | // When the user clicks on the button, scroll to the top of the document
| |
− | function topFunction() {
| |
− | document.body.scrollTop = 0; // For Safari
| |
− | document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
| |
− | }
| |
− | // <!-- hamburger -->
| |
− | function myFunction() {
| |
− | var x = document.getElementById("myTopnav");
| |
− | if (x.className === "navbartu") {
| |
− | x.className += " responsive";
| |
− | } else {
| |
− | x.className = "navbartu";
| |
− | }
| |
− | }
| |
− |
| |
− | $(document).ready(function(){
| |
− | // Add smooth scrolling to all links
| |
− | $(".jump").on('click', function(event) {
| |
− |
| |
− | // Make sure this.hash has a value before overriding default behavior
| |
− | if (this.hash !== "") {
| |
− | // Prevent default anchor click behavior
| |
− | event.preventDefault();
| |
− |
| |
− | // Store hash
| |
− | var hash = this.hash;
| |
− | // Add hash (#) to URL when done scrolling (default click behavior)
| |
− | window.location.hash = hash;
| |
− | // Using jQuery's animate() method to add smooth page scroll
| |
− | // The optional number (100) specifies the number of milliseconds it takes to scroll to the specified area
| |
− | $('html, body').animate({
| |
− | scrollTop: $(hash).offset() .top -100
| |
− | }, 100, function(){
| |
− |
| |
− |
| |
− | });
| |
− | } // End if
| |
− | });
| |
− | });
| |
− | </script>
| |
| | | |
| </body> | | </body> |
| | | |
| </html> | | </html> |