clarify copyright headers

This commit is contained in:
Martin Zimmermann 2013-12-18 16:21:29 +01:00
parent ecfaf9828e
commit cbee3f7b2e
2 changed files with 7 additions and 10 deletions

View File

@ -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) {

View File

@ -1,18 +1,16 @@
/*
Copyright (C) 2013 Gregory Schier <gschier1990@gmail.com>
Copyright (C) 2013 Martin Zimmermann <info@posativ.org>
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
};
});
});