JSFiddle

  • Log jQuery's event.which on mousedown #1 is the latest revision

    Does this work as expected in IE?

    $( document ).on( 'click', function logWhich( e ){
        $( 'body' ).text( e.which );
    } )
  • Log jQuery's event.which on mouseclick

    Does this work as expected in IE?

    $( document ).on( 'click', function logWhich( e ){
        $( 'body' ).text( e.which );
    } )
  • jquery.scrollLock.js flickers in IE #6 is the latest revision

    To demonstrate a buig

    // Demo initiliatisation
    $( function initScrollLock(){    
        $( 'a[data-action*=scroll-lock]' ).on( 'click', function( e ){
            e.preventDefault();
            
            $.scrollLock();
        } );
    } );
    
    // Plugin
    $.scrollLock = ( function scrollLockClosure() {
        'use strict ...
  • Crash IE8 & 9 with CSS

    As reported here: http://www.hackerspace-bamberg.de/Benutzer:Schinken/CSS-IE-Crash

    This is just some text yeah
  • Crash IE8 & 9 with CSS

    As reported here: http://www.hackerspace-bamberg.de/Benutzer:Schinken/CSS-IE-Crash

    Hiya this is just some text yeah
  • Crash IE8 & 9 with CSS

    As reported here: http://www.hackerspace-bamberg.de/Benutzer:Schinken/CSS-IE-Crash

    Hiya this is just some text yeah
  • Given an array of numbers, can an addition of any subset of that array result in number X?

    Using only jQuery

    function getSubsets( array ) {
    
      var subsets = [];
    
      function getSubset( length, subset, subsetCombinations, all ) {
        if ( length === 0 ) {
          if ( subsetCombinations.length > 0 ) {
            all[ all ...
  • Auto margins with specified width

    No-Library (pure JS), HTML, CSS, JavaScript

    <div class="caption">
                        <h2 class="product-name"><a href="http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5" title="Vivi Nova V5">Vivi Nova V5</a></h2>
    					
                        											
    
    
    
            
        <div class="price-box">
    																										<span class="price-excluding-tax">
    																		
    													
    
    						<span class="regular-price f" id="product-price-112">
    							<span class="price">£0.00</span>						</span>
    						<span class="label">Ex. VAT</span>
    											</span>
    									
    				    </div>
    
    															
    											    <div class="ratingsWrap">
    											    <div class="ratings">
            			<div class="rating-bar">
    				<div class="rating-box"></div>
    				<div class="rating" style="width:100%"></div>
    				<div class="rating-fill"></div>
    			</div>
                    <span class="amount"><a href="#" onclick="var t = opener ? opener.window : window; t.location.href='http://www.flavourvapour.co.uk/wholesale/review/product/list/id/112/'; return false;">(2)</a></span>
        </div>
        </div>
                        					
    					<div class="products-grid-target">
    						<p></p>
    					</div>
    					
    					<div class="products-grid-buttons">
    						<a href="http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5" class="btn btn-boring">View</a>
    					
    																											<button type="button" title="BUY" class="btn btn-warning" onclick="setLocation('http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5?options=cart')"><span><span>BUY</span></span></button>	
    																						
    					</div>
                    </div>
  • Auto margins with specified width

    No-Library (pure JS), HTML, CSS, JavaScript

    <div class="caption">
                        <h2 class="product-name"><a href="http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5" title="Vivi Nova V5">Vivi Nova V5</a></h2>
    					
                        											
    
    
    
            
        <div class="price-box">
    																										<span class="price-excluding-tax">
    																		
    													
    
    						<span class="regular-price f" id="product-price-112">
    							<span class="price">£0.00</span>						</span>
    						<span class="label">Ex. VAT</span>
    											</span>
    									
    				    </div>
    
    															
    											    <div class="ratings">
            			<div class="rating-bar">
    				<div class="rating-box"></div>
    				<div class="rating" style="width:100%"></div>
    				<div class="rating-fill"></div>
    			</div>
                    <span class="amount"><a href="#" onclick="var t = opener ? opener.window : window; t.location.href='http://www.flavourvapour.co.uk/wholesale/review/product/list/id/112/'; return false;">(2)</a></span>
        </div>
                        					
    					<div class="products-grid-target">
    						<p></p>
    					</div>
    					
    					<div class="products-grid-buttons">
    						<a href="http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5" class="btn btn-boring">View</a>
    					
    																											<button type="button" title="BUY" class="btn btn-warning" onclick="setLocation('http://www.flavourvapour.co.uk/wholesale/special-offers/vivi-nova-v5?options=cart')"><span><span>BUY</span></span></button>	
    																						
    					</div>
                    </div>
  • Pinching with Hammer.js #141 is the latest revision

    jQuery (edge), HTML, CSS, JavaScript

    var dom   = document.body,
        width = parseInt($('#square').css('width')),
        vel   = 5.0,
        min   = 100,
        max   = 400,
        scale;
    
    function gestureChange( e ...