JSFiddle

  • Rounding Algorithms #22 is the latest revision

    Different rounding algorithms in JavaScript. JavaScript's Math.round is an implementation of asymmetric round-half-up rounding. round-half-even (banker's) rounding has less bias over larger data sets, and is often a legal requirement for financial software. In practice, round-half-odd is rarely used as it will never round to 0, which is likely a desirable rounding algorithm attribute.

    var algorithms = {
      'round-half-up symmetric': function(value) {
         if (value >= 0) {
           return Math.round(value);
         }
          
         return (value % 0.5 === 0) ? Math.floor ...
  • JavaScript Rounding

    Demonstrating that JavaScript's rounding algorithm is asymmetric round-half-up . http://www.clivemaxfield.com/diycalculator/sp-round.shtml

    var h1s = document.querySelectorAll('h1');
    
    for (var i = 0; i < h1s.length; i++) {
      var h1 = h1s[i],
        expected = h1.childNodes ...
  • jQuery Awesome Cursor Demo #14 is the latest revision

    jQuery plugin for using FontAwesome icons as custom CSS cursors

    $(document).ready(function() {
        $('.panel').awesomeCursor('magic', {
            flip: 'both',
            color: 'white',
            size: 32
        });
    });
  • jQuery Page Walkthrough Example #15 is the latest revision

    Example walkthrough using https://github.com/stevefrost's fork

    $(document).ready(function() {
        $('.content').pagewalkthrough({
            name: 'welcome',
            
            // Ignore stupid cookie stuff and always show walkthrough
            onCookieLoad: function() {
                $('.content').pagewalkthrough('show ...
  • jQuery Page Walkthrough Example #2 is the latest revision

    Example walkthrough using https://github.com/stevefrost's fork

    $(document).ready(function() {
        $('.content').pagewalkthrough({
            name: 'welcome',
            
            // Ignore stupid cookie stuff and always show walkthrough
            onCookieLoad: function() {
                $('.content').pagewalkthrough('show ...
  • jQuery Page Walkthrough Example #5 is the latest revision

    Example walkthrough

    $(document).ready(function() {
        $('.content').pagewalkthrough({
            name: 'welcome',
            
            // Ignore stupid cookie stuff and always show walkthrough
            onCookieLoad: function() {
                $('.content').pagewalkthrough('show ...
  • Fuel UX 2.3 Skeleton #2 is the latest revision

    This is a jsFiddle which can be used to demonstrate code with Fuel UX 2.3

    // DataSource Constructor
    var StaticDataSource = function( options ) {
        this._columns = options.columns;
        this._formatter = options.formatter;
        this._data = options.data;
        this._delay ...
  • Disabled FuelUX 2 Select Menu Items #1 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.my-app').delegate('click', '#mySelect li.disabled a', function(e) {
      e.preventDefault();
      e.stopImmediatePropagation();
      e.stopPropagation();
        
      return false;
    });
    
    $('.my-app').find('#myOtherSelect ...
  • Disabled FuelUX 2 Select Menu Items #1 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.my-app').delegate('click', '#mySelect li.disabled a', function(e) {
      e.preventDefault();
      e.stopImmediatePropagation();
      e.stopPropagation();
        
      return false;
    });
    
    $('.my-app').find('#myOtherSelect ...
  • Disabled FuelUX 2 Select Menu Items #1 is the latest revision

    jQuery 1.7.2, HTML, CSS, JavaScript

    $('.my-app').delegate('click', '#mySelect li.disabled a', function(e) {
      e.preventDefault();
      e.stopImmediatePropagation();
      e.stopPropagation();
        
      return false;
    });
    
    $('.my-app').find('#myOtherSelect ...