forked from willzittlau/notion-stockwidget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
101 lines (101 loc) · 2.75 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Notion Stock Widget</title>
<link rel="stylesheet" href="style.css" />
</head>
<body class="light">
<!-- Light/Dark Btn -->
<div class="settings">
<div class="modes">
<button class="light">Light</button>
<button class="dark">Dark</button>
</div>
</div>
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" id="dark">
<div class="tradingview-widget-container__widget"></div>
<div class="tradingview-widget-copyright"><a href="https://cn.tradingview.com" rel="noopener" target="_blank"><span class="blue-text">行情</span></a>由TradingView提供</div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-tickers.js" async>
{
"symbols": [
{
"proName": "FOREXCOM:SPXUSD",
"title": "S&P 500"
},
{
"proName": "FOREXCOM:NSXUSD",
"title": "Nasdaq 100"
},
{
"description": "深圳成指",
"proName": "SZSE:399106"
},
{
"description": "上证指数",
"proName": "SSE:000001"
},
{
"description": "英镑/人民币",
"proName": "FX_IDC:GBPCNY"
},
{
"description": "美元/人民币",
"proName": "FX_IDC:USDCNY"
}
],
"colorTheme": "dark",
"isTransparent": true,
"showSymbolLogo": true,
"locale": "zh_CN"
}
</script>
</div>
<!-- TradingView Widget END -->
<!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" id="light">
<div class="tradingview-widget-container__widget"></div>
<div class="tradingview-widget-copyright"><a href="https://cn.tradingview.com" rel="noopener" target="_blank"><span class="blue-text">行情</span></a>由TradingView提供</div>
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-tickers.js" async>
{
"symbols": [
{
"proName": "FOREXCOM:SPXUSD",
"title": "S&P 500"
},
{
"proName": "FOREXCOM:NSXUSD",
"title": "Nasdaq 100"
},
{
"description": "深圳成指",
"proName": "SZSE:399106"
},
{
"description": "上证指数",
"proName": "SSE:000001"
},
{
"description": "英镑/人民币",
"proName": "FX_IDC:GBPCNY"
},
{
"description": "美元/人民币",
"proName": "FX_IDC:USDCNY"
}
],
"colorTheme": "light",
"isTransparent": true,
"showSymbolLogo": true,
"locale": "zh_CN"
}
</script>
</div>
<!-- TradingView Widget END -->
<!-- Custom JS for widget styling BEGIN -->
<script src="app.js"></script>
<!-- Custom JS END -->
</body>
</html>