-
Notifications
You must be signed in to change notification settings - Fork 0
/
news.html
181 lines (147 loc) · 5.36 KB
/
news.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet/less" href="less/style.less">
<script src="js/libs/less-1.3.0.min.js"></script>
<link type="text/css" rel="stylesheet" href="./Styles/custom-theme/jquery-ui-1.8.22.custom.css" />
<link type="text/css" rel="stylesheet" href="./Styles/demo_table_jui.css"/>
<link type="text/css" rel="stylesheet" href="./Styles/demo_page.css"/>
<link type="text/css" rel="stylesheet" href="./Styles/data-table.css"/>
<script type="text/javascript" src="./Scripts/datajs-1.0.1.js"></script>
<script type="text/javascript" src="./Scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="./Scripts/jquery-ui-1.8.22.custom.min.js"></script>
<script type="text/javascript" src="./Scripts/jquery.dataTables.min.js"></script>
<!-- Use SimpLESS (Win/Linux/Mac) or LESS.app (Mac) to compile your .less files
to style.css, and replace the 2 lines above by this one:
<link rel="stylesheet" href="less/style.css">
-->
</head>
<body>
<script type="text/javascript">
// Use Data JS to parse ODATA format. This enables us to deal with the underlying
// payload data without having to parse the XML tags ourselves.
// refer to DATAJS website for more details on how to use it.
OData.defaultHttpClient.enableJsonpCallback = true;
function update(){
// set headers to JSON if we intend to have JSON being returned to us.
OData.read({ requestUri: "http://192.168.1.10/TAExchangeBrokerage/Brokerage.svc/GetRSSFeed?'HKNews'", headers: { Accept: "application/json"} },
function (data, request) {
xmlDoc = $.parseXML(data.GetRSSFeed);
var row = Array();
$("title",xmlDoc).each(function(index){
row[index]=["<a href='" + $(this).next().text() + "'>" + $(this).text() + "</a>",$(this).next().next().text()];
});
$('.newsData').dataTable({
//"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bDestroy": true,
"aaData": row,
});
});
}//end of function update()
setInterval(update, 5000);
update();
</script>
<!-- CS LOGO -->
<div class="logo offset1 span10">
<div class="container">
<div class="row ">
<div class="span10">
<img src="img/login/logo.png" class="" style = "margin-bottom: 10px;"></img>
</div>
</div>
</div>
</div>
<div class="wrapper span10 offset1">
<!-- /CS LOGO -->
<!-- Navigation bar -->
<div class="container navbar">
<div class="row">
<div class="span10 ">
<div class="navbar">
<div class="navbar-inner dashboard">
<div class="container">
<ul class="nav">
<li class="">
<a href="portfolio.html" >PORTFOLIO</a>
</li>
<li class=""><a href="stocks.html">STOCKS</a></li>
<li class="active"><a href="news.html">NEWS</a></li>
<li class=""><a href="history.html">HISTORY</a></li>
<li class=""><a href="leaderboard.html">LEADERBOARD</a></li>
</ul>
<ul class="nav pull-right">
<li class="divider-vertical"></li>
<li class=""><a href="Account/Logout.aspx">LOGOUT</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- / Navigation bar -->
<!-- <div class="container"></div> -->
<div class="container ticker-roller">
<div class="row">
<div class="span10 ">
<!-- ticker scrolling -->
<div id="ticker-carousel" class="carousel slide">
<!-- Carousel items -->
<div class="carousel-inner">
</div>
</div>
<!-- <a class="" href="#ticker-carousel" data-slide="prev">‹</a>
<a class="" href="#ticker-carousel" data-slide="next">›</a> -->
</div>
</div>
</div>
<div class="container content">
<div class="row">
<div class="span9">
<table class="newsData" width ='100%'>
<thead>
<tr>
<th width="">title</th>
<th width="">description</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</body>
</div>
</div>
</div> <!-- /container -->
</div>
<div class="container">
<div class="row">
<div class="span10 offset1">
<footer>
<p>© Company 2012</p>
</footer>
</div>
</div>
</div>
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> -->
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.2.min.js"><\/script>')</script>
<script src="js/libs/bootstrap/bootstrap.min.js"></script>
<script src="js/libs/datajs-1.0.1.js"></script>
<script src="js/plugins.js"></script>
<script src="js/script.js"></script>
<script src="js/libs/modernizr-2.5.3-respond-1.1.0.min.js"></script>
<script type="text/javascript">
dashboard.startCarousel();
</script>
</body>
</html>