clrghouz/resources/views/layouts/partials/scripts.blade.php

45 lines
1.8 KiB
PHP
Raw Normal View History

2021-06-13 03:56:27 +00:00
<!-- Bootstrap & Jquery App -->
2021-11-13 06:00:08 +00:00
<script type="text/javascript" src="https://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="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
2021-06-13 03:56:27 +00:00
<!-- JavaScript Bundle with Popper -->
2024-12-04 04:19:44 +00:00
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" 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>
<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'
// 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-06-13 03:56:27 +00:00
})()
</script>
<!-- Page Script Assets -->
{!! PageAssets::js() !!}
<!-- Page Scripts -->
@yield('page-scripts')