Orden de js y FIX: cambio a estado avisos

This commit is contained in:
2020-05-31 13:31:23 -04:00
parent 84e6808883
commit 2d2eccb600
9 changed files with 435 additions and 363 deletions

View File

@ -28,17 +28,22 @@
@push('scripts')
<script type="text/javascript">
var max_width = 0
var resumen = {
max_width: 0,
setup: () => {
$('#resumen .circular.segment').each(function(i, el) {
var width = $(this).css('width')
var w = parseInt(width)
if (w > resumen.max_width) {
resumen.max_width = w
}
$(this).css('width', resumen.max_width + 'px')
$(this).css('height', resumen.max_width + 'px')
})
}
}
$(document).ready(function() {
$('#resumen .circular.segment').each(function(i, el) {
var width = $(this).css('width')
var w = parseInt(width)
if (w > max_width) {
max_width = w
}
$(this).css('width', max_width + 'px')
$(this).css('height', max_width + 'px')
})
resumen.setup()
})
</script>
@endpush