From 7c4263611fb798ab8a86a9b87cbedc4e8ceed101 Mon Sep 17 00:00:00 2001 From: Antonio Viggiano Date: Wed, 21 Mar 2018 00:58:50 -0300 Subject: [PATCH] Update minified file --- index.html | 2 +- js/main.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 7bf890b8..382d642d 100644 --- a/index.html +++ b/index.html @@ -78,7 +78,7 @@ - + diff --git a/js/main.min.js b/js/main.min.js index 8b137891..5899b5ba 100644 --- a/js/main.min.js +++ b/js/main.min.js @@ -1 +1 @@ - +function error(t){$(t).parent().parent().remove()}$(document).ready(function(){var t=["svg","128","32","32@2x"],e=["color","black","icon","white"],a="black",o="color";function c(t,e,a){t=$(t).find("img");var o=$(t).attr("src").replace(e,a);$(t).attr("src",o)}function n(t){$(t).val().length>0?($(".icon").css("display","none"),$("a[data-icon*='"+$(t).val().toLowerCase()+"']").parent().css("display","block"),$("a[data-name*='"+$(t).val().toLowerCase()+"']").parent().css("display","block"),$('').insertAfter(t),$(".close-search").click(function(){r(t)})):r(t)}function r(t){$(".close-search").remove(),$(".icon").css("display","block"),$(t).val("")}$("form .search").on("input",function(){n($(this))}),$("form").submit(function(t){t.preventDefault(),n($("form .search"))}),$.get("https://api.coinmarketcap.com/v1/ticker/?limit=0",function(t){$.getJSON("manifest.json",function(e){var n="",r=0;e.icons.forEach(function(e){var a=t.find(function(t){return t.symbol.toLowerCase()===e}),o=a?a.name.toLowerCase():e;-1===n.indexOf('data-icon="'+e+'"')&&(n+='
',n+='',n+=''+e+''+e,n+="",n+="
",r++)}),$(".row.icons").html(n),$(".icon").hover(function(){c($(this),a,o)}),$(".icon").mouseleave(function(){c($(this),o,a)}),$(".count-cryptos").text(r)})}),$("#infoIcon").on("show.bs.modal",function(a){var o=$(a.relatedTarget),c=$(this),n=o.data("icon"),r="",i=0,s=0;for(r+='',r+="",r+="",r+='";e[s];){var l=t[i].replace("@","-");r+='",s++}for(s=0,r+="",r+="",r+="";t[i];){if(r+="",r+='","svg"==t[i])var d=".svg";else if("32@2x"==t[i])d="@2x.png";else d=".png";for(;e[s];)r+='",s++;s=0,i++,r+=""}r+="",r+="
'+n+"
'+e[s]+"
'+t[i]+"',r+=''+n+'',r+="
",c.find(".modal-title").text(n),c.find(".modal-body").html(r)})}); \ No newline at end of file