Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Created December 7, 2012 00:17
Show Gist options
  • Save jeremyfelt/4229641 to your computer and use it in GitHub Desktop.
Save jeremyfelt/4229641 to your computer and use it in GitHub Desktop.
My first self executing function... :)
(function (window, $) {
"use strict";
var document = window.document;
$(document).ready(function () {
$('.open-customer-service').children('a[href="#"]').click(function (e) {
e.preventDefault(); // stop the link from taking us back to #
$('#customer-service-modal').show();
window.scrollTo(0, 0);
});
});
})(window, jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment