Skip to content

Instantly share code, notes, and snippets.

View joshforbes's full-sized avatar

Josh Forbes joshforbes

View GitHub Profile
var serviceModule = (function() {
var s;
function serviceShow() {
s.serviceContainer.show(1);
s.serviceBelt.css('left', '-100%');
}
function serviceHide() {
s.serviceBelt.css('left', '0%');
var s,
NewsWidget = {
settings: {
numArticles: 5,
articleList: $("#article-list"),
moreButton: $("#more-button")
},
init: function() {
var counter = {
count: 0,
init: function() {
this.$count = $('#count');
this.setCount(parseInt(this.$count.text(), 10));
this.bindEvents();
},