fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.38k stars 345 forks source link

Uncaught SyntaxError: Unexpected token ILLEGAL in all.js:983 #143

Closed nohn closed 11 years ago

nohn commented 11 years ago

Latest git master fails in Chrome with the mentioned Javascript error, code in question is ""

(function($){$.fn.colorByBrightness=function(){$(this).each(function(index,item){var item=$(item);var color=item.css("background-color");if(color==null){return;} color=color.match(/\d+/g);var r=parseInt(color[0]);var g=parseInt(color[1]);var b=parseInt(color[2]);var yiq=((r_299)+(g_587)+(b*114))/1000;var newColor=(yiq>=128)?'#555':'#EEE';item.css("color",newColor);});}})(jQuery);

 (function(window,$,undefined){var defaultOpts={beforeShow:noop,move:noop,change:noop,show:noop,hide:noop,color:false,flat:false,showInput:false,showButtons:true,clickoutFiresChange:false,showInitial:false,showPalette:fal

bsweeney commented 11 years ago

That looks like a BOM for files encoded with UTF-8. Running a search for BOM using the command line from this StackOverflow question I found a BOM in spectrum.css and spectrum.js.

SSilence commented 11 years ago

What happens when you delete all.js and refresh selfoss? all.js will be generated new automatically by selfoss.

nohn commented 11 years ago

Well I did find. See pull request #144