Skip to content

Commit

Permalink
custom script
Browse files Browse the repository at this point in the history
  • Loading branch information
jggj21 authored Aug 29, 2024
1 parent 2500fc8 commit c60d1eb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
{{-- <script src="{{ elixir('js/app.js') }}"></script> --}}
<!-- Custom scripts -->
@yield('custom-script')
</body>
</html>
9 changes: 7 additions & 2 deletions resources/views/tasks.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,13 @@
</div>
</div>
</div>
</div>
<script>
</div>
@endsection
@section('custom-script')
<script>
$(document).ready(function() {
console.log("jQuery is working!");
});
document.addEventListener('DOMContentLoaded', function () {
const previewButtons = document.querySelectorAll('.preview-file');
previewButtons.forEach(button => {
Expand Down

0 comments on commit c60d1eb

Please sign in to comment.