-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpes.html
280 lines (273 loc) · 19.7 KB
/
pes.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Precios de Combustibles - Argentina</title>
<!-- 1. Add jQuery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!-- CSS only -->
<link type="text/css" rel="stylesheet" href="./CSS/style.css">
<link type="text/css" rel="stylesheet" href="./CSS/map.css">
<!-- 2. Use Bootstrap if you like -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<!-- Include the Bootstrap Table CSS for the table -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.12.1/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.12.1/datatables.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-X8QTME3FCg1DLb58++lPvsjbQoCT9bp3MsUU3grbIny/3ZwUJkRNO8NPW6zqzuW9" crossorigin="anonymous">
<link href="https://cdn.materialdesignicons.com/1.3.41/css/materialdesignicons.min.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous">
<!-- Map CSS -->
<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-sA+zWATbFveLLNqWO2gtiw3HL/lh1giY/Inf1BJ0z14=" crossorigin="" /> -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha256-kLaT2GOSpHechhsozzB+flnD+zUyjE2LlfWPgU04xyI=" crossorigin="" />
<link href='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/leaflet.fullscreen.css' rel='stylesheet' />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.css" />
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VVTEL3DKVL"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-VVTEL3DKVL');
</script>
<body>
<div class="page-container">
<nav class="navbar navbar-expand-lg navbar-dark bg-primary sticky-top">
<div class="container container-fluid">
<a class="navbar-brand" href="./index.html">Inicio</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./gas.html">Gas Natural</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="./pes.html">Combustibles</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="main-header">
<div class="nav">
<div class="header container titles">
<h2 class="header-title">Precios en Surtidor - Actualizado (Mar/23)</h2>
<h5 class="header-subtitle">Precios vigentes de naftas, gas oil y GNC, según declaraciones realizadas por EESS (Resolución 314/2016)</h5>
</div>
</div>
<div class="progress" style="height: 4px;">
<div class="progress-bar" role="progressbar" style="width: 1%;" aria-valuenow="1" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="main-form container">
<div class="form">
<div class="selector item">
<h5>Producto</h5>
<select id="producto" class="form-select" aria-label="Producto">
<!-- <option value="all">Todos</option> -->
<option value="Gas Oil Grado 2">Gas Oil Grado 2</option>
<option value="Gas Oil Grado 3">Gas Oil Grado 3</option>
<option value="GNC">GNC</option>
<option value="Nafta (premium) de más de 95 Ron">Nafta (premium)</option>
<option value="Nafta (súper) entre 92 y 95 Ron">Nafta (súper)</option>
</select>
</div>
<div class="selector item">
<h5>Marca</h5>
<select id="empresabandera" class="form-select" aria-label="Empresa">
<option value="all" selected>Todas</option>
<option value="AGIRA">AGIRA</option>
<option value="AXION">AXION</option>
<option value="BLANCA">BLANCA</option>
<option value="CAMUZZI GAS DEL SUR">CAMUZZI GAS DEL SUR</option>
<option value="DAPSA S.A.">DAPSA S.A.</option>
<option value="ESSO PETROLERA ARGENTINA S.R.L">ESSO PETROLERA ARGENTINA S.R.L</option>
<option value="GULF">GULF</option>
<option value="OIL COMBUSTIBLES S.A.">OIL COMBUSTIBLES S.A.</option>
<option value="PETROBRAS">PETROBRAS</option>
<option value="PUMA">PUMA</option>
<option value="REFINOR">REFINOR</option>
<option value="SHELL C.A.P.S.A.">SHELL C.A.P.S.A.</option>
<option value="SOL PETROLEO">SOL PETROLEO</option>
<option value="VOY">VOY</option>
<option value="YPF">YPF</option>
</select>
</div>
<div class="selector item">
<h5>Provincia</h6>
<select id="provincia" class="form-select" aria-label="Provincia">
<option selected value="all">Todas</option>
<option value="BUENOS AIRES">BUENOS AIRES</option>
<option value="CAPITAL FEDERAL">CAPITAL FEDERAL</option>
<option value="CATAMARCA">CATAMARCA</option>
<option value="CHACO">CHACO</option>
<option value="CHUBUT">CHUBUT</option>
<option value="CORDOBA">CORDOBA</option>
<option value="CORRIENTES">CORRIENTES</option>
<option value="ENTRE RIOS">ENTRE RIOS</option>
<option value="FORMOSA">FORMOSA</option>
<option value="JUJUY">JUJUY</option>
<option value="LA PAMPA">LA PAMPA</option>
<option value="LA RIOJA">LA RIOJA</option>
<option value="MENDOZA">MENDOZA</option>
<option value="MISIONES">MISIONES</option>
<option value="NEUQUEN">NEUQUEN</option>
<option value="RIO NEGRO">RIO NEGRO</option>
<option value="SALTA">SALTA</option>
<option value="SAN JUAN">SAN JUAN</option>
<option value="SAN LUIS">SAN LUIS</option>
<option value="SANTA CRUZ">SANTA CRUZ</option>
<option value="SANTA FE">SANTA FE</option>
<option value="SANTIAGO DEL ESTERO">SANTIAGO DEL ESTERO</option>
<option value="TIERRA DEL FUEGO">TIERRA DEL FUEGO</option>
<option value="TUCUMAN">TUCUMAN</option>
</select>
</div>
<div class="selector item">
<h5>Localidad</h5>
<select id="localidad" class="form-select" aria-label="Localidad">
<option value="all" selected>Todas</option>
</select>
</div>
<div class="icons item">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="flex-switch" data-bs-toggle="tooltip" data-bs-placement="top" title="Local / Remoto">
</div>
<i id="reset" class="bi bi-arrow-repeat" style="font-size: 2rem;" data-bs-toggle="tooltip" data-bs-placement="top" title="Limpiar filtros"></i>
</div>
</div>
</div>
<div class="main container">
<div id="spinner-div" class="d-flex justify-content-center">
<div id="spinner" class="spinner-border text-secondary hide" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>
<div id="table-div" class="show">
<table id="data-table" class="table hover compact">
<thead class="table-group-divider table-light"></thead>
</table>
</div>
</div>
<!-- Vertically centered modal -->
<div class="modal fade" id="mapModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-xl modal-fullscreen-lg-down">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Mapa</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="color-scale-main-container">
<div class="indicators">
</div>
<div class="color-scale-container">
<div class="indicator max-indicator"></div>
<div><span class="main-indicator max-scale-text"></span></div>
<div class="color-scale"><span class="color-scale-text">Precio ($/lt)</span></div>
<div><span class="main-indicator min-scale-text"></span></div>
<div class="indicator min-indicator"></div>
</div>
</div>
<div class="map-container">
<div id="myMap"></div>
</div>
</div>
<div class="modal-footer">
<!-- <button type="button" class="btn btn-danger">Delete markers</button> -->
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Error Data Modal -->
<div class="modal fade border-danger mb-3" id="errorModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-4 text-danger" id="exampleModalLabel">Error al obtener los datos!</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body error-modal-body">
<p>
Se produjo un error al intentar obtener los datos del servidor. Se cargarán los datos locales.
</p>
<hr>
<details>
<summary class="h5">Detalle:</summary>
<samp class="error-message"></samp>
</details>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cerrar</button>
<button type="button" class="btn btn-success" data-bs-dismiss="modal">Ok</button>
</div>
</div>
</div>
</div>
<footer class="footer footer-expand-lg">
<div class="footer-text">
<span><b>© <span id="year">2022</span> </b> by <b>josemqu</b> -
<a class="icon" href="https://github.com/jmquintana" target="_blank"><i class="bi bi-github"></i></a>
<a class="icon" href="mailto:[email protected]?Subject=hello!"><i class="bi bi-envelope"></i></a>
</span>
</div>
<div class="divider">
<svg class="waves" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1600 264.292" preserveAspectRatio="none" shape-rendering="auto">
<path opacity=".9" fill-rule="evenodd" clip-rule="evenodd" fill="#A0C1F7" d="M1129.263,43.549C998.916,54.132,838.062,142.227,800,139.454 C545.701,151.526,485.448,30.836,328.863,43.549C198.516,54.132,38.062,142.227,0,139.454v124.838h800.4h800.4V139.454 C1385.144,135.677,1285.849,30.836,1129.263,43.549z"></path>
</svg>
<svg class="waves w2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1600 264.292" preserveAspectRatio="none" shape-rendering="auto">
<path opacity=".8" fill-rule="evenodd" clip-rule="evenodd" fill="#ACF2F2" d="M1518.024 147.062c-224.019 0-323.801-108.959-483.256-96.014-89.51 7.267-174 60.06-234.368 84.32-27.82 7.448-55.764 11.693-82.776 11.693-224.02 0-323.801-108.959-483.256-96.014-89.51 7.267-174 60.06-234.368 84.32V264.29h1600.8V135.369c-27.82 7.449-55.765 11.693-82.776 11.693z"></path>
</svg>
<svg class="waves w3" fill="url(#my-cool-gradient) #E8EDF5;" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 1600 264.292" preserveAspectRatio="none" shape-rendering="auto">
<path opacity=".9" fill-rule="evenodd" clip-rule="evenodd" d="M1539.579 165.792c-207.72 0-300.242-101-448.095-89-114.831 9.32-212.341 64.442-291.083 81.959-20.552 4.527-41.214 7.041-61.221 7.041-207.72 0-300.242-101-448.095-89C176.253 86.112 78.743 141.234 0 158.751v105.541h1600.8V158.751c-20.552 4.527-41.214 7.041-61.221 7.041z"></path>
</svg>
<svg class="waves w4" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 1865.201 5669.29 1116.842" enable-background="new 0 1865.201 5669.29 1116.842" xml:space="preserve">
<path fill="none" opacity="0.08" stroke="#213e7d" stroke-width="6" stroke-miterlimit="10" d="M0,2915.056 c484.319,0,916.241-737.418,1397.321-737.418c489.179,0,961.104,737.418,1430.845,737.418 c484.319,0,916.241-737.418,1400.561-737.418s956.244,737.418,1440.563,737.418"></path>
</svg>
<svg class="waves w5" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 1865.201 5669.29 1116.842" enable-background="new 0 1865.201 5669.29 1116.842" xml:space="preserve">
<path fill="none" opacity="0.1" stroke="#213e7d" stroke-width="6" stroke-miterlimit="10" d="M0,2915.056 c484.319,0,936.243-982.869,1417.323-982.869c489.179,0,941.102,982.869,1410.844,982.869 c484.319,0,936.243-982.869,1420.562-982.869c484.319,0,936.243,982.869,1420.563,982.869"></path>
</svg>
</div>
</footer>
</div>
<svg style="width:0;height:0;position:absolute;" aria-hidden="true" focusable="false">
<linearGradient id="my-cool-gradient" x2="0" y2="1">
<stop offset="0%" stop-color="#FFFFFF" />
<stop offset="50%" stop-color="#E9ECEF" />
<stop offset="100%" stop-color="#E9ECEF" />
</linearGradient>
</svg>
</body>
<script src="https://code.jquery.com/jquery-3.6.1.js" integrity="sha256-3zlB5s2uwoUzrXK3BT7AX3FyvojsraNFxCc2vC/7pNI=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.12.1/js/jquery.dataTables.js" defer></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js" defer></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js" defer></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/buttons/1.5.6/js/buttons.print.min.js" defer></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/v/bs4/jszip-2.5.0/dt-1.10.21/b-1.6.2/b-html5-1.6.2/datatables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.12.1/datatables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js" defer></script>
<script src="https://cdn.datatables.net/plug-ins/1.10.21/dataRender/datetime.js" charset="utf8"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/buttons.html5.styles.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/buttons.html5.styles.templates.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-min.js" integrity="sha512-2V49R8ndaagCOnwmj8QnbT1Gz/rie17UouD9Re5WxbzRVUGoftCu5IuqqtAM9+UC3fwfHCSJR1hkzNQh/2wdtg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- <script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-NDI0K41gVbWqfkkaHj15IzU7PtMoelkzyKp8TOaFQ3s=" crossorigin=""></script> -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-WBkoXOwTeyKclOHuWtc+i2uENFpDZ9YPdf5Hf+D7ewM=" crossorigin=""></script>
<script src='https://api.mapbox.com/mapbox.js/plugins/leaflet-fullscreen/v1.0.1/Leaflet.fullscreen.min.js'></script>
<script src="./JS/leaflet/Leaflet.Quadtree.js"></script>
<script src="https://cdn.jsdelivr.net/npm/leaflet.locatecontrol/dist/L.Control.Locate.min.js" charset="utf-8"></script>
<script type="text/javascript" src="./JS/modules/storage.js"></script>
<script type="text/javascript" src="./JS/pes.js"></script>
<script type="text/javascript" src="./JS/api.js" defer></script>
<script type="text/javascript" src="./JS/map.js"></script>
</html>