-
-
- @for ($i = 0; $i < min(10, count($clientes)); $i += 2)
-
- {!!$clientes[$i]!!}
-
- @endfor
-
-
- @for ($i = 1; $i < min(10, count($clientes)); $i += 2)
-
- {!!$clientes[$i]!!}
-
- @endfor
-
+
-
-
+
+
+
+
+ @for ($i = 0; $i < min(12, count($clientes)); $i += 2)
+
+ {!!$clientes[$i]!!}
+
+ @endfor
+
+
+ @for ($i = 1; $i < min(12, count($clientes)); $i += 2)
+
+ {!!$clientes[$i]!!}
+
+ @endfor
+
+
+
@@ -38,34 +42,36 @@
@endforeach
]
var current = 0
+ var rows = 2
+ var cols = 6
function decreaseClientes() {
$('#img_clientes').find('.row').find('.column:last-child').remove()
- current -= 2
- if (current < -8) {
- current = clientes.length - 10
+ current -= rows
+ if (current < - cols * rows) {
+ current = clientes.length - (cols - 1) * rows
}
n = current
if (n < 0) {
n = clientes.length + n
}
$('#img_clientes').find('.row:first-child').prepend(
- $('
').attr('class', 'three wide column').append(clientes[n])
+ $('
').attr('class', 'five wide tablet two wide computer column').append(clientes[n])
)
$('#img_clientes').find('.row:last-child').prepend(
- $('
').attr('class', 'three wide column').append(clientes[n + 1])
+ $('
').attr('class', 'five wide tablet two wide computer column').append(clientes[n + 1])
)
}
function increaseClientes() {
$('#img_clientes').find('.row').find('.column:first-child').remove()
current += 2
- if (current > clientes.length - 10) {
- current = -8
+ if (current > clientes.length - cols * rows) {
+ current = - (cols - 1) * rows
}
$('#img_clientes').find('.row:first-child').append(
- $('
').attr('class', 'three wide column').append(clientes[current + 8])
+ $('
').attr('class', 'five wide tablet two wide computer column').append(clientes[current + (cols - 1) * rows])
)
$('#img_clientes').find('.row:last-child').append(
- $('
').attr('class', 'three wide column').append(clientes[current + 9])
+ $('
').attr('class', 'five wide tablet two wide computer column').append(clientes[current + cols * rows - 1])
)
}
$(document).ready(function() {
diff --git a/resources/views/home/contacto.blade.php b/resources/views/home/contacto.blade.php
index ea4a895..0d5ac5e 100644
--- a/resources/views/home/contacto.blade.php
+++ b/resources/views/home/contacto.blade.php
@@ -8,7 +8,7 @@