-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
213 lines (189 loc) · 9.67 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!doctype html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-18587883-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-18587883-3');
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="title" content="Open Market Daily Prices">
<meta name="description"
content="The report describes prices of consumer items in key markets that significantly of the general price levels of the respective consumer items">
<meta name="keywords"
content="market price, market prices, price list, vegetable price, sri lanka, open market, consumer items, fruits price, rice price">
<meta name="robots" content="index, follow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ආර්ථික මධ්යස්ථාන වල මිල දර්ශකය</title>
<link rel="icon" href="https://cdn.countryflags.com/thumbs/sri-lanka/flag-heart-3d-250.png">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.css"/>
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/dataTables.bootstrap4.min.css"/>
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/fixedheader/3.1.6/css/fixedHeader.bootstrap.min.css"/>
<link rel="stylesheet" type="text/css"
href="https://cdn.datatables.net/responsive/2.2.3/css/responsive.bootstrap.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.1/font/bootstrap-icons.css">
<style type="text/css">
body {
background-color: #e5e5f7;
}
.table thead th {
border-bottom: none;
border-top: none;
}
.container-fluid {
max-width: 1024px;
}
.table th:nth-child(n+5) {
background-color: #8ad090;
}
.table td:nth-child(n+5) {
background-color: #304b2f;
}
.table td:nth-child(-n+4) {
background-color: #504828;
}
.table td:first-child, .table th:first-child {
background-color: #444444;
}
.table tbody tr:hover td {
background-color: #666a6e !important;
}
tr.group > td, .table tbody tr.group:hover td {
background-color: #c0c0c0 !important;
}
</style>
</head>
<body>
<main role="main" class="container-fluid">
<div class="mx-auto" style="height: 20px;"></div>
<h2 class="text-center">ආර්ථික මධ්යස්ථාන වල මිල දර්ශකය</h2>
<p class="text-center">යාවත්කාලීන කිරීම 2021 අප්රේල් 24</p>
<table id="example"
class="table table-hover table-bordered table-responsive-sm table-responsive-md nowrap table-dark"
style="width:100%;border: 1px solid #000000;background-color: #444444;margin: 0 !important;">
<thead>
<tr id="searchColumns" class="bg-warning text-dark">
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th>නාරාහේන්පිට <sup><i class="bi bi-bag" data-toggle="tooltip" title="සිල්ලර මිල"></i></sup></th>
<th>රත්මලාන <sup><i class="bi bi-bag" data-toggle="tooltip" title="සිල්ලර මිල"></i></sup></th>
<th>වැලිසර <sup><i class="bi bi-bag" data-toggle="tooltip" title="සිල්ලර මිල"></i></sup></th>
<th>මීගොඩ <sup><i class="bi bi-shop" data-toggle="tooltip" title="තොග මිල"></i></sup></th>
<th>තඹුත්තේගම <sup><i class="bi bi-shop" data-toggle="tooltip" title="තොග මිල"></i></sup></th>
<th>දඹුල්ල <sup><i class="bi bi-shop" data-toggle="tooltip" title="තොග මිල"></i></sup></th>
<th>නුවරඑළිය <sup><i class="bi bi-shop" data-toggle="tooltip" title="තොග මිල"></i></sup></th>
</tr>
</thead>
</table>
<div class="col-md-12 p-3 mb-2 bg-light text-dark"><small><em>* මිල ගණන් රුපියල් වලින් දක්වා ඇත</em></small></div>
<footer class="container">
<p class="text-center p-3 mb-2">හුදී ජනයාගේ දැනගැනීම පිණිස සාදන ලදී <img
src="https://cdn.countryflags.com/thumbs/sri-lanka/flag-heart-3d-250.png" width="16px">
[<a target="_blank" href="http://www.dinamina.lk/">දත්ත මූලාශ්රය</a>]</p>
</footer>
</main>
</body>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs4/dt-1.10.20/datatables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.20/js/dataTables.bootstrap4.min.js"></script>
<script type="text/javascript"
src="https://cdn.datatables.net/fixedheader/3.1.6/js/dataTables.fixedHeader.min.js"></script>
<script type="text/javascript"
src="https://cdn.datatables.net/responsive/2.2.3/js/dataTables.responsive.min.js"></script>
<script type="text/javascript"
src="https://cdn.datatables.net/responsive/2.2.3/js/responsive.bootstrap.min.js"></script>
<script>
$(document).ready(function () {
var groupColumn = 1;
var table = $('#example').DataTable({
"ajax": {url: "data.json", dataSrc: ""},
"crossDomain": true,
"dataType": "json",
"responsive": true,
"fixedHeader": true,
"paging": false,
"info": false,
"order": [[2, 'asc'], [3, 'asc']],
"language": {
"searchPlaceholder": "සොයන්න",
"search": "",
},
"bPaginate": false,
"columnDefs": [
{"visible": false, "targets": groupColumn},
{"visible": false, "targets": 2},
{"visible": false, "targets": 3},
{"targets": "_all", "orderable": false}
],
"columns": [
{"data": "name", "defaultContent": "N/A"},
{"data": "type", "defaultContent": "N/A"},
{"data": "type_position", "defaultContent": "N/A"},
{"data": "item_position", "defaultContent": "N/A"},
{"data": "ec_1", "defaultContent": "N/A"},
{"data": "ec_2", "defaultContent": "N/A"},
{"data": "ec_3", "defaultContent": "N/A"},
{"data": "ec_4", "defaultContent": "N/A"},
{"data": "ec_5", "defaultContent": "N/A"},
{"data": "ec_6", "defaultContent": "N/A"},
{"data": "ec_7", "defaultContent": "N/A"},
],
initComplete: function () {
this.api().columns([1]).every(function () {
var column = this;
var select = $('<select class="custom-select custom-select-sm"><option value="">සියල්ල</option></select>')
.appendTo($("#example thead tr:eq(0) th").eq(0).empty())
.on('change', function () {
var val = $.fn.dataTable.util.escapeRegex(
$(this).val()
);
column
.search(val ? '^' + val + '$' : '', true, false)
.draw();
});
column.data().unique().each(function (d, j) {
select.append('<option value="' + d + '">' + d + '</option>');
});
});
$("#example_wrapper > .row:eq(0) > div:eq(0)").html('<ul class="list-inline">\n' +
' <li class="list-inline-item"><small><i class="bi bi-bag"></i> - සිල්ලර මිල</small></li>\n' +
' <li class="list-inline-item"><small><i class="bi bi-shop"></i> - තොග මිල</small></li>\n' +
'</ul>'
);
},
"drawCallback": function (settings) {
var api = this.api();
var rows = api.rows({page: 'current'}).nodes();
var last = null;
api.column(groupColumn, {page: 'current'}).data().each(function (group, i) {
if (last !== group) {
$(rows).eq(i).before(
'<tr class="group text-dark"><td colspan="8" class="font-weight-bold text-center">' + group + '</td></tr>'
);
last = group;
}
});
}
});
$('#example thead').on('keyup', ".column_search", function () {
table
.column($(this).parent().index())
.search(this.value)
.draw();
});
});
</script>
</html>