Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $(window).on('load', function () {
  2. function toTitleCase(str) {
  3. return str.replace(/(?:^|\s)\w/g, function (match) {
  4. return match.toUpperCase();
  5. });
  6. }
  7. if (window.location.hash) {
  8. var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
  9. // Add scroll to function in here
  10. // hash found
  11. } else {
  12. // No hash found
  13. }
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement