Separacion de js a archivos por pagina

This commit is contained in:
2020-06-17 23:16:29 -04:00
parent 429e4187fb
commit 5967a6c931
13 changed files with 363 additions and 347 deletions

View File

@ -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