Separacion de js a archivos por pagina
This commit is contained in:
@ -32,24 +32,20 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#formulario_contacto').submit(function(e) {
|
||||
e.preventDefault()
|
||||
@push('readyjs')
|
||||
$('#formulario_contacto').submit(function(e) {
|
||||
e.preventDefault()
|
||||
|
||||
var nombre = $(this).find("[name='nombre']").val()
|
||||
var telefono = $(this).find("[name='telefono']").val()
|
||||
var email = $(this).find("[name='email']").val()
|
||||
var mensaje = $(this).find("[name='mensaje']").val()
|
||||
var nombre = $(this).find("[name='nombre']").val()
|
||||
var telefono = $(this).find("[name='telefono']").val()
|
||||
var email = $(this).find("[name='email']").val()
|
||||
var mensaje = $(this).find("[name='mensaje']").val()
|
||||
|
||||
$.post('{{$urls->base}}/contacto', {nombre: nombre, telefono: telefono, email: email, mensaje: mensaje}, function(data) {
|
||||
console.debug(data)
|
||||
}, 'json')
|
||||
$.post('{{$urls->base}}/contacto', {nombre: nombre, telefono: telefono, email: email, mensaje: mensaje}, function(data) {
|
||||
console.debug(data)
|
||||
}, 'json')
|
||||
|
||||
return false
|
||||
})
|
||||
$('#map').embed()
|
||||
})
|
||||
</script>
|
||||
return false
|
||||
})
|
||||
$('#map').embed()
|
||||
@endpush
|
||||
|
Reference in New Issue
Block a user