Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- if (String(window.location).match(/#/i)) {
- matches = String(window.location).match(/#(.*)/)
- $('#contents').load(matches[1] + '.html #container #contents *');
- }
- $('ul li').find('a').each(function(i, link) {
- $(this).click(function(i, a) {
- var uri = $(this).attr('href');
- $('#contents').empty();
- $('#contents').load(uri + ' #container #contents *');
- window.location = '#' + uri.replace(/.html/, '');
- return false;
- });
- });
- });
Add Comment
Please, Sign In to add comment