Skip to content

Instantly share code, notes, and snippets.


  • USA
Block or report user

Report or block GeneralUSA

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
GeneralUSA / app_1.js
Created Jan 4, 2018 — forked from anandnalya/app_1.js
Building a Single Page Webapp with jQuery
View app_1.js
$(document).ready(function() {
// convert all a/href to a#href
$("body").delegate("a", "click", function(){
var href = $(this).attr("href"); // modify the selector here to change the scope of intercpetion
// Push this URL "state" onto the history hash.
// Prevent the default click behavior.
You can’t perform that action at this time.