JSFiddle

  • mb.YTPlayer & Bootstrap #19 is the latest revision

    jQuery 2.1.3, HTML, CSS, JavaScript

      jQuery(function () {
                var myPlayer = jQuery(".player").YTPlayer();
            });
  • Chrome - mac osx - background-attachment-issue

    jQuery Compat (edge), HTML, CSS, JavaScript

        <script>
    
            function switchPosition(){
                var fixedDiv = $("#fixedDiv");
                if(fixedDiv.css("position") == "fixed"){
                    fixedDiv.css("position", "absolute");
                }else{
                    fixedDiv.css("position", "fixed");
                }
                $("#console ...</script>
  • jquery.mb.browser.js #456 is the latest revision

    Returns a $.browser object

    /*
     * ******************************************************************************
     *  jquery.mb.components
     *  file: jquery.mb.browser.js
     *
     *  Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
     *  Open lab srl, Firenze - Italy
     *  email ...
  • loadFromSystem

    jQuery (edge), HTML, CSS, JavaScript

        jQuery.loadFromSystem=function(folderPath, type){
    
            // if directory listing is enabled on the remote server.
            // if you run the page locally ...
  • CSSAnimate

    Animate using CSS3 transitions with a fallback to jquery.animate if transitions are not supported by the browser.

    /*******************************************************************************
     jquery.mb.components
     Copyright (c) 2001-2011. Matteo Bicocchi (Pupunzi); Open lab srl, Firenze - Italy
     email: mbicocchi@open-lab.com
     site: http ...
  • animateHover #16 is the latest revision

    sliding highlight of menu voices

    $.animateHover = {
        name: "mb.selectSlide",
        author: "Matteo Bicocchi",
        version: "1.0",
        defaults: {
            eventListener: true,
            childrenTag: "span.voice",
            cssSelect: "selectedBlock",
            cssHover: "hoverBlock ...
  • detect collision #151 is the latest revision

    a simple testfor collision detection with jQuery and DOM elements

    (function($) {
        $.fn.collidesWith = function(elements) {
    
            var checkEls = $(elements);
            var collideEls = $([]);
    
            if (!this || !checkEls) return;
    
            this.each(function() {
                var el = $(this ...
  • textarea enlarger #126 is the latest revision

    auto size a textarea

    $.fn.enlargeTextArea = function() {
        return this.each(function() {
            var el = $(this);
            var elH = el.outerHeight();
            el.css({
                overflow: "hidden"
            });
    
            function manageTextarea ...
  • jQuery.mb.YTPlayer (HTML5 API) #111 is the latest revision

    Background movie using YT videos HTML5 embed API.

    String.prototype.getVideoID = function() {
        return this.indexOf("http") > -1 ? this.match(/[\\?&]v=([^&#]*)/)[1] : this;
    };
    
    
    function onYouTubePlayerAPIReady() {
        $(document).trigger("YTAPIReady");
        $.mbYTPlayer.YTAPIReady = true;
    }
    
    
    /*
                *
                * YT ...
  • expose #2 is the latest revision

    Mootools 1.3.2, HTML, CSS, JavaScript

    $.fn.expose=function(){
      var overlayExist=$("#exposeMask").length>0;
      if($.fn.expose.to)
        clearTimeout($.fn.expose.to);
    
      var el=this;
      //console ...