sheep-market

10.000 sheep created by online workers  https://p.ce9e.org/sheep-market/
git clone https://git.ce9e.org/sheep-market.git

commit
3ec4d7480585bbba88015569515d4ef35816451b
parent
3bf7cfc9515d93951f55117df3d43a7ae705c0f9
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-01-04 16:13
chore: fix lint issues

Diffstat

M sheep.js 5 ++---

1 files changed, 2 insertions, 3 deletions


diff --git a/sheep.js b/sheep.js

@@ -5,7 +5,6 @@ ctx.lineCap = 'round';
    5     5 var grid = document.getElementById('grid');
    6     6 var gridHover = grid.querySelector('.grid__hover');
    7     7 var gridFocus = grid.querySelector('.grid__focus');
    8    -1 var gridImg = grid.querySelector('img');
    9     8 
   10     9 var columns = 125;
   11    10 var rows = 80;
@@ -30,7 +29,7 @@ var grayToColor = function(gray) {
   30    29 };
   31    30 
   32    31 var eachWithTimeout = function(array, fn, timeout) {
   33    -1 	return new Promise(function(resolve, reject) {
   -1    32 	return new Promise(function(resolve) {
   34    33 		var tmp = function(i) {
   35    34 			if (i >= array.length) {
   36    35 				resolve();
@@ -51,7 +50,7 @@ var drawSheep = function(sheep) {
   51    50 
   52    51 	ctx.beginPath();
   53    52 	return eachWithTimeout(sheep.drawing.split('_'), function(s) {
   54    -1 		cmd = s.split('.');
   -1    53 		var cmd = s.split('.');
   55    54 
   56    55 		if (cmd[0] === 'lift') {
   57    56 			ctx.beginPath();