Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
$(window).scroll(function() { | |
// Cache our jQuery selector for window | |
var win = $(window); | |
// Infinite scroll math! | |
if(win.height() + win.scrollTop() >= $(document).height()) { | |
populateCountries(); | |
} | |
}); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Backbone.JS-powered Blog</title> | |
<link href="styles.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<!-- This will be our main container --> |