Moving things around to make it more structured. and turn into library
This commit is contained in:
12
web_server/webroot/demo1/script.js
Normal file
12
web_server/webroot/demo1/script.js
Normal file
@@ -0,0 +1,12 @@
|
||||
$(document).ready(function(){
|
||||
/* This code is executed after the DOM has been completely loaded */
|
||||
|
||||
$('nav a,footer a.up').click(function(e){
|
||||
|
||||
// If a link has been clicked, scroll the page to the link's hash target:
|
||||
|
||||
$.scrollTo( this.hash || 0, 1500);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user