-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoneglance.php
60 lines (56 loc) · 1.57 KB
/
oneglance.php
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
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" href="https://unpkg.com/purecss@0.6.2/build/pure-min.css" integrity="sha384-UQiGfs9ICog+LwheBSRCt1o5cbyKIHbwjWscjemyBMT9YCUMZffs6UqUTd0hObXD" crossorigin="anonymous">
<meta charset="utf-8">
<title>One Glance</title>
<meta name="description" content="One Glance">
<meta name="author" content="SitePoint">
</head>
<body>
<!-- TradingView Widget BEGIN -->
<script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script>
<script type="text/javascript" >
function _createTV_widget(ticker, timeframe)
{
new TradingView.widget({
"width": 640,
"height": 480,
"symbol": ticker,
"interval": timeframe,
"timezone": "Etc/UTC",
"theme": "White",
"style": "1",
"locale": "en",
"toolbar_bg": "#f1f3f6",
"enable_publishing": false,
"allow_symbol_change": true,
"hideideas": true,
"studies": [
"IchimokuCloud@tv-basicstudies",
"MACD@tv-basicstudies"
],
"show_popup_button": true,
"popup_width": "1000",
"popup_height": "650"
});
}
</script>
<!-- TradingView Widget END -->
<?php
$__list = array(
"NASDAQ:AAPL",
"LSE:III"
);
for ($__i = 0; $__i < sizeof($__list); $__i++)
{
/*echo $__list[$__i];*/
?>
<div class="pure-g">
<div class="pure-u-1-2"><p><script>_createTV_widget(<?php echo json_encode($__list[$__i]); ?>, "W");</script> </p></div>
<div class="pure-u-1-2"><p><script>_createTV_widget(<?php echo json_encode($__list[$__i]); ?>, "D");</script> </p></div></div>
<?php
}
?>
</body>
</html>