From cbee3f7b2e52703d235fa156967a3fcea2561982 Mon Sep 17 00:00:00 2001 From: Martin Zimmermann Date: Wed, 18 Dec 2013 16:21:29 +0100 Subject: [PATCH] clarify copyright headers --- isso/js/app/lib/fancy.js | 1 - isso/js/app/lib/identicons.js | 16 +++++++--------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/isso/js/app/lib/fancy.js b/isso/js/app/lib/fancy.js index 3c4edde..a3f9a48 100644 --- a/isso/js/app/lib/fancy.js +++ b/isso/js/app/lib/fancy.js @@ -2,7 +2,6 @@ define(function() { "use strict"; - // http://chuvash.eu/2011/12/14/the-cleanest-auto-resize-for-a-textarea/ var autoresize = function(textarea, minheight) { var offset= !window.opera ? (textarea.offsetHeight - textarea.clientHeight) : (textarea.offsetHeight + parseInt(window.getComputedStyle(textarea, null).getPropertyValue('border-top-width'))); ["keyup", "focus"].forEach(function(event) { diff --git a/isso/js/app/lib/identicons.js b/isso/js/app/lib/identicons.js index 161ef68..6e462db 100644 --- a/isso/js/app/lib/identicons.js +++ b/isso/js/app/lib/identicons.js @@ -1,18 +1,16 @@ +/* + Copyright (C) 2013 Gregory Schier + Copyright (C) 2013 Martin Zimmermann + + Inspired by http://codepen.io/gschier/pen/GLvAy +*/ define(["q"], function(Q) { "use strict"; - // JS Identicon generation via Gregory Schier (http://codepen.io/gschier/pen/GLvAy) - // extended to produce the same identicon for a given hash - - // Size of a grid square in pixels - var SQUARE = 8; - // Number of squares width and height var GRID = 5; - // Padding on the edge of the canvas in px - var pad = function(n, width) { return n.length >= width ? n : new Array(width - n.length + 1).join("0") + n; }; @@ -120,4 +118,4 @@ define(["q"], function(Q) { generate: generateIdenticon, blank: generateBlank }; -}); \ No newline at end of file +});