2021-06-13 03:56:27 +00:00
|
|
|
<!-- Bootstrap & Jquery App -->
|
|
|
|
<script type="text/javascript" src="{{ asset('//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js') }}" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
|
|
|
|
<script type="text/javascript" src="{{ asset('//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js') }}" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
|
|
|
|
|
|
|
|
<!-- JavaScript Bundle with Popper -->
|
2021-06-24 10:16:37 +00:00
|
|
|
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
|
2021-06-13 03:56:27 +00:00
|
|
|
|
2021-06-26 14:34:15 +00:00
|
|
|
<!-- Additional Utilities -->
|
|
|
|
<script src="{{ asset('plugin/bootstrap3-typeahead/bootstrap3-typeahead.min.js') }}"></script>
|
|
|
|
|
2021-06-24 10:16:37 +00:00
|
|
|
<script type="text/javascript">
|
2021-06-13 03:56:27 +00:00
|
|
|
// Example starter JavaScript for disabling form submissions if there are invalid fields
|
|
|
|
(function () {
|
|
|
|
'use strict'
|
|
|
|
|
2021-06-20 13:03:20 +00:00
|
|
|
// Our CSRF token to each interaction
|
|
|
|
$.ajaxSetup({
|
|
|
|
headers: {
|
|
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-06-13 03:56:27 +00:00
|
|
|
// Fetch all the forms we want to apply custom Bootstrap validation styles to
|
|
|
|
var forms = document.querySelectorAll('.needs-validation')
|
|
|
|
|
|
|
|
// Loop over them and prevent submission
|
|
|
|
Array.prototype.slice.call(forms)
|
|
|
|
.forEach(function (form) {
|
|
|
|
form.addEventListener('submit', function (event) {
|
|
|
|
if (!form.checkValidity()) {
|
|
|
|
event.preventDefault()
|
|
|
|
event.stopPropagation()
|
|
|
|
}
|
|
|
|
|
|
|
|
form.classList.add('was-validated')
|
|
|
|
}, false)
|
2021-07-01 11:56:55 +00:00
|
|
|
});
|
2021-06-13 03:56:27 +00:00
|
|
|
})()
|
|
|
|
</script>
|