diff --git a/favicon.js b/favicon.js deleted file mode 100644 index be6c174..0000000 --- a/favicon.js +++ /dev/null @@ -1,54 +0,0 @@ -(function() { - var FavEmoji = function(unicode) { - 'use strict'; - var - canvas = document.createElement('canvas'), - getContext = function(w) { - canvas.width = canvas.height = w; - context = canvas.getContext('2d'); - context.font = 'normal normal normal 32px/' + w + 'px sans'; - context.textBaseline = 'middle'; - return context; - }, - hex2char = function(hex) { - var - result = '', - n = parseInt(hex, 16); - if(n <= 0xFFFF) - result += String.fromCharCode(n); - else if(n <= 0x10FFFF) { - n -= 0x10000 - result += String.fromCharCode(0xD800 | (n >> 10)) + String.fromCharCode(0xDC00 | (n & 0x3FF)); - } - return result; - }, - context = getContext(32), - content = unicode.replace(/[Uu]\+10([A-Fa-f0-9]{4})/g, function(str, match) { - return hex2char('10' + matches); - }).replace(/[Uu]\+([A-Fa-f0-9]{1,5})/g, function(str, match) { - return hex2char(match); - }), - iconWidth, - link = document.createElement('link'); - if(!canvas.toDataURL || !document.querySelectorAll) - return; - iconWidth = context.measureText(content).width; - if(iconWidth > canvas.width) - context = getContext(iconWidth); - context.fillText(content, (canvas.width - iconWidth) / 2, canvas.height / 2); - link.setAttribute('rel', 'icon'); - link.setAttribute('type', 'image/png'); - link.setAttribute('href', canvas.toDataURL('image/png')); - for(var icons = document.querySelectorAll('link[rel*=icon]'), i = 0, l = icons.length; i < l; i++) - icons[i].parentNode.removeChild(icons[i]); - document.getElementsByTagName('head')[0].appendChild(link); - }; - if(typeof define !== 'undefined' && define.amd) - define([], function() { - return FavEmoji; - }); - else if(typeof module !== 'undefined' && module.exports) - module.exports = FavEmoji; - else - this.FavEmoji = FavEmoji; -})(); \ No newline at end of file diff --git a/firebase.json b/firebase.json index b9d5cdd..f8ab8c7 100644 --- a/firebase.json +++ b/firebase.json @@ -6,6 +6,9 @@ "**/.*", "**/node_modules/**", "samples/**", + "src/**", + "LICENSE", + "**.md", "**/.git/**" ], "rewrites": [ diff --git a/manifest.appcache b/manifest.appcache index 469f94c..675e18c 100644 --- a/manifest.appcache +++ b/manifest.appcache @@ -1,2 +1,2 @@ CACHE MANIFEST -# v7 \ No newline at end of file +# v8 \ No newline at end of file diff --git a/data.min.js b/src/data.min.js similarity index 100% rename from data.min.js rename to src/data.min.js diff --git a/index.css b/src/index.css similarity index 100% rename from index.css rename to src/index.css diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js diff --git a/index.min.css b/src/index.min.css similarity index 100% rename from index.min.css rename to src/index.min.css diff --git a/index.min.js b/src/index.min.js similarity index 100% rename from index.min.js rename to src/index.min.js diff --git a/postcss.config.js b/src/postcss.config.js similarity index 100% rename from postcss.config.js rename to src/postcss.config.js