From 8752354fa9b2b8c03b47b33a75e0ca95e8335d97 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Tue, 18 Aug 2015 08:41:40 -0400 Subject: check if changed before autouploading, hide filetool, other stuff.. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.html') diff --git a/index.html b/index.html index 999ded4..2653185 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,7 @@ webcam load save - clear
+ new
-- cgit v1.2.3-70-g09d2 From 763efa0edf27ef1ed2e0a722ff1551d55f0e4f02 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 25 Aug 2015 09:51:02 -0400 Subject: gallery link --- css/sally.css | 8 ++++---- index.html | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'index.html') diff --git a/css/sally.css b/css/sally.css index 8c4dc9e..f360b0c 100644 --- a/css/sally.css +++ b/css/sally.css @@ -22,10 +22,10 @@ body { } a {display: block} -a:link, a:visited {text-decoration: none; color: #3b3740} +a:link, a:visited {text-decoration: none; color: #6b6760} +a:hover { text-decoration: underline } -{overflow: auto;} -.faded { color: 404040; } +.faded { color: #404040; } .rapper, .block { float: left; height:auto; @@ -74,7 +74,7 @@ a:link, a:visited {text-decoration: none; color: #3b3740} background-size: 4px 4px; } } -span { min-width: 8px; line-height: 15px; display: inline-block; } +span,a { min-width: 8px; line-height: 15px; display: inline-block; } .rapper { cursor: crosshair; } body.grid span { border-right: 1px solid #444; border-bottom: 1px solid #444; } body.grid div { border-left: 1px solid #444; } diff --git a/index.html b/index.html index 2653185..bf3504b 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,9 @@ webcam load save - new
+ new + gallery +
-- cgit v1.2.3-70-g09d2 From 383756dee9c71ef4d87ea427c4988d33d851b4d1 Mon Sep 17 00:00:00 2001 From: timb Date: Sat, 17 Oct 2015 19:11:25 -0700 Subject: TextEncoder/TextDecoder polyfill for safari --- index.html | 1 + js/vendor/text-encoder-lite.js | 141 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 js/vendor/text-encoder-lite.js (limited to 'index.html') diff --git a/index.html b/index.html index bf3504b..4c36fc3 100644 --- a/index.html +++ b/index.html @@ -95,6 +95,7 @@ // lex.opacity = 1 + diff --git a/js/vendor/text-encoder-lite.js b/js/vendor/text-encoder-lite.js new file mode 100644 index 0000000..957fd9b --- /dev/null +++ b/js/vendor/text-encoder-lite.js @@ -0,0 +1,141 @@ +// taken from https://github.com/coolaj86/TextEncoderLite/blob/master/index.js +// added polyfill at bottom + +function TextEncoderLite() { +} +function TextDecoderLite() { +} + +(function () { +'use strict'; + +// Taken from https://github.com/feross/buffer/blob/master/index.js +// Thanks Feross et al! :-) + +function utf8ToBytes (string, units) { + units = units || Infinity + var codePoint + var length = string.length + var leadSurrogate = null + var bytes = [] + var i = 0 + + for (; i < length; i++) { + codePoint = string.charCodeAt(i) + + // is surrogate component + if (codePoint > 0xD7FF && codePoint < 0xE000) { + // last char was a lead + if (leadSurrogate) { + // 2 leads in a row + if (codePoint < 0xDC00) { + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + leadSurrogate = codePoint + continue + } else { + // valid surrogate pair + codePoint = leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00 | 0x10000 + leadSurrogate = null + } + } else { + // no lead yet + + if (codePoint > 0xDBFF) { + // unexpected trail + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + continue + } else if (i + 1 === length) { + // unpaired lead + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + continue + } else { + // valid lead + leadSurrogate = codePoint + continue + } + } + } else if (leadSurrogate) { + // valid bmp char, but last char was a lead + if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) + leadSurrogate = null + } + + // encode utf8 + if (codePoint < 0x80) { + if ((units -= 1) < 0) break + bytes.push(codePoint) + } else if (codePoint < 0x800) { + if ((units -= 2) < 0) break + bytes.push( + codePoint >> 0x6 | 0xC0, + codePoint & 0x3F | 0x80 + ) + } else if (codePoint < 0x10000) { + if ((units -= 3) < 0) break + bytes.push( + codePoint >> 0xC | 0xE0, + codePoint >> 0x6 & 0x3F | 0x80, + codePoint & 0x3F | 0x80 + ) + } else if (codePoint < 0x200000) { + if ((units -= 4) < 0) break + bytes.push( + codePoint >> 0x12 | 0xF0, + codePoint >> 0xC & 0x3F | 0x80, + codePoint >> 0x6 & 0x3F | 0x80, + codePoint & 0x3F | 0x80 + ) + } else { + throw new Error('Invalid code point') + } + } + + return bytes +} + +function utf8Slice (buf, start, end) { + var res = '' + var tmp = '' + end = Math.min(buf.length, end || Infinity) + start = start || 0; + + for (var i = start; i < end; i++) { + if (buf[i] <= 0x7F) { + res += decodeUtf8Char(tmp) + String.fromCharCode(buf[i]) + tmp = '' + } else { + tmp += '%' + buf[i].toString(16) + } + } + + return res + decodeUtf8Char(tmp) +} + +function decodeUtf8Char (str) { + try { + return decodeURIComponent(str) + } catch (err) { + return String.fromCharCode(0xFFFD) // UTF 8 invalid char + } +} + +TextEncoderLite.prototype.encode = function (str) { + var result; + + if ('undefined' === typeof Uint8Array) { + result = utf8ToBytes(str); + } else { + result = new Uint8Array(utf8ToBytes(str)); + } + + return result; +}; + +TextDecoderLite.prototype.decode = function (bytes) { + return utf8Slice(bytes, 0, bytes.length); +} + +}()); + +if (typeof TextEncoder === 'undefined') TextEncoder = TextEncoderLite +if (typeof TextDecoder === 'undefined') TextDecoder = TextDecoderLite -- cgit v1.2.3-70-g09d2 From 9ffb7541df4d01265bc50d87669ecfc6bd2dc4f5 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 18 Nov 2015 17:24:24 -0500 Subject: lnt --- index.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'index.html') diff --git a/index.html b/index.html index 4c36fc3..d00dc06 100644 --- a/index.html +++ b/index.html @@ -1,3 +1,4 @@ + @@ -125,3 +126,4 @@ + -- cgit v1.2.3-70-g09d2