mirror of
https://github.com/FlipsideCrypto/flipside-js.git
synced 2026-02-06 10:48:11 +00:00
76 lines
1.8 KiB
HTML
76 lines
1.8 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.5.4.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;
|
|
}
|
|
.wrapper {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
border: 1px solid #ccc;
|
|
padding: 20px;
|
|
width: 500px;
|
|
}
|
|
|
|
#widget-1 {
|
|
background: black;
|
|
}
|
|
#widget-2 {
|
|
width: 300px;
|
|
background: #33435e;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="wrapper"><div id="widget-0" style="width: 289px;"></div></div>
|
|
|
|
<div class="wrapper"><div id="widget-1" style="width: 289px;"></div></div>
|
|
|
|
<div class="wrapper"><div id="widget-2"></div></div>
|
|
|
|
<div class="wrapper"><div id="multiTable"></div></div>
|
|
|
|
<script>
|
|
const flipside = new Flipside("a7936778-4f87-4790-889f-3ab617271458");
|
|
flipside.spectrum("widget-0", {
|
|
asset: "nmr",
|
|
highlights: ["BTC", "ETH", "QTUM"]
|
|
});
|
|
|
|
flipside.spectrum("widget-1", {
|
|
asset: "nmr",
|
|
mode: "dark",
|
|
bucketDistance: 100,
|
|
highlights: [
|
|
"BTC",
|
|
"ETH",
|
|
"eos",
|
|
"qtum",
|
|
"nmr",
|
|
"ltc",
|
|
"gnt",
|
|
"rep",
|
|
"mln"
|
|
]
|
|
});
|
|
|
|
flipside.createTable("widget-2", "btc", {
|
|
dark: true,
|
|
borderColor: "#737e8d"
|
|
});
|
|
|
|
flipside.multiTable("multiTable", { title: { text: "Top Coins" } });
|
|
</script>
|
|
</body>
|
|
</html>
|