JSFiddle

  • Vertical Carousel (Bootstrap) #308 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.carousel').carousel({
      interval: 3000
    })
    
  • Vertical Carousel (Bootstrap)

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.carousel').carousel({
      interval: 3000
    })
    
  • Vertical Carousel (Bootstrap) #13 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.carousel').carousel({
      interval: 3000
    })
    
  • Vertical Carousel (Bootstrap)

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.carousel').carousel({
      interval: 3000
    })
    
  • Modal Prevent Page Scrolling #215 is the latest revision

    Demos using mouse events to prevent scrolling while a modal is open. SO: http://stackoverflow.com/q/9538868/570918

    $('#jsMe').on('click', function() {
        $('#myModal').modal('toggle');
        return false;
    });
    
    $('#myModal').on('shown', function () {
        $('body').on('wheel.modal mousewheel.modal', function ...
  • Bootstrap 2.3ish Carousel #4 is the latest revision

    A demo of a Twitter Bootstrap Carousel with pills - a feature expected for v2.3. For SO http://stackoverflow.com/q/12046890/570918

    /* Add LESS support to the browser */
    (function(){ $('head style[type="text/css"]').attr('type', 'text/less');less.refreshStyles(); })();
        
    $('#myCarousel').carousel();
  • Modal No Page Scrolling 2.1.2 #3 is the latest revision

    Resolves Modal-triggered page scrolling by reordering focus call. Issue 5336: https://github.com/twitter/bootstrap/issues/5336

    $('#jsMe').on('click', function() {
        $('#myModal').modal('toggle');
        return false;
    });
  • Bootstrap Modal Keyboard Toggle #4 is the latest revision

    Demonstrates how to toggle the keyboard property on a modal window. Created to answer SO question: http://stackoverflow.com/q/11806816/570918

    var mdl = $('#myModal').modal({
        keyboard: false,
        show: false
    }).data('modal');
    
    $('[data-toggle^="keyboard"]').on('click.keyboard-toggle', function() {
        var $this = $(this);
    
        if ...
  • Modal Data Loading #22 is the latest revision

    Loads data from links which launch modal. Answer to SO: http://stackoverflow.com/q/15303313/570918

    $(document).on('click.modal.image-data', '[href=#imageModal]', function () {
      $('#snap').attr('src',$(this).data('image'))
      $('#download').attr('href', $(this).data('download'))  
    })
  • Toggle Double Invocation

    Logs invocations of "collapse.toggle()". Originally a solution to SO: http://stackoverflow.com/q/12805825/570918

    $(function(){
        var old = $.fn.collapse.Constructor.prototype.toggle
        $.fn.collapse.Constructor.prototype.toggle = function () {
            console.log('toggle invoked')
            return old ...