mirror of
https://github.com/FlipsideCrypto/flipside-js.git
synced 2026-02-06 10:48:11 +00:00
206 lines
4.9 KiB
HTML
206 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<title>flipside.js</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<script src="flipside-v1.10.0.js"></script>
|
|
<style>
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
|
|
"Segoe UI Symbol";
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
text {
|
|
font-weight: 700;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.wrapper {
|
|
border: 1px solid #ccc;
|
|
padding: 20px;
|
|
width: 600px;
|
|
font-weight: 700;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.wrapper p {
|
|
font-size: 40px;
|
|
}
|
|
|
|
#widget-1 {
|
|
background: black;
|
|
}
|
|
#widget-2 {
|
|
width: 300px;
|
|
background: #33435e;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper"><div id="chart"></div></div>
|
|
|
|
<div class="wrapper dark" style="background-color:#000000">
|
|
<div id="chart2"></div>
|
|
</div>
|
|
|
|
<div class="wrapper"><div id="score"></div></div>
|
|
|
|
<div class="wrapper"><div id="widget-0" style="width: 289px;"></div></div>
|
|
|
|
<div class="wrapper" style="background-color:#000000">
|
|
<div id="widget-1" style="width: 289px"></div>
|
|
</div>
|
|
|
|
<div class="wrapper" style="background-color: #33435e">
|
|
<div id="widget-2"></div>
|
|
</div>
|
|
|
|
<div class="wrapper"><div id="multiTable"></div></div>
|
|
<div class="wrapper">
|
|
<div id="multiTableFcas"></div>
|
|
</div>
|
|
|
|
<script>
|
|
const flipside = new Flipside("a7936778-4f87-4790-889f-3ab617271458");
|
|
|
|
flipside.chart("chart", {
|
|
title: "Bitcoin Health",
|
|
series: [
|
|
{
|
|
name: "BTC FCAS",
|
|
symbol: "BTC",
|
|
metric: "fcas",
|
|
type: "line",
|
|
yAxis: 1
|
|
}
|
|
],
|
|
rangeSelector: {
|
|
enabled: true
|
|
}
|
|
});
|
|
|
|
flipside.chart("chart2", {
|
|
mode: "dark",
|
|
title: "Ethereum Health",
|
|
axisTitles: ["FCAS", "Dev"],
|
|
colors: ["#E44C27", "#7FCCC5"],
|
|
series: [
|
|
{ symbol: "ETH", metric: "fcas", type: "line", yAxis: 0 },
|
|
{ symbol: "ETH", metric: "dev", type: "line", yAxis: 1 }
|
|
]
|
|
});
|
|
|
|
flipside.spectrum("widget-0", {
|
|
asset: {
|
|
symbol: "nmr",
|
|
highlights: ["BTC", "ETH", "QTUM"]
|
|
},
|
|
mode: "light",
|
|
fontFamily: "inherit",
|
|
relatedMarkers: {
|
|
enabled: true,
|
|
bucketDistance: 35,
|
|
lineDistance: 25,
|
|
fontFamily: "inherit"
|
|
},
|
|
name: { enabled: true, style: {} },
|
|
spectrum: { enabled: true },
|
|
icon: { enabled: true },
|
|
rank: { enabled: true },
|
|
trend: { enabled: true }
|
|
});
|
|
|
|
flipside.spectrum("widget-1", {
|
|
assets: [
|
|
{
|
|
symbol: "eth",
|
|
highlights: ["BTC", "NMR", "QTUM"]
|
|
},
|
|
{
|
|
symbol: "xrp",
|
|
highlights: ["BTC", "NMR", "QTUM"]
|
|
},
|
|
{
|
|
symbol: "btc",
|
|
highlights: ["eos", "NMR", "QTUM"]
|
|
}
|
|
],
|
|
mode: "dark",
|
|
bucketDistance: 100,
|
|
relatedMarkers: {
|
|
bucketDistance: 55,
|
|
lineDistance: 35
|
|
}
|
|
});
|
|
|
|
flipside.createTable("widget-2", "btc", {
|
|
dark: true,
|
|
borderColor: "#737e8d"
|
|
});
|
|
|
|
// Price table
|
|
flipside.multiTable("multiTable", {
|
|
widgetType: "price-multi-tabe",
|
|
columns: ["market_cap", "price", "volume_24h"],
|
|
sortBy: "market_cap",
|
|
showFullName: true,
|
|
fontFamily: "inherit",
|
|
limit: 50,
|
|
mode: "light",
|
|
rows: {
|
|
dividers: true,
|
|
dividersColor: "#eaeaea",
|
|
alternating: false,
|
|
padding: "10px 0 10px 0",
|
|
headerBold: true
|
|
},
|
|
title: {
|
|
text: "Top 50 Coins By Market Cap",
|
|
style: { fontSize: "24px", fontWeight: 400 }
|
|
}
|
|
});
|
|
|
|
// FCAS Table
|
|
flipside.multiTable("multiTableFcas", {
|
|
autoWidth: false,
|
|
assets: null,
|
|
columns: [
|
|
"fcas",
|
|
"trend",
|
|
"userActivity",
|
|
"developerBehavior",
|
|
"marketMaturity",
|
|
"rank"
|
|
],
|
|
exlusions: null,
|
|
fontFamily: "inherit",
|
|
headers: {},
|
|
limit: 10,
|
|
mode: "light",
|
|
rows: {
|
|
alternating: true,
|
|
alternatingColors: "#eeeeee",
|
|
dividers: false,
|
|
style: {}
|
|
},
|
|
title: {
|
|
text: "Top Coins",
|
|
style: {}
|
|
},
|
|
trend: {
|
|
enabled: true,
|
|
changeOver: 7,
|
|
style: {}
|
|
}
|
|
});
|
|
|
|
flipside.score("score", { symbol: "eth" });
|
|
</script>
|
|
</body>
|
|
</html>
|