Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(window).on('load', function () {
- function toTitleCase(str) {
- return str.replace(/(?:^|\s)\w/g, function (match) {
- return match.toUpperCase();
- });
- }
- if (window.location.hash) {
- var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
- // Add scroll to function in here
- // hash found
- } else {
- // No hash found
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement