Skip to content

Instantly share code, notes, and snippets.

View 34tth3r1ch's full-sized avatar
🤣

DF 34tth3r1ch

🤣
View GitHub Profile
@kenbolton
kenbolton / gist:4226648
Created December 6, 2012 18:09
checkbox toggle
$(function() {
// Create filter actions.
var checkbox = $('input[name=joins-leaves]')
$('label[for=joins-leaves]').toggle( function () {
$('.joins, .leaves').css({'display': 'none'});
checkbox.prop('checked', true);
}, function () {
$(".joins, .leaves").css({'display': 'table-row'});
checkbox.prop('checked', false);
});
jQuery(function() {
var myApi, verts;
// Query for sub-navigation elements. Make each vertically
// scrollable. Save query object as local variable to allow
// methods to be added to the instance.
verts = $(".vertScrollable").each(function(i, e) {
$(e).scrollable({
vertical: true,
prev: ".healthup",