Skip to content

Instantly share code, notes, and snippets.

@beshur
Created November 30, 2012 10:31
Show Gist options
  • Save beshur/4175034 to your computer and use it in GitHub Desktop.
Save beshur/4175034 to your computer and use it in GitHub Desktop.
jQuery dummy
/* Bankoscopo JS */
var page_var = {
w_w: $(window).width(),
w_h: $(window).height(),
s_t: $("html, body").scrollTop()
}
$(function() {
});
window.onload = function() {
$(window).resize();
// load
};
$(window).resize(function() {
page_var.w_w = $(window).width();
page_var.w_h = $(window).height();
// resize
});
$(window).scroll(function() {
// scroll
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment