Where possible, it’s best to try automating image optimization so that it’s a first-class citizen in your build chain. To help, I thought I’d share some of the tools I use for this. Not only contains a list of grunt plugins one can use, but also a few command line and online tools. I’ve been …
Tag Archives: javascript
JavaScript ♥ Unicode
jQuery Chained Selects Plugin
Snazzy Maps
zxcvbn: realistic password strength estimation
Simplistic strength estimation gives bad advice. Without checking for common patterns, the practice of encouraging numbers and symbols means encouraging passwords that might only be slightly harder for a computer to crack, and yet frustratingly harder for a human to remember. zxcvbn, named after a crappy password, is a JavaScript password strength estimation library. Use …
Continue reading “zxcvbn: realistic password strength estimation”
Form.requestAutocomplete()
In a world of WebGL, WebRTC and other fancy web APIs that start with “Web”, requestAutocomplete is rather unglamorous. However, it’s a superhero in beige clothing. A tiny, boring API that can stick a stake through the heart of the web payments time-vampire. requestAutocomplete – take my money, not my time →
jQuery.unevent.js
Fixed-sticky: a CSS position:sticky; polyfill
CSS position: sticky; is really in its infancy in terms of browser support. In stock browsers, it is currently only available in iOS 6. In Chrome it is locked behind a chrome://flags setting. Fixed-sticky is a polyfill to enabling this in browsers that don’t support it yet. position: sticky; is one very handy addition to …
Continue reading “Fixed-sticky: a CSS position:sticky; polyfill”
JVFloat.js // JVFloatLabeledTextField
Building an HTML5 Text Editor with the FileSystem APIs
// Save a file in the FileSystem. function saveFile(filename, content) { filesystem.root.getFile(filename, {create: true}, function(fileEntry) { fileEntry.createWriter(function(fileWriter) { fileWriter.onwriteend = function(e) { // Update the file browser. listFiles(); // Clean out the form field. filenameInput.value = ”; contentTextArea.value = ”; // Show a saved message. messageBox.innerHTML = ‘File saved!’; }; fileWriter.onerror = function(e) { console.log(‘Write …
Continue reading “Building an HTML5 Text Editor with the FileSystem APIs”