-
Notifications
You must be signed in to change notification settings - Fork 1
/
comprar.php
659 lines (538 loc) · 43.2 KB
/
comprar.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
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
<!doctype html>
<html lang="en" ng-app="appRtc">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="js/angular.min.js"></script>
<script src="js/rtc.js?5"></script>
<script src="js/filters.js?5"></script>
<script src="js/services.js?5"></script>
<script src="js/controllers.js?5"></script> <script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="assets/vendor/bootstrap/css/bootstrap.min.css">
<link href="assets/vendor/fonts/circular-std/style.css" rel="stylesheet">
<link rel="stylesheet" href="assets/libs/css/style.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link rel="stylesheet" href="assets/vendor/charts/chartist-bundle/chartist.css">
<link rel="stylesheet" href="assets/vendor/charts/morris-bundle/morris.css">
<link rel="stylesheet" href="assets/vendor/fonts/material-design-iconic-font/css/materialdesignicons.min.css">
<link rel="stylesheet" href="assets/vendor/charts/c3charts/c3.css">
<link rel="stylesheet" href="assets/vendor/fonts/flag-icon-css/flag-icon.min.css">
<title>RTC (Reltrab Cliente) - WEB</title>
<style>
a:hover {
color: #4aaf51;
}
.product-sidebar-widget-title .fas {
transition: .3s transform ease-in-out;
}
</style>
</head>
<body ng-controller="crtCompraParceiros">
<!-- ============================================================== -->
<!-- main wrapper -->
<!-- ============================================================== -->
<div class="dashboard-main-wrapper">
<!-- ============================================================== -->
<!-- navbar -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- end navbar -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- left sidebar -->
<!-- ============================================================== -->
<?php
$filtro = "ng-model='produtos.filtro[0].valor' ng-confirm='produtos.attList()' ng-if='!carregando_compra'";
include("menu.php");
$b = Sistema::getBanners(new ConnectionFactory());
$banners_frontais = array();
$banners_laterais = array();
if (isset($b[0])) {
$banners_frontais = $b[0];
}
if (isset($b[1])) {
$banners_laterais = $b[1];
}
?>
<!-- ============================================================== -->
<!-- end left sidebar -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- wrapper -->
<!-- ============================================================== -->
<div class="dashboard-wrapper">
<div class="dashboard-ecommerce">
<div class="container-fluid dashboard-content ">
<!-- ============================================================== -->
<!-- pageheader -->
<!-- ============================================================== -->
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div class="page-header">
<h2 class="pageheader-title">Comprar</h2>
<p class="pageheader-text">Nulla euismod urna eros, sit amet scelerisque torton lectus vel mauris facilisis faucibus at enim quis massa lobortis rutrum.</p>
<div class="page-breadcrumb">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#" class="breadcrumb-link">RTC</a></li>
<li class="breadcrumb-item active" aria-current="page">Comprar</li>
</ol>
</nav>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- end pageheader -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- banner -->
<!-- ============================================================== -->
<div class="row">
<div class="col-xl-9 col-lg-8 col-md-8 col-sm-12 col-12">
<div class="row">
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<div id="carouselExampleIndicators" class="product-carousel carousel slide m-b-40" data-ride="carousel">
<ol class="carousel-indicators">
<!--
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active" style="cursor: pointer;"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1" style="cursor: pointer;"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2" style="cursor: pointer;"></li>
-->
<?php
$i = 0; //manter sempre proximo numero inteiro apos o <li data-slide-to> anterior
for ($j = 0; $j < count($banners_frontais); $j++) {
if($j + $i==0){?>
<li data-target="#carouselExampleIndicators" data-slide-to="<?php echo ($j + $i); ?>" class="active" style="cursor: pointer;"></li>
<?php
}else{
?>
<li data-target="#carouselExampleIndicators" data-slide-to="<?php echo ($j + $i); ?>" style="cursor: pointer;"></li>
<?php
}
?>
<?php
}
?>
</ol>
<div class="carousel-inner">
<!--
<div class="carousel-item active">
<a href="http://agrofauna.com.br/mail/fraude_boletos/email_fraude_boletos_bancarios.html">
<img class="d-block w-100" src="assets/images/banner_fraude_em_boletos_784x295.jpg" alt="First slide">
</a>
</div>
<div class="carousel-item">
<a href="http://agrofauna.com.br/apresentacao_rtc_v6.pdf" target="_blank">
<img class="d-block w-100" src="assets/images/banner_fraude_em_boletos_784x295.jpg" alt="First slide">
</a>
</div>
-->
<?php
for ($j = 0; $j < count($banners_frontais); $j++) {
if($j + $i==0){?>
<div class="carousel-item active" style="height:22vw">
<?php echo $banners_frontais[$j]; ?>
</div>
<?php
}else{
?>
<div class="carousel-item" style="height:22vw">
<?php echo $banners_frontais[$j]; ?>
</div>
<?php
}
?>
<?php
}
?>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span> </a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span> </a>
</div>
</div>
<!-- ============================================================== -->
<!-- end banner -->
<!-- ============================================================== -->
<!-- texto resultado -->
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12" ng-if="!carregando_compra" ng-repeat="produto in dividir(produtos.elementos, 2)[0]">
<div class="product-thumbnail">
<div class="product-img-head">
<div class="product-img">
<img src="{{produto.imagem}}" id="img_{{produto.id}}" alt="" class="img-fluid" onload="fechaLoad(this)" style="display: none">
<br>
<span id="sp_{{produto.id}}" class="dashboard-spinner spinner-success spinner-sm" style="width:100px;height:100px;margin-bottom:95px"></span>
</div>
<div class="ribbons" ng-if="produto.ofertas > 0"></div>
<div class="ribbons-text" ng-if="produto.ofertas > 0" style="margin-left: 5px;">Oferta</div>
</div>
<div class="product-content">
<div class="product-content-head">
<h3 class="product-title">{{produto.nome}}</h3>
<hr>
<table class="table table-striped" ng-if="tv(produto)">
<thead>
<th>
{{gp(produto).logistica === null ? gp(produto).empresa.nome : gp(produto).logistica.nome}}
</th>
<th ng-if="produto.produtos.length >= 2">
Outros Locais
</th>
</thead>
<tr ng-repeat="v in gp(produto).validades">
<td style="text-align: center">
<div ng-click="addCarrinho(gp(produto), v)" style="cursor:pointer;font-weight: bold;padding:10px;width:100%" class="btn {{v.oferta?'btn-success':'btn-warning'}}">
<cronometro ng-if="v.oferta" model="v.restante"></cronometro>
<span ng-if="v.validade !== 1000">
{{v.validade| data_st}}
</span>
<span ng-if="v.validade === 1000">
------
</span>
<br>
<strong style="text-decoration: underline;font-size:18px">R$ {{v.valor.toFixed(2).split('.').join(',')}}</strong>
</div>
</td>
<td ng-if="produto.produtos.length >= 2" style="text-align:center">
<div ng-click="maisLocais(produto)" style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%;background-color: steelblue;color:#FFFFFF" class="btn btn-outline-light">
<i class="fas fa-map-pin fa-2x"></i>
</div>
</td>
</tr>
<tr ng-if="gp(produto).validades.length === 0">
<td style="text-align:center">
<div style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%" class="btn btn-dark">
<i class="fas fa-clock"></i>   Indisponivel para compra
</div>
</td>
<td ng-if="produto.produtos.length >= 2" style="text-align:center">
<div ng-click="maisLocais(produto)" style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%;background-color: steelblue;color:#FFFFFF" ng-click="maisLocais(produto)" class="btn btn-outline-light">
<i class="fas fa-map-pin fa-2x"></i>
</div>
</td>
</tr>
</table>
<div class="progress mb-1" ng-if="!tv(produto)" style="height:40px">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 60%;height: 40px"></div>
</div>
<hr>
<div style="color:SteelBlue;font-size:18px;font-weight: bold">
<i class="fas fa-home"></i>  {{produto.empresa.nome}}
</div>
</div>
<div class="product-quant" style="font-size:15px;font-weight: bold;font-style: italic;color:#000000">{{produto.grade.gr[0]}} por caixa</div>
</div>
<div class="product-btn text-center">
</div>
</div>
</div>
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12" ng-if="carregando_compra" ng-repeat="l in loaders">
<div class="product-thumbnail" style="height:500px;border:1px dashed;border:3px solid #DDDDDD;border-radius:5px;border-bottom: 250px solid #F2F2F2">
<div class="product-img-head">
<div class="product-img">
</div>
</div>
<div class="product-content">
<div class="product-content-head">
<h3 class="product-title"></h3>
</div>
</div>
<div class="product-btn text-center">
<span class="dashboard-spinner spinner-success spinner-lg" style="width:100px;height:100px;margin-bottom:95px"></span>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- banner -->
<!-- ============================================================== -->
<div class="col-xl-4 col-lg-6 col-md-12 col-sm-12 col-12" ng-if="!carregando_compra" ng-repeat="produto in dividir(produtos.elementos, 2)[1]">
<div class="product-thumbnail">
<div class="product-img-head">
<div class="product-img">
<img src="{{produto.imagem}}" id="img_{{produto.id}}" alt="" class="img-fluid" onload="fechaLoad(this)" style="display: none">
<br>
<span id="sp_{{produto.id}}" class="dashboard-spinner spinner-success spinner-sm" style="width:100px;height:100px;margin-bottom:95px"></span>
</div>
<div class="ribbons" ng-if="produto.ofertas > 0"></div>
<div class="ribbons-text" ng-if="produto.ofertas > 0" style="margin-left: 5px;">Oferta</div>
</div>
<div class="product-content">
<div class="product-content-head">
<h3 class="product-title">{{produto.nome}}</h3>
<hr>
<table class="table table-striped" ng-if="tv(produto)">
<thead>
<th>
{{gp(produto).logistica === null ? gp(produto).empresa.nome : gp(produto).logistica.nome}}
</th>
<th ng-if="produto.produtos.length >= 2">
Outros Locais
</th>
</thead>
<tr ng-repeat="v in gp(produto).validades">
<td style="text-align: center">
<div ng-click="addCarrinho(gp(produto), v)" style="cursor:pointer;font-weight: bold;padding:10px;width:100%" class="btn {{v.oferta?'btn-success':'btn-warning'}}">
<cronometro ng-if="v.oferta" model="v.restante"></cronometro>
<span ng-if="v.validade !== 1000">
{{v.validade| data_st}}
</span>
<span ng-if="v.validade === 1000">
------
</span>
<br>
<strong style="text-decoration: underline;font-size:18px">R$ {{v.valor.toFixed(2).split('.').join(',')}}</strong>
</div>
</td>
<td ng-if="produto.produtos.length >= 2" style="text-align:center">
<div ng-click="maisLocais(produto)" style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%;background-color: steelblue;color:#FFFFFF" class="btn btn-outline-light">
<i class="fas fa-map-pin fa-2x"></i>
</div>
</td>
</tr>
<tr ng-if="gp(produto).validades.length === 0">
<td style="text-align:center">
<div style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%" class="btn btn-dark">
<i class="fas fa-clock"></i>   Indisponivel para compra
</div>
</td>
<td ng-if="produto.produtos.length >= 2" style="text-align:center">
<div ng-click="maisLocais(produto)" style="cursor:pointer;height:83px;font-weight: bold;padding:10px;width:100%;background-color: steelblue;color:#FFFFFF" ng-click="maisLocais(produto)" class="btn btn-outline-light">
<i class="fas fa-map-pin fa-2x"></i>
</div>
</td>
</tr>
</table>
<div class="progress mb-1" ng-if="!tv(produto)" style="height:40px">
<div class="progress-bar progress-bar-striped progress-bar-animated bg-success" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 60%;height: 40px"></div>
</div>
<hr>
<div style="color:SteelBlue;font-size:18px;font-weight: bold">
<i class="fas fa-home"></i>  {{produto.empresa.nome}}
</div>
</div>
<div class="product-quant" style="font-size:15px;font-weight: bold;font-style: italic;color:#000000">{{produto.grade.gr[0]}} por caixa</div>
</div>
<div class="product-btn text-center">
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- paginação -->
<!-- ============================================================== -->
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item"><button class="page-link" ng-click="produtos.prev()">Anterior</button></li>
<li class="page-item" ng-repeat="p in produtos.paginas"><button class="page-link {{p.isAtual?'btn btn-primary':''}}" ng-click="p.ir()">{{p.numero + 1}}</button></li>
<li class="page-item"><button class="page-link" ng-click="produtos.next()">Proximo</button></li>
</ul>
</nav>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- sidebar BANNER + FILTRO -->
<!-- ============================================================== -->
<div class="col-xl-3 col-lg-4 col-md-4 col-sm-12 col-12">
<div class="product-sidebar m-b-30" ng-if="!carregando_compra">
<div class="product-sidebar-widget" ng-repeat="filtro in produtos.filtro">
<h4 ng-if="filtro._classe === 'FiltroTextual'" class="product-sidebar-widget-title">Busca por filtro</h4>
<h4 ng-if="filtro._classe === 'FiltroOpcional'" class="product-sidebar-widget-title">
<a class="" data-toggle="collapse" href="#collapseExample_{{filtro.id}}" role="button" aria-expanded="false" aria-controls="collapseExample_{{filtro.id}}">
{{filtro.nome}}<span class="fas ml-2 fa-angle-down"></span>
</a>
</h4>
<div class="form-group" ng-if="filtro._classe === 'FiltroTextual'">
<div class="icon-addon addon-lg">
<input class="form-control form-control-lg" ng-model="filtro.valor" ng-confirm="produtos.attList()" type="search" placeholder="{{filtro.nome}}" aria-label="Search">
<label for="email" class="fa fa-search" rel="tooltip" title="email"></label>
</div>
</div>
<div ng-if="filtro._classe === 'FiltroOpcional'" class="collapse" id="collapseExample_{{filtro.id}}">
<div class="custom-control custom-checkbox" ng-repeat="opcao in filtro.opcoes" style="{{opcao.quantidade===0?'text-decoration:line-through;color:DarkRed':''}}">
<a ng-if="opcao.selecionada === 0" ng-click="addLevel(opcao, filtro)" style="width:auto;height:20px;padding:3px;padding-top:0px;padding-right:0px;cursor:pointer"><i class="fa fa-square"></i>  {{opcao.nome}} <strong> {{opcao.quantidade > 0 ? '(' + opcao.quantidade + ')' : ''}}</a>
<a ng-if="opcao.selecionada === 1" ng-click="addLevel(opcao, filtro)" style="width:auto;height:20px;padding:3px;padding-top:0px;padding-right:0px;cursor:pointer"><i class="fa fa-check"></i>  {{opcao.nome}} <strong> {{opcao.quantidade > 0 ? '(' + opcao.quantidade + ')' : ''}}</a>
</div>
<button type="button" class="btn btn-success" ng-click="resetarFiltro()"><i class="fas fa-certificate"></i>  Mostrar Todos Produtos</button>
</div>
</div>
<div class="product-sidebar-widget">
<button type="button" class="btn btn-outline-light" ng-click="resetarFiltro()">Resetar Filtro</button>
</div>
</div>
<div class="product-sidebar m-b-30" ng-if="carregando_compra" style="height:1200px;border:3px solid #DDDDDD;border-radius:5px">
<div class="product-sidebar-widget" style="text-align: center">
<span class="dashboard-spinner spinner-success spinner-sm " style="width:150px;height:150px;margin-top:95px"></span>
</div>
</div>
<!-- ============================================================== -->
<!-- MODAL validade produto -->
<!-- ============================================================== -->
<div class="modal fade" id="locaisProduto" tabindex="99" role="dialog" aria-labelledby="locaisProduto" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title m-t-10" id="exampleModalLongTitle"><i class="fas fa-box fa-3x"></i> Outros locais do produto {{produto.nome}}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<table class="table table-striped">
<thead>
<th>
Local
</th>
<th>
Validade
</th>
<th>
Preço (R$)
</th>
<th>
<i class="fas fa-plus-circle"></i>
</th>
</thead>
<tbody>
<tr ng-repeat="local in locais" style="{{local.validade.oferta?'color:Green !important':''}}">
<td>
{{(local.local.logistica !== null)?local.local.logistica.nome:local.local.empresa.nome}}
</td>
<td>
{{local.validade.validade| data_st}}
</td>
<td>
{{local.validade.valor}}
</td>
<td>
<button class="btn btn-success" style="padding:5px;width:100%" ng-click="addCarrinho(local.local, local.validade)">
<i class="fas fa-plus"></i>
</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- sidebar BANNER 300x250 -->
<!-- ============================================================== -->
<?php foreach ($banners_laterais as $key => $value) { ?>
<div class="">
<div class="" style="margin-bottom: 0px">
<div style="">
<?php echo $value; ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- footer -->
<!-- ============================================================== -->
<div class="row">
<div class="col-md-12">
<div class="copyright">
<p>Copyright © 2018 - Agro Fauna Tecnologia. Todos os direitos reservados.</p>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- end footer -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- end wrapper -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- end main wrapper -->
<!-- ============================================================== -->
<span style="position:absolute;z-index:999999" id="loading" class="dashboard-spinner spinner-success spinner-sm "></span>
<!-- jquery 3.3.1 -->
<script src="assets/vendor/jquery/jquery.mask.min.js"></script>
<script src="assets/libs/js/form-mask.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.js"></script>
<script src="assets/vendor/datatables/js/buttons.bootstrap4.min.js"></script>
<!-- slimscroll js -->
<script src="assets/vendor/slimscroll/jquery.slimscroll.js"></script>
<!-- main js -->
<script src="assets/libs/js/main-js.js"></script>
<!-- chart chartist js -->
<script src="assets/vendor/charts/chartist-bundle/chartist.min.js"></script>
<!-- sparkline js -->
<script src="assets/vendor/charts/sparkline/jquery.sparkline.js"></script>
<!-- morris js -->
<script src="assets/vendor/charts/morris-bundle/raphael.min.js"></script>
<script src="assets/vendor/charts/morris-bundle/morris.js"></script>
<!-- chart c3 js -->
<script src="assets/vendor/charts/c3charts/c3.min.js"></script>
<script src="assets/vendor/charts/c3charts/d3-5.4.0.min.js"></script>
<script src="assets/vendor/charts/c3charts/C3chartjs.js"></script>
<script src="assets/libs/js/dashboard-ecommerce.js"></script>
<!-- parsley js -->
<script src="assets/vendor/parsley/parsley.js"></script>
<!-- Optional JavaScript -->
<script>
function filtro(fi) {
$('#filtro').each(function () {
// Make sure the select element reflects the change (as setting the option doesn't always do this properly).
$(this).val(fi);
// Now use the Angular API's triggerHandler function to call the change.
angular.element($(this)).triggerHandler('change');
$(this).change();
var body = $("html, body");
body.stop().animate({scrollTop: 290}, 500, 'swing', function () {
});
})
}
var l = $('#loading');
l.hide();
var x = 0;
var y = 0;
$(document).mousemove(function (e) {
x = e.clientX;
y = e.clientY;
var s = $(this).scrollTop();
l.offset({top: (y + s), left: x});
})
var sh = false;
var it = null;
loading.show = function () {
l.show();
var s = $(document).scrollTop();
l.offset({top: (y + s), left: x});
}
loading.close = function () {
l.hide();
}
function fechaLoad(img) {
var im = $(img);
var num = im.attr('id').split('_')[1];
$("#sp_" + num).hide();
im.css('display', 'initial');
}
</script>
<script>
$('.collapse').on('shown.bs.collapse', function () {
/* $(this).parent().find(".fa-angle-down").removeClass("fa-angle-down").addClass("fa-angle-up");*/
$(this).parent().find(".fa-angle-down").css('transform', 'rotate(180deg)');
}).on('hidden.bs.collapse', function () {
/*$(this).parent().find(".fa-angle-up").removeClass("fa-angle-up").addClass("fa-angle-down");*/
$(this).parent().find(".fa-angle-down").css('transform', 'rotate(0deg)');
});
</script>
</body>
</html>