Orden de js y FIX: cambio a estado avisos
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user