打开主菜单
早鸟科技-区块链百科|数字货币大全
β
搜索
查看“Widget:CurrentPrice”的源代码
←
Widget:CurrentPrice
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您没有权限编辑
Widget
名字空间内的页面。
该页面已被保护以防止编辑和其他操作。
您可以查看与复制此页面的源代码。
<script type="text/javascript"> baseUrl = "https://widgets.cryptocompare.com/"; var scripts = document.getElementsByTagName("script"); var embedder = scripts[ scripts.length - 1 ]; var cccTheme = {"General":{}}; (function (){ var appName = encodeURIComponent(window.location.hostname); if(appName==""){appName="local";} var s = document.createElement("script"); s.type = "text/javascript"; s.async = true; var theUrl = baseUrl+'serve/v3/coin/header?fsyms=BTC,ETH,XRP,BCH,EOS,XLM,LTC,ADA,XMR,ETC&tsyms=USD'; s.src = theUrl + ( theUrl.indexOf("?") >= 0 ? "&" : "?") + "app=" + appName; embedder.parentNode.appendChild(s); })(); </script> <script type="text/javascript"> (function () { var currentPricesInterval = setInterval(function () { var $prices; if (typeof jQuery === 'undefined' || ($prices = jQuery('#marquee-container .ccc-header-v3-ccc-price-container')).length === 0) { return; } clearInterval(currentPricesInterval); $prices.each(function () { var $this = jQuery(this); var $link = $this.find('> a'); var $childs = $link.children(); $childs.detach(); $link.remove(); $this.append($childs); }); var links = { "BTC": "BTC", "XRP": "XRP", "EOS": "EOS", "LTC": "LTC", "XMR": "XMR", "ETH": "ETH", "BCH": "BCH", "XLM": "XLM", "ADA": "ADA", "ETC": "ETC" }; $('#marquee-container .ccc-header-v3-ccc-price-container').each(function () { var $this = $(this); var $name = $this.find('.ccc-header-v3-price-name'); var $logo = $this.find('.ccc-header-v3-price-logo'); var text = $name.text(); var currency = text.match(/^([A-Z]{3})/)[1]; var $link = $('<a>', {"href":links[currency]}); $name.empty(); $name.append($link.clone().text(text)); $logo.wrap($link.clone()); }); }, 100); })(); </script>
返回至
Widget:CurrentPrice
。