Skip to content

Instantly share code, notes, and snippets.

@arnogues
Created January 7, 2014 14:30
Show Gist options
  • Save arnogues/8300107 to your computer and use it in GitHub Desktop.
Save arnogues/8300107 to your computer and use it in GitHub Desktop.
Generate Keyboard for banks
var nbChiffres = 16;
var f = function() {
var cells = ("0123456789"+new Array(nbChiffres-9).join(' '))
.split('').sort(function(a,b) {
return Math.random()-0.5;
});
$('.keyboard').html('<button>' + cells.join('</button><button> ') + '</button>');
}
f()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment