Skip to content

Commit

Permalink
Remove modal test
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecraank committed Feb 19, 2024
1 parent 9e85169 commit f233dc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
6 changes: 0 additions & 6 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,3 @@ document.addEventListener('DOMContentLoaded', function () {
darkMode.classList.remove('d-none');
}
});

const patchnotes = localStorage.getItem('patchnotes');
if (patchnotes === null || patchnotes !== 'seen') {
$('#myModal').modal('toggle');
localStorage.setItem('patchnotes', 'seen');
}
19 changes: 0 additions & 19 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@
</head>

<body class="container">
<!-- Modal -->
<div class="modal fade" id="patchnotesModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Modal title</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>

<script>
// Instantly switch between light and dark mode to prevent flash of light mode
const body = document.querySelector('body');
Expand Down

0 comments on commit f233dc0

Please sign in to comment.