JSFiddle

  • Bootstrap 3.1.1 shell

    Bootstrap 3.1.1 shell

    
    
    
        <div class="container theme-showcase" role="main">
    
          <!-- Main jumbotron for a primary marketing message or call to action -->
          <div class="jumbotron">
            <h1>Hello, world!</h1>
            <p>This is a template for a simple marketing or informational website. It includes a large callout called a ...</p></div></!--></div>
  • Manhattan distance #2 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    var map = [[0,0,0, 0,0,0, 0,0,0],
                    [0,0,0, 0,0,1, 0,0,0 ...
  • Breadth First Traversal

    jQuery Compat (edge), HTML, CSS, JavaScript

    function Node (data) {
        this.left = null;
        this.right = null;
        this.data = data;
    }
    
    var a = new Node('A');
    var b = new ...
  • Sudoku tester #13 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    var block = [[5,3,4,6,7,8,9,1,2],
                 [6,7,2,1,9,5,3,4,8 ...
  • Breadth First Traversal #5 is the latest revision

    jQuery Compat (edge), HTML, CSS, JavaScript

    
    
    function Node (data) {
        this.left = null;
        this.right = null;
        this.data = data;
    }
    
    var a = new Node('A');
    var b = new ...
  • simple gmap #1 is the latest revision

    stick an array of co-ordinates onto a map

    var map;
    var points = [new google.maps.LatLng(-34.865393, 138.646099), 
    new google.maps.LatLng(-27.244823, 153.083327 ...
  • sort comparisons #6 is the latest revision

    Mootools 1.4.5, HTML, CSS, JavaScript

    function bubblesort(nums)
    {
        for (var i=0; i<nums.length; i++)
        {
            for (var j=i; j<nums.length-1; j++){
                writeline("i: " + i + " j: " + j);
                if (nums[j] > nums[j+1])
                {
                    writeline('swap');
                    var tmp = nums[j+1];
                    nums[j ...</nums.length;>
  • TOTP One-time password #940 is the latest revision

    jQuery 1.6.4, HTML, CSS, JavaScript

        function dec2hex(s) { return (s < 15.5 ? '0' : '') + Math.round(s).toString(16); }
        function hex2dec(s) { return parseInt(s, 16); }
    
        function base32tohex(base32) {
            var base32chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
            var bits = "";
            var hex = "";
    
            for (var i = 0; i < base32.length; i++) {
                var val = base32chars.indexOf(base32.charAt(i).toUpperCase());
                bits += leftpad(val.toString(2), 5, '0');
            }
    
            for (var i = 0; i+4 <= bits.length; i+=4) {
                var chunk = bits.substr(i, 4);
                hex = hex + parseInt(chunk, 2).toString(16) ;
            }
            return hex;
    
        }
    
        function leftpad(str, len, pad) {
            if (len + 1 >= str.length) {
                str = Array(len + 1 - str.length).join(pad) + str;
            }
            return str;
        }
    
        function updateOtp ...
  • google map autocomplete #11 is the latest revision

    jQuery 1.8.3, HTML, CSS, JavaScript

    $(function() {
    
    
    
        var input = document.getElementById('searchTextField');
        var autocomplete = new google.maps.places.Autocomplete(input, {
            types: ["geocode"]
            ,  componentRestrictions: {country: 'AU'}
        });
    
    
        google ...
  • jQuery gmap problem #2 is the latest revision

    how to update the marker from input field on load and fix drag event

    var map;
    var points = [new google.maps.LatLng(-34.865393, 138.646099), 
    new google.maps.LatLng(-27.244823, 153.083327 ...